1 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3 * function.c (emit_initial_value_sets): Strengthen local "seq"
4 from rtx to rtx_insn *.
5 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
7 (instantiate_virtual_regs): Likewise for local "insn".
8 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
9 (reorder_blocks_1): Likewise for param "insns" and local "insn".
10 (expand_function_end): Likewise for locals "insn" and "seq".
11 (epilogue_done): Likewise for local "insn".
12 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
14 (reposition_prologue_and_epilogue_notes): Likewise for locals
15 "insn", "last", "note", "first".
16 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
17 (pass_match_asm_constraints::execute): Likewise for local "insn".
19 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21 * output.h (final_scan_insn): Strengthen return type from rtx to
23 (final_forward_branch_p): Likewise for param.
24 (current_output_insn): Likewise for this global.
26 * final.c (rtx debug_insn): Likewise for this variable.
27 (current_output_insn): Likewise.
28 (get_attr_length_1): Rename param "insn" to "uncast_insn",
29 adding "insn" back in as an rtx_insn * with a checked cast, so
30 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
32 (compute_alignments): Strengthen local "label" from rtx to
34 (shorten_branches): Rename param from "first" to "uncast_first",
35 introducing a new local rtx_insn * "first" using a checked cast to
36 effectively strengthen "first" from rtx to rtx_insn * without
37 affecting the type signature. Strengthen locals "insn", "seq",
38 "next", "label" from rtx to rtx_insn *.
39 (change_scope): Strengthen param "orig_insn" and local "insn" from
41 (final_start_function): Rename param from "first" to "uncast_first",
42 introducing a new local rtx_insn * "first" using a checked cast to
43 effectively strengthen "first" from rtx to rtx_insn * without
44 affecting the type signature. Strengthen local "insn" from rtx to
46 (dump_basic_block_info): Strengthen param "insn" from rtx to
48 (final): Rename param from "first" to "uncast_first",
49 introducing a new local rtx_insn * "first" using a checked cast to
50 effectively strengthen "first" from rtx to rtx_insn * without
51 affecting the type signature. Strengthen locals "insn", "next"
52 from rtx to rtx_insn *.
53 (output_alternate_entry_point): Strengthen param "insn" from rtx to
55 (call_from_call_insn): Strengthen param "insn" from rtx to
57 (final_scan_insn): Rename param from "insn" to "uncast_insn",
58 introducing a new local rtx_insn * "insn" using a checked cast to
59 effectively strengthen "insn" from rtx to rtx_insn * without
60 affecting the type signature. Strengthen return type and locals
61 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
62 now-redundant checked cast to rtx_insn * from both invocations of
63 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
64 introducing a local "call_insn" for use when invoking
66 (notice_source_line): Strengthen param "insn" from rtx to
68 (leaf_function_p): Likewise for local "insn".
69 (final_forward_branch_p): Likewise.
70 (leaf_renumber_regs): Likewise for param "first".
71 (rest_of_clean_state): Likewise for locals "insn" and "next".
72 (self_recursive_call_p): Likewise for param "insn".
73 (collect_fn_hard_reg_usage): Likewise for local "insn".
74 (get_call_fndecl): Likewise for param "insn".
75 (get_call_cgraph_rtl_info): Likewise.
76 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
77 introducing a new local rtx_insn * "insn" using a checked cast to
78 effectively strengthen "insn" from rtx to rtx_insn * without
79 affecting the type signature.
81 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
82 cast when assigning from param "insn" to current_output_insn.
83 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
84 so that we can assign it back to current_output_insn.
86 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
88 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
89 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
90 atmxt540s and atmxt540sreva devices.
91 * config/avr/avr-tables.opt: Regenerate.
92 * config/avr/t-multilib: Regenerate.
93 * doc/avr-mmcu.texi: Regenerate.
95 2014-08-22 David Malcolm <dmalcolm@redhat.com>
97 * expr.c (convert_move): Strengthen local "insns" from rtx to
99 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
100 "top_label" from rtx to rtx_code_label *.
101 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
103 (emit_single_push_insn): Likewise for locals "prev", "last".
104 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
106 (store_constructor): Likewise for locals "loop_start", "loop_end".
107 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
109 (expand_expr_real_2): Likewise.
110 (expand_expr_real_1): Strengthen local "label" from rtx to
113 2014-08-22 David Malcolm <dmalcolm@redhat.com>
115 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
116 from rtx to rtx_insn *.
117 (store_bit_field_1): Likewise.
118 (extract_bit_field_1): Likewise.
119 (expand_mult_const): Likewise for local "insns".
120 (expmed_mult_highpart): Strengthen local "label" from rtx to
122 (expand_smod_pow2): Likewise.
123 (expand_sdiv_pow2): Likewise.
124 (expand_divmod): Strengthen locals "last", "insn" from rtx to
125 rtx_insn *. Strengthen locals "label", "label1", "label2",
126 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
127 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
128 (emit_store_flag): Likewise.
129 (emit_store_flag_force): Strengthen local "label" from rtx to
131 (do_cmp_and_jump): Likewise for param "label".
133 2014-08-22 David Malcolm <dmalcolm@redhat.com>
135 * explow.c (force_reg): Strengthen local "insn" from rtx to
137 (adjust_stack_1): Likewise.
138 (allocate_dynamic_stack_space): Likewise. Strengthen locals
139 "final_label", "available_label", "space_available" from rtx to
141 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
142 (anti_adjust_stack_and_probe): Likewise.
144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
146 * except.h (sjlj_emit_function_exit_after): Strengthen param
147 "after" from rtx to rtx_insn *. This is only called with
148 result of get_last_insn (in function.c) so type-change should be
151 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
152 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
153 to rtx_insn *. These fields are only used from except.c so this
154 type-change should be self-contained to this patch.
156 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
157 local "last" from rtx to rtx_insn *.
158 (dw2_build_landing_pads): Likewise for local "seq".
159 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
160 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
161 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
163 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
165 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
166 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
167 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
168 referring to an insn. Strengthen local "dispatch_label" from
169 rtx to rtx_code_label *.
170 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
172 (expand_eh_return): Strengthen local "around_label" from
173 rtx to rtx_code_label *.
174 (convert_to_eh_region_ranges): Strengthen locals "iter",
175 "last_action_insn", "first_no_action_insn",
176 "first_no_action_insn_before_switch",
177 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
181 * dwarf2out.c (last_var_location_insn): Strengthen this variable
182 from rtx to rtx_insn *.
183 (cached_next_real_insn): Likewise.
184 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
186 (dwarf2out_var_location): Strengthen locals "next_real",
187 "next_note", "expected_next_loc_note", "last_start", "insn" from
190 2014-08-22 David Malcolm <dmalcolm@redhat.com>
192 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
193 from rtx to rtx_insn *.
194 (create_pseudo_cfg): Likewise for local "insn".
196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
198 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
199 from rtx to rtx_insn *.
200 (df_bb_regno_last_def_find): Likewise.
202 * df-problems.c (df_rd_bb_local_compute): Likewise.
203 (df_lr_bb_local_compute): Likewise.
204 (df_live_bb_local_compute): Likewise.
205 (df_chain_remove_problem): Likewise.
206 (df_chain_create_bb): Likewise.
207 (df_word_lr_bb_local_compute): Likewise.
208 (df_remove_dead_eq_notes): Likewise for param "insn".
209 (df_note_bb_compute): Likewise for local "insn".
210 (simulate_backwards_to_point): Likewise.
211 (df_md_bb_local_compute): Likewise.
213 * df-scan.c (df_scan_free_bb_info): Likewise.
214 (df_scan_start_dump): Likewise.
215 (df_scan_start_block): Likewise.
216 (df_install_ref_incremental): Likewise for local "insn".
217 (df_insn_rescan_all): Likewise.
218 (df_reorganize_refs_by_reg_by_insn): Likewise.
219 (df_reorganize_refs_by_insn_bb): Likewise.
220 (df_recompute_luids): Likewise.
221 (df_bb_refs_record): Likewise.
222 (df_update_entry_exit_and_calls): Likewise.
223 (df_bb_verify): Likewise.
225 2014-08-22 David Malcolm <dmalcolm@redhat.com>
227 * ddg.h (struct ddg_node): Strengthen fields "insn" and
228 "first_note" from rtx to rtx_insn *.
229 (get_node_of_insn): Likewise for param 2 "insn".
230 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
232 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
234 (mem_write_insn_p): Likewise.
235 (mem_access_insn_p): Likewise.
236 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
237 (def_has_ccmode_p): Likewise for param "insn".
238 (add_cross_iteration_register_deps): Likewise for locals
239 "def_insn" and "use_insn".
240 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
241 (build_intra_loop_deps): Likewise for local "src_insn".
242 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
244 (get_node_of_insn): Likewise for param "insn".
246 2014-08-22 David Malcolm <dmalcolm@redhat.com>
248 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
249 (deletable_insn_p): Strengthen param "insn" from rtx to
250 rtx_insn *. Add checked cast to rtx_call_insn when invoking
251 find_call_stack_args, since this is guarded by CALL_P (insn).
252 (marked_insn_p): Strengthen param "insn" from rtx to
254 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
255 invoking find_call_stack_args, since this is guarded by
257 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
258 rtx_insn *; we know this is an insn since this was called by
260 (mark_nonreg_stores_2): Likewise.
261 (mark_nonreg_stores): Strengthen param "insn" from rtx to
263 (find_call_stack_args): Strengthen param "call_insn" from rtx to
264 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
266 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
267 from rtx to rtx_insn *.
268 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
270 (delete_unmarked_insns): Likewise for locals "insn", "next".
271 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
272 (mark_reg_dependencies): Likewise for param "insn".
273 (rest_of_handle_ud_dce): Likewise for local "insn".
274 (word_dce_process_block): Likewise.
275 (dce_process_block): Likewise.
277 2014-08-22 David Malcolm <dmalcolm@redhat.com>
279 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
280 from rtx to rtx_insn *.
281 (struct change_cc_mode_args): Likewise for field "insn".
282 (this_insn): Strengthen from rtx to rtx_insn *.
283 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
285 (validate_canon_reg): Strengthen param "insn" from rtx to
287 (canon_reg): Likewise.
288 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
290 (record_jump_equiv): Strengthen param "insn" from rtx to
292 (try_back_substitute_reg): Likewise, also for locals "prev",
294 (find_sets_in_insn): Likewise for param "insn".
295 (canonicalize_insn): Likewise.
296 (cse_insn): Likewise. Add a checked cast.
297 (invalidate_from_clobbers): Likewise for param "insn".
298 (invalidate_from_sets_and_clobbers): Likewise.
299 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
301 (cse_prescan_path): Strengthen local "insn" from rtx to
303 (cse_extended_basic_block): Likewise for locals "insn" and
305 (cse_main): Likewise for param "f".
306 (check_for_label_ref): Likewise for local "insn".
307 (set_live_p): Likewise for second param ("insn").
308 (insn_live_p): Likewise for first param ("insn") and for local
310 (cse_change_cc_mode_insn): Likewise for first param "insn".
311 (cse_change_cc_mode_insns): Likewise for first and second params
313 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
315 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
318 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
319 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
320 Anna Tikhonova <anna.tikhonova@intel.com>
321 Ilya Tocar <ilya.tocar@intel.com>
322 Andrey Turetskiy <andrey.turetskiy@intel.com>
323 Ilya Verbin <ilya.verbin@intel.com>
324 Kirill Yukhin <kirill.yukhin@intel.com>
325 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
327 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
330 (define_mode_iterator VI248_AVX2): Delete.
331 (define_mode_iterator VI2_AVX2_AVX512BW): New.
332 (define_mode_iterator VI48_AVX2): Ditto.
333 (define_insn <shift_insn><mode>3): Delete.
334 (define_insn "<shift_insn><mode>3<mask_name>" with
335 VI2_AVX2_AVX512BW): New.
336 (define_insn "<shift_insn><mode>3<mask_name>" with
339 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
340 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
341 Anna Tikhonova <anna.tikhonova@intel.com>
342 Ilya Tocar <ilya.tocar@intel.com>
343 Andrey Turetskiy <andrey.turetskiy@intel.com>
344 Ilya Verbin <ilya.verbin@intel.com>
345 Kirill Yukhin <kirill.yukhin@intel.com>
346 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
349 (define_mode_iterator VI4F_BRCST32x2): New.
350 (define_mode_attr 64x2_mode): Ditto.
351 (define_mode_attr 32x2mode): Ditto.
352 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
353 with VI4F_BRCST32x2): Ditto.
354 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
355 with V16FI mode iterator): Ditto.
356 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
358 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
359 with VI8F_BRCST64x2): Ditto.
361 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
362 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
363 Anna Tikhonova <anna.tikhonova@intel.com>
364 Ilya Tocar <ilya.tocar@intel.com>
365 Andrey Turetskiy <andrey.turetskiy@intel.com>
366 Ilya Verbin <ilya.verbin@intel.com>
367 Kirill Yukhin <kirill.yukhin@intel.com>
368 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
371 (define_mode_iterator VI8_AVX512VL): New.
372 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
374 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
376 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
377 (define_mode_iterator V48_AVX512VL): New.
378 (define_mode_iterator V12_AVX512VL): Ditto.
379 (define_insn <avx512>_load<mode>_mask): Split into two similar
380 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
381 Refactor output template.
382 (define_insn "<avx512>_store<mode>_mask"): Ditto.
384 2014-08-22 David Malcolm <dmalcolm@redhat.com>
386 * cprop.c (struct occr): Strengthen field "insn" from rtx to
388 (reg_available_p): Likewise for param "insn".
389 (insert_set_in_table): Likewise.
390 (hash_scan_set): Likewise.
391 (hash_scan_insn): Likewise.
392 (make_set_regs_unavailable): Likewise.
393 (compute_hash_table_work): Likewise for local "insn".
394 (reg_not_set_p): Strengthen param "insn" from const_rtx to
396 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
397 (try_replace_reg): Likewise.
398 (find_avail_set): Likewise.
399 (cprop_jump): Likewise for params "setcc", "jump".
400 (constprop_register): Likewise for param "insn".
401 (cprop_insn): Likewise.
402 (do_local_cprop): Likewise.
403 (local_cprop_pass): Likewise for local "insn".
404 (bypass_block): Likewise for params "setcc" and "jump".
405 (bypass_conditional_jumps): Likewise for locals "setcc" and
407 (one_cprop_pass): Likewise for local "insn".
409 2014-08-22 David Malcolm <dmalcolm@redhat.com>
411 * compare-elim.c (struct comparison_use): Strengthen field "insn"
412 from rtx to rtx_insn *.
413 (struct comparison): Likewise, also for field "prev_clobber".
414 (conforming_compare): Likewise for param "insn".
415 (arithmetic_flags_clobber_p): Likewise.
416 (find_flags_uses_in_insn): Likewise.
417 (find_comparison_dom_walker::before_dom_children): Likewise for
418 locals "insn", "next", "last_clobber".
419 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
423 * combine-stack-adj.c (struct csa_reflist): Strengthen field
424 "insn" from rtx to rtx_insn *.
425 (single_set_for_csa): Likewise for param "insn".
426 (record_one_stack_ref): Likewise.
427 (try_apply_stack_adjustment): Likewise.
428 (struct record_stack_refs_data): Likewise for field "insn".
429 (maybe_move_args_size_note): Likewise for params "last" and "insn".
430 (prev_active_insn_bb): Likewise for return type and param "insn".
431 (next_active_insn_bb): Likewise.
432 (force_move_args_size_note): Likewise for params "prev" and "last"
433 and locals "test", "next_candidate", "prev_candidate".
434 (combine_stack_adjustments_for_block): Strengthen locals
435 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
438 2014-08-21 David Malcolm <dmalcolm@redhat.com>
440 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
441 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
442 (subst_insn): Likewise for this variable.
443 (added_links_insn): Likewise.
444 (struct insn_link): Likewise for field "insn".
445 (alloc_insn_link): Likewise for param "insn".
446 (struct undobuf): Likewise for field "other_insn".
447 (find_single_use): Likewise for param "insn" and local "next".
448 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
449 (delete_noop_moves): Likewise for locals "insn", "next".
450 (create_log_links): Likewise for locals "insn", "use_insn".
451 Strengthen local "next_use" from rtx * to rtx_insn **.
452 (insn_a_feeds_b): Likewise for params "a", "b".
453 (combine_instructions): Likewise for param "f" and locals "insn",
454 "next", "prev", "first", "last_combined_insn", "link", "link1",
455 "temp". Replace use of NULL_RTX with NULL when referring to
457 (setup_incoming_promotions): Likewise for param "first"
458 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
459 (can_combine_p): Likewise for params "insn", "i3", "pred",
460 "pred2", "succ", "succ2" and for local "p".
461 (combinable_i3pat): Likewise for param "i3".
462 (cant_combine_insn_p): Likewise for param "insn".
463 (likely_spilled_retval_p): Likewise.
464 (adjust_for_new_dest): Likewise.
465 (update_cfg_for_uncondjump): Likewise, also for local "insn".
466 (try_combine): Likewise for return type and for params "i3", "i2",
467 "i1", "i0", "last_combined_insn", and for locals "insn",
468 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
469 "i0_insn". Eliminate local "tem" in favor of new locals
470 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
471 checked cast for now to rtx_insn * on the return type of
472 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
474 (find_split_point): Strengthen param "insn" from rtx to
476 (simplify_set): Likewise for local "other_insn".
477 (recog_for_combine): Likewise for param "insn".
478 (record_value_for_reg): Likewise.
479 (record_dead_and_set_regs_1): Likewise for local
481 (record_dead_and_set_regs): Likewise for param "insn".
482 (record_promoted_value): Likewise.
483 (check_promoted_subreg): Likewise.
484 (get_last_value_validate): Likewise.
485 (reg_dead_at_p): Likewise.
486 (move_deaths): Likewise for param "to_insn".
487 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
488 and locals "place", "place2", "cc0_setter". Eliminate local "tem
489 in favor of new locals "tem_note" and "tem_insn", the latter being
491 (distribute_links): Strengthen locals "place", "insn" from rtx to
494 2014-08-21 David Malcolm <dmalcolm@redhat.com>
496 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
498 (can_delete_label_p): Require a const rtx_code_label * rather than
500 (delete_insn): Add checked cast to rtx_code_label * when we know
501 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
503 (delete_insn_chain): Strengthen locals "prev" and "current" from
504 rtx to rtx_insn *. Add a checked cast when assigning from
505 "finish" (strengthening the params will come later). Add a
506 checked cast to rtx_note * in region where we know
508 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
510 (compute_bb_for_insn): Likewise.
511 (free_bb_for_insn): Likewise for local "insn".
512 (compute_bb_for_insn): Likewise.
513 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
514 local "insn" from rtx to rtx_insn *
515 (flow_active_insn_p): Require a const rtx_insn * rather than a
517 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
519 (can_fallthru): Likewise for locals "insn" and "insn2".
520 (bb_note): Likewise for local "note".
521 (first_insn_after_basic_block_note): Likewise for local "note" and
523 (rtl_split_block): Likewise for locals "insn" and "next".
524 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
526 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
527 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
529 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
530 them), "kill_from", "barrier", "new_insn".
531 (patch_jump_insn): Likewise for params "insn", "old_label".
532 (redirect_branch_edge): Likewise for locals "old_label", "insn".
533 (force_nonfallthru_and_redirect): Likewise for locals "insn",
534 "old_label", "new_label".
535 (rtl_tidy_fallthru_edge): Likewise for local "q".
536 (rtl_split_edge): Likewise for locals "before", "last".
537 (commit_one_edge_insertion): Likewise for locals "before",
538 "after", "insns", "tmp", "last", adding a checked cast where
540 (commit_edge_insertions): Likewise.
541 (rtl_dump_bb): Likewise for locals "insn", "last".
542 (print_rtl_with_bb): Likewise for local "x".
543 (rtl_verify_bb_insns): Likewise for local "x".
544 (rtl_verify_bb_pointers): Likewise for local "insn".
545 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
547 (rtl_verify_fallthru): Likewise for local "insn".
548 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
549 (purge_dead_edges): Likewise for local "insn".
550 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
551 (skip_insns_after_block): Likewise for return type and for locals
552 "insn", "last_insn", "next_head", "prev".
553 (record_effective_endpoints): Likewise for locals "next_insn",
555 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
556 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
557 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
558 (duplicate_insn_chain): For now, add checked cast from rtx to
559 rtx_insn * when returning insn.
560 (cfg_layout_duplicate_bb): Likewise for local "insn".
561 (cfg_layout_delete_block): Likewise for locals "insn", "next",
563 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
564 (rtl_block_empty_p): Likewise.
565 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
566 "split_point", "last".
567 (rtl_block_ends_with_call_p): Likewise for local "insn".
568 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
570 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
571 "split_at_insn" from rtx to rtx_insn *.
572 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
573 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
575 (rtl_account_profile_record): Likewise.
577 2014-08-21 David Malcolm <dmalcolm@redhat.com>
579 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
581 (average_num_loop_insns): Likewise.
582 (init_set_costs): Likewise for local "seq".
583 (seq_cost): Likewise for param "seq", from const_rtx to const
586 2014-08-21 David Malcolm <dmalcolm@redhat.com>
588 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
591 2014-08-21 David Malcolm <dmalcolm@redhat.com>
593 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
594 "f1" and "f2" from rtx * to rtx_insn **.
595 (flow_find_head_matching_sequence): Likewise.
597 * cfgcleanup.c (try_simplify_condjump): Strengthen local
598 "cbranch_insn" from rtx to rtx_insn *.
599 (thread_jump): Likewise for local "insn".
600 (try_forward_edges): Likewise for local "last".
601 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
602 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
604 (can_replace_by): Likewise for params "i1", "i2".
605 (old_insns_match_p): Likewise.
606 (merge_notes): Likewise.
607 (walk_to_nondebug_insn): Likewise for param "i1".
608 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
609 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
610 "afterlast1", "afterlast2" from rtx to rtx_insn *.
611 (flow_find_head_matching_sequence): Strengthen params "f1" and
612 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
613 "last1", "last2", "beforelast1", "beforelast2" from rtx to
615 (outgoing_edges_match): Likewise for locals "last1", "last2".
616 (try_crossjump_to_edge): Likewise for local "insn".
617 Replace call to for_each_rtx with for_each_rtx_in_insn.
619 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
620 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
621 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
622 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
623 (try_optimize_cfg): Strengthen local "last" from rtx to
625 (delete_dead_jumptables): Likewise for locals "insn", "next",
628 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
629 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
630 "rtx else_first_tail", to reflect the basic-block.h changes above.
632 2014-08-21 David Malcolm <dmalcolm@redhat.com>
634 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
636 (purge_dead_tablejump_edges): Likewise.
637 (find_bb_boundaries): Likewise for locals "insn", "end",
638 "flow_transfer_insn".
640 2014-08-21 David Malcolm <dmalcolm@redhat.com>
642 * caller-save.c (save_call_clobbered_regs): Strengthen locals
643 "ins" and "prev" from rtx to rtx_insn *.
645 2014-08-21 David Malcolm <dmalcolm@redhat.com>
647 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
649 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
650 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
652 (load_register_parameters): Likewise for local "before_arg".
653 (check_sibcall_argument_overlap): Likewise for param "insn".
654 (expand_call): Likewise for locals "normal_call_insns",
655 "tail_call_insns", "insns", "before_call", "after_args",
656 "before_arg", "last", "prev". Strengthen one of the "last" from
657 rtx to rtx_call_insn *.
658 (fixup_tail_calls): Strengthen local "insn" from rtx to
660 (emit_library_call_value_1): Likewise for locals "before_call" and
663 2014-08-21 David Malcolm <dmalcolm@redhat.com>
665 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
666 and "last" from rtx to rtx_insn *.
667 (expand_builtin_nonlocal_goto): Likewise for local "insn".
668 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
670 (expand_errno_check): Strengthen local "lab" from rtx to
672 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
674 (expand_builtin_mathfn_2): Likewise.
675 (expand_builtin_mathfn_ternary): Likewise.
676 (expand_builtin_mathfn_3): Likewise.
677 (expand_builtin_interclass_mathfn): Likewise for local "last".
678 (expand_builtin_int_roundingfn): Likewise for local "insns".
679 (expand_builtin_int_roundingfn_2): Likewise.
680 (expand_builtin_strlen): Likewise for local "before_strlen".
681 (expand_builtin_strncmp): Likewise for local "seq".
682 (expand_builtin_signbit): Likewise for local "last".
683 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
684 from rtx to rtx_code_label *.
685 (expand_stack_restore): Strengthen local "prev" from rtx to
688 2014-08-21 David Malcolm <dmalcolm@redhat.com>
690 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
692 (struct btr_def_s): Likewise.
693 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
695 (add_btr_def): Likewise.
696 (new_btr_user): Likewise.
697 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
699 (link_btr_uses): Likewise.
700 (move_btr_def): Likewise for locals "insp", "old_insn",
701 "new_insn". Add checked cast to rtx_insn * for now on result of
703 (can_move_up): Strengthen param "insn" from const_rtx to
706 2014-08-21 David Malcolm <dmalcolm@redhat.com>
708 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
710 (get_uncond_jump_length): Likewise for locals "label", "jump".
711 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
713 (add_labels_and_missing_jumps): Likewise for local "new_jump".
714 (fix_up_fall_thru_edges): Likewise for local "old_jump".
715 (find_jump_block): Likewise for local "insn".
716 (fix_crossing_conditional_branches): Likewise for locals
717 "old_jump", "new_jump".
718 (fix_crossing_unconditional_branches): Likewise for locals
719 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
720 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
722 2014-08-21 David Malcolm <dmalcolm@redhat.com>
724 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
726 (struct mem_insn): Likewise for field "insn".
727 (reg_next_use): Strengthen from rtx * to rtx_insn **.
728 (reg_next_inc_use): Likewise.
729 (reg_next_def): Likewise.
730 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
731 from rtx to rtx_insn *.
732 (move_insn_before): Likewise for param "next_insn" and local "insns".
733 (attempt_change): Likewise for local "mov_insn".
734 (try_merge): Likewise for param "last_insn".
735 (get_next_ref): Likewise for return type and local "insn".
736 Strengthen param "next_array" from rtx * to rtx_insn **.
737 (parse_add_or_inc): Strengthen param "insn" from rtx to
739 (find_inc): Likewise for locals "insn" and "other_insn" (three of
741 (merge_in_block): Likewise for locals "insn", "curr",
743 (pass_inc_dec::execute): Update allocations of the arrays to
744 reflect the stronger types.
746 2014-08-21 David Malcolm <dmalcolm@redhat.com>
748 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
749 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
750 from rtx to rtx_code_label *.
752 2014-08-21 David Malcolm <dmalcolm@redhat.com>
754 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
757 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
759 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
760 generated a warning and prevented bootstrapping the compiler.
762 2014-08-21 David Malcolm <dmalcolm@redhat.com>
764 * rtl.h (delete_related_insns): Strengthen return type from rtx to
767 * jump.c (delete_related_insns): Likewise, also for locals "next"
770 2014-08-21 David Malcolm <dmalcolm@redhat.com>
772 * genautomata.c (output_internal_insn_latency_func): When writing
773 the function "internal_insn_latency" to insn-automata.c,
774 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
775 allowing the optional guard function of (define_bypass) clauses to
776 expect a pair of rtx_insn *, rather than a pair of rtx.
777 (output_insn_latency_func): When writing the function
778 "insn_latency", add an "uncast_" prefix to params "insn" and
779 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
780 using checked casts from the params, thus enabling the above
781 change to the generated "internal_insn_latency" function.
783 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
785 PR tree-optimization/62091
786 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
787 handle correctly arrays.
788 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
790 (record_known_type): Walk into inner type.
791 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
792 condition on no type changes.
794 2014-08-21 David Malcolm <dmalcolm@redhat.com>
796 * genattrtab.c (write_attr_get): Within the generated get_attr_
797 functions, rename param "insn" to "uncast_insn" and reintroduce
798 "insn" as an local rtx_insn * using a checked cast, so that "insn"
799 is an rtx_insn * within insn-attrtab.c
801 2014-08-21 David Malcolm <dmalcolm@redhat.com>
803 * output.h (peephole): Strengthen return type from rtx to
805 * rtl.h (delete_for_peephole): Likewise for both params.
806 * genpeep.c (main): In generated "peephole" function, strengthen
807 return type and local "insn" from rtx to rtx_insn *. For now,
808 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
809 rtx_insn *, with a checked cast.
810 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
811 locals "insn", "next", "prev" from rtx to rtx_insn *.
813 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
815 PR tree-optimization/62112
816 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
817 * gimple-iterator.h (gsi_replace): Return bool.
818 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
819 moved from ref_may_alias_global_p.
820 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
822 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
823 (stmt_kills_ref_p_1): Rename...
824 (stmt_kills_ref_p): ... to this.
825 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
826 stmt_kills_ref_p): Declare.
827 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
828 Move the self-assignment case...
829 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
831 2014-08-21 David Malcolm <dmalcolm@redhat.com>
833 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
835 * emit-rtl.c (try_split): Likewise, also for locals "before" and
836 "after". For now, don't strengthen param "trial", which requires
837 adding checked casts when returning it.
839 2014-08-21 David Malcolm <dmalcolm@redhat.com>
841 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
842 "label" from rtx to rtx_code_label *. Strengthen param 1 of
843 "var_location" hook from rtx to rtx_insn *.
844 (debug_nothing_rtx): Delete in favor of...
845 (debug_nothing_rtx_code_label): New prototype.
846 (debug_nothing_rtx_rtx): Delete unused prototype.
847 (debug_nothing_rtx_insn): New prototype.
849 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
850 invoking debug_hooks->var_location (in two places, one in a NOTE
851 case of a switch statement, the other guarded by a CALL_P
852 conditional. Add checked cast to rtx_code_label * when invoking
853 debug_hooks->label (within CODE_LABEL case of switch statement).
855 * dbxout.c (dbx_debug_hooks): Update "label" hook from
856 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
857 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
858 (xcoff_debug_hooks): Likewise.
859 * debug.c (do_nothing_debug_hooks): Likewise.
860 (debug_nothing_rtx): Delete in favor of...
861 (debug_nothing_rtx_insn): New function.
862 (debug_nothing_rtx_rtx): Delete unused function.
863 (debug_nothing_rtx_code_label): New function.
864 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
865 debug_nothing_rtx to debug_nothing_rtx_code_label.
866 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
868 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
869 debug_nothing_rtx to debug_nothing_rtx_insn.
870 (sdbout_label): Strengthen param "insn" from rtx to
872 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
873 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
874 "var_location" hook from debug_nothing_rtx to
875 debug_nothing_rtx_insn.
877 2014-08-21 David Malcolm <dmalcolm@redhat.com>
879 * recog.h (insn_output_fn): Update this function typedef to match
880 the changes below to the generated output functions, strengthening
881 the 2nd param from rtx to rtx_insn *.
883 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
884 insn when invoking an output function, to match the new signature
885 of insn_output_fn with a stronger second param.
887 * genconditions.c (write_header): In the generated code for
888 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
889 to match the other changes in this patch.
891 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
892 the generated "gen_" functions from rtx to rtx_insn * within their
895 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
896 the subfunctions within the generated "recog_", "split", "peephole2"
897 function trees from rtx to rtx_insn *. For now, the top-level
898 generated functions ("recog", "split", "peephole2") continue to
899 take a plain rtx for "insn", to avoid introducing dependencies on
900 other patches. Rename this 2nd param from "insn" to
901 "uncast_insn", and reintroduce "insn" as a local variable of type
902 rtx_insn *, initialized at the top of the generated function with
903 a checked cast on "uncast_insn".
904 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
905 the generated "gen_" functions from rtx to rtx_insn * within their
908 * genoutput.c (process_template): Strengthen the 2nd param within
909 the generated "output_" functions "insn" from rtx to rtx_insn *.
911 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
913 * tree-profile.c (tree_profiling): Skip external functions
914 when doing coverage instrumentation.
915 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
917 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
919 * config/rs6000/altivec.h (vec_cpsgn): New #define.
920 (vec_mergee): Likewise.
921 (vec_mergeo): Likewise.
922 (vec_cntlz): Likewise.
923 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
924 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
925 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
927 * doc/extend.texi: Document various forms of vec_cpsgn,
928 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
929 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
930 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
931 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
932 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
934 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
936 * config/rs6000/rs6000.c (context.h): New include.
937 (tree-pass.h): Likewise.
938 (make_pass_analyze_swaps): New decl.
939 (rs6000_option_override): Register pass_analyze_swaps.
940 (swap_web_entry): New subsclass of web_entry_base (df.h).
941 (special_handling_values): New enum.
942 (union_defs): New function.
943 (union_uses): Likewise.
944 (insn_is_load_p): Likewise.
945 (insn_is_store_p): Likewise.
946 (insn_is_swap_p): Likewise.
947 (rtx_is_swappable_p): Likewise.
948 (insn_is_swappable_p): Likewise.
949 (chain_purpose): New enum.
950 (chain_contains_only_swaps): New function.
951 (mark_swaps_for_removal): Likewise.
952 (swap_const_vector_halves): Likewise.
953 (adjust_subreg_index): Likewise.
954 (permute_load): Likewise.
955 (permute_store): Likewise.
956 (handle_special_swappables): Likewise.
957 (replace_swap_with_copy): Likewise.
958 (dump_swap_insn_table): Likewise.
959 (rs6000_analyze_swaps): Likewise.
960 (pass_data_analyze_swaps): New pass_data.
961 (pass_analyze_swaps): New rtl_opt_pass.
962 (make_pass_analyze_swaps): New function.
963 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
965 2014-08-21 David Malcolm <dmalcolm@redhat.com>
967 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
968 type from rtx to rtx_insn *.
969 (create_copy_of_insn_rtx): Likewise.
970 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
971 (create_copy_of_insn_rtx): Likewise, also for local "res".
973 2014-08-21 David Malcolm <dmalcolm@redhat.com>
975 * rtl.h (find_first_parameter_load): Strengthen return type from
977 * rtlanal.c (find_first_parameter_load): Strengthen return type
978 from rtx to rtx_insn *. Add checked cast for now, to postpone
979 strengthening the params.
981 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
984 * diagnostic.c: Set default caret.
985 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
987 * diagnostic.h (struct diagnostic_context):
989 2014-08-21 David Malcolm <dmalcolm@redhat.com>
991 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
992 (sel_bb_head): Strengthen return type insn_t (currently just an
994 (sel_bb_end): Likewise.
996 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
997 (sel_bb_head): Strengthen return type and local "head" from
998 insn_t (currently just an rtx) to rtx_insn *.
999 (sel_bb_end): Likewise for return type.
1000 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
1003 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1005 * basic-block.h (get_last_bb_insn): Strengthen return type from
1007 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
1010 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1013 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
1015 (diagnostic_report_diagnostic): ... from here.
1016 * toplev.c (general_init): Move code to c-family.
1018 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1020 * df.h (web_entry_base): Replace existing struct web_entry with a
1021 new class web_entry_base with only the predecessor member.
1022 (unionfind_root): Remove declaration and move to class member.
1023 (unionfind_union): Remove declaration and move to friend
1025 (union_defs): Remove declaration.
1026 * web.c (web_entry_base::unionfind_root): Modify to be member
1027 function and adjust accessors.
1028 (unionfind_union): Modify to be friend function and adjust
1030 (web_entry): New subclass of web_entry_base containing the reg
1032 (union_match_dups): Modify for struct -> class changes.
1033 (union_defs): Likewise.
1034 (entry_register): Likewise.
1035 (pass_web::execute): Likewise.
1037 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
1039 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
1040 builtin define __VEC_ELEMENT_REG_ORDER__.
1042 2014-08-20 Martin Jambor <mjambor@suse.cz>
1043 Wei Mi <wmi@google.com>
1047 * tree-ssa-operands.c (update_stmt_operands): Remove
1048 MODIFIED_NORETURN_CALLS.
1049 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
1050 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
1051 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
1052 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
1053 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
1054 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
1055 (gimple_call_set_ctrl_altering): New func.
1056 (gimple_call_ctrl_altering_p): Ditto.
1057 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
1058 (make_blocks): Use gimple_call_initialize_ctrl_altering.
1059 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
1060 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
1061 remove MODIFIED_NORETURN_CALLS.
1063 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1065 * coverage.c (coverage_compute_profile_id): Return non-0;
1066 also handle symbols with unique name.
1067 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
1069 2014-08-20 Steve Ellcey <sellcey@mips.com>
1072 * doc/sourcebuild.texi (non_strict_align): New.
1074 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1076 * cgraphunit.c (ipa_passes, compile): Reshedule
1077 symtab_remove_unreachable_nodes passes; update comments.
1078 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
1079 TODO_remove_functions before the pass; the functions ought to be
1081 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
1082 TODO_remove_functions.
1083 * passes.c (pass_data_early_local_passes): Do not schedule function
1085 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
1087 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1090 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
1091 before setting the option.
1092 * diagnostic.c (diagnostic_classify_diagnostic): Record
1093 command-line status.
1095 2014-08-20 Richard Biener <rguenther@suse.de>
1098 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
1099 to build uint{16,32,64}_type_node.
1101 2014-08-20 Terry Guo <terry.guo@arm.com>
1103 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
1104 with immediate_operand.
1106 2014-08-20 David Malcolm <dmalcolm@redhat.com>
1108 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
1109 "insn" from an as_a to a safe_as_a, for the case when "insn" is
1112 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1114 PR preprocessor/51303
1115 * incpath.c (remove_duplicates): Use cpp_warning.
1117 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1121 * doc/options.texi (CPP): Document it.
1122 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
1123 * optc-gen.awk: Handle CPP.
1124 * opth-gen.awk: Likewise.
1126 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1128 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
1130 (duplicate_insn_chain): Likewise.
1131 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
1132 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
1133 checked cast for now (until we can strengthen the params in the
1135 (duplicate_insn_chain): Likewise.
1137 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1139 * rtl.h (next_cc0_user): Strengthen return type from rtx to
1141 (prev_cc0_setter): Likewise.
1143 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
1144 rtx_insn *, adding checked casts for now as necessary.
1145 (prev_cc0_setter): Likewise.
1147 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1149 * expr.h (emit_move_insn): Strengthen return type from rtx to
1151 (emit_move_insn_1): Likewise.
1152 (emit_move_complex_push): Likewise.
1153 (emit_move_complex_parts): Likewise.
1155 * expr.c (emit_move_via_integer): Strengthen return type from rtx
1156 to rtx_insn *. Replace use of NULL_RTX with NULL when working
1158 (emit_move_complex_push): Strengthen return type from rtx to
1160 (emit_move_complex): Likewise, also for local "ret".
1161 (emit_move_ccmode): Likewise.
1162 (emit_move_multi_word): Likewise for return type and locals
1164 (emit_move_insn_1): Likewise for return type and locals "result",
1166 (emit_move_insn): Likewise for return type and local "last_insn".
1167 (compress_float_constant): Likewise.
1169 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1171 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
1172 from rtx to rtx_insn *.
1174 * rtl.h (emit_insn_before): Likewise.
1175 (emit_insn_before_noloc): Likewise.
1176 (emit_insn_before_setloc): Likewise.
1177 (emit_jump_insn_before): Likewise.
1178 (emit_jump_insn_before_noloc): Likewise.
1179 (emit_jump_insn_before_setloc): Likewise.
1180 (emit_call_insn_before): Likewise.
1181 (emit_call_insn_before_noloc): Likewise.
1182 (emit_call_insn_before_setloc): Likewise.
1183 (emit_debug_insn_before): Likewise.
1184 (emit_debug_insn_before_noloc): Likewise.
1185 (emit_debug_insn_before_setloc): Likewise.
1186 (emit_label_before): Likewise.
1187 (emit_insn_after): Likewise.
1188 (emit_insn_after_noloc): Likewise.
1189 (emit_insn_after_setloc): Likewise.
1190 (emit_jump_insn_after): Likewise.
1191 (emit_jump_insn_after_noloc): Likewise.
1192 (emit_jump_insn_after_setloc): Likewise.
1193 (emit_call_insn_after): Likewise.
1194 (emit_call_insn_after_noloc): Likewise.
1195 (emit_call_insn_after_setloc): Likewise.
1196 (emit_debug_insn_after): Likewise.
1197 (emit_debug_insn_after_noloc): Likewise.
1198 (emit_debug_insn_after_setloc): Likewise.
1199 (emit_label_after): Likewise.
1200 (emit_insn): Likewise.
1201 (emit_debug_insn): Likewise.
1202 (emit_jump_insn): Likewise.
1203 (emit_call_insn): Likewise.
1204 (emit_label): Likewise.
1205 (gen_clobber): Likewise.
1206 (emit_clobber): Likewise.
1207 (gen_use): Likewise.
1208 (emit_use): Likewise.
1211 (emit_barrier_before): Strengthen return type from rtx to
1213 (emit_barrier_after): Likewise.
1214 (emit_barrier): Likewise.
1216 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
1217 from rtx to rtx_insn *. Add checked casts for now when converting
1218 "last" from rtx to rtx_insn *.
1219 (emit_insn_before_noloc): Likewise for return type.
1220 (emit_jump_insn_before_noloc): Likewise.
1221 (emit_call_insn_before_noloc): Likewise.
1222 (emit_debug_insn_before_noloc): Likewise.
1223 (emit_barrier_before): Strengthen return type and local "insn"
1224 from rtx to rtx_barrier *.
1225 (emit_label_before): Strengthen return type from rtx to
1226 rtx_insn *. Add checked cast for now when returning param
1227 (emit_pattern_after_noloc): Strengthen return type from rtx to
1228 rtx_insn *. Add checked casts for now when converting "last" from
1230 (emit_insn_after_noloc): Strengthen return type from rtx to
1232 (emit_jump_insn_after_noloc): Likewise.
1233 (emit_call_insn_after_noloc): Likewise.
1234 (emit_debug_insn_after_noloc): Likewise.
1235 (emit_barrier_after): Strengthen return type from rtx to
1237 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
1238 Add checked cast for now when converting "label" from rtx to
1240 (emit_pattern_after_setloc): Strengthen return type from rtx to
1241 rtx_insn *. Add checked casts for now when converting "last" from
1243 (emit_pattern_after): Strengthen return type from rtx to
1245 (emit_insn_after_setloc): Likewise.
1246 (emit_insn_after): Likewise.
1247 (emit_jump_insn_after_setloc): Likewise.
1248 (emit_jump_insn_after): Likewise.
1249 (emit_call_insn_after_setloc): Likewise.
1250 (emit_call_insn_after): Likewise.
1251 (emit_debug_insn_after_setloc): Likewise.
1252 (emit_debug_insn_after): Likewise.
1253 (emit_pattern_before_setloc): Likewise. Add checked casts for now
1254 when converting "last" from rtx to rtx_insn *.
1255 (emit_pattern_before): Strengthen return type from rtx to
1257 (emit_insn_before_setloc): Likewise.
1258 (emit_insn_before): Likewise.
1259 (emit_jump_insn_before_setloc): Likewise.
1260 (emit_jump_insn_before): Likewise.
1261 (emit_call_insn_before_setloc): Likewise.
1262 (emit_call_insn_before): Likewise.
1263 (emit_debug_insn_before_setloc): Likewise.
1264 (emit_debug_insn_before): Likewise.
1265 (emit_insn): Strengthen return type and locals "last", "insn",
1266 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
1267 within cases where we know we have an insn.
1268 (emit_debug_insn): Likewise.
1269 (emit_jump_insn): Likewise.
1270 (emit_call_insn): Strengthen return type and local "insn" from rtx
1272 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
1273 a checked cast to rtx_insn * for now on "label".
1274 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
1275 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
1276 (emit_use): Likewise.
1277 (gen_use): Likewise, also for local "seq".
1278 (emit): Likewise for return type and local "insn".
1279 (rtx_insn): Likewise for return type and local "new_rtx".
1281 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
1282 from rtx to rtx_barrier *.
1284 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
1285 changed return type from rtx to rtx_insn *, we must update
1286 "emit_fn" type, and this in turn means updating...
1287 (frame_insn): ...this. Strengthen return type from rtx to
1288 rtx_insn *. Introduce a new local "insn" of the appropriate type.
1290 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1292 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
1293 rtx to rtx_jump_table_data *. Also for local.
1294 * rtl.h (emit_jump_table_data): Likewise.
1296 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1298 * basic-block.h (create_basic_block_structure): Strengthen third
1299 param "bb_note" from rtx to rtx_note *.
1300 * rtl.h (emit_note_before): Strengthen return type from rtx to
1302 (emit_note_after): Likewise.
1303 (emit_note): Likewise.
1304 (emit_note_copy): Likewise. Also, strengthen param similarly.
1305 * function.h (struct rtl_data): Strengthen field
1306 "x_stack_check_probe_note" from rtx to rtx_note *.
1308 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
1309 from rtx to rtx_note *.
1310 * cfgrtl.c (create_basic_block_structure): Strengthen third param
1311 "bb_note" from rtx to rtx_note *.
1312 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
1313 when calling emit_note_copy.
1314 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
1316 (emit_note_after): Likewise.
1317 (emit_note_before): Likewise.
1318 (emit_note_copy): Likewise. Also, strengthen param similarly.
1319 (emit_note): Likewise.
1320 * except.c (emit_note_eh_region_end): Likewise for return type.
1321 Strengthen local "next" from rtx to rtx_insn *.
1322 (convert_to_eh_region_ranges): Strengthen local "note"
1323 from rtx to rtx_note *.
1324 * final.c (change_scope): Likewise.
1325 (reemit_insn_block_notes): Likewise, for both locals named "note".
1326 Also, strengthen local "insn" from rtx to rtx_insn *.
1327 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
1329 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
1330 strengthen local "seq" from rtx to rtx_insn *.
1331 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
1333 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
1335 (get_bb_note_from_pool): Strengthen return type from rtx to
1337 (sel_create_basic_block): Strengthen local "new_bb_note" from
1338 insn_t to rtx_note *.
1339 * var-tracking.c (emit_note_insn_var_location): Strengthen local
1340 "note" from rtx to rtx_note *.
1341 (emit_notes_in_bb): Likewise.
1343 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1345 * function.h (struct rtl_data): Strengthen field
1346 "x_parm_birth_insn" from rtx to rtx_insn *.
1347 * function.c (struct assign_parm_data_all): Strengthen fields
1348 "first_conversion_insn" and "last_conversion_insn" from rtx to
1351 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1353 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
1354 to rtx_insn *; also for local "var_end_seq".
1355 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
1356 (maybe_cleanup_end_of_block): Likewise for param "last" and local
1358 (expand_gimple_cond): Likewise for locals "last2" and "last".
1359 (mark_transaction_restart_calls): Likewise for local "insn".
1360 (expand_gimple_stmt): Likewise for return type and locals "last"
1362 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
1363 (avoid_complex_debug_insns): Likewise for param "insn".
1364 (expand_debug_locations): Likewise for locals "insn", "last",
1365 "prev_insn" and "insn2".
1366 (expand_gimple_basic_block): Likewise for local "last".
1367 (construct_exit_block): Likewise for locals "head", "end",
1369 (pass_expand::execute): Likewise for locals "var_seq",
1370 "var_ret_seq", "next".
1372 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1374 * asan.h (asan_emit_stack_protection): Strengthen return type from
1376 * asan.c (asan_emit_stack_protection): Likewise. Add local
1377 "insns" to hold the return value.
1379 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1381 * basic-block.h (bb_note): Strengthen return type from rtx to
1383 * sched-int.h (bb_note): Likewise.
1384 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
1386 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1388 * rtl.h (make_insn_raw): Strengthen return type from rtx to
1391 * emit-rtl.c (make_insn_raw): Strengthen return type and local
1392 "insn" from rtx to rtx_insn *.
1393 (make_debug_insn_raw): Strengthen return type from rtx to
1394 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
1395 (make_jump_insn_raw): Strengthen return type from rtx to
1396 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
1397 (make_call_insn_raw): Strengthen return type from rtx to
1398 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
1399 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
1400 callback from rtx to rtx_insn *; likewise for local "insn" and
1401 "next", adding a checked cast to rtx_insn in the relevant cases of
1402 the switch statement.
1403 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
1404 callback from rtx to rtx_insn *.
1405 (emit_pattern_after_setloc): Likewise.
1406 (emit_pattern_after): Likewise.
1407 (emit_pattern_before_setloc): Likewise.
1408 (emit_pattern_before): Likewise.
1410 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1412 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
1414 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
1415 accepting an rtx_insn *.
1416 (last_call_insn): Strengthen return type from rtx to
1419 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1421 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
1422 "insns" from rtx to rtx_insn *.
1423 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
1424 locals "insn" and "prev".
1426 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1428 * rtl.h (tablejump_p): Strengthen third param from rtx * to
1429 rtx_jump_table_data **.
1431 * cfgbuild.c (make_edges): Introduce local "table", using it in
1432 place of "tmp" for jump table data.
1433 (find_bb_boundaries): Strengthen local "table" from rtx to
1434 rtx_jump_table_data *.
1435 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1436 (outgoing_edges_match): Likewise for locals "table1" and "table2".
1437 (try_crossjump_to_edge): Likewise.
1438 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
1440 (patch_jump_insn): Introduce local "table", using it in place of
1441 "tmp" for jump table data.
1442 (force_nonfallthru_and_redirect): Introduce local "table", so that
1443 call to tablejump_p can receive an rtx_jump_table_data **. Update
1444 logic around the call to overwrite "note" appropriately if
1445 tablejump_p returns non-zero.
1446 (get_last_bb_insn): Introduce local "table", using it in place of
1447 "tmp" for jump table data.
1448 * dwarf2cfi.c (create_trace_edges): Likewise.
1450 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
1451 from rtx to rtx_jump_table_data *.
1452 (create_fix_barrier): Strengthen local "tmp" from rtx to
1453 rtx_jump_table_data *.
1454 (arm_reorg): Likewise for local "table".
1456 * config/s390/s390.c (s390_chunkify_start): Likewise.
1458 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1460 * jump.c (delete_related_insns): Strengthen local "lab_next" from
1461 rtx to rtx_jump_table_data *.
1463 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
1464 rtx_jump_table_data **. Add a checked cast when writing through
1465 the pointer: we know there that local "table" is non-NULL and that
1466 JUMP_TABLE_DATA_P (table) holds.
1467 (label_is_jump_target_p): Introduce local "table", using it in
1468 place of "tmp" for jump table data.
1470 2014-08-19 Marek Polacek <polacek@redhat.com>
1473 * doc/invoke.texi: Document -Wbool-compare.
1475 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1477 * rtl.h (entry_of_function): Strengthen return type from rtx to
1479 * cfgrtl.c (entry_of_function): Likewise.
1481 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1483 * emit-rtl.h (get_insns): Strengthen return type from rtx to
1484 rtx_insn *, adding a checked cast for now.
1485 (get_last_insn): Likewise.
1487 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1489 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
1492 * emit-rtl.c (gen_label_rtx): Likewise.
1494 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1496 * rtl.h (previous_insn): Strengthen return type from rtx to
1498 (next_insn): Likewise.
1499 (prev_nonnote_insn): Likewise.
1500 (prev_nonnote_insn_bb): Likewise.
1501 (next_nonnote_insn): Likewise.
1502 (next_nonnote_insn_bb): Likewise.
1503 (prev_nondebug_insn): Likewise.
1504 (next_nondebug_insn): Likewise.
1505 (prev_nonnote_nondebug_insn): Likewise.
1506 (next_nonnote_nondebug_insn): Likewise.
1507 (prev_real_insn): Likewise.
1508 (next_real_insn): Likewise.
1509 (prev_active_insn): Likewise.
1510 (next_active_insn): Likewise.
1512 * emit-rtl.c (next_insn): Strengthen return type from rtx to
1513 rtx_insn *, adding a checked cast.
1514 (previous_insn): Likewise.
1515 (next_nonnote_insn): Likewise.
1516 (next_nonnote_insn_bb): Likewise.
1517 (prev_nonnote_insn): Likewise.
1518 (prev_nonnote_insn_bb): Likewise.
1519 (next_nondebug_insn): Likewise.
1520 (prev_nondebug_insn): Likewise.
1521 (next_nonnote_nondebug_insn): Likewise.
1522 (prev_nonnote_nondebug_insn): Likewise.
1523 (next_real_insn): Likewise.
1524 (prev_real_insn): Likewise.
1525 (next_active_insn): Likewise.
1526 (prev_active_insn): Likewise.
1528 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
1529 param "stepfunc" so that it returns an rtx_insn * rather than an
1530 rtx, to track the change to prev_nonnote_insn_bb, which is the
1531 only function this is called with.
1532 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
1534 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
1536 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
1539 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1541 * coretypes.h (class rtx_debug_insn): Add forward declaration.
1542 (class rtx_nonjump_insn): Likewise.
1543 (class rtx_jump_insn): Likewise.
1544 (class rtx_call_insn): Likewise.
1545 (class rtx_jump_table_data): Likewise.
1546 (class rtx_barrier): Likewise.
1547 (class rtx_code_label): Likewise.
1548 (class rtx_note): Likewise.
1550 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
1551 adding the invariant DEBUG_INSN_P (X).
1552 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
1553 the invariant NONJUMP_INSN_P (X).
1554 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
1555 the invariant JUMP_P (X).
1556 (class rtx_call_insn): New, a subclass of rtx_insn, adding
1557 the invariant CALL_P (X).
1558 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
1559 invariant JUMP_TABLE_DATA_P (X).
1560 (class rtx_barrier): New, a subclass of rtx_insn, adding the
1561 invariant BARRIER_P (X).
1562 (class rtx_code_label): New, a subclass of rtx_insn, adding
1563 the invariant LABEL_P (X).
1564 (class rtx_note): New, a subclass of rtx_insn, adding
1565 the invariant NOTE_P(X).
1566 (is_a_helper <rtx_debug_insn *>::test): New.
1567 (is_a_helper <rtx_nonjump_insn *>::test): New.
1568 (is_a_helper <rtx_jump_insn *>::test): New.
1569 (is_a_helper <rtx_call_insn *>::test): New.
1570 (is_a_helper <rtx_jump_table_data *>::test): New functions,
1571 overloaded for both rtx and rtx_insn *.
1572 (is_a_helper <rtx_barrier *>::test): New.
1573 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
1574 for both rtx and rtx_insn *.
1575 (is_a_helper <rtx_note *>::test): New.
1577 2014-08-19 Marek Polacek <polacek@redhat.com>
1579 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
1580 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1581 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
1582 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1584 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1586 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
1587 rtx_insn *. To help with transition, for now, convert from an
1588 access macro into a pair of functions: BND_TO, returning an
1590 (SET_BND_TO): New function, for use where BND_TO is used as an
1593 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
1595 (BND_TO): New function, adding a checked cast.
1596 (SET_BND_TO): New function.
1598 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
1600 (compute_av_set_on_boundaries): Likewise.
1602 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1604 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
1605 destination if it is used in source.
1606 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
1607 (*popcount<mode>2_falsedep_1): Likewise.
1609 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1612 * configure.ac: Set install_gold_as_default to no first.
1613 * configure: Regenerated.
1615 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1617 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
1618 "note_list" field will eventually be an rtx_insn *. To help with
1619 transition, for now, convert from an access macro into a pair of
1620 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
1621 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
1624 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
1625 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
1627 * sel-sched-ir.c (init_bb): Likewise.
1628 (sel_restore_notes): Likewise.
1629 (move_bb_info): Likewise.
1630 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
1631 (SET_BB_NOTE_LIST): New function.
1633 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1635 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
1636 field will eventually be an rtx_insn *. To help with transition,
1637 for now, convert from an access macro into a pair of functions:
1638 VINSN_INSN_RTX, returning an rtx_insn *, and...
1639 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
1640 is used as an lvalue.
1642 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
1643 SET_VINSN_INSN_RTX where it's used as an lvalue.
1644 (VINSN_INSN_RTX): New function.
1645 (SET_VINSN_INSN_RTX): New function.
1647 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1649 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
1650 eventually be rtx_insn *, but to help with transition, for now,
1651 convert from an access macro into a pair of functions: DEP_PRO
1652 returning an rtx_insn * and...
1653 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
1654 lvalue, returning an rtx&.
1655 (DEP_CON): Analogous changes to DEP_PRO above.
1656 (SET_DEP_CON): Likewise.
1658 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
1659 an lvalue to SET_DEP_CON.
1660 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
1661 (sd_copy_back_deps): Likewise for DEP_CON.
1662 (DEP_PRO): New function, adding a checked cast for now.
1663 (DEP_CON): Likewise.
1664 (SET_DEP_PRO): New function.
1665 (SET_DEP_CON): Likewise.
1667 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1669 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
1670 (extra_options): Add i386/cygwin.opt.
1671 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
1672 (CPP_SPEC): Accept -pthread.
1674 (GOMP_SELF_SPECS): Update comment.
1675 * config/i386/cygwin.opt: New file for -pthread flag.
1677 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1679 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
1680 * df.h (DF_REF_INSN): Convert from a macro to a function, so
1681 that we can return an rtx_insn *.
1683 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1685 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
1686 when building executables, not DLLs. Add --large-address-aware
1687 under the same conditions.
1688 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
1689 when building executables, not DLLs. Add --large-address-aware
1690 under the same conditions when using -m32.
1692 * config/i386/cygwin-stdint.h: Throughout, make type
1693 definitions dependent on target architecture, not host.
1695 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1697 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
1698 the return type from rtx to rtx_insn *, which will enable various
1699 conversions in followup patches. For now this is is done by a
1701 (NEXT_INSN): Likewise.
1702 (SET_PREV_INSN): Convert to an inline function. This is intended
1703 for use as an lvalue, and so returns an rtx& to allow in-place
1705 (SET_NEXT_INSN): Likewise.
1707 2014-07-08 Mark Wielaard <mjw@redhat.com>
1710 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
1712 2014-08-19 Marek Polacek <polacek@redhat.com>
1715 * cgraphunit.c (handle_alias_pairs): Fix condition.
1717 2014-08-19 Richard Biener <rguenther@suse.de>
1719 * gimple-fold.c (fold_gimple_assign): Properly build a
1720 null-pointer constant when devirtualizing addresses.
1722 2014-07-07 Mark Wielaard <mjw@redhat.com>
1724 * dwarf2out.c (decl_quals): New function.
1725 (modified_type_die): Take one cv_quals argument instead of two,
1726 one for const and one for volatile.
1727 (add_type_attribute): Likewise.
1728 (generic_parameter_die): Call add_type_attribute with one modifier
1730 (base_type_for_mode): Likewise.
1731 (add_bounds_info): Likewise.
1732 (add_subscript_info): Likewise.
1733 (gen_array_type_die): Likewise.
1734 (gen_descr_array_type_die): Likewise.
1735 (gen_entry_point_die): Likewise.
1736 (gen_enumeration_type_die): Likewise.
1737 (gen_formal_parameter_die): Likewise.
1738 (gen_subprogram_die): Likewise.
1739 (gen_variable_die): Likewise.
1740 (gen_const_die): Likewise.
1741 (gen_field_die): Likewise.
1742 (gen_pointer_type_die): Likewise.
1743 (gen_reference_type_die): Likewise.
1744 (gen_ptr_to_mbr_type_die): Likewise.
1745 (gen_inheritance_die): Likewise.
1746 (gen_subroutine_type_die): Likewise.
1747 (gen_typedef_die): Likewise.
1748 (force_type_die): Likewise.
1750 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1752 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1754 * configure: Regenerate.
1756 2014-08-19 Richard Biener <rguenther@suse.de>
1758 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1759 DECL_EXTERNALs in BLOCKs as non-references.
1760 * tree-streamer-out.c (streamer_write_chain): Likewise.
1762 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1763 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1764 Anna Tikhonova <anna.tikhonova@intel.com>
1765 Ilya Tocar <ilya.tocar@intel.com>
1766 Andrey Turetskiy <andrey.turetskiy@intel.com>
1767 Ilya Verbin <ilya.verbin@intel.com>
1768 Kirill Yukhin <kirill.yukhin@intel.com>
1769 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1771 * config/i386/sse.md
1772 (define_mode_iterator VI48_AVX512F): Delete.
1773 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1774 (define_mode_iterator VI2_AVX512VL): Ditto.
1775 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1778 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1780 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1781 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1782 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1783 with VI48_AVX512F_AVX512VL): New.
1784 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1785 with VI2_AVX512VL): Ditto.
1787 2014-08-19 Marek Polacek <polacek@redhat.com>
1789 * doc/invoke.texi: Document -Wc99-c11-compat.
1791 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1793 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1795 (SET_PREV_INSN): New macro, for use as an lvalue.
1796 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1798 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1799 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1800 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1801 (fixup_abnormal_edges): Likewise.
1802 (unlink_insn_chain): Likewise.
1803 (fixup_reorder_chain): Likewise.
1804 (cfg_layout_delete_block): Likewise.
1805 (cfg_layout_merge_blocks): Likewise.
1806 * combine.c (update_cfg_for_uncondjump): Likewise.
1807 * emit-rtl.c (link_insn_into_chain): Likewise.
1808 (remove_insn): Likewise.
1809 (delete_insns_since): Likewise.
1810 (reorder_insns_nobb): Likewise.
1811 (emit_insn_after_1): Likewise.
1812 * final.c (rest_of_clean_state): Likewise.
1813 (final_scan_insn): Likewise.
1814 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1815 * haifa-sched.c (concat_note_lists): Likewise.
1816 (remove_notes): Likewise.
1817 (restore_other_notes): Likewise.
1818 (move_insn): Likewise.
1819 (unlink_bb_notes): Likewise.
1820 (restore_bb_notes): Likewise.
1821 * jump.c (delete_for_peephole): Likewise.
1822 * optabs.c (emit_libcall_block_1): Likewise.
1823 * reorg.c (emit_delay_sequence): Likewise.
1824 (fill_simple_delay_slots): Likewise.
1825 * sel-sched-ir.c (sel_move_insn): Likewise.
1826 (sel_remove_insn): Likewise.
1827 (get_bb_note_from_pool): Likewise.
1828 * sel-sched.c (move_nop_to_previous_block): Likewise.
1830 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1831 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1832 (c6x_gen_bundles): Likewise.
1833 (hwloop_optimize): Likewise.
1834 * config/frv/frv.c (frv_function_prologue): Likewise.
1835 (frv_register_nop): Likewise.
1836 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1837 (ia64_reorg): Likewise.
1838 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1839 (mep_make_bundle): Likewise.
1840 (mep_bundle_insns): Likewise.
1841 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1842 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1843 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1845 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1847 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1848 return type from rtx to rtx_insn *.
1850 (BB_HEADER): Likewise.
1851 (BB_FOOTER): Likewise.
1852 (SET_BB_HEAD): Convert to a function.
1853 (SET_BB_END): Likewise.
1854 (SET_BB_HEADER): Likewise.
1855 (SET_BB_FOOTER): Likewise.
1857 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1858 Strengthen the return type from rtx to rtx_insn *. For now, this
1859 is done by adding a checked cast, but this will eventually
1860 become a field lookup.
1862 (BB_HEADER): Likewise.
1863 (BB_FOOTER): Likewise.
1864 (SET_BB_HEAD): New function, from macro of same name. This is
1865 intended for use as an lvalue, and so returns an rtx& to allow
1866 in-place modification.
1867 (SET_BB_END): Likewise.
1868 (SET_BB_HEADER): Likewise.
1869 (SET_BB_FOOTER): Likewise.
1871 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1873 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1875 (SET_BB_HEAD): New macro, for use as a lvalue.
1876 (BB_END, SET_BB_END): Likewise.
1877 (BB_HEADER, SET_BB_HEADER): Likewise.
1878 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1880 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1881 of BB_* macros into SET_BB_* macros.
1882 (fix_crossing_unconditional_branches): Likewise.
1883 * caller-save.c (save_call_clobbered_regs): Likewise.
1884 (insert_one_insn): Likewise.
1885 * cfgbuild.c (find_bb_boundaries): Likewise.
1886 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1887 (outgoing_edges_match): Likewise.
1888 (try_optimize_cfg): Likewise.
1889 * cfgexpand.c (expand_gimple_cond): Likewise.
1890 (expand_gimple_tailcall): Likewise.
1891 (expand_gimple_basic_block): Likewise.
1892 (construct_exit_block): Likewise.
1893 * cfgrtl.c (delete_insn): Likewise.
1894 (create_basic_block_structure): Likewise.
1895 (rtl_delete_block): Likewise.
1896 (rtl_split_block): Likewise.
1897 (emit_nop_for_unique_locus_between): Likewise.
1898 (rtl_merge_blocks): Likewise.
1899 (block_label): Likewise.
1900 (try_redirect_by_replacing_jump): Likewise.
1901 (emit_barrier_after_bb): Likewise.
1902 (fixup_abnormal_edges): Likewise.
1903 (record_effective_endpoints): Likewise.
1904 (relink_block_chain): Likewise.
1905 (fixup_reorder_chain): Likewise.
1906 (fixup_fallthru_exit_predecessor): Likewise.
1907 (cfg_layout_duplicate_bb): Likewise.
1908 (cfg_layout_split_block): Likewise.
1909 (cfg_layout_delete_block): Likewise.
1910 (cfg_layout_merge_blocks): Likewise.
1911 * combine.c (update_cfg_for_uncondjump): Likewise.
1912 * emit-rtl.c (add_insn_after): Likewise.
1913 (remove_insn): Likewise.
1914 (reorder_insns): Likewise.
1915 (emit_insn_after_1): Likewise.
1916 * haifa-sched.c (get_ebb_head_tail): Likewise.
1917 (restore_other_notes): Likewise.
1918 (move_insn): Likewise.
1919 (sched_extend_bb): Likewise.
1920 (fix_jump_move): Likewise.
1921 * ifcvt.c (noce_process_if_block): Likewise.
1922 (dead_or_predicable): Likewise.
1923 * ira.c (update_equiv_regs): Likewise.
1924 * reg-stack.c (change_stack): Likewise.
1925 * sel-sched-ir.c (sel_move_insn): Likewise.
1926 * sel-sched.c (move_nop_to_previous_block): Likewise.
1928 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1929 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1931 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1933 * rtl.h (for_each_rtx_in_insn): New function.
1934 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1936 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1938 * coretypes.h (class rtx_insn): Add forward declaration.
1940 * rtl.h: Include is-a.h.
1941 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1942 workaround to ensure gengtype knows inheritance is occurring,
1943 whilst continuing to use the pre-existing special-casing for
1945 (class rtx_insn): New subclass of rtx_def, adding the
1946 invariant that we're dealing with something we can sanely use
1947 INSN_UID, NEXT_INSN, PREV_INSN on.
1948 (is_a_helper <rtx_insn *>::test): New.
1949 (is_a_helper <const rtx_insn *>::test): New.
1951 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1953 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1955 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1957 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1960 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1962 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1963 to BUILT_IN_UNREACHABLE.
1965 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1968 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1970 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1971 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1972 (ffs<mode>2): Do not expand with tzcnt for
1973 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1974 (ffssi2_no_cmove): Ditto.
1975 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1976 (ctz<mode>2): New expander.
1977 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1978 (*ctz<mode>2_falsedep): New insn.
1979 (*ctz<mode>2): Rename from ctz<mode>2.
1980 (clz<mode>2_lzcnt): New expander.
1981 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1982 (*clz<mode>2_lzcnt_falsedep): New insn.
1983 (*clz<mode>2): Rename from ctz<mode>2.
1984 (popcount<mode>2): New expander.
1985 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1986 (*popcount<mode>2_falsedep): New insn.
1987 (*popcount<mode>2): Rename from ctz<mode>2.
1988 (*popcount<mode>2_cmp): Remove.
1989 (*popcountsi2_cmp_zext): Ditto.
1991 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1993 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1994 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1995 * config/microblaze/microblaze.h
1996 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1998 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
2001 * configure.ac: Set install_gold_as_default to no for
2003 * configure: Regenerated.
2005 2014-08-18 Roman Gareev <gareevroman@gmail.com>
2007 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
2008 * config.in: Add undef of HAVE_isl.
2009 * configure: Regenerate.
2010 * configure.ac: Add definition of HAVE_isl.
2011 * graphite-blocking.c: Add checking of HAVE_isl.
2012 * graphite-dependences.c: Likewise.
2013 * graphite-interchange.c: Likewise.
2014 * graphite-isl-ast-to-gimple.c: Likewise.
2015 * graphite-optimize-isl.c: Likewise.
2016 * graphite-poly.c: Likewise.
2017 * graphite-scop-detection.c: Likewise.
2018 * graphite-sese-to-poly.c: Likewise.
2019 * graphite.c: Likewise.
2020 * toplev.c: Replace the checking of HAVE_cloog with the checking
2023 2014-08-18 Richard Biener <rguenther@suse.de>
2025 PR tree-optimization/62090
2026 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
2027 (fold_builtin_3): Do not fold snprintf.
2028 (fold_builtin_4): Likewise.
2029 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
2030 moved from builtins.c.
2031 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
2032 (gimple_fold_builtin): Do not fold sprintf here.
2034 2014-08-18 Richard Biener <rguenther@suse.de>
2036 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
2038 (maybe_canonicalize_mem_ref_addr): ... this function.
2039 (fold_stmt_1): Apply it here before all simplification.
2041 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
2044 * cgraph.h (cgraph_node::create_indirect_edge): Add
2045 compute_indirect_info param.
2046 * cgraph.c (cgraph_node::create_indirect_edge): Compute
2047 indirect_info only when it is required.
2048 * cgraphclones.c (cgraph_clone_edge): Do not recompute
2049 indirect_info fore cloned indirect edge.
2051 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2052 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2053 Anna Tikhonova <anna.tikhonova@intel.com>
2054 Ilya Tocar <ilya.tocar@intel.com>
2055 Andrey Turetskiy <andrey.turetskiy@intel.com>
2056 Ilya Verbin <ilya.verbin@intel.com>
2057 Kirill Yukhin <kirill.yukhin@intel.com>
2058 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2060 * config/i386/sse.md
2061 (define_mode_iterator VI8_AVX2_AVX512BW): New.
2062 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
2064 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2065 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2066 Anna Tikhonova <anna.tikhonova@intel.com>
2067 Ilya Tocar <ilya.tocar@intel.com>
2068 Andrey Turetskiy <andrey.turetskiy@intel.com>
2069 Ilya Verbin <ilya.verbin@intel.com>
2070 Kirill Yukhin <kirill.yukhin@intel.com>
2071 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2073 * config/i386/sse.md
2074 (define_mode_iterator VF1_AVX512VL): New.
2075 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
2076 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
2079 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2081 Anna Tikhonova <anna.tikhonova@intel.com>
2082 Ilya Tocar <ilya.tocar@intel.com>
2083 Andrey Turetskiy <andrey.turetskiy@intel.com>
2084 Ilya Verbin <ilya.verbin@intel.com>
2085 Kirill Yukhin <kirill.yukhin@intel.com>
2086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2088 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
2089 * config/i386/i386.md
2090 (define_code_iterator any_float): New.
2091 (define_code_attr floatsuffix): New.
2092 * config/i386/sse.md
2093 (define_mode_iterator VF1_128_256VL): New.
2094 (define_mode_iterator VF2_512_256VL): New.
2095 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
2097 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
2098 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
2100 (define_mode_attr qq2pssuff): New.
2101 (define_mode_attr sselongvecmode): New.
2102 (define_mode_attr sselongvecmodelower): New.
2103 (define_mode_attr sseintvecmode3): New.
2104 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
2106 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
2107 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
2108 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
2109 (define_insn "ufloatv2siv2df2<mask_name>"): New.
2111 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2112 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2113 Anna Tikhonova <anna.tikhonova@intel.com>
2114 Ilya Tocar <ilya.tocar@intel.com>
2115 Andrey Turetskiy <andrey.turetskiy@intel.com>
2116 Ilya Verbin <ilya.verbin@intel.com>
2117 Kirill Yukhin <kirill.yukhin@intel.com>
2118 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2120 * config/i386/sse.md
2121 (define_mode_iterator VF2_AVX512VL): New.
2122 (define_mode_attr sseintvecmode2): New.
2123 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
2124 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
2125 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
2127 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
2129 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2131 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2134 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2135 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2136 Anna Tikhonova <anna.tikhonova@intel.com>
2137 Ilya Tocar <ilya.tocar@intel.com>
2138 Andrey Turetskiy <andrey.turetskiy@intel.com>
2139 Ilya Verbin <ilya.verbin@intel.com>
2140 Kirill Yukhin <kirill.yukhin@intel.com>
2141 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2143 * config/i386/i386.md
2144 (define_insn "*movoi_internal_avx"): Add evex version.
2145 (define_insn "*movti_internal"): Ditto.
2147 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2148 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2149 Anna Tikhonova <anna.tikhonova@intel.com>
2150 Ilya Tocar <ilya.tocar@intel.com>
2151 Andrey Turetskiy <andrey.turetskiy@intel.com>
2152 Ilya Verbin <ilya.verbin@intel.com>
2153 Kirill Yukhin <kirill.yukhin@intel.com>
2154 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2156 * config/i386/i386.md
2157 (define_attr "isa"): Add avx512dq, noavx512dq.
2158 (define_attr "enabled"): Ditto.
2159 * config/i386/sse.md
2160 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
2162 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2164 Anna Tikhonova <anna.tikhonova@intel.com>
2165 Ilya Tocar <ilya.tocar@intel.com>
2166 Andrey Turetskiy <andrey.turetskiy@intel.com>
2167 Ilya Verbin <ilya.verbin@intel.com>
2168 Kirill Yukhin <kirill.yukhin@intel.com>
2169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2171 * config/i386/i386.c
2172 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
2173 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
2174 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
2175 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
2176 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
2177 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
2178 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
2179 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
2180 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
2181 * config/i386/sse.md
2182 (define_mode_iterator VMOVE): Allow V4TI mode.
2183 (define_mode_iterator V_AVX512VL): New.
2184 (define_mode_iterator V): New handling for AVX512VL.
2185 (define_insn "avx512f_load<mode>_mask"): Delete.
2186 (define_insn "<avx512>_load<mode>_mask"): New.
2187 (define_insn "avx512f_store<mode>_mask"): Delete.
2188 (define_insn "<avx512>_store<mode>_mask"): New.
2191 2014-08-18 Yury Gribov <y.gribov@samsung.com>
2194 * asan.c (instrument_derefs): Fix bitfield check.
2196 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2198 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
2199 * config/rs6000/htm.md (ttest): Remove clobber.
2200 * config/rs6000/predicates.md (any_mask_operand): New predicate.
2201 (and_operand): Reformat.
2202 (and_2rld_operand): New predicate.
2203 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
2205 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
2206 parameter. Handle AND directly.
2207 (rs6000_split_logical_di): Remove last parameter.
2208 (rs6000_split_logical): Remove last parameter. Remove obsolete
2210 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
2211 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
2212 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
2213 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
2214 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
2215 and 5 anonymous splitters): Delete.
2216 (and<mode>3): New expander.
2217 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
2218 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
2219 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
2220 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
2221 (floatdisf2_internal1): Remove clobbers.
2222 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
2223 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
2224 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
2225 (and<mode>3 for BOOL_128): Remove clobber.
2226 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
2227 rs6000_split_logical.
2228 (*bool<mode>3_internal for BOOL_128): Adjust call of
2229 rs6000_split_logical.
2230 (*boolc<mode>3_internal1 for BOOL_128,
2231 *boolc<mode>3_internal2 for BOOL_128,
2232 *boolcc<mode>3_internal1 for BOOL_128,
2233 *boolcc<mode>3_internal2 for BOOL_128,
2234 *eqv<mode>3_internal1 for BOOL_128,
2235 *eqv<mode>3_internal2 for BOOL_128,
2236 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
2237 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
2239 (*vec_reload_and_reg_<mptrsize>): Delete.
2241 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2243 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
2244 and split, *boolccsi3_internal3 and split): Delete.
2245 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
2246 *boolccdi3_internal3 and split): Delete.
2247 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
2248 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
2250 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2252 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
2253 and split, *boolcsi3_internal3 and split): Delete.
2254 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
2255 *boolcdi3_internal3 and split): Delete.
2256 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
2258 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2260 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
2261 <'u'>: Also support printing the low-order 16 bits.
2262 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
2263 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
2264 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
2265 *booldi3_internal3 and split): Delete.
2266 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
2267 *bool<mode>3_dot2): New.
2268 (two anonymous define_splits for non_logical_cint_operand): Merge.
2270 2014-08-17 Marek Polacek <polacek@redhat.com>
2271 Manuel López-Ibáñez <manu@gcc.gnu.org>
2274 * diagnostic.c (adjust_line): Add gcc_checking_assert.
2275 (diagnostic_show_locus): Don't print caret diagnostic
2276 if a column is larger than the line_width.
2278 2014-08-17 Roman Gareev <gareevroman@gmail.com>
2280 * common.opt: Make the ISL AST generator to be the main code generator
2283 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
2285 * wide-int.h (generic_wide_int): Declare as class instead of struct.
2287 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
2290 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
2292 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
2293 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
2294 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
2296 * config/pa/pa.md (begin_brtab): Delete insn.
2297 (end_brtab): Likewise.
2299 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2301 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
2303 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
2305 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
2306 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
2307 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
2308 (get_dynamic_type): Remove.
2309 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
2310 (clear_speculation): Bring to ipa-deivrt.h
2311 (get_class_context): Rename to ...
2312 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
2313 (contains_type_p): Update.
2314 (get_dynamic_type): Rename to ...
2315 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
2316 (possible_polymorphic_call_targets): UPdate.
2317 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
2318 * ipa-prop.c (ipa_analyze_call_uses): Update.
2320 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
2322 * doc/invoke.texi (SH options): Document missing processor variant
2323 options. Remove references to Hitachi. Undocument deprecated mspace
2326 2014-08-15 Jason Merrill <jason@redhat.com>
2328 * tree.c (type_hash_canon): Uncomment assert.
2330 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2332 * input.h (in_system_header_at): Add comment.
2334 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2337 * diagnostic.c (build_message_string): Make it extern.
2338 * diagnostic.h (build_message_string): Make it extern.
2340 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
2342 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
2343 load/store from/to non-floating class pseudo.
2345 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2347 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
2349 2014-08-15 Richard Biener <rguenther@suse.de>
2351 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
2352 (get_constraint_for_ssa_var): Remove dead code.
2353 (get_constraint_for_1): Adjust.
2354 (find_what_var_points_to): Likewise.
2355 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
2357 2014-08-15 Ilya Tocar <tocarip@gmail.com>
2360 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
2361 (_mm512_mask_cmpge_epu32_mask): Ditto.
2362 (_mm512_cmpge_epu32_mask): Ditto.
2363 (_mm512_mask_cmpge_epi64_mask): Ditto.
2364 (_mm512_cmpge_epi64_mask): Ditto.
2365 (_mm512_mask_cmpge_epu64_mask): Ditto.
2366 (_mm512_cmpge_epu64_mask): Ditto.
2367 (_mm512_mask_cmple_epi32_mask): Ditto.
2368 (_mm512_cmple_epi32_mask): Ditto.
2369 (_mm512_mask_cmple_epu32_mask): Ditto.
2370 (_mm512_cmple_epu32_mask): Ditto.
2371 (_mm512_mask_cmple_epi64_mask): Ditto.
2372 (_mm512_cmple_epi64_mask): Ditto.
2373 (_mm512_mask_cmple_epu64_mask): Ditto.
2374 (_mm512_cmple_epu64_mask): Ditto.
2375 (_mm512_mask_cmplt_epi32_mask): Ditto.
2376 (_mm512_cmplt_epi32_mask): Ditto.
2377 (_mm512_mask_cmplt_epu32_mask): Ditto.
2378 (_mm512_cmplt_epu32_mask): Ditto.
2379 (_mm512_mask_cmplt_epi64_mask): Ditto.
2380 (_mm512_cmplt_epi64_mask): Ditto.
2381 (_mm512_mask_cmplt_epu64_mask): Ditto.
2382 (_mm512_cmplt_epu64_mask): Ditto.
2383 (_mm512_mask_cmpneq_epi32_mask): Ditto.
2384 (_mm512_mask_cmpneq_epu32_mask): Ditto.
2385 (_mm512_cmpneq_epu32_mask): Ditto.
2386 (_mm512_mask_cmpneq_epi64_mask): Ditto.
2387 (_mm512_cmpneq_epi64_mask): Ditto.
2388 (_mm512_mask_cmpneq_epu64_mask): Ditto.
2389 (_mm512_cmpneq_epu64_mask): Ditto.
2390 (_mm512_castpd_ps): Ditto.
2391 (_mm512_castpd_si512): Ditto.
2392 (_mm512_castps_pd): Ditto.
2393 (_mm512_castps_si512): Ditto.
2394 (_mm512_castsi512_ps): Ditto.
2395 (_mm512_castsi512_pd): Ditto.
2396 (_mm512_castpd512_pd128): Ditto.
2397 (_mm512_castps512_ps128): Ditto.
2398 (_mm512_castsi512_si128): Ditto.
2399 (_mm512_castpd512_pd256): Ditto.
2400 (_mm512_castps512_ps256): Ditto.
2401 (_mm512_castsi512_si256): Ditto.
2402 (_mm512_castpd128_pd512): Ditto.
2403 (_mm512_castps128_ps512): Ditto.
2404 (_mm512_castsi128_si512): Ditto.
2405 (_mm512_castpd256_pd512): Ditto.
2406 (_mm512_castps256_ps512): Ditto.
2407 (_mm512_castsi256_si512): Ditto.
2408 (_mm512_cmpeq_epu32_mask): Ditto.
2409 (_mm512_mask_cmpeq_epu32_mask): Ditto.
2410 (_mm512_mask_cmpeq_epu64_mask): Ditto.
2411 (_mm512_cmpeq_epu64_mask): Ditto.
2412 (_mm512_cmpgt_epu32_mask): Ditto.
2413 (_mm512_mask_cmpgt_epu32_mask): Ditto.
2414 (_mm512_mask_cmpgt_epu64_mask): Ditto.
2415 (_mm512_cmpgt_epu64_mask): Ditto.
2416 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
2417 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
2418 * config/i386/i386.c (enum ix86_builtins): Add
2419 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
2420 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
2421 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
2422 (bdesc_args): Add __builtin_ia32_si512_256si,
2423 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
2424 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
2425 __builtin_ia32_pd512_pd.
2426 (ix86_expand_args_builtin): Handle new FTYPEs.
2427 * config/i386/sse.md (castmode): Add 512-bit modes.
2428 (AVX512MODE2P): New.
2429 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
2430 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
2432 2014-08-15 Richard Biener <rguenther@suse.de>
2434 * fold-const.c (tree_swap_operands_p): Put all constants
2435 last, also strip sign-changing NOPs when considering further
2436 canonicalization. Canonicalize also when optimizing for size.
2438 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2440 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
2441 one_match > zero_match case to just before simple_sequence.
2443 2014-08-15 Richard Biener <rguenther@suse.de>
2445 * data-streamer.h (streamer_string_index, string_for_index):
2447 * data-streamer-out.c (streamer_string_index): Make static.
2448 * data-streamer-in.c (string_for_index): Likewise.
2449 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
2450 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
2452 2014-08-15 Richard Biener <rguenther@suse.de>
2454 PR tree-optimization/62031
2455 * tree-data-ref.c (dr_analyze_indices): Do not set
2456 DR_UNCONSTRAINED_BASE.
2457 (dr_may_alias_p): All indirect accesses have to go the
2458 formerly DR_UNCONSTRAINED_BASE path.
2459 * tree-data-ref.h (struct indices): Remove
2460 unconstrained_base member.
2461 (DR_UNCONSTRAINED_BASE): Remove.
2463 2014-08-15 Jakub Jelinek <jakub@redhat.com>
2466 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
2467 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
2468 in OMP_CLAUSE_MAP in some outer target region.
2470 2014-08-15 Bin Cheng <bin.cheng@arm.com>
2472 * tree-ssa-loop-ivopts.c (ivopts_data): New field
2473 name_expansion_cache.
2474 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
2475 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
2476 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
2477 (difference_cannot_overflow_p): New parameter. Use affine
2478 expansion for equality check.
2479 (iv_elimination_compare_lt): Pass new argument.
2481 2014-08-14 DJ Delorie <dj@redhat.com>
2483 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
2484 variables to the accumulator.
2486 * config/rl78/predicates.md (rl78_near_mem_operand): New.
2487 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
2488 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
2491 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
2492 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
2493 (umulqihi3_virt): Likewise.
2494 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
2495 (umulqihi3_real): Likewise.
2497 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
2499 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2501 PR tree-optimization/62091
2502 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
2503 function_entry_reached.
2504 (walk_aliased_vdefs): Clear it here.
2505 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
2507 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2509 * ipa-utils.h (compare_virtual_tables): Declare.
2510 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
2512 2014-08-14 Marek Polacek <polacek@redhat.com>
2515 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
2516 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
2518 2014-08-14 Tom de Vries <tom@codesourcery.com>
2520 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
2522 2014-08-14 Tom de Vries <tom@codesourcery.com>
2524 PR rtl-optimization/62004
2525 PR rtl-optimization/62030
2526 * ifcvt.c (rtx_interchangeable_p): New function.
2527 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
2528 * emit-rtl.h (mem_attrs_eq_p): Declare.
2530 2014-08-14 Roman Gareev <gareevroman@gmail.com>
2532 * graphite-scop-detection.c:
2533 Add inclusion of cp-tree.h.
2534 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
2535 in case they are pointers to object types
2537 2014-08-14 Richard Biener <rguenther@suse.de>
2539 * BASE-VER: Change to 5.0.0
2541 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2542 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2543 Anna Tikhonova <anna.tikhonova@intel.com>
2544 Ilya Tocar <ilya.tocar@intel.com>
2545 Andrey Turetskiy <andrey.turetskiy@intel.com>
2546 Ilya Verbin <ilya.verbin@intel.com>
2547 Kirill Yukhin <kirill.yukhin@intel.com>
2548 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2550 * config/i386/sse.md (define_mode_attr avx512): New.
2551 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
2553 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
2554 (define_mode_attr ssse3_avx2): Ditto.
2555 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
2556 (define_mode_attr avx2_avx512bw): New.
2557 (define_mode_attr ssedoublemodelower): New.
2558 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
2560 (define_mode_attr ssebytemode): Allow V8DI modes.
2561 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
2562 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
2563 (define_mode_attr ssePSmode2): New.
2564 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
2566 (define_mode_attr dbpsadbwmode): New.
2567 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
2568 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
2569 (vi8_sse4_1_avx2_avx512): New.
2570 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
2572 (define_mode_attr blendbits): Move before its immediate use.
2574 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2575 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2576 Anna Tikhonova <anna.tikhonova@intel.com>
2577 Ilya Tocar <ilya.tocar@intel.com>
2578 Andrey Turetskiy <andrey.turetskiy@intel.com>
2579 Ilya Verbin <ilya.verbin@intel.com>
2580 Kirill Yukhin <kirill.yukhin@intel.com>
2581 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2583 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
2584 * config/i386/subst.md
2585 (define_mode_iterator SUBST_V): Update.
2586 (define_mode_iterator SUBST_A): Ditto.
2587 (define_subst_attr "mask_operand7"): New.
2588 (define_subst_attr "mask_operand10"): New.
2589 (define_subst_attr "mask_operand_arg34") : New.
2590 (define_subst_attr "mask_expand_op3"): New.
2591 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
2592 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
2593 (define_subst_attr "mask_avx512vl_condition"): New.
2594 (define_subst_attr "round_mask_operand4"): Ditto.
2595 (define_subst_attr "round_mask_scalar_op3"): Delete.
2596 (define_subst_attr "round_mask_op4"): New.
2597 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
2599 (define_subst_attr "round_modev8sf_condition"): New.
2600 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
2602 (define_subst_attr "round_saeonly_mask_operand4"): New.
2603 (define_subst_attr "round_saeonly_mask_op4"): New.
2604 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
2605 V8DImode, V16SImode.
2606 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
2607 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
2608 (define_subst_attr "mask_expand4_args"): New.
2609 (define_subst "mask_expand4"): New.
2611 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2612 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2613 Anna Tikhonova <anna.tikhonova@intel.com>
2614 Ilya Tocar <ilya.tocar@intel.com>
2615 Andrey Turetskiy <andrey.turetskiy@intel.com>
2616 Ilya Verbin <ilya.verbin@intel.com>
2617 Kirill Yukhin <kirill.yukhin@intel.com>
2618 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2620 * config/i386/i386.md
2621 (define_attr "isa"): Add avx512bw,noavx512bw.
2622 (define_attr "enabled"): Ditto.
2623 (define_split): Add 32/64-bit mask logic.
2624 (define_insn "*k<logic>qi"): New.
2625 (define_insn "*k<logic>hi"): New.
2626 (define_insn "*anddi_1"): Add mask version.
2627 (define_insn "*andsi_1"): Ditto.
2628 (define_insn "*<code><mode>_1"): Ditto.
2629 (define_insn "*<code>hi_1"): Ditto.
2630 (define_insn "kxnor<mode>"): New.
2631 (define_insn "kunpcksi"): New.
2632 (define_insn "kunpckdi"): New.
2633 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
2634 (define_insn "*one_cmplhi2_1"): Ditto.
2636 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2637 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2638 Anna Tikhonova <anna.tikhonova@intel.com>
2639 Ilya Tocar <ilya.tocar@intel.com>
2640 Andrey Turetskiy <andrey.turetskiy@intel.com>
2641 Ilya Verbin <ilya.verbin@intel.com>
2642 Kirill Yukhin <kirill.yukhin@intel.com>
2643 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2645 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
2648 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2649 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2650 Anna Tikhonova <anna.tikhonova@intel.com>
2651 Ilya Tocar <ilya.tocar@intel.com>
2652 Andrey Turetskiy <andrey.turetskiy@intel.com>
2653 Ilya Verbin <ilya.verbin@intel.com>
2654 Kirill Yukhin <kirill.yukhin@intel.com>
2655 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2657 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
2659 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
2660 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
2661 xmm/ymm16+ when availble.
2662 * config/i386/i386.h
2663 (HARD_REGNO_NREGS): Add mask regs.
2664 (VALID_AVX512F_REG_MODE): Ditto.
2665 (VALID_AVX512F_REG_MODE) : Define.
2666 (VALID_MASK_AVX512BW_MODE): Ditto.
2667 (reg_class) (MASK_REG_P(X)): Define.
2668 * config/i386/i386.md: Do not split long moves with mask register,
2669 use kmovb if avx512bw is availible.
2670 (movdi_internal): Handle mask registers.
2672 2014-08-14 Richard Biener <rguenther@suse.de>
2674 PR tree-optimization/62081
2675 * tree-ssa-loop.c (pass_fix_loops): New pass.
2676 (pass_tree_loop::gate): Do not fixup loops here.
2677 * tree-pass.h (make_pass_fix_loops): Declare.
2678 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
2680 2014-08-14 Richard Biener <rguenther@suse.de>
2682 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
2683 (type_hash_canon): ... this and avoid 2nd lookup for the add.
2685 2014-08-14 Richard Biener <rguenther@suse.de>
2687 PR tree-optimization/62090
2688 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
2689 (fold_builtin_2): Do not fold sprintf.
2690 (fold_builtin_3): Likewise.
2691 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
2692 moved from builtins.c.
2693 (gimple_fold_builtin): Fold sprintf.
2695 2014-08-14 Richard Biener <rguenther@suse.de>
2697 PR rtl-optimization/62079
2698 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
2701 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2703 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
2704 current_function_decl.
2706 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2708 * cgraph.c (cgraph_node::function_symbol): Fix wrong
2709 cgraph_function_node to cgraph_node::function_symbol
2712 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
2714 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
2715 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
2717 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
2719 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2722 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2724 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2727 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2730 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2731 any registers that are used in mem_insn.
2733 2014-08-12 Steve Ellcey <sellcey@mips.com>
2735 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2737 2014-08-12 Steve Ellcey <sellcey@mips.com>
2739 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2740 (MULTILIB_DIRNAMES): Ditto.
2741 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2742 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2743 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2744 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2745 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2746 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2748 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2751 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2752 of __ARM_SIZEOF_WCHAR_T.
2754 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2757 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2758 Remove unnecessary attributes.
2760 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2762 * internal-fn.c (init_internal_fns): Fix off-by-one.
2764 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2766 Anna Tikhonova <anna.tikhonova@intel.com>
2767 Ilya Tocar <ilya.tocar@intel.com>
2768 Andrey Turetskiy <andrey.turetskiy@intel.com>
2769 Ilya Verbin <ilya.verbin@intel.com>
2770 Kirill Yukhin <kirill.yukhin@intel.com>
2771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2773 * config/i386/i386.c (standard_sse_constant_opcode): Use
2774 vpxord/vpternlog if avx512 is availible.
2776 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2779 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2780 bitfields, that is when size doesn't match the size of type or the
2781 size of the constructor.
2783 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2785 * config/rs6000/constraints.md (wh constraint): New constraint,
2786 for FP registers if direct move is available.
2787 (wi constraint): New constraint, for VSX/FP registers that can
2788 handle 64-bit integers.
2789 (wj constraint): New constraint for VSX/FP registers that can
2790 handle 64-bit integers for direct moves.
2791 (wk constraint): New constraint for VSX/FP registers that can
2792 handle 64-bit doubles for direct moves.
2793 (wy constraint): Make documentation match implementation.
2795 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2796 scalar_in_vmx_p field to simplify tests of whether SFmode or
2797 DFmode can go in the Altivec registers.
2798 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2799 (rs6000_setup_reg_addr_masks): Likewise.
2800 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2801 field, and wh/wi/wj/wk constraints.
2802 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2803 the wh/wi/wj/wk constraints.
2804 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2805 upper registers, prefer VSX registers unless the operation is a
2806 memory operation with REG+OFFSET addressing.
2808 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2809 DImode. Change SFmode to use ww constraint instead of d to allow
2810 SF registers in the upper registers.
2813 (VSr5): Fix thinko in comment.
2814 (VSa): New mode attribute that is an alternative to wa, that
2815 returns the VSX register class that a mode can go in, but may not
2816 be the preferred register class.
2817 (VS_64dm): New mode attribute for appropriate register classes for
2818 referencing 64-bit elements of vectors for direct moves and normal
2820 (VS_64reg): Likewise.
2821 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2822 register allocator to only registers the data type can handle.
2823 (vsx_le_perm_load_<mode>): Likewise.
2824 (vsx_le_perm_store_<mode>): Likewise.
2825 (vsx_xxpermdi2_le_<mode>): Likewise.
2826 (vsx_xxpermdi4_le_<mode>): Likewise.
2827 (vsx_lxvd2x2_le_<mode>): Likewise.
2828 (vsx_lxvd2x4_le_<mode>): Likewise.
2829 (vsx_stxvd2x2_le_<mode>): Likewise.
2830 (vsx_add<mode>3): Likewise.
2831 (vsx_sub<mode>3): Likewise.
2832 (vsx_mul<mode>3): Likewise.
2833 (vsx_div<mode>3): Likewise.
2834 (vsx_tdiv<mode>3_internal): Likewise.
2835 (vsx_fre<mode>2): Likewise.
2836 (vsx_neg<mode>2): Likewise.
2837 (vsx_abs<mode>2): Likewise.
2838 (vsx_nabs<mode>2): Likewise.
2839 (vsx_smax<mode>3): Likewise.
2840 (vsx_smin<mode>3): Likewise.
2841 (vsx_sqrt<mode>2): Likewise.
2842 (vsx_rsqrte<mode>2): Likewise.
2843 (vsx_tsqrt<mode>2_internal): Likewise.
2844 (vsx_fms<mode>4): Likewise.
2845 (vsx_nfma<mode>4): Likewise.
2846 (vsx_eq<mode>): Likewise.
2847 (vsx_gt<mode>): Likewise.
2848 (vsx_ge<mode>): Likewise.
2849 (vsx_eq<mode>_p): Likewise.
2850 (vsx_gt<mode>_p): Likewise.
2851 (vsx_ge<mode>_p): Likewise.
2852 (vsx_xxsel<mode>): Likewise.
2853 (vsx_xxsel<mode>_uns): Likewise.
2854 (vsx_copysign<mode>3): Likewise.
2855 (vsx_float<VSi><mode>2): Likewise.
2856 (vsx_floatuns<VSi><mode>2): Likewise.
2857 (vsx_fix_trunc<mode><VSi>2): Likewise.
2858 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2859 (vsx_x<VSv>r<VSs>i): Likewise.
2860 (vsx_x<VSv>r<VSs>ic): Likewise.
2861 (vsx_btrunc<mode>2): Likewise.
2862 (vsx_b2trunc<mode>2): Likewise.
2863 (vsx_floor<mode>2): Likewise.
2864 (vsx_ceil<mode>2): Likewise.
2865 (vsx_<VS_spdp_insn>): Likewise.
2866 (vsx_xscvspdp): Likewise.
2867 (vsx_xvcvspuxds): Likewise.
2868 (vsx_float_fix_<mode>2): Likewise.
2869 (vsx_set_<mode>): Likewise.
2870 (vsx_extract_<mode>_internal1): Likewise.
2871 (vsx_extract_<mode>_internal2): Likewise.
2872 (vsx_extract_<mode>_load): Likewise.
2873 (vsx_extract_<mode>_store): Likewise.
2874 (vsx_splat_<mode>): Likewise.
2875 (vsx_xxspltw_<mode>): Likewise.
2876 (vsx_xxspltw_<mode>_direct): Likewise.
2877 (vsx_xxmrghw_<mode>): Likewise.
2878 (vsx_xxmrglw_<mode>): Likewise.
2879 (vsx_xxsldwi_<mode>): Likewise.
2880 (vsx_xscvdpspn): Tighten constraints to only use register classes
2882 (vsx_xscvspdpn): Likewise.
2883 (vsx_xscvdpspn_scalar): Likewise.
2885 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2886 wj, and wk constraints.
2887 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2888 general purpose registers.
2890 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2892 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2893 DImode instead of wm. Use wk constraint for direct move of DFmode
2895 (extendsidi2_lfiwax): Likewise.
2898 (movdi_internal64): Likewise.
2900 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2901 wk constraints. Make the wy constraint documentation match them
2904 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2906 Replacement of isl_int by isl_val
2907 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2908 (compute_bounds_for_param): use isl_val instead of isl_int
2909 (compute_bounds_for_loop): likewise
2910 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2911 (build_linearized_memory_access): use isl_val instead of isl_int
2912 (pdr_stride_in_loop): likewise
2913 * graphite-optimize-isl.c:
2914 (getPrevectorMap): use isl_val instead of isl_int
2916 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2917 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2918 (extern the_isl_ctx): declare
2919 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2920 (extract_affine_gmp): likewise
2922 (build_loop_iteration_domains): likewise
2923 (add_param_constraints): likewise
2925 2014-08-11 Richard Biener <rguenther@suse.de>
2927 PR tree-optimization/62075
2928 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2929 handle uses in patterns.
2931 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2932 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2933 Anna Tikhonova <anna.tikhonova@intel.com>
2934 Ilya Tocar <ilya.tocar@intel.com>
2935 Andrey Turetskiy <andrey.turetskiy@intel.com>
2936 Ilya Verbin <ilya.verbin@intel.com>
2937 Kirill Yukhin <kirill.yukhin@intel.com>
2938 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2940 * common/config/i386/i386-common.c
2941 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2942 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2943 (ix86_handle_option): Handle OPT_mavx512vl.
2944 * config/i386/cpuid.h (bit_AVX512VL): Define.
2945 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2946 set -mavx512vl accordingly.
2947 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2948 OPTION_MASK_ISA_AVX512VL.
2949 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2950 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2951 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2952 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2953 * config/i386/i386.h (TARGET_AVX512VL): Define.
2954 (TARGET_AVX512VL_P(x)): Ditto.
2955 * config/i386/i386.opt: Add mavx512vl.
2957 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2959 PR tree-optimization/62073
2960 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2963 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2964 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2965 Anna Tikhonova <anna.tikhonova@intel.com>
2966 Ilya Tocar <ilya.tocar@intel.com>
2967 Andrey Turetskiy <andrey.turetskiy@intel.com>
2968 Ilya Verbin <ilya.verbin@intel.com>
2969 Kirill Yukhin <kirill.yukhin@intel.com>
2970 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2972 * common/config/i386/i386-common.c
2973 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2974 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2975 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2976 (ix86_handle_option): Handle OPT_mavx512bw.
2977 * config/i386/cpuid.h (bit_AVX512BW): Define.
2978 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2979 set -mavx512bw accordingly.
2980 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2981 OPTION_MASK_ISA_AVX512BW.
2982 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2983 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2984 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2985 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2986 * config/i386/i386.h (TARGET_AVX512BW): Define.
2987 (TARGET_AVX512BW_P(x)): Ditto.
2988 * config/i386/i386.opt: Add mavx512bw.
2990 2014-08-11 Richard Biener <rguenther@suse.de>
2992 PR tree-optimization/62070
2993 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2994 Remove SSA checking.
2996 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2998 * asan.c (asan_check_flags): New enum.
2999 (build_check_stmt_with_calls): Removed function.
3000 (build_check_stmt): Split inlining logic to
3001 asan_expand_check_ifn.
3002 (instrument_derefs): Rename parameter.
3003 (instrument_mem_region_access): Rename parameter.
3004 (instrument_strlen_call): Likewise.
3005 (asan_expand_check_ifn): New function.
3006 (asan_instrument): Remove old code.
3007 (pass_sanopt::execute): Change handling of
3008 asan-instrumentation-with-call-threshold.
3009 (asan_clear_shadow): Fix formatting.
3010 (asan_function_start): Likewise.
3011 (asan_emit_stack_protection): Likewise.
3012 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
3014 * internal-fn.c (expand_ASAN_CHECK): New function.
3015 * internal-fn.def (ASAN_CHECK): New internal function.
3016 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
3018 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
3019 * tree.c: Small comment fix.
3021 2014-08-11 Yury Gribov <y.gribov@samsung.com>
3023 * gimple.c (gimple_call_fnspec): Support internal functions.
3024 (gimple_call_return_flags): Use const.
3025 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
3026 * internal-fn.def: Add fnspec information.
3027 * internal-fn.h (internal_fn_fnspec): New function.
3028 (init_internal_fns): Declare new function.
3029 * internal-fn.c (internal_fn_fnspec_array): New global variable.
3030 (init_internal_fns): New function.
3031 * tree-core.h: Update macro call.
3032 * tree.c (build_common_builtin_nodes): Initialize internal fns.
3034 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
3036 * lto-streamer.h (struct output_block::symbol): Change from
3037 struct symtab_node to plain symtab_node.
3038 (referenced_from_this_partition_p): Change first parameter
3039 from struct symtab_node to plain symtab_node.
3041 2014-08-10 Marek Polacek <polacek@redhat.com>
3044 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
3046 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
3048 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
3049 DECL correctly; do not give up on types in static storage.
3051 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
3053 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
3055 2014-08-09 Roman Gareev <gareevroman@gmail.com>
3057 * graphite-isl-ast-to-gimple.c:
3058 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
3060 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
3062 2014-08-08 Guozhi Wei <carrot@google.com>
3064 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
3066 2014-08-08 Cary Coutant <ccoutant@google.com>
3068 * dwarf2out.c (get_skeleton_type_unit): Remove.
3069 (output_skeleton_debug_sections): Remove skeleton type units.
3070 (output_comdat_type_unit): Likewise.
3071 (dwarf2out_finish): Likewise.
3073 2014-08-07 Yi Yang <ahyangyi@google.com>
3075 * predict.c (expr_expected_value_1): Remove the redundant assignment.
3077 2014-08-08 Richard Biener <rguenther@suse.de>
3079 * lto-streamer.h (struct lto_input_block): Make it a class
3081 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
3082 (struct lto_function_header, struct lto_simple_header,
3083 struct lto_simple_header_with_strings,
3084 struct lto_decl_header, struct lto_function_header): Make
3085 a simple inheritance hieararchy. Remove unused fields.
3086 (struct lto_asm_header): Remove.
3087 * lto-streamer-out.c (produce_asm): Adjust.
3088 (lto_output_toplevel_asms): Likewise.
3089 (produce_asm_for_decls): Likewise.
3090 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3091 * data-streamer-in.c (string_for_index): Likewise.
3092 * ipa-inline-analysis.c (inline_read_section): Likewise.
3093 * ipa-prop.c (ipa_prop_read_section): Likewise.
3094 (read_replacements_section): Likewise.
3095 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
3096 * lto-section-in.c (lto_create_simple_input_block): Likewise.
3097 (lto_destroy_simple_input_block): Likewise.
3098 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
3099 (lto_input_toplevel_asms): Likewise.
3101 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
3102 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3103 Anna Tikhonova <anna.tikhonova@intel.com>
3104 Ilya Tocar <ilya.tocar@intel.com>
3105 Andrey Turetskiy <andrey.turetskiy@intel.com>
3106 Ilya Verbin <ilya.verbin@intel.com>
3107 Kirill Yukhin <kirill.yukhin@intel.com>
3108 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3110 * common/config/i386/i386-common.c
3111 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
3112 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
3113 (ix86_handle_option): Handle OPT_mavx512dq.
3114 * config/i386/cpuid.h (bit_AVX512DQ): Define.
3115 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
3116 set -mavx512dq accordingly.
3117 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3118 OPTION_MASK_ISA_AVX512DQ.
3119 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
3120 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
3121 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
3122 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
3123 * config/i386/i386.h (TARGET_AVX512DQ): Define.
3124 (TARGET_AVX512DQ_P(x)): Ditto.
3125 * config/i386/i386.opt: Add mavx512dq.
3127 2014-08-08 Richard Biener <rguenther@suse.de>
3129 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
3130 target_percent, target_percent_s): Export.
3131 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
3132 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
3133 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
3134 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
3135 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
3136 Move to gimple-fold.c.
3137 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
3139 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
3140 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
3141 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
3142 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
3143 (rewrite_call_expr_array): Remove.
3144 (fold_builtin_sprintf_chk): Likewise.
3145 (fold_builtin_snprintf_chk): Likewise.
3146 (fold_builtin_varargs): Remove handling of sprintf_chk,
3147 vsprintf_chk, snprintf_chk and vsnprintf_chk.
3148 (gimple_fold_builtin_sprintf_chk): Remove.
3149 (gimple_fold_builtin_snprintf_chk): Likewise.
3150 (gimple_fold_builtin_varargs): Likewise.
3151 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
3152 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
3153 * gimple.c (gimple_seq_add_seq_without_update): New function.
3154 * gimple.h (gimple_seq_add_seq_without_update): Declare.
3155 * gimple-fold.c: Include output.h.
3156 (gsi_replace_with_seq_vops): New function, split out from ...
3157 (gimplify_and_update_call_from_tree): ... here.
3158 (replace_call_with_value): New function.
3159 (replace_call_with_call_and_fold): Likewise.
3160 (var_decl_component_p): Moved from builtins.c.
3161 (gimple_fold_builtin_memory_op): Moved from builtins.c
3162 fold_builtin_memory_op and rewritten to GIMPLE.
3163 (gimple_fold_builtin_memset): Likewise.
3164 (gimple_fold_builtin_strcpy): Likewise.
3165 (gimple_fold_builtin_strncpy): Likewise.
3166 (gimple_fold_builtin_strcat): Likewise.
3167 (gimple_fold_builtin_fputs): Likewise.
3168 (gimple_fold_builtin_memory_chk): Likewise.
3169 (gimple_fold_builtin_stxcpy_chk): Likewise.
3170 (gimple_fold_builtin_stxncpy_chk): Likewise.
3171 (gimple_fold_builtin_snprintf_chk): Likewise.
3172 (gimple_fold_builtin_sprintf_chk): Likewise.
3173 (gimple_fold_builtin_strlen): New function.
3174 (gimple_fold_builtin_with_strlen): New function split out from
3175 gimple_fold_builtin.
3176 (gimple_fold_builtin): Change signature and handle
3177 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
3178 here. Call gimple_fold_builtin_with_strlen.
3179 (gimple_fold_call): Adjust.
3181 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3183 * calls.c (precompute_arguments): Check
3184 promoted_for_signed_and_unsigned_p and set the promoted mode.
3185 (promoted_for_signed_and_unsigned_p): New function.
3186 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3187 and set the promoted mode.
3188 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3189 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3190 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3193 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3195 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
3196 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3197 (expand_call): Likewise.
3198 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
3199 to get promoted mode.
3200 * combine.c (record_promoted_value): Skip > 0 comparison with
3201 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
3202 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
3203 of SUBREG_PROMOTED_UNSIGNED_P.
3204 (convert_modes): Likewise.
3205 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
3206 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
3207 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
3208 SUBREG_PROMOTED_UNSIGNED_SET.
3209 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
3210 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3211 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
3212 SUBREG_PROMOTED_SET.
3213 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
3214 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
3215 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
3216 of SUBREG_PROMOTED_UNSIGNED_P.
3217 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
3218 (SUBREG_PROMOTED_SET): New define.
3219 (SUBREG_PROMOTED_GET): Likewise.
3220 (SUBREG_PROMOTED_SIGN): Likewise.
3221 (SUBREG_PROMOTED_SIGNED_P): Likewise.
3222 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
3223 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
3224 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
3225 instead of SUBREG_PROMOTED_UNSIGNED_GET.
3226 (nonzero_bits1): Skip > 0 comparison with the results as
3227 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
3228 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
3229 of !SUBREG_PROMOTED_UNSIGNED_P.
3230 * simplify-rtx.c (simplify_unary_operation_1): Use new
3231 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
3232 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
3233 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
3234 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
3236 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
3238 * ipa-devirt.c: Include gimple-pretty-print.h
3239 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
3241 (decl_maybe_in_construction_p): Fix conditional on cdtor check
3242 (get_polymorphic_call_info): Fix return value
3243 (type_change_info): New sturcture based on ipa-prop
3245 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
3246 based on ipa-prop variant.
3247 (extr_type_from_vtbl_ptr_store): New function
3248 based on ipa-prop variant.
3249 (record_known_type): New function.
3250 (check_stmt_for_type_change): New function.
3251 (get_dynamic_type): New function.
3252 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
3253 * tree-ssa-pre.c: ipa-utils.h
3254 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
3255 machinery; sanity check with ipa-prop devirtualization.
3256 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
3259 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3261 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
3262 * alias.c, cfgexpand.c, cgraphbuild.c,
3263 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
3264 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
3265 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
3266 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
3267 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
3268 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3269 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
3270 dse.c, except.c, gengtype.c, gimple-expr.c,
3271 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
3272 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
3273 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
3274 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
3275 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
3276 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
3278 * pointer-set.c: Remove file.
3279 * pointer-set.h: Remove file.
3281 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3283 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
3284 * config/arm/types.md (f_sels, f_seld): Delete.
3286 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3288 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
3289 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
3290 (aarch64_movdi_<mode>high): Likewise.
3291 (aarch64_mov<mode>high_di): Likewise.
3292 (aarch64_movdi_<mode>low): Likewise.
3293 (aarch64_mov<mode>low_di): Likewise.
3294 (aarch64_movtilow_tilow): Likewise.
3295 Add comment explaining usage of fp,simd attributes and of
3296 TARGET_FLOAT and TARGET_SIMD.
3298 2014-08-07 Ian Bolton <ian.bolton@arm.com>
3299 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3301 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
3302 Use MOVN when one of the half-words is 0xffff.
3304 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3306 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
3308 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3310 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
3311 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
3312 (rfs_str): String corresponding to RFS_* constants.
3313 (rank_for_schedule_stats_t): New typedef.
3314 (rank_for_schedule_stats): New static variable.
3315 (rfs_result): New static function.
3316 (rank_for_schedule): Track statistics for deciding heuristics.
3317 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
3319 (ready_sort): Use them for debug printouts.
3320 (schedule_block): Init statistics state. Print statistics on
3321 rank_for_schedule decisions.
3323 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3325 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
3327 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
3329 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
3332 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3334 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
3335 function to not conflict.
3336 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
3337 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
3338 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
3339 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
3340 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
3343 2014-08-07 Marek Polacek <polacek@redhat.com>
3345 * fold-const.c (fold_binary_loc): Add folding of
3346 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
3348 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
3350 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
3351 instead of type size.
3352 (ASM_FINISH_DECLARE_OBJECT): Likewise.
3354 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3356 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
3357 (*thumb1_movqi_insn): Likewise.
3358 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
3360 2014-08-07 Tom de Vries <tom@codesourcery.com>
3362 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3363 (glibc_2_11_or_earlier): Remove effective-target keywords.
3365 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3367 * config/arm/arm.c (bdesc_2arg): Fix typo.
3368 (arm_atomic_assign_expand_fenv): Remove The default implementation.
3370 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
3372 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
3374 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
3377 * haifa-sched.c (advance_one_cycle): Fix dump.
3378 (schedule_block): Don't advance cycle if we are already at the
3379 beginning of the cycle.
3381 2014-08-06 Martin Jambor <mjambor@suse.cz>
3384 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3386 2014-08-06 Richard Biener <rguenther@suse.de>
3389 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
3391 (lto_input_tree): Pop SCCs here.
3393 2014-08-06 Richard Biener <rguenther@suse.de>
3395 PR tree-optimization/61320
3396 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
3397 handle misaligned loads.
3399 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
3401 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
3402 (aarch64_expand_vec_perm_const): Check for dup before zip.
3404 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3406 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
3407 CONST_INT_P instead of GET_CODE and compare.
3408 (aarch64_select_cc_mode): Likewise.
3409 (aarch64_print_operand): Likewise.
3410 (aarch64_rtx_costs): Likewise.
3411 (aarch64_simd_valid_immediate): Likewise.
3412 (aarch64_simd_check_vect_par_cnst_half): Likewise.
3413 (aarch64_simd_emit_pair_result_insn): Likewise.
3415 2014-08-05 David Malcolm <dmalcolm@redhat.com>
3417 * gdbhooks.py (find_gcc_source_dir): New helper function.
3418 (class PassNames): New class, locating and parsing passes.def.
3419 (class BreakOnPass): New command "break-on-pass".
3421 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
3423 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
3426 2014-08-05 Richard Biener <rguenther@suse.de>
3428 PR rtl-optimization/61672
3429 * emit-rtl.h (mem_attrs_eq_p): Declare.
3430 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
3431 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
3432 * cfgcleanup.c (merge_memattrs): Likewise.
3435 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3437 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
3438 rather than singleton vectors.
3439 (vqdmlsls_lane_s32): Likewise.
3441 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3443 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
3444 Use VSDQ_HSI mode iterator.
3445 (aarch64_sqrdmulh_laneq<mode>): Likewise.
3446 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
3447 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
3448 Use BUILTIN_VDQHS macro.
3449 (sqrdmulh_laneq): Likewise.
3450 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
3451 (vqdmlals_laneq_s32): Likewise.
3452 (vqdmlslh_laneq_s16): Likewise.
3453 (vqdmlsls_laneq_s32): Likewise.
3454 (vqdmulhh_laneq_s16): Likewise.
3455 (vqdmulhs_laneq_s32): Likewise.
3456 (vqrdmulhh_laneq_s16): Likewise.
3457 (vqrdmulhs_laneq_s32): Likewise.
3459 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3461 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
3462 (vmuld_laneq_f64): Likewise.
3463 (vmuls_laneq_f32): Likewise.
3464 (vmul_n_f64): Likewise.
3465 (vmuld_lane_f64): Reimplement in C.
3466 (vmuls_lane_f32): Likewise.
3468 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3470 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
3472 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3474 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3476 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
3477 (rbitsi2): Likewise.
3478 (*arm_rev): Set predicable and predicable_short_it attributes.
3480 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3482 * convert.c (convert_to_integer): Guard transformation to lrint by
3485 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
3487 * config/aarch64/aarch64-builtins.c
3488 (aarch64_simd_builtin_type_mode): Delete.
3489 (v8qi_UP): Remap to V8QImode.
3490 (v4hi_UP): Remap to V4HImode.
3491 (v2si_UP): Remap to V2SImode.
3492 (v2sf_UP): Remap to V2SFmode.
3493 (v1df_UP): Remap to V1DFmode.
3494 (di_UP): Remap to DImode.
3495 (df_UP): Remap to DFmode.
3496 (v16qi_UP):V16QImode.
3497 (v8hi_UP): Remap to V8HImode.
3498 (v4si_UP): Remap to V4SImode.
3499 (v4sf_UP): Remap to V4SFmode.
3500 (v2di_UP): Remap to V2DImode.
3501 (v2df_UP): Remap to V2DFmode.
3502 (ti_UP): Remap to TImode.
3503 (ei_UP): Remap to EImode.
3504 (oi_UP): Remap to OImode.
3505 (ci_UP): Map to CImode.
3506 (xi_UP): Remap to XImode.
3507 (si_UP): Remap to SImode.
3508 (sf_UP): Remap to SFmode.
3509 (hi_UP): Remap to HImode.
3510 (qi_UP): Remap to QImode.
3511 (aarch64_simd_builtin_datum): Make mode a machine_mode.
3512 (VAR1): Build builtin name.
3513 (aarch64_init_simd_builtins): Remove dead code.
3515 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3517 * graphite-isl-ast-to-gimple.c:
3518 (set_options): New function.
3519 (scop_to_isl_ast): Add calling of set_options.
3521 2014-08-05 Jakub Jelinek <jakub@redhat.com>
3523 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
3524 (analyze_iv_to_split_insn): Don't initialize them.
3525 (get_ivts_expr): Removed.
3526 (allocate_basic_variable, insert_base_initialization): Use
3527 SET_SRC instead of *get_ivts_expr.
3528 (split_iv): Use &SET_SRC instead of get_ivts_expr.
3530 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3532 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
3533 (translate_isl_ast_for_loop): Add checking of the
3534 flag_loop_parallelize_all.
3535 (ast_build_before_for): New function.
3536 (scop_to_isl_ast): Add checking of the
3537 flag_loop_parallelize_all.
3538 * graphite-dependences.c: Move the defenition of the
3539 scop_get_dependences from graphite-optimize-isl.c to this file.
3540 (apply_schedule_on_deps): Add checking of the ux's emptiness.
3541 (carries_deps): Add checking of the x's value.
3542 * graphite-optimize-isl.c: Move the defenition of the
3543 scop_get_dependences to graphite-dependences.c.
3544 * graphite-poly.h: Add declarations of scop_get_dependences
3547 2014-08-04 Rohit <rohitarulraj@freescale.com>
3550 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
3552 (alt_reg_names): Likewise.
3553 (rs6000_dwarf_register_span): For SPE high registers, replace
3554 dwarf register numbers with GCC hard register numbers.
3555 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
3556 (rs6000_dbx_register_number): For SPE high registers, return dwarf
3557 register number for the corresponding GCC hard register number.
3558 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
3559 newly added GCC hard register numbers for SPE high registers.
3560 (DWARF_FRAME_REGISTERS): Likewise.
3561 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
3562 (DWARF_FRAME_REGNUM): Likewise.
3563 (FIXED_REGISTERS): Likewise.
3564 (CALL_USED_REGISTERS): Likewise.
3565 (CALL_REALLY_USED_REGISTERS): Likewise.
3566 (REG_ALLOC_ORDER): Likewise.
3567 (enum reg_class): Likewise.
3568 (REG_CLASS_NAMES): Likewise.
3569 (REG_CLASS_CONTENTS): Likewise.
3570 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
3572 2014-08-04 Richard Biener <rguenther@suse.de>
3574 * gimple-fold.h (gimple_fold_builtin): Remove.
3575 * gimple-fold.c (gimple_fold_builtin): Make static.
3576 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
3577 fold_stmt, not gimple_fold_builtin.
3579 2014-08-04 Martin Liska <mliska@suse.cz>
3581 * cgraph.h (csi_end_p): Removed.
3582 (csi_next): Likewise.
3583 (csi_node): Likewise.
3584 (csi_start): Likewise.
3585 (cgraph_node_in_set_p): Likewise.
3586 (cgraph_node_set_size): Likewise.
3587 (vsi_end_p): Likewise.
3588 (vsi_next): Likewise.
3589 (vsi_node): Likewise.
3590 (vsi_start): Likewise.
3591 (varpool_node_set_size): Likewise.
3592 (cgraph_node_set_nonempty_p): Likewise.
3593 (varpool_node_set_nonempty_p): Likewise.
3594 * cgraphunit.c (cgraph_process_new_functions): vec replaces
3596 * ipa-inline-transform.c: Likewise.
3597 * ipa-utils.c (cgraph_node_set_new): Removed.
3598 (cgraph_node_set_add): Likewise.
3599 (cgraph_node_set_remove): Likewise.
3600 (cgraph_node_set_find): Likewise.
3601 (dump_cgraph_node_set): Likewise.
3602 (debug_cgraph_node_set): Likewise.
3603 (free_cgraph_node_set): Likewise.
3604 (varpool_node_set_new): Likewise.
3605 (varpool_node_set_add): Likewise.
3606 (varpool_node_set_remove): Likewise.
3607 (varpool_node_set_find): Likewise.
3608 (dump_varpool_node_set): Likewise.
3609 (free_varpool_node_set): Likewise.
3610 (debug_varpool_node_set): Likewise.
3611 * tree-emutls.c (struct tls_var_data):
3612 (emutls_index): Removed.
3613 (emutls_decl): Likewise.
3614 (gen_emutls_addr): Function implementation uses newly added
3615 hash_map<varpool_node *, tls_var_data>.
3616 (clear_access_vars): Likewise.
3617 (create_emultls_var): Likewise.
3618 (ipa_lower_emutls): Likewise.
3619 (reset_access): New function.
3621 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3623 * config/i386/i386.c (ix86_option_override_internal): Add
3624 PTA_RDRND and PTA_MOVBE for bdver4.
3626 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3627 James Greenhalgh <james.greenhalgh@arm.com>
3629 * doc/md.texi (clrsb): Document.
3630 (clz): Change reference to x into operand 1.
3632 (popcount): Likewise.
3634 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3637 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
3638 move to subtarget in serial version if result is ignored.
3640 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3641 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3643 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
3644 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
3645 (sched_analyze_insn): Update use of try_group_insn to
3646 sched_macro_fuse_insns.
3647 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
3648 arguments that are not conditional jumps.
3650 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3652 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
3653 family information. Handle BTVER2 cpu with cpuid family value.
3655 2014-08-04 Tom de Vries <tom@codesourcery.com>
3657 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3658 (glibc_2_11_or_earlier): Document effective-target keywords.
3660 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3662 * ipa-devirt.c (odr_type_warn_count): Add type.
3663 (possible_polymorphic_call_targets): Set it.
3664 (ipa_devirt): Use it.
3666 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3668 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
3670 * ipa-devirt.c: Include hash-map.h
3671 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
3672 (clear_speculation): Break out of ...
3673 (get_class_context): ... here; speed up handling obviously useless
3675 (odr_type_warn_count, decl_warn_count): New structures.
3676 (final_warning_record): New structure.
3677 (final_warning_records): New static variable.
3678 (possible_polymorphic_call_targets): Cleanup handling of
3679 speculative info; do not build speculation when user do not care;
3680 record info about warnings when asked for.
3681 (add_decl_warning): New function.
3682 (type_warning_cmp): New function.
3683 (decl_warning_cmp): New function.
3684 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
3685 (gate): Enable pass when warnings are requested.
3686 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
3689 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3691 * hash-map.h (default_hashmap_traits::mark_key_deleted):
3693 (hash_map::remove): New method.
3694 (hash_map::traverse): New method.
3695 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
3696 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
3697 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
3698 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
3699 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
3700 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
3703 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3705 * hash-set.h: new File.
3706 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
3707 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
3708 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
3709 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
3710 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
3711 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
3712 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
3713 varpool.c: Use hash_set instead of pointer_set.
3715 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
3717 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
3719 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3721 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3722 for frame access when strict_p is false.
3724 2014-08-01 Renlin Li <renlin.li@arm.com>
3725 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3727 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3728 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3729 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3731 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3733 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3734 aarch64_mem_pair_offset.
3736 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3738 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3740 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3741 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3743 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3745 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3747 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3750 * cgraphunit.c (analyze_functions): Use get_create rather than get
3751 for decls which are clones of abstract functions.
3753 2014-08-01 Martin Liska <mliska@suse.cz>
3755 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3756 * ipa-prop.h (count_formal_params): Global function created from static.
3757 * ipa-prop.c (count_formal_params): Likewise.
3758 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3759 profiles for semantically equivalent functions.
3760 * passes.c (do_per_function): If we load body of a function
3761 during WPA, this condition should behave same.
3762 * varpool.c (ctor_for_folding): More tolerant assert for variable
3763 aliases created during WPA.
3765 2014-08-01 Martin Liska <mliska@suse.cz>
3767 * doc/invoke.texi (Options That Control Optimization): Documentation
3768 for -foptimize-strlen introduced. Optimization levels default options
3771 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3773 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3774 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3775 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3777 * stor-layout.h (min_align_of_type): New prototype.
3778 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3779 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3781 * ubsan.c: Include builtins.h.
3782 (ubsan_expand_bounds_ifn): Change return type to bool,
3784 (ubsan_expand_null_ifn): Change return type to bool, change
3785 argument to gimple_stmt_iterator *. Handle both null and alignment
3786 sanitization, take type from ckind argument's type rather than
3788 (instrument_member_call): Removed.
3789 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3790 Handle both null and alignment sanitization, don't say whole
3791 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3792 call instead of 2 argument.
3793 (instrument_null): Adjust instrument_mem_ref caller. Don't
3794 instrument calls here.
3795 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3797 * stor-layout.c (min_align_of_type): New function.
3798 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3799 Or it into SANITIZE_UNDEFINED.
3800 * doc/invoke.texi (-fsanitize=alignment): Document.
3802 2014-07-31 Andi Kleen <ak@linux.intel.com>
3804 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3806 2014-07-31 Andi Kleen <ak@linux.intel.com>
3808 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3810 (vn_reference_compute_hash): Dito.
3811 (vn_nary_op_compute_hash): Dito.
3812 (vn_phi_compute_hash): Dito.
3813 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3815 2014-07-31 Andi Kleen <ak@linux.intel.com>
3817 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3818 Rename to inchash:add_expr_commutative. Convert to inchash.
3819 (iterative_hash_hashable_expr): Rename to
3820 inchash:add_hashable_expr. Convert to inchash.
3821 (avail_expr_hash): Dito.
3823 2014-07-31 Andi Kleen <ak@linux.intel.com>
3825 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3828 2014-07-31 Andi Kleen <ak@linux.intel.com>
3830 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3832 2014-07-31 Andi Kleen <ak@linux.intel.com>
3834 * Makefile.in (OBJS): Add rtlhash.o
3835 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3836 (loc_checksum): Dito.
3837 (loc_checksum_ordered): Dito.
3838 (hash_loc_operands): Dito.
3840 (hash_loc_list): Dito.
3841 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3842 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3843 * rtlhash.c: New file.
3844 * rtlhash.h: New file.
3846 2014-07-31 Andi Kleen <ak@linux.intel.com>
3848 * inchash.h (inchash): Change inchash class to namespace.
3849 (class hash): ... Rename from inchash.
3850 (add_object): Move from macro to class template.
3851 * lto-streamer-out.c (hash_tree): Change inchash
3853 * tree.c (build_type_attribute_qual_variant): Dito.
3854 (type_hash_list): Dito.
3855 (attribute_hash_list): Dito.
3856 (iterative_hstate_expr): Rename to inchash::add_expr
3857 (build_range_type_1): Change inchash to inchash::hash
3858 and use hash::add_expr.
3859 (build_array_type_1): Dito.
3860 (build_function_type): Dito
3861 (build_method_type_directly): Dito.
3862 (build_offset_type): Dito.
3863 (build_complex_type): Dito.
3864 (make_vector_type): Dito.
3865 * tree.h (iterative_hash_expr): Dito.
3867 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3869 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3871 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3873 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3874 correct alphabetical position.
3875 (vpaddd_f64): Rewrite using builtins.
3876 (vpaddd_s64): Move to correct alphabetical position.
3879 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3882 * config/sh/sh.c (sh_legitimate_address_p,
3883 sh_legitimize_reload_address): Handle reg+reg address modes when
3884 ALLOW_INDEXED_ADDRESS is false.
3885 * config/sh/predicates.md (general_movsrc_operand,
3886 general_movdst_operand): Likewise.
3888 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3890 * config/aarch64/aarch64-builtins.c
3891 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3894 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3896 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3897 the generated mask based on BYTES_BIG_ENDIAN.
3898 (aarch64_simd_check_vect_par_cnst_half): New.
3899 * config/aarch64/aarch64-protos.h
3900 (aarch64_simd_check_vect_par_cnst_half): New.
3901 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3902 the check out to aarch64_simd_check_vect_par_cnst_half.
3903 (vect_par_cnst_lo_half): Likewise.
3904 * config/aarch64/aarch64-simd.md
3905 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3906 (move_hi_quad_<mode>): Always generate a low mask.
3908 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3910 * doc/invoke.texi (AVR Options): Add documentation about
3911 __AVR_DEVICE_NAME__ built-in macro.
3913 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3916 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3917 constraints are satisfied.
3918 (<shift>di3_neon): Likewise.
3920 2014-07-31 Richard Biener <rguenther@suse.de>
3922 PR tree-optimization/61964
3923 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3924 by structural equality.
3926 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3928 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3929 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3930 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3932 * gcc.c (sanitize_spec_function): Support new option.
3933 (SANITIZER_SPEC): Remove now redundant check.
3934 * opts.c (common_handle_option): Support new option.
3935 (finish_options): Check for incompatibilities.
3936 * toplev.c (process_options): Split userspace-specific checks.
3938 2014-07-31 Richard Biener <rguenther@suse.de>
3940 * lto-streamer.h (struct output_block): Remove global.
3941 (struct data_in): Remove labels, num_named_labels and
3943 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3944 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3946 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3949 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3950 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3951 (isolate_path): New argument to avoid inserting a trap.
3952 (find_implicit_erroneous_behaviour): Handle returning the address
3953 of a local variable.
3954 (find_explicit_erroneous_behaviour): Likewise.
3956 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3959 * toplev.c (init_random_seed): Move piece of code never called to
3961 (set_random_seed): see above.
3963 2014-07-31 Tom de Vries <tom@codesourcery.com>
3965 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3967 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3969 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3970 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3972 2014-07-31 Richard Biener <rguenther@suse.de>
3974 * data-streamer.h (streamer_write_data_stream): Declare here,
3976 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3977 * lto-cgraph.c (lto_output_node): Adjust.
3978 (lto_output_varpool_node): Likewise.
3979 * data-streamer-out.c (streamer_string_index): Likewise.
3980 (streamer_write_data_stream, lto_append_block): Move from ...
3981 * lto-section-out.c (lto_output_data_stream,
3982 lto_append_block): ... here.
3984 2014-07-30 Mike Stump <mikestump@comcast.net>
3986 * configure.ac: Also check for popen.
3987 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3988 * configure: Regenerate.
3989 * config.in: Regenerate.
3991 2014-07-30 Martin Jambor <mjambor@suse.cz>
3993 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3994 parameter to gimple.
3996 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3998 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3999 address as second parameter to __tpf_eh_return routine.
4001 2014-07-30 Jiong Wang <jiong.wang@arm.com>
4003 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
4006 2014-07-30 Tom Tromey <tromey@redhat.com>
4009 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
4010 * doc/extend.texi (Type Attributes): Document designated_init
4013 2014-07-30 Roman Gareev <gareevroman@gmail.com>
4015 * graphite-isl-ast-to-gimple.c:
4016 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
4017 (gcc_expression_from_isl_expression): Pass type to
4018 gcc_expression_from_isl_ast_expr_id.
4020 2014-07-30 Richard Biener <rguenther@suse.de>
4022 * lto-streamer.h (lto_write_data): New function.
4023 * langhooks.c (lhd_append_data): Do not free block.
4024 * lto-section-out.c (lto_write_data): New function writing
4025 raw data to the current section.
4026 (lto_write_stream): Adjust for langhook semantic change.
4027 (lto_destroy_simple_output_block): Write header directly.
4028 * lto-opts.c (lto_write_options): Write options directly.
4029 * lto-streamer-out.c (produce_asm): Write heaeder directly.
4030 (lto_output_toplevel_asms): Likewise.
4031 (copy_function_or_variable): Copy data directly.
4032 (write_global_references): Output index table directly.
4033 (lto_output_decl_state_refs): Likewise.
4034 (write_symbol): Write data directly.
4035 (produce_symtab): Adjust.
4036 (produce_asm_for_decls): Output header and refs directly.
4038 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
4040 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
4041 to speculative_targets
4042 (get_class_context): Fix handling of contextes without outer type;
4043 avoid matching non-polymorphic types in LTO.
4044 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
4045 parameter to speculative_targetsp; handle speculation.
4046 (dump_possible_polymorphic_call_targets): Update dumping.
4048 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
4050 * common.opt (Wodr): Enable by default.
4052 2014-07-29 Olivier Hainque <hainque@adacore.com>
4054 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
4056 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
4059 * gengtype.c (strtoken): New function.
4060 (create_user_defined_type): Replace strtok with strtoken.
4062 2014-07-29 Nathan Sidwell <nathan@acm.org>
4064 * gcov-io.c (gcov_var): Make hidden.
4065 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
4066 (gcov_do_dump): Declare.
4067 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
4069 2014-07-29 Martin Jambor <mjambor@suse.cz>
4071 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
4072 parameter to gimple.
4073 (sra_modify_assign): Likewise.
4075 2014-07-29 Richard Biener <rguenther@suse.de>
4078 * expr.c (expand_expr_real_2): Revert last change.
4080 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
4082 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
4083 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
4084 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
4086 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
4087 (contains_type_p): Forward declare.
4088 (polymorphic_call_target_hasher::hash): Hash speculative info.
4089 (polymorphic_call_target_hasher::equal): Compare speculative info.
4090 (get_class_context): Handle speuclation.
4091 (contains_type_p): Update.
4092 (get_polymorphic_call_info_for_decl): Update.
4093 (walk_ssa_copies): Break out from ...
4094 (get_polymorphic_call_info): ... here; set speculative context
4096 * ipa-prop.c (ipa_write_indirect_edge_info,
4097 ipa_read_indirect_edge_info): Stream speculative context.
4098 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
4099 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
4100 SPECULATIVE_MAYBE_DERIVED_TYPE).
4101 (possible_polymorphic_call_targets overriders): Update.
4102 (dump_possible_polymorphic_call_targets overriders): Update.
4103 (dump_possible_polymorphic_call_target_p overriders): Update.
4105 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
4107 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
4108 ipa-devirt path; fix thinko there.
4110 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
4112 * config/i386/i386.c (ix86_return_in_memory): Replace one
4113 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
4115 2014-07-28 Marek Polacek <polacek@redhat.com>
4117 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
4119 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
4121 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
4122 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
4123 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
4124 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4125 (USE_LD_AS_NEEDED): Likewise.
4126 (ASM_APP_ON): Likewise.
4127 (ASM_APP_OFF): Likewise.
4128 (TARGET_POSIX_IO): Likewise.
4129 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
4130 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4131 (USE_LD_AS_NEEDED): Likewise.
4132 (ASM_APP_ON): Likewise.
4133 (ASM_APP_OFF): Likewise.
4134 (TARGET_POSIX_IO): Likewise.
4136 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
4139 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
4140 operators other than the equality operators.
4142 2014-07-28 Richard Biener <rguenther@suse.de>
4145 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
4146 sure to register SImode ones, not only >= word_mode ones.
4147 * expr.c (expand_expr_real_2): When expanding -ftrapv
4148 binops do not use OPTAB_LIB_WIDEN.
4150 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
4153 * tree-outof-ssa.c (insert_partition_copy_on_edge)
4154 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
4155 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
4156 inserting them in the insn stream.
4158 2014-07-28 Marek Polacek <polacek@redhat.com>
4161 * common.opt (Wodr): Add Var.
4163 2014-07-28 Richard Biener <rguenther@suse.de>
4165 PR tree-optimization/61921
4166 * tree-ssa-structalias.c (create_variable_info_for_1): Check
4167 if there is a varpool node before dereferencing it.
4169 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4171 * graphite-sese-to-poly.c:
4172 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
4173 id of the pbb), which contains pointer to the pbb1.
4175 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
4177 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4179 * graphite-isl-ast-to-gimple.c:
4180 (graphite_create_new_guard): New function.
4181 (translate_isl_ast_node_if): New function.
4182 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
4184 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
4186 2014-07-27 Anthony Green <green@moxielogic.com>
4188 * config.gcc: Add moxie-*-moxiebox* configuration.
4189 * config/moxie/moxiebox.h: New file.
4191 2014-07-26 Andrew Pinski <apinski@cavium.com>
4193 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
4194 from the read only register.
4196 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4198 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
4199 as the allocation class if it isn't likely to be spilled.
4201 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4203 * rtl.h (tls_referenced_p): Declare.
4204 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
4205 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
4206 (mips_cannot_force_const_mem): Use tls_referenced_p.
4207 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
4208 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
4209 instead of pa_tls_referenced_p.
4210 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
4211 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
4212 (pa_legitimate_constant_p): Likewise.
4213 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
4214 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
4215 (rs6000_cannot_force_const_mem, rs6000_emit_move)
4216 (rs6000_address_for_altivec): Use tls_referenced_p instead of
4217 rs6000_tls_referenced_p.
4218 (rs6000_tls_symbol_ref_1): Delete.
4220 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
4223 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4224 Optimize inverse of a VEC_CONCAT.
4226 2014-07-25 Xinliang David Li <davidxl@google.com>
4228 * params.def: New parameter.
4229 * coverage.c (get_coverage_counts): Check new flag.
4230 (coverage_compute_profile_id): Check new flag.
4231 (coverage_begin_function): Check new flag.
4232 (coverage_end_function): Check new flag.
4233 * value-prof.c (coverage_node_map_initialized_p): New function.
4234 (init_node_map): Populate map with all functions.
4235 * doc/invoke.texi: Document new parameter.
4237 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
4238 Richard Biener <rguenther@suse.de>
4240 * lto-streamer-out.c (struct sccs): Turn to ...
4241 (class DFS): ... this one; refactor the DFS walk so it can
4242 be re-done on per-SCC basis.
4243 (DFS::DFS): New constructor.
4244 (DFS::~DFS): New destructor.
4245 (hash_tree): Add new MAP argument holding in-SCC hash values;
4246 remove POINTER_TYPE hashing hack.
4247 (scc_entry_compare): Rename to ...
4248 (DFS::scc_entry_compare): ... this one.
4249 (hash_scc): Rename to ...
4250 (DFS::hash_scc): ... this one; pass output_block instead
4251 of streamer_cache; work harder to get unique and stable SCC
4253 (DFS_write_tree): Rename to ...
4254 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
4255 (lto_output_tree): Update.
4257 2014-07-25 Andi Kleen <ak@linux.intel.com>
4259 * lto-streamer-out.c (hash_tree): Convert to inchash.
4261 2014-07-25 Andi Kleen <ak@linux.intel.com>
4263 * tree.c (build_type_attribute_qual_variant): Use inchash.
4264 (type_hash_list): Dito.
4265 (attribute_hash_list): Dito
4266 (iterative_hstate_expr): Dito.
4267 (iterative_hash_expr): Dito.
4268 (build_range_type_1): Dito.
4269 (build_array_type_1): Dito.
4270 (build_function_type): Dito.
4271 (build_method_type_directly): Dito.
4272 (build_offset_type): Dito.
4273 (build_complex_type): Dito.
4274 (make_vector_type): Dito.
4275 * tree.h (iterative_hash_expr): Add compat wrapper.
4276 (iterative_hstate_expr): Add.
4278 2014-07-25 Andi Kleen <ak@linux.intel.com>
4280 * Makefile.in (OBJS): Add inchash.o.
4281 (PLUGIN_HEADERS): Add inchash.h.
4282 * ipa-devirt.c: Include inchash.h.
4283 * lto-streamer-out.c: Dito.
4284 * tree-ssa-dom.c: Dito.
4285 * tree-ssa-pre.c: Dito.
4286 * tree-ssa-sccvn.c: Dito.
4287 * tree-ssa-tail-merge.c: Dito.
4289 * tree.c (iterative_hash_hashval_t): Move to ...
4290 (iterative_hash_host_wide_int): Move to ...
4291 * inchash.c: Here. New file.
4292 * tree.h (iterative_hash_hashval_t): Move to ...
4293 (iterative_hash_host_wide_int): Move to ...
4294 * inchash.h: Here. New file.
4296 2014-07-25 Richard Biener <rguenther@suse.de>
4300 * fold-const.c (native_encode_int): Add and handle offset
4301 parameter to do partial encodings of expr.
4302 (native_encode_fixed): Likewise.
4303 (native_encode_real): Likewise.
4304 (native_encode_complex): Likewise.
4305 (native_encode_vector): Likewise.
4306 (native_encode_string): Likewise.
4307 (native_encode_expr): Likewise.
4308 * fold-const.c (native_encode_expr): Add offset parameter
4310 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
4311 (fold_ctor_reference): Handle all reads from tcc_constant
4314 2014-07-25 Richard Biener <rguenther@suse.de>
4316 * tree-inline.c (estimate_move_cost): Mark speed_p argument
4319 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4321 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
4323 2014-07-24 Kyle McMartin <kyle@redhat.com>
4325 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
4327 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4329 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
4331 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
4333 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
4334 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4335 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4337 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4339 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
4340 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
4341 aggregate types. Instead, *all* aggregate types, except for single-
4342 element or homogeneous float/vector aggregates, are quadword-aligned
4343 if required by their type alignment. Issue -Wpsabi note when a type
4344 is now treated differently than before.
4346 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4348 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
4349 does not fit fully into floating-point registers, and there is still
4350 space in the register parameter area, use GPRs to pass those parts
4351 of the argument. Issue -Wpsabi note if any parameter is now treated
4352 differently than before.
4353 (rs6000_arg_partial_bytes): Update.
4355 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
4357 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
4359 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4361 * rtl.h (target_rtl): Remove lang_dependent_initialized.
4362 * toplev.c (initialize_rtl): Don't use it. Move previously
4363 "language-dependent" calls to...
4364 (backend_init): ...here.
4365 (lang_dependent_init_target): Don't set lang_dependent_initialized.
4366 Assert that RTL initialization hasn't happend yet.
4368 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4370 PR rtl-optimization/61629
4371 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
4372 they have already been initialized.
4374 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4377 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
4378 DECL_INCOMING_RTL and entry_parm.
4379 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
4380 * calls.c (load_register_parameters): Likewise argument values.
4381 (emit_library_call_value_1, store_one_arg): Likewise argument
4383 * config/i386/i386.c (assign_386_stack_local): Likewise the local
4385 * explow.c (validize_mem): Modify the argument in-place.
4387 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4389 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
4390 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
4392 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4394 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
4395 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
4397 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4399 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
4400 (aarch64_save_callee_saves): New parameter "skip_wb".
4401 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
4403 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4405 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
4407 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
4409 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4411 * graphite-isl-ast-to-gimple.c:
4412 (graphite_create_new_loop): Add calling of isl_id_free to properly
4413 decrement reference counts.
4415 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
4417 2014-07-24 Martin Liska <mliska@suse.cz>
4418 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
4420 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
4421 (rs6000_code_end): Likewise.
4423 2014-07-24 Martin Liska <mliska@suse.cz>
4425 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
4426 symtab_node funtion used.
4427 (rs6000_xcoff_declare_object_name): Likewise.
4429 2014-07-24 Martin Liska <mliska@suse.cz>
4431 * cgraphunit.c (compile): Correct function used.
4433 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4435 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
4438 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4441 * varasm.c (bss_initializer_p): Handle offlined ctors.
4442 (align_variable, get_variable_align): Likewise.
4443 (make_decl_one_only): Likewise.
4444 (default_binds_local_p_1): Likewise.
4445 (decl_binds_to_current_def_p): Likewise.
4446 (get_variable_section): Get constructor if it is offlined.
4447 (assemble_variable_contents): Sanity check that the caller
4448 streamed in the ctor in LTO.
4450 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4452 * graphite-isl-ast-to-gimple.c:
4453 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
4454 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
4455 isl_ast_op_pdiv_r to the different case.
4457 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
4459 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4462 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
4463 when flag_errno_math is on.
4465 2014-07-24 Martin Liska <mliska@suse.cz>
4467 * cgraph.h (varpool_node):
4468 (availability get_availability (void)):
4469 created from cgraph_variable_initializer_availability
4470 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
4471 created from: cgraph_variable_initializer_availability
4472 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
4473 (void finalize_named_section_flags (void)):
4474 created from varpool_finalize_named_section_flags
4475 (bool assemble_decl (void)): created from varpool_assemble_decl
4476 (void analyze (void)): created from varpool_analyze_node
4477 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
4478 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
4479 (void remove_initializer (void)): created from varpool_remove_initializer
4480 (tree get_constructor (void)): created from varpool_get_constructor
4481 (bool externally_visible_p (void)): created from varpool_externally_visible_p
4482 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
4483 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
4484 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
4485 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
4486 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
4487 (static bool output_variables (void)): created from varpool_output_variables
4488 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
4489 created from varpool_extra_name_alias
4490 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
4491 (static void dump_varpool (FILE *f)): created from dump_varpool
4492 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
4493 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
4494 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
4495 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
4496 (void assemble_aliases (void)): created from assemble_aliases
4498 2014-07-24 Martin Liska <mliska@suse.cz>
4500 * cgraph.h (symtab_node):
4501 (void register_symbol (void)): created from symtab_register_node
4502 (void remove (void)): created from symtab_remove_node
4503 (void dump (FILE *f)): created from dump_symtab_node
4504 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
4505 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
4506 (struct ipa_ref *add_reference (symtab_node *referred_node,
4507 enum ipa_ref_use use_type)): created from add_reference
4508 (struct ipa_ref *add_reference (symtab_node *referred_node,
4509 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
4510 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
4511 gimple stmt)): created from maybe_add_reference
4512 (bool semantically_equivalent_p (symtab_node *target)): created from
4513 symtab_semantically_equivalent_p
4514 (void remove_from_same_comdat_group (void)): created from
4515 remove_from_same_comdat_group
4516 (void add_to_same_comdat_group (symtab_node *old_node)): created from
4517 symtab_add_to_same_comdat_group
4518 (void dissolve_same_comdat_group_list (void)): created from
4519 symtab_dissolve_same_comdat_group_list
4520 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
4521 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
4522 created from symtab_alias_ultimate_target
4523 (inline symtab_node *next_defined_symbol (void)): created from
4524 symtab_next_defined_symbol
4525 (bool resolve_alias (symtab_node *target)): created from
4526 symtab_resolve_alias
4527 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
4528 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
4529 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
4530 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
4531 (void set_section (const char *section)): created from set_section_1
4532 (enum availability get_availability (void)): created from symtab_node_availability
4533 (void make_decl_local (void)): created from symtab_make_decl_local
4534 (bool real_symbol_p (void)): created from symtab_read_node
4535 (can_be_discarded_p (void)): created from symtab_can_be_discarded
4536 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
4537 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
4538 symtab_in_same_comdat_p;
4539 (bool address_taken_from_non_vtable_p (void)): created from
4540 address_taken_from_non_vtable_p
4541 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
4542 (static void dump_table (FILE *)): created from dump_symtab
4543 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
4544 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
4545 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
4546 symtab_used_from_object_file_p
4547 (void dump_base (FILE *)): created from dump_symtab_base
4548 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
4549 (void unregister (void)): created from symtab_unregister_node
4550 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
4551 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
4552 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
4553 symtab_nonoverwritable_alias_1
4554 * cgraph.h (cgraph_node):
4555 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
4556 created from cgraph_remove_node_and_inline_clones
4557 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
4558 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
4559 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
4560 (cgraph_node *function_symbol (enum availability *avail = NULL)):
4561 created from cgraph_function_node
4562 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
4563 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
4564 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
4565 created from cgraph_create_clone
4566 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
4567 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
4568 created from cgraph_create_virtual_clone
4569 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
4570 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
4571 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
4572 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
4573 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
4574 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
4575 created from cgraph_function_version_info
4576 (struct cgraph_function_version_info *insert_new_function_version (void)):
4577 created from insert_new_cgraph_node_version
4578 (struct cgraph_function_version_info *function_version (void)): created from
4579 get_cgraph_node_version
4580 (void analyze (void)): created from analyze_function
4581 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
4582 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
4583 tree real_alias) cgraph_add_thunk
4584 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
4585 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
4586 created from cgraph_function_or_thunk_node
4587 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
4588 created from expand_thunk
4589 (void reset (void)): created from cgraph_reset_node
4590 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
4591 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
4592 (void remove (void)): created from cgraph_remove_node
4593 (void dump (FILE *f)): created from dump_cgraph_node
4594 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
4595 (bool get_body (void)): created from cgraph_get_body
4596 (void release_body (void)): created from cgraph_release_function_body
4597 (void unnest (void)): created from cgraph_unnest_node
4598 (void make_local (void)): created from cgraph_make_node_local
4599 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
4600 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
4601 gcov_type count, int freq)): created from cgraph_create_edge
4602 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
4603 gcov_type count, int freq)): created from cgraph_create_indirect_edge
4604 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
4605 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
4606 created from cgraph_create_edge_including_clones
4607 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
4608 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
4609 (void remove_callers (void)): created from cgraph_node_remove_callers
4610 (void remove_callees (void)): created from cgraph_node_remove_callees
4611 (enum availability get_availability (void)): created from cgraph_function_body_availability
4612 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
4613 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
4614 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
4615 (void call_duplication_hooks (cgraph_node *node2)): created from
4616 cgraph_call_node_duplication_hooks
4617 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
4618 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
4619 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
4620 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
4621 (void call_function_insertion_hooks (void)):
4622 created from cgraph_call_function_insertion_hooks
4623 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
4624 (bool local_p (void)): created from cgraph_local_node
4625 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
4626 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
4627 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
4628 (inline bool only_called_directly_or_aliased_p (void)):
4629 created from cgraph_only_called_directly_or_aliased_p
4630 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
4631 created from cgraph_will_be_removed_from_program_if_no_direct_calls
4632 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
4633 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
4634 (bool can_remove_if_no_direct_calls_p (void)):
4635 created from cgraph_can_remove_if_no_direct_calls_p
4636 (inline bool has_gimple_body_p (void)):
4637 created from cgraph_function_with_gimple_body_p
4638 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
4639 (static void dump_cgraph (FILE *f)): created from dump_cgraph
4640 (static inline void debug_cgraph (void)): created from debug_cgraph
4641 (static void record_function_versions (tree decl1, tree decl2)):
4642 created from record_function_versions
4643 (static void delete_function_version (tree decl)):
4644 created from delete_function_version
4645 (static void add_new_function (tree fndecl, bool lowered)):
4646 created from cgraph_add_new_function
4647 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
4648 (static cgraph_node * create (tree decl)): created from cgraph_create_node
4649 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
4650 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
4651 (static cgraph_node *get_for_asmname (tree asmname)):
4652 created from cgraph_node_for_asm
4653 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
4654 created from cgraph_same_body_alias
4655 (static bool used_from_object_file_p_worker (cgraph_node *node,
4656 void *): new function
4657 (static bool non_local_p (cgraph_node *node, void *)):
4658 created from cgraph_non_local_node_p_1
4659 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
4660 created from verify_cgraph
4661 (static bool make_local (cgraph_node *node, void *)):
4662 created from cgraph_make_node_local
4663 (static cgraph_node *create_alias (tree alias, tree target)):
4664 created from cgraph_create_function_alias
4665 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
4666 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
4667 created from cgraph_create_edge_1
4668 * cgraph.h (varpool_node):
4669 (void remove (void)): created from varpool_remove_node
4670 (void dump (FILE *f)): created from dump_varpool_node
4672 2014-07-24 Richard Biener <rguenther@suse.de>
4675 * tree-ssa-structalias.c (create_variable_info_for_1):
4676 Use varpool_get_constructor.
4677 (create_variable_info_for): Likewise.
4679 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4681 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
4682 subtract outgoing area size when restoring stack_pointer_rtx.
4684 2014-07-24 Nick Clifton <nickc@redhat.com>
4686 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
4687 that operations are taking place in parallel.
4688 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
4690 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
4692 * omp-low.c (extract_omp_for_data): Add missing break statement.
4694 2014-07-24 Richard Biener <rguenther@suse.de>
4696 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
4697 * tree-inline.c (estimate_move_cost): Add speed_p parameter
4698 and adjust MOVE_RATIO query accordingly.
4699 (estimate_num_insns): Adjust callers.
4700 * ipa-prop.c (ipa_populate_param_decls): Likewise.
4701 * ipa-cp.c (gather_context_independent_values,
4702 estimate_local_effects): Likewise.
4703 * ipa-split.c (consider_split): Likewise.
4705 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
4707 * config/i386/driver-i386.c: Remove names of unused arguments and
4708 unnecessary unused attributes.
4709 * config/i386/host-mingw32.c: Likewise.
4710 * config/i386/i386.c: Likewise.
4711 * config/i386/winnt-stubs.c: Likewise.
4712 * config/i386/winnt.c: Likewise.
4714 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4716 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
4717 (aarch64_gen_loadwb_pair): New helper function.
4718 (aarch64_expand_epilogue): Simplify code using new helper functions.
4719 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4721 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4723 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4724 (aarch64_gen_storewb_pair): New helper function.
4725 (aarch64_expand_prologue): Simplify code using new helper functions.
4726 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4728 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4730 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4731 Rename to aarch64_save_callee_saves, remove restore code.
4732 (aarch64_restore_callee_saves): New function.
4734 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4736 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4737 (aarch64_save_callee_saves): New function to handle reg save
4738 for both core and vectore regs.
4740 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4742 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4743 (aarch64_gen_store_pair): New helper function.
4744 (aarch64_save_or_restore_callee_save_registers)
4745 (aarch64_save_or_restore_fprs): Use new helper functions.
4747 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4749 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4750 (aarch64_save_or_restore_callee_save_registers)
4751 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4753 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4755 * config/aarch64/aarch64.c
4756 (aarch64_save_or_restore_callee_save_registers)
4757 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4759 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4761 * config/aarch64/aarch64.c
4762 (aarch64_save_or_restore_callee_save_registers)
4763 (aarch64_save_or_restore_fprs): Remove 'increment'.
4765 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4767 * config/aarch64/aarch64.c
4768 (aarch64_save_or_restore_callee_save_registers)
4769 (aarch64_save_or_restore_fprs): Use register offset in
4770 cfun->machine->frame.reg_offset.
4772 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4774 * config/aarch64/aarch64.c
4775 (aarch64_save_or_restore_callee_save_registers)
4776 (aarch64_save_or_restore_fprs): Remove base_rtx.
4778 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4780 * config/aarch64/aarch64.c
4781 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4782 to 'start_offset'. Remove local variable 'start_offset'.
4784 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4786 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4787 type to HOST_WIDE_INT.
4789 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4791 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4792 (aarch64_save_or_restore_fprs)
4793 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4795 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4797 * config/arm/t-rtems-eabi: Add
4798 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4799 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4800 mbig-endian/mthumb/march=armv7-r, and
4801 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4804 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4805 Chris Johns <chrisj@rtems.org>
4806 Joel Sherrill <joel.sherrill@oarcorp.com>
4808 * config.gcc: Add nios2-*-rtems*.
4809 * config/nios2/rtems.h: New file.
4810 * gcc/config/nios2/t-rtems: New file.
4812 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4815 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4816 constant numbers, not general constants.
4817 (rs6000_expand_vector_init): Ditto.
4819 2014-07-23 Nathan Sidwell <nathan@acm.org>
4821 * gcov-tool.c (gcov_list): Declare here.
4822 (set_gcov_list): Remove.
4823 (gcov_output_files): Set gcov_list directly.
4825 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4827 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4829 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4831 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4832 callee-saved registers are available for padding purpose
4833 and r3 is not mandatory, then prefer use those callee-saved
4836 2014-07-23 Richard Biener <rguenther@suse.de>
4838 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4839 * combine.c: Include statistics.h and params.h.
4840 (combine_instructions): Guard three and four insn combines
4841 with max-combine-insns value. Record statistics for combines
4843 * doc/invoke.texi (max-combine-insns): Document new param.
4845 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4847 * graphite-isl-ast-to-gimple.c:
4848 (translate_isl_ast_node_block): New function.
4849 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4851 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4852 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4854 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4856 * graphite-isl-ast-to-gimple.c:
4857 (get_max_schedule_dimensions): New function.
4858 (extend_schedule): Likewise.
4859 (generate_isl_schedule): Add calling of extend_schedule and
4860 get_max_schedule_dimensions.
4862 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4864 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4865 (case UNSPEC): Handle UNSPEC_RBIT.
4867 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4869 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4870 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4872 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4874 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4876 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4878 * graphite-isl-ast-to-gimple.c:
4879 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4881 (build_iv_mapping): New function.
4882 (translate_isl_ast_node_user): Likewise.
4883 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4885 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4886 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4887 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4889 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4892 * config/arm/arm.md (setmem): New pattern.
4893 * config/arm/arm-protos.h (struct tune_params): New fields.
4894 (arm_gen_setmem): New prototype.
4895 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4896 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4897 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4898 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4899 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4900 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4901 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4902 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4903 (arm_const_inline_cost): New function.
4904 (arm_block_set_max_insns): New function.
4905 (arm_block_set_non_vect_profit_p): New function.
4906 (arm_block_set_vect_profit_p): New function.
4907 (arm_block_set_unaligned_vect): New function.
4908 (arm_block_set_aligned_vect): New function.
4909 (arm_block_set_unaligned_non_vect): New function.
4910 (arm_block_set_aligned_non_vect): New function.
4911 (arm_block_set_vect, arm_gen_setmem): New functions.
4913 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4915 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4917 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4920 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4921 out of #ifdef __OPTIMIZE__.
4923 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4925 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4926 different trapping status if -fnon-call-exceptions is enabled.
4928 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4930 * expr.c (store_field): Handle VOIDmode for calls that return values
4931 in multiple locations.
4933 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4935 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4936 (altivec_vsldoi_<mode>): Likewise.
4938 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4940 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4941 to the number of characters in the line.
4943 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4945 * graphite-isl-ast-to-gimple.c: Add using of
4946 build_nonstandard_integer_type instead of int128_integer_type_node.
4948 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4950 * toplev.c (output_stack_usage): Adjust the location of the warning.
4952 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4954 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4955 (*membar_storeload): Disable for LEON3.
4957 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4959 PR rtl-optimization/61461
4960 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4962 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4965 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4966 Fix instruction constraint.
4967 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4969 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4971 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4973 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4975 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4976 GNU coding standards.
4977 (nds32_register_move_cost): Likewise.
4978 (nds32_memory_move_cost): Likewise.
4979 (nds32_address_cost): Likewise.
4981 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4983 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4985 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4987 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4988 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4989 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4990 (HAVE_sync_compare_and_swapqi): Define.
4991 (HAVE_sync_compare_and_swaphi): Likewise.
4992 (HAVE_sync_compare_and_swapsi): Likewise.
4994 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4996 * config/mips/p5600.md: Add missing cpu tests.
4998 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5000 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
5001 (vmla_f64): Likewise.
5002 (vfms_f64): Likewise.
5003 (vmls_f64): Likewise.
5005 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5007 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
5008 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
5010 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5012 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
5013 (vmlal_high_lane_s32): Likewise.
5014 (vmlal_high_lane_u16): Likewise.
5015 (vmlal_high_lane_u32): Likewise.
5016 (vmlsl_high_lane_s16): Likewise.
5017 (vmlsl_high_lane_s32): Likewise.
5018 (vmlsl_high_lane_u16): Likewise.
5019 (vmlsl_high_lane_u32): Likewise.
5021 2014-07-17 Terry Guo <terry.guo@arm.com>
5023 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
5024 (alus_reg): Renamed to alus_sreg.
5025 * config/arm/arm-fixed.md: Change type of non-dsp instructions
5026 from alu_reg to alu_sreg. Change type of dsp instructions from
5027 alu_reg to alu_dsp_reg.
5028 * config/arm/thumb1.md: Likewise.
5029 * config/arm/thumb2.md: Likewise.
5030 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
5031 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
5032 with alu_sreg and alus_sreg.
5033 * config/arm/arm1026ejs.md (alu_op): Likewise.
5034 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
5035 * config/arm/arm926ejs.md (9_alu_op): Likewise.
5036 * config/arm/fa526.md (526_alu_op): Likewise.
5037 * config/arm/fa606te.md (606te_alu_op): Likewise.
5038 * config/arm/fa626te.md (626te_alu_op): Likewise.
5039 * config/arm/fa726te.md (726te_alu_op): Likewise.
5040 * config/arm/fmp626.md (mp626_alu_op): Likewise.
5041 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
5042 alu_sreg, alu_dsp_reg and alus_sreg.
5043 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
5044 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5045 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5046 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
5047 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
5048 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5049 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5050 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5051 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
5052 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
5053 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
5054 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
5055 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
5056 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
5057 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
5058 alus_reg to alus_sreg.
5060 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
5062 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
5065 2014-07-17 Richard Biener <rguenther@suse.de>
5067 PR rtl-optimization/61801
5068 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
5069 don't set reg_pending_barrier if it appears in a debug-insn.
5071 2014-07-16 DJ Delorie <dj@redhat.com>
5073 * config/rx/rx.c (rx_option_override): Fix alignment values.
5074 (rx_align_for_label): Likewise.
5076 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
5079 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
5080 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5081 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
5083 (cris_print_index, cris_print_operand, cris_constant_index_p)
5084 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
5085 (cris_address_cost): Ditto last CONSTANT_P.
5086 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
5087 callers changed. Yield cris_offsettable_symbol for non-PIC
5088 constant symbolic expressions including labels. Yield cris_unspec
5090 (cris_expand_pic_call_address): New parameter MARKERP. Set its
5091 target to pic_offset_table_rtx for calls that will likely go
5092 through PLT, const0_rtx when they can't. All callers changed.
5093 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
5094 symbolic expressions to be PICified. Remove second, redundant,
5095 assert on can_create_pseudo_p returning non-zero. Use
5096 replace_equiv_address_nv, not replace_equiv_address, for final
5098 * config/cris/cris.md ("movsi"): Move variable t to pattern
5099 toplevel. Adjust assert for new cris_symbol_type member. Use
5100 CONSTANT_P instead of CONSTANT_ADDRESS_P.
5101 ("*movsi_internal") <case 9>: Make check for valid unspec operands
5103 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
5104 ("call", "call_value"): Use second incoming operand as a marker
5105 for pic-offset-table-register being used.
5106 ("*expanded_call_non_v32", "*expanded_call_v32")
5107 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
5108 second incoming operand to CALL, match cris_call_type_marker.
5109 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
5110 ("*expanded_call_side"): Ditto. Fix typo in comment.
5111 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
5113 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
5114 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
5115 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
5116 users changed. Add members cris_offsettable_symbol and cris_unspec.
5117 (cris_symbol_type): Rename from cris_pic_symbol_type.
5118 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
5120 * config/cris/cris-protos.h (cris_symbol_type_of,
5121 cris_expand_pic_call_address): Adjust prototypes.
5122 (cris_legitimate_constant_p): New prototype.
5124 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
5125 an existing tmake_file. Don't add t-slibgcc and t-linux.
5127 2014-07-17 Jason Merrill <jason@redhat.com>
5130 * symtab.c (symtab_remove_from_same_comdat_group): Also
5131 set_comdat_group to NULL_TREE.
5132 (verify_symtab): Fix diagnostic.
5134 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
5137 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
5139 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5141 Support location tracking for built-in macro tokens
5142 * input.h (is_location_from_builtin_token): New function declaration.
5143 * input.c (is_location_from_builtin_token): New function definition.
5144 * toplev.c (general_init): Tell libcpp what the pre-defined
5145 spelling location for built-in tokens is.
5147 2014-07-16 Jakub Jelinek <jakub@redhat.com>
5149 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
5150 on the FUNCTION_DECL.
5152 2014-07-16 Richard Biener <rguenther@suse.de>
5155 * doc/extend.texi (always_inline): Clarify.
5157 2014-07-15 Eric Christopher <echristo@gmail.com>
5159 * doc/invoke.texi (Link Options): Document -z option.
5161 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
5163 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
5164 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
5166 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
5168 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
5170 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
5172 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
5173 varpool_assemble_decl.
5174 * varpool.c (varpool_assemble_decl): Assert that node->definition is
5177 2014-07-15 Michael Matz <matz@suse.de>
5179 PR rtl-optimization/61772
5180 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
5182 2014-07-15 Richard Biener <rguenther@suse.de>
5184 * opts.c (default_options_table): Disable bit-ccp at -Og.
5186 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5188 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
5190 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5192 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
5193 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
5194 call langhook for unknown declaration.
5195 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
5196 * tree.h (DECL_ARGUMENTS): Update.
5197 * print-tree.c (print_node): Update.
5198 * tree-core.h (tree_decl_non_common): Remove arguments.
5199 (tree_function_decl): Add arguments.
5201 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
5203 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
5205 2014-07-14 Richard Biener <rguenther@suse.de>
5207 PR tree-optimization/61779
5208 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
5209 simplifying a condition.
5211 2014-07-14 Richard Biener <rguenther@suse.de>
5213 * builtins.c (c_strlen): Make only_value == 2 really only
5214 affect warning generation.
5216 2014-07-14 Richard Biener <rguenther@suse.de>
5218 PR tree-optimization/61757
5219 PR tree-optimization/61783
5220 PR tree-optimization/61787
5221 * tree-ssa-dom.c (record_equality): Revert canonicalization
5222 change and add comment.
5223 (propagate_rhs_into_lhs): Revert previous fix, removing
5224 loop depth restriction again.
5226 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5228 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
5229 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5230 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5231 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
5232 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5233 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5234 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5236 2014-07-14 Richard Biener <rguenther@suse.de>
5238 * cgraph.h (decl_in_symtab_p): Make inline.
5240 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5243 * doc/invoke.texi (-Wmemset-transposed-args): Document.
5246 * config/i386/i386.c (classify_argument): Don't merge classes above
5249 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
5251 * cgraph.h (symtab_node): Add nonzero_address.
5252 (decl_in_symtab_p): Break out from ...
5253 (symtab_get_node): ... here.
5254 * fold-const.c: Include cgraph.h
5255 (tree_single_nonzero_warnv_p): Use symtab to determine
5256 if symbol is non-zero.
5257 * symtab.c (symtab_node::nonzero_address): New method.
5259 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5261 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
5262 forgotten in previous commit.
5264 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5266 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
5268 * ipa-devirt.c: Include stor-layout.h and intl.h
5269 (odr_subtypes_equivalent_p): New function.
5270 (warn_odr): New function.
5271 (warn_type_mismatch): New function.
5272 (odr_types_equivalent_p): New function.
5273 (add_type_duplicate): Use it.
5274 * common.opt (Wodr): New flag.
5275 * doc/invoke.texi (Wodr): Document new warning.
5277 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5279 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
5280 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
5281 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
5282 (varpool_get_constructor): Push CTORS_IN timevar.
5283 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
5285 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
5287 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
5288 Remove VOID_FTYPE_PUSHORT.
5289 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
5290 Change code to USHORT_FTYPE_VOID.
5291 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
5292 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
5293 (ix86_atomic_assign_expand_fenv): Update for
5294 __builtin_ia32_fnstsw changes.
5295 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
5296 (fnstsw): Change operand 0 to nonimmediate operand.
5298 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5300 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
5301 (varpool_get_constructor): New function.
5302 (varpool_ctor_useable_for_folding_p): Break out from ...
5303 (ctor_for_folding): ... here; use varpool_get_constructor.
5304 (varpool_assemble_decl): Likewise.
5305 * lto-streamer.h (struct output_block): Turn cgraph_node
5307 (lto_input_variable_constructor): Declare.
5308 * ipa-visibility.c (function_and_variable_visibility): Use
5309 varpool_get_constructor.
5310 * cgraph.h (varpool_get_constructor): Declare.
5311 (varpool_ctor_useable_for_folding_p): New function.
5312 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
5313 parameter; return error_mark_node for non-trivial constructors.
5314 (lto_write_tree_1, DFS_write_tree): Update use of
5315 get_symbol_initial_value.
5316 (output_function): Update initialization of symbol.
5317 (output_constructor): New function.
5318 (copy_function): Rename to ..
5319 (copy_function_or_variable): ... this one; handle vars too.
5320 (lto_output): Output variable sections.
5321 * lto-streamer-in.c (input_constructor): New function.
5322 (lto_read_body): Rename from ...
5323 (lto_read_body_or_constructor): ... this one; handle vars too.
5324 (lto_input_variable_constructor): New function.
5325 * ipa-prop.c (ipa_prop_write_jump_functions,
5326 ipa_prop_write_all_agg_replacement): Update.
5327 * lto-cgraph.c (compute_ltrans_boundary): Use it.
5328 (output_cgraph_opt_summary): Set symbol to NULL.
5330 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5332 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
5333 non-polymorphic types.
5334 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
5335 * ipa-devirt.c (types_same_for_odr): Do not explode when one
5336 of types is not polymorphic.
5338 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
5340 * lra-constraints.c (remove_inheritance_pseudos): Process
5341 destination pseudo too.
5343 2014-07-11 Rong Xu <xur@google.com>
5345 * gcov-tool.c (gcov_output_files): Fix build error introduced in
5348 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5350 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
5351 * config/avr/avr-devices.c (AVR_MCU): Same.
5352 (avr_mcu_types): add text start value to end of device list.
5353 * config/avr/avr-mcus.def: Add text section start for all devices.
5354 (ata5782): Add new avr5 device.
5356 * config/avr/avr-tables.opt: Regenerate.
5357 * config/avr/avr.h: Add declaration for text section start handler.
5358 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
5360 (LINK_SPEC): Include text section start handler to linker spec.
5361 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
5362 pass -Ttext option to linker if the text section start for the device
5364 * config/avr/t-multilib: Regenerate.
5365 * doc/avr-mmcu.texi: Regenerate.
5367 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
5369 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
5370 * config/rs6000/aix52.h (LINK_SPEC): Same.
5371 * config/rs6000/aix53.h (LINK_SPEC): Same.
5372 * config/rs6000/aix61.h (LINK_SPEC): Same.
5373 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
5375 2014-07-11 Roman Gareev <gareevroman@gmail.com>
5377 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
5378 (graphite_verify): New function.
5379 (ivs_params_clear): New function.
5380 (gcc_expression_from_isl_ast_expr_id): New function.
5381 (gcc_expression_from_isl_expr_int): New function.
5382 (binary_op_to_tree): New function.
5383 (ternary_op_to_tree): New function.
5384 (unary_op_to_tree): New function.
5385 (nary_op_to_tree): New function.
5386 (gcc_expression_from_isl_expr_op): New function.
5387 (gcc_expression_from_isl_expression): New function.
5388 (graphite_create_new_loop): New function.
5389 (translate_isl_ast_for_loop): New function.
5390 (get_upper_bound): New function.
5391 (graphite_create_new_loop_guard): New function.
5392 (translate_isl_ast_node_for): New function.
5393 (translate_isl_ast): New function.
5394 (add_parameters_to_ivs_params): New function.
5395 (scop_to_isl_ast): New parameter ip.
5396 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
5398 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5400 * config/xtensa/predicates.md (call expander): Update for
5401 DECL_SECTION_NAME being string.
5403 2014-07-11 Richard Biener <rguenther@suse.de>
5406 * builtins.c (fold_builtin_memory_op): Inline memory moves that
5407 can be implemented with a single load followed by a single store.
5408 (c_strlen): Only warn when only_value is not 2.
5410 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
5412 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
5414 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
5417 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
5418 (*movhi_bytes): Likewise.
5419 (*arm_movqi_insn): Likewise.
5421 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
5424 * config/alpha/alpha.c: Include tree-pass.h, context.h
5426 (pass_data_handle_trap_shadows): New pass.
5427 (pass_handle_trap_shadows::gate): New pass gate function.
5428 (make_pass_handle_trap_shadows): New function.
5429 (rest_of_handle_trap_shadows): Ditto.
5431 (alpha_align_insns_1): Rename from alpha_align_insns.
5432 (pass_data_align_insns): New pass.
5433 (pass_align_insns::gate): New pass gate function.
5434 (make_pass_aling_insns): New function.
5435 (rest_of_align_insns): Ditto.
5436 (alpha_align_insns): Ditto.
5438 (alpha_option_override): Declare handle_trap_shadows info
5439 and align_insns_info. Register handle_trap_shadows and align_insns
5441 (alpha_reorg): Do not call alpha_trap_shadows and
5442 alpha_align_insn from here.
5444 (alpha_pad_function_end): Do not skip BARRIERs.
5446 2014-07-10 Rong Xu <xur@google.com>
5448 Add gcov-tool: an offline gcda profile processing tool support.
5449 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
5450 (gcov_is_error): Ditto.
5451 (gcov_read_string): Ditto.
5452 (gcov_read_sync): Ditto.
5453 * gcov-io.h: Move counter defines to gcov-counter.def.
5454 * gcov-dump.c (tag_counters): Use gcov-counter.def.
5455 * coverage.c: Ditto.
5456 * gcov-tool.c: Offline gcda profile processing tool.
5457 (unlink_gcda_file): Remove one gcda file.
5458 (unlink_profile_dir): Remove gcda files from the profile path.
5459 (gcov_output_files): Output gcda files to an output dir.
5460 (profile_merge): Merge two profiles in directory.
5461 (print_merge_usage_message): Print merge usage.
5462 (merge_usage): Print merge usage and exit.
5463 (do_merge): Driver for profile merge sub-command.
5464 (profile_rewrite): Rewrite profile.
5465 (print_rewrite_usage_message): Print rewrite usage.
5466 (rewrite_usage): Print rewrite usage and exit.
5467 (do_rewrite): Driver for profile rewrite sub-command.
5468 (print_usage): Print gcov-info usage and exit.
5469 (print_version): Print gcov-info version.
5470 (process_args): Process arguments.
5471 (main): Main routine for gcov-tool.
5472 * Makefile.in: Build and install gcov-tool.
5473 * gcov-counter.def: New file split from gcov-io.h.
5474 * doc/gcc.texi: Include gcov-tool.texi.
5475 * doc/gcov-tool.texi: Document for gcov-tool.
5477 2014-07-10 Richard Biener <rguenther@suse.de>
5479 PR tree-optimization/61757
5480 * tree-ssa-dom.c (loop_depth_of_name): Restore.
5481 (propagate_rhs_into_lhs): Revert part of last change.
5483 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
5485 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
5488 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
5491 * function.c (allocate_struct_function): Revert r188667 change.
5493 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
5495 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
5497 * doc/install.texi: Remove links to defunct package providers for
5500 2014-07-09 Tom de Vries <tom@codesourcery.com>
5502 * final.c (get_call_fndecl): Declare.
5503 (self_recursive_call_p): New function.
5504 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
5506 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5508 * ipa-devirt.c (record_node): Walk through aliases.
5510 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5512 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
5514 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5517 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5519 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5521 * ipa-visibility.c (function_and_variable_visibility): Remove
5522 temporary hack disabling local aliases on AIX.
5524 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5526 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
5527 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
5529 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5531 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
5532 * rs6000/rs6000.c: Inline output of .set instruction.
5533 (declare_alias_data): New struct.
5534 (rs6000_declare_alias): New function.
5535 (rs6000_xcoff_declare_function_name): Use it.
5536 (rs6000_xcoff_declare_object_name): New function.
5537 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
5538 (ASM_OUTPUT_DEF): Turn to empty definition.
5540 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5543 * hash-table.h: use hash_table::value_type instead of
5544 Descriptor::value_type in the return types of several methods.
5546 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5548 * tree-pass.h (pass_data): Remove has_execute member.
5549 * passes.c (execute_one_pass): Don't check pass->has_execute.
5550 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
5551 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
5552 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
5553 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
5554 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
5555 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
5556 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
5557 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
5558 gimple-low.c, gimple-ssa-isolate-paths.c,
5559 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
5560 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
5561 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
5562 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
5563 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5564 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
5565 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
5566 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
5567 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
5568 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
5569 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
5570 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5571 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
5572 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5573 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
5574 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
5575 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
5576 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
5577 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
5578 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
5579 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
5580 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
5581 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
5582 web.c: Remove initializer for pass_data::has_execute.
5584 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5586 * graphite-htab.h: Use hash_map instead of hash_table.
5587 * graphite-clast-to-gimple.c: Adjust.
5588 * passes.c: Use hash_map instead of hash_table.
5590 * sese.h: Remove now unused code.
5592 2014-07-08 Sriraman Tallam <tmsriram@google.com>
5595 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
5598 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5600 PR rtl-optimization/61673
5601 * combine.c (simplify_comparison): Test just mode's sign bit
5602 in tmode rather than the sign bit and any bits above it.
5604 2014-07-08 Roman Gareev <gareevroman@gmail.com>
5606 * graphite-isl-ast-to-gimple.c (generate_isl_context):
5607 Add __isl_give to the declaration.
5608 (generate_isl_schedule): Likewise.
5609 (scop_to_isl_ast): Likewise.
5611 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5613 * config/arm/arm.c (cortexa5_extra_costs): New table.
5614 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
5616 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5618 PR tree-optimization/61725
5619 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
5620 range, use range_includes_zerop_p instead of integer_zerop on
5621 vr0->min, only use log2 of max if min is not negative.
5623 2014-07-08 Richard Biener <rguenther@suse.de>
5625 * tree-ssa-dom.h (loop_depth_of_name): Remove.
5626 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
5627 restriction on loop depth difference.
5628 (record_equality): Likewise.
5629 (propagate_rhs_into_lhs): Likewise. Simplify condition.
5630 (loop_depth_of_name): Remove.
5631 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
5632 restriction on loop depth difference.
5633 (init_copy_prop): Likewise.
5635 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5637 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
5639 (walk_aliased_vdefs): Likewise.
5640 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
5641 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
5642 (detect_type_change_from_memory_writes): Check if entry was reached.
5644 2014-07-08 Richard Biener <rguenther@suse.de>
5646 PR tree-optimization/61681
5647 * tree-ssa-structalias.c (find_what_var_points_to): Expand
5648 NONLOCAL inside ESCAPED.
5650 2014-07-08 Richard Biener <rguenther@suse.de>
5652 PR tree-optimization/61680
5653 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5654 Handle properly all read-write dependences with group accesses.
5656 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5658 PR tree-optimization/61576
5659 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
5660 block containing reduction statement is predecessor of phi basi block.
5662 2014-07-08 Marek Polacek <polacek@redhat.com>
5665 * fold-const.c (round_up_loc): Change the parameter type.
5667 * fold-const.h (round_up_loc): Adjust declaration.
5668 * stor-layout.c (finalize_record_size): Check for too large types.
5670 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
5672 * symtab.c: Include calls.h.
5673 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
5675 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
5677 * config/rs6000/rs6000.c (output_vec_const_move): Handle
5678 little-endian code generation.
5679 * config/rs6000/spe.md (spe_evmergehi): Rename to...
5680 (vec_perm00_v2si): ... this. Handle little-endian code generation.
5681 (spe_evmergehilo): Rename to...
5682 (vec_perm01_v2si): ... this. Handle little-endian code generation.
5683 (spe_evmergelo): Rename to...
5684 (vec_perm11_v2si): ... this. Handle little-endian code generation.
5685 (spe_evmergelohi): Rename to...
5686 (vec_perm10_v2si): ... this. Handle little-endian code generation.
5687 (spe_evmergehi, spe_evmergehilo): New expanders.
5688 (spe_evmergelo, spe_evmergelohi): Likewise.
5689 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
5690 (*frob_tf_ti): Likewise.
5691 (*frob_<mode>_di_2): Likewise.
5692 (*frob_tf_di_8_2): Likewise.
5693 (*frob_di_<mode>): Likewise.
5694 (*frob_ti_tf): Likewise.
5695 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
5696 (*frob_ti_<mode>_8_2): Likewise.
5697 (*frob_ti_tf_2): Likewise.
5698 (mov_si<mode>_e500_subreg0): Rename to...
5699 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
5701 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
5702 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
5703 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
5704 the big endianness only.
5705 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
5706 (*mov_si<mode>_e500_subreg0_2): Rename to...
5707 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
5708 big big endianness only.
5709 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
5710 (*mov_si<mode>_e500_subreg4): Rename to...
5711 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
5713 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
5714 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
5715 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
5716 the big endianness only.
5717 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
5719 (*mov_si<mode>_e500_subreg4_2): Rename to...
5720 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5722 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5723 (*mov_sitf_e500_subreg8): Rename to...
5724 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5726 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5727 (*mov_sitf_e500_subreg8_2): Rename to...
5728 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5730 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5731 (*mov_sitf_e500_subreg12): Rename to...
5732 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5734 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5735 (*mov_sitf_e500_subreg12_2): Rename to...
5736 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5738 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5740 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5742 * asan.c (instrument_strlen_call): Do not instrument first byte
5743 in strlen if already instrumented.
5745 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5747 * config/arm/arm.opt (mwords-little-endian): Delete.
5748 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5749 of TARGET_LITTLE_WORDS.
5750 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5751 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5753 * doc/invoke.texi: Remove references to -mwords-little-endian.
5755 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5757 * expmed.c (struct init_expmed_rtl): Change all fields but
5758 pow2 and cint from struct rtx_def to rtx.
5759 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5760 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5763 2014-07-06 Marek Polacek <polacek@redhat.com>
5766 * doc/invoke.texi: Document -Wsizeof-array-argument.
5768 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5770 * wide-int.h (wide_int_storage): Change declaration from struct
5773 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5775 * cgraph.c (cgraph_create_indirect_edge): Update call of
5776 get_polymorphic_call_info.
5777 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5778 (possible_polymorphic_call_targets): Add parameter call.
5779 (decl_maybe_in_construction_p): New predicate.
5780 (get_polymorphic_call_info): Add parameter call;
5781 use decl_maybe_in_construction_p.
5782 * gimple-fold.c (fold_gimple_assign): Update use of
5783 possible_polymorphic_call_targets.
5784 (gimple_fold_call): Likewise.
5785 * ipa-prop.c: Inlcude calls.h
5786 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5787 (param_type_may_change_p): New predicate.
5788 (detect_type_change_from_memory_writes): Break out from ...
5789 (detect_type_change): ... this one; use param_type_may_change_p.
5790 (detect_type_change_ssa): Use param_type_may_change_p.
5791 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5793 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5796 * config/arm/arm-protos.h (arm_legitimate_address_p,
5797 arm_is_constant_pool_ref): Add prototypes.
5798 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5799 (arm_is_constant_pool_ref) New function.
5800 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5801 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5802 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5803 operand. Remove pool_range and neg_pool_range attributes.
5804 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5805 pool_range and neg_pool_range attributes.
5806 * config/arm/constraints.md (Uh): New constraint.
5807 (Uq): Don't allow constant pool references.
5809 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5811 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5812 (move_lo_quad_internal_be_<mode>): Likewise.
5813 (move_lo_quad_<mode>): Convert to define_expand.
5814 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5815 (aarch64_simd_move_hi_quad_be_<mode>): New.
5816 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5817 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5818 (aarch64_combinez_be<mode>): New.
5819 (aarch64_combine<mode>): Convert to define_expand.
5820 (aarch64_combine_internal<mode>): New.
5821 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5823 2014-07-04 Tom de Vries <tom@codesourcery.com>
5825 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5826 combination of earlyclobber and read/write modifiers.
5828 2014-07-04 Tom de Vries <tom@codesourcery.com>
5830 * config/aarch64/aarch64-simd.md
5831 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5833 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5836 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5838 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5841 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5843 PR tree-optimization/61684
5844 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5845 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5847 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5848 Kito Cheng <kito@0xlab.org>
5849 Monk Chiang <sh.chiang04@gmail.com>
5851 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5852 (nds32_symbol_load_store_p): Move to ...
5853 (nds32_fp_as_gp_check_available): Move to ...
5854 * config/nds32/nds32-fp-as-gp.c: ... here.
5855 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5858 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5859 Kito Cheng <kito@0xlab.org>
5860 Monk Chiang <sh.chiang04@gmail.com>
5862 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5863 (nds32_expand_store_multiple): Move to ...
5864 (nds32_expand_movmemqi): Move to ...
5865 * config/nds32/nds32-memory-manipulation.c: ... here.
5867 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5868 Kito Cheng <kito@0xlab.org>
5869 Monk Chiang <sh.chiang04@gmail.com>
5871 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5872 (nds32_output_casesi_pc_relative): Move to ...
5873 (nds32_output_casesi): Move to ...
5874 (nds32_mem_format): Move to ...
5875 (nds32_output_16bit_store): Move to ...
5876 (nds32_output_16bit_load): Move to ...
5877 (nds32_output_32bit_store): Move to ...
5878 (nds32_output_32bit_load): Move to ...
5879 (nds32_output_32bit_load_s): Move to ...
5880 (nds32_output_stack_push): Move to ...
5881 (nds32_output_stack_pop): Move to ...
5882 * config/nds32/nds32-md-auxiliary.c: ... here.
5884 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5885 Ling-Hua Tseng <uranus@tinlans.org>
5887 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5888 the purpose of this file.
5890 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5891 Kito Cheng <kito@0xlab.org>
5892 Monk Chiang <sh.chiang04@gmail.com>
5894 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5895 (nds32_address_cost): Move implementation to ...
5896 * config/nds32/nds32-cost.c: ... here.
5897 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5898 (nds32_address_cost_impl): Declare.
5900 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5901 Kito Cheng <kito@0xlab.org>
5902 Monk Chiang <sh.chiang04@gmail.com>
5904 * config/nds32/nds32.c
5905 (nds32_consecutive_registers_load_store_p): Move to ...
5906 (nds32_valid_multiple_load_store): Move to ...
5907 (nds32_valid_stack_push_pop): Move to ...
5908 (nds32_can_use_bclr_p): Move to ...
5909 (nds32_can_use_bset_p): Move to ...
5910 (nds32_can_use_btgl_p): Move to ...
5911 (nds32_can_use_bitci_p): Move to ...
5912 * config/nds32/nds32-predicates.c: ... here.
5914 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5915 Kito Cheng <kito@0xlab.org>
5916 Monk Chiang <sh.chiang04@gmail.com>
5918 * config/nds32/nds32.c
5919 (nds32_expand_builtin_null_ftype_reg): Move to ...
5920 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5921 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5922 (nds32_init_builtins): Move implementation to ...
5923 (nds32_expand_builtin): Move implementation to ...
5924 * config/nds32/nds32-intrinsic.c: ... here.
5925 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5926 (nds32_expand_builtin_impl): Declare.
5928 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5929 Kito Cheng <kito@0xlab.org>
5930 Monk Chiang <sh.chiang04@gmail.com>
5932 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5933 (nds32_emit_section_tail_template): Move to ...
5934 (nds32_emit_isr_jmptbl_section): Move to ...
5935 (nds32_emit_isr_vector_section): Move to ...
5936 (nds32_emit_isr_reset_conten): Move to ...
5937 (nds32_check_isr_attrs_conflict): Move to ...
5938 (nds32_construct_isr_vectors_information): Move to ...
5939 (nds32_asm_file_start): Move implementation to ...
5940 (nds32_asm_file_end): Move implementation to ...
5941 * config/nds32/nds32-isr.c: ... here.
5942 * config/nds32/nds32-protos.h
5943 (nds32_check_isr_attrs_conflict): Declare.
5944 (nds32_construct_isr_vectors_information): Declare.
5945 (nds32_asm_file_start_for_isr): Declare.
5946 (nds32_asm_file_end_for_isr): Declare.
5948 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5949 Kito Cheng <kito@0xlab.org>
5950 Monk Chiang <sh.chiang04@gmail.com>
5952 * config.gcc (nds32*): Add new modules to extra_objs.
5953 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5954 (nds32be-*-*): Likewise.
5955 * config/nds32/nds32-cost.c: New file.
5956 * config/nds32/nds32-fp-as-gp.c: New file.
5957 * config/nds32/nds32-intrinsic.c: New file.
5958 * config/nds32/nds32-isr.c: New file.
5959 * config/nds32/nds32-md-auxiliary.c: New file.
5960 * config/nds32/nds32-memory-manipulation.c: New file.
5961 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5962 * config/nds32/nds32-predicates.c: New file.
5963 * config/nds32/t-nds32: New file.
5965 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5967 PR tree-optimization/61682
5968 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5969 using cases and when one of the operands is equal to 1.
5971 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5973 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5974 ashr<mode>3): Correct mode of operands[2].
5975 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5976 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5977 Correct mode of operands[2]. Fix split condition.
5979 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5981 * arm.md (arch): Add armv6_or_vfpv3.
5982 (arch_enabled): Add test for the above.
5983 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5985 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5987 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5989 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5990 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5991 HWI 1 and negate the unsigned value.
5992 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5993 use AND instead of shift.
5994 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5996 2014-07-03 Marek Polacek <polacek@redhat.com>
5998 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5999 (-fsanitize=float-divide-by-zero): Move to the table with
6000 -fsanitize=undefined suboptions.
6001 (-fsanitize=float-cast-overflow): Likewise.
6003 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
6005 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
6006 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
6009 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6011 * loop-invariant.c (struct invariant): Add a new member: eqno;
6012 (find_identical_invariants): Update eqno;
6013 (create_new_invariant): Init eqno;
6014 (get_inv_cost): Compute comp_cost with eqno;
6016 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
6018 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
6019 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
6020 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
6021 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
6022 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
6024 2014-07-02 Christian Bruel <christian.bruel@st.com>
6028 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
6029 (make_preds_opaque): Delete.
6030 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
6031 (commit_mode_sets): New function.
6032 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
6033 Process all modes at once.
6034 * basic-block.h (pre_edge_lcm_avs): Declare.
6035 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
6036 Call clear_aux_for_edges. Fix comments.
6037 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
6038 (pre_edge_rev_lcm): Idem.
6039 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
6041 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
6042 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
6044 * config/i386/i386.c (x96_emit_mode_set): Idem.
6045 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
6046 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
6047 (fpscr_toggle) Disallow from delay slot.
6048 * target.def (emit_mode_set): Add prev_mode parameter.
6049 * doc/tm.texi: Regenerate.
6051 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6053 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
6056 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
6058 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
6059 vtable_pointer_value_to_vtable): Constify.
6060 (contains_polymorphic_type_p): Declare.
6061 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
6062 vtable_pointer_value_to_vtable): Constify.
6063 (contains_polymorphic_type_p): New predicate.
6064 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
6066 (ipa_set_ancestor_jf): Likewise.
6067 (detect_type_change): Return false in easy cases.
6068 (compute_complex_assign_jump_func): Require type to contain
6070 (compute_known_type_jump_func): Likewise.
6072 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
6074 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
6076 (type_in_anonymous_namespace_p): Constify argument.
6077 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
6078 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
6079 (main_odr_variant): New function.
6080 (hash_type_name): Make static; update assert; do not ICE on
6082 (types_same_for_odr): Bring here from tree.c; simplify and remove
6083 old structural comparing code that doesn't work for templates.
6084 (odr_hasher::equal): Update assert.
6085 (add_type_duplicate): Return true when bases should be computed;
6086 replace incomplete loader by complete; do not output duplicated
6087 warnings; do not ICE on non-records; set odr_violated flag.
6088 (get_odr_type): Be ready to replace incomplete type by complete
6089 one; work on ODR variants instead of main variants; reorder item
6090 in array so bases have still smaller indexes.
6091 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
6092 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
6094 2014-07-01 Cary Coutant <ccoutant@google.com>
6096 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
6098 (resolve_addr_in_expr): When replacing the rtx in a location list
6099 entry, get a new address table entry.
6100 (dwarf2out_finish): Call index_location_lists even if there are no
6101 addr_index_table entries yet.
6103 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
6105 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
6106 change for not being obvious.
6108 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
6110 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
6113 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6115 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
6116 (vcagt_f64): Likewise.
6117 (vcale_f64): Likewise.
6118 (vcaled_f64): Likewise.
6119 (vcales_f32): Likewise.
6120 (vcalt_f64): Likewise.
6121 (vcaltd_f64): Likewise.
6122 (vcalts_f32): Likewise.
6124 2014-07-01 Marek Polacek <polacek@redhat.com>
6126 * doc/invoke.texi: Document -Wint-conversion.
6128 2014-07-01 Marek Polacek <polacek@redhat.com>
6131 * doc/invoke.texi: Document -Wincompatible-pointer-types.
6133 2014-07-01 Martin Liska <mliska@suse.cz>
6135 IPA REF alias refactoring
6136 * cgraph.h (iterate_direct_aliases): New function.
6137 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
6138 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
6139 FOR_EACH_ALIAS added.
6140 (cgraph_for_node_and_aliases): Likewise.
6141 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
6142 * ipa-inline.c (reset_edge_caches): Likewise.
6143 (update_caller_keys): Likewise.
6144 * trans-mem.c (ipa_tm_execute): Likewise.
6145 *varpool.c (varpool_analyze_node): Likewise.
6146 (varpool_for_node_and_aliases): Likewise.
6147 * ipa-ref.h (first_alias): New function.
6148 (last_alias): Likewise.
6149 (has_aliases_p): Likewise.
6150 * ipa-ref.c (ipa_ref::remove_reference): Removal function
6151 is sensitive to IPA_REF_ALIASes.
6152 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
6153 are put at the beginning of the list.
6154 (symtab_node::iterate_direct_aliases): New function.
6156 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6159 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6161 (write_ts_type_common_tree_pointers): Do not stream fields not set
6162 for incomplete types; do not stream duplicated fields for variants;
6163 sanity check that variant and type match.
6164 (write_ts_type_non_common_tree_pointers): Likewise.
6165 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6166 TYPE_SIZE whether type is complete.
6167 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6168 write_ts_type_common_tree_pointers
6169 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6171 2014-06-30 Joseph Myers <joseph@codesourcery.com>
6173 * var-tracking.c (add_stores): Return instead of asserting if old
6174 and new values for conditional store are the same.
6176 2014-06-30 Richard Henderson <rth@redhat.com>
6180 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
6181 the cfg if there were any changes.
6182 * passes.def: Revert move of peephole2 after reorder_blocks;
6183 move duplicate_computed_gotos before peephole2.
6185 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
6187 * except.c (emit_note_eh_region_end): New helper function.
6188 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
6189 emit EH_REGION_END note.
6190 * jump.c (cleanup_barriers): Do not split a call and its
6191 corresponding CALL_ARG_LOCATION note.
6193 2014-06-30 Jeff Law <law@redhat.com>
6195 PR tree-optimization/61607
6196 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
6197 deeper into the SSA_NAME_VALUE chain.
6199 2014-06-30 Marek Polacek <polacek@redhat.com>
6201 * convert.c (convert_to_integer): Don't instrument conversions if the
6202 function has no_sanitize_undefined attribute.
6203 * ubsan.c: Don't run the ubsan pass if the function has
6204 no_sanitize_undefined attribute.
6206 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6208 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
6209 -fsanitize=undefined suboptions.
6211 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
6213 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
6214 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
6215 against bigendian and adjust indices.
6217 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6219 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
6221 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
6224 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
6225 Add alternative; make early clobber. Adjust both split patterns
6226 to use operand 0 as the working register.
6228 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6230 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
6231 as ira_object_id_map might be NULL, or 1.
6233 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6235 * loop-invariant.c (get_inv_cost): Handle register class.
6236 (gain_for_invariant): Check the register pressure of the inv
6237 and its overlapped register class, other than all.
6239 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6241 * doc/invoke.texi (Optimize Options): Fix descriptions of
6242 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
6244 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
6246 * doc/extend.texi (Function Attributes): Update 'naked' attribute
6249 2014-06-29 Tobias Grosser <tobias@grosser.es>
6252 * graphite-isl-ast-to-gimple.c: Add missing guards.
6254 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6256 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
6257 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
6258 * flag-types.h: Add new enum fgraphite_generator.
6259 * graphite-isl-ast-to-gimple.c: New.
6260 * graphite-isl-ast-to-gimple.h: New.
6261 * graphite.c (graphite_transform_loops): Add choice of Graphite
6262 code generator, which depends on flag_graphite_code_gen.
6264 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6266 * graphite-dependences.c (subtract_commutative_associative_deps):
6267 Add NULL checking of the following variables: must_raw_no_source,
6268 may_raw_no_source, must_war_no_source, may_war_no_source,
6269 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
6270 must_war, may_war, must_waw, may_waw.
6272 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6274 * graphite-clast-to-gimple.c: gloog is renamed to
6275 graphite_regenerate_ast_cloog. gloog_error is renamed to
6276 graphite_regenerate_error.
6277 * graphite-clast-to-gimple.h: The definition of the struct
6278 bb_pbb_def is moved to graphite-htab.h.
6279 Add inclusion of the hash-table.h.
6280 * graphite-htab.h: The declaration of the function gloog is moved
6281 to graphite-clast-to-gimple.h and renamed to
6282 graphite_regenerate_ast_cloog.
6283 * graphite.c (graphite_transform_loops): gloog is renamed
6284 to graphite_regenerate_ast_cloog.
6286 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6288 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6290 (write_ts_type_common_tree_pointers): Do not stream fields not set
6291 for incomplete types; do not stream duplicated fields for variants;
6292 sanity check that variant and type match.
6293 (write_ts_type_non_common_tree_pointers): Likewise.
6294 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6295 TYPE_SIZE whether type is complete.
6296 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6297 write_ts_type_common_tree_pointers
6298 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6300 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6302 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
6304 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6306 * tree-inline.c (remap_type_1): Do not duplicate fields
6307 that are shared in between type and its main variant.
6309 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6311 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
6313 (ipa_set_ancestor_jf) Likewise.
6314 (check_stmt_for_type_change): Check that we work on main variant.
6315 (detect_type_change): Look into main variant.
6316 (compute_known_type_jump_func): Check that main variant has BINFO.
6318 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6320 * ipa-devirt.c (set_type_binfo): New function.
6321 (add_type_duplicate): Use it.
6322 (get_odr_type): Sanity check that binfos points to main variants.
6323 (get_class_context): Be sure the context's outer_type is main variant.
6324 (contains_type_p): Walk main variant.
6325 (get_polymorphic_call_info_for_decl): Set outer_type to be
6327 (get_polymorphic_call_info): Likewise.
6328 (possible_polymorphic_call_targets): Sanity check that we operate
6331 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6333 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6335 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6337 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
6338 accidental change due to wide-int branch merge.
6340 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6342 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
6343 compressed debug support.
6344 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
6345 * configure: Regenerate.
6346 * config.in: Regenerate.
6347 * common.opt (compressed_debug_sections): New enum.
6348 (gz, gz=): New options.
6349 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
6350 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
6351 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
6352 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
6353 LINK_COMPRESS_DEBUG_SPEC.
6354 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
6355 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
6356 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
6357 (Debugging Options): Document -gz[=type].
6359 2014-06-27 Martin Jambor <mjambor@suse.cz>
6362 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
6363 args_to_skip, use those from node instead. Copy args_to_skip and
6364 combined_args_to_skip from node to the new thunk.
6365 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
6366 (cgraph_create_virtual_clone): Moved computation of
6367 combined_args_to_skip...
6368 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
6370 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
6372 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
6373 redundant diagnostic machinary.
6375 2014-06-27 Richard Biener <rguenther@suse.de>
6377 * tree-ssa-math-opts.c (bswap_replace): Fix
6378 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
6380 2014-06-27 Martin Liska <mliska@suse.cz>
6382 * gimple.h (gimple_location_safe): New function introduced.
6383 * cgraphunit.c (walk_polymorphic_call_targets): Usage
6384 of gimple_location_safe replaces gimple_location.
6385 (gimple_fold_call): Likewise.
6386 * ipa-devirt.c (ipa_devirt): Likewise.
6387 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6388 * ipa.c (walk_polymorphic_call_targets): Likewise.
6389 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6391 2014-06-27 Jakub Jelinek <jakub@redhat.com>
6393 PR tree-optimization/57233
6394 PR tree-optimization/61299
6395 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
6397 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
6398 would be lowered to scalar shifts, check if corresponding
6399 shifts and vector BIT_IOR_EXPR are supported and don't lower
6400 or lower just to narrower vector type in that case.
6401 * expmed.c (expand_shift_1): Fix up handling of vector
6404 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
6407 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
6409 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
6411 * doc/invoke.texi (-fsemantic-interposition): Document.
6412 * common.opt (fsemantic-interposition): New flag.
6413 * varasm.c (decl_replaceable_p): Use it.
6415 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6418 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
6419 extraction other than index 3.
6421 2014-06-26 Teresa Johnson <tejohnson@google.com>
6423 * doc/invoke.texi: Fix typo.
6424 * dumpfile.c: Add support for documented -fdump-* options
6425 optimized/missed/note/optall.
6427 2014-06-26 Martin Jambor <mjambor@suse.cz>
6429 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
6430 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
6431 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
6432 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
6433 * opts.c (default_options_optimization): Set
6434 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
6435 * doc/invoke.texi (allow-load-data-races)
6436 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
6437 (allow-store-data-races): Document the new default.
6439 2014-06-26 Martin Jambor <mjambor@suse.cz>
6441 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
6442 renamed to ipa_impossible_devirt_target. Fix typo.
6443 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
6444 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
6445 ipa_impossible_devirt_target.
6447 2014-06-26 Richard Biener <rguenther@suse.de>
6449 PR tree-optimization/61607
6450 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
6451 explaining why we restrict copies on loop depth.
6452 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6454 (record_equivalences_from_phis): Instead add it here.
6456 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
6458 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
6459 (LTO_WRAPPER_OBJS): New variable.
6460 (lto-wrapper$(exeext)): Use it.
6461 * collect2.c: Include "collect-utils.h".
6462 (verbose, debug): Remove variables.
6463 (at_file_supplied): No longer static.
6464 (tool_name): New variable.
6465 (do_wait, fork_execute, maybe_unlink): Don't declare.
6466 (tool_cleanup): No longer static.
6467 (notice): Remove function.
6468 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
6470 (collect_wait, do_wait, collect_execute): Remove functions.
6471 (maybe_unlink): No longer static.
6472 * collect2.h (verbose, debug): Don't declare.
6473 (at_file_supplied): Declare.
6474 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
6476 (collect_execute): Replace with implementation from collect2, plus a
6477 new arg use_atfile. All callers changed.
6478 (collect_wait): Replace with implementation from collect2.
6479 (maybe_unlink_file): Remove function.
6480 (fork_execute): Replace with implementation from collect2, plus a
6481 new arg use_atfile. All callers changed.
6482 (do_wait): Add call to utils_cleanup to the error path.
6483 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
6484 (tool_cleanup): Adjust declarations.
6485 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
6486 * tlink.c: Include "collect-utils.h".
6487 (tlink_execute): New arg use_atfile. All callers changed.
6488 (tlink_init, tlink_execute): Remove declarations.
6490 * collect-utils.c (save_temps): New variable.
6491 (do_wait): Use it instead of debug. Use fatal_error.
6492 * collect-utils.h (save_temps): Declare.
6493 * collect2.c (verbose): Rename from vflag. All uses changed.
6494 (tool_cleanup): New function, copied from collect_atexit.
6495 (collect_atexit, handler): Just call it.
6496 * collect2.h (verbose): Declaration renamed from vflag.
6497 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
6500 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
6501 (lto-wrapper$(exeext)): Link with collect-utils.o.
6502 * collect-utils.c: New file.
6503 * collect-utils.h: New file.
6504 * lto-wrapper.c: Include "collect-utils.h".
6505 (args_name): Delete variable.
6506 (tool_name): New variable.
6507 (tool_cleanup): New function.
6508 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
6509 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
6510 (fork_execute): Remove functions.
6512 2014-06-26 Nick Clifton <nickc@redhat.com>
6514 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
6516 * doc/extend.texi (Function Attributes): Fix typo in description
6517 of RX vector attribute.
6519 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6521 * config.gcc (supported_defaults): Error when passing either
6522 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
6524 2014-06-26 Richard Biener <rguenther@suse.de>
6526 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6527 propagating volatile pointers.
6529 2014-06-26 Richard Biener <rguenther@suse.de>
6531 PR tree-optimization/61607
6532 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
6533 loop if we redirected its latch edge.
6534 (thread_block_1): Do not cancel loops prematurely.
6536 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
6538 * toplev.c (backend_init_target): Move init_emit_regs and
6540 (backend_init) ... here; skip ira_init_once and backend_init_target.
6541 (target_reinit) ... and here; clear
6542 this_target_rtl->lang_dependent_initialized.
6543 (lang_dependent_init_target): Clear
6544 this_target_rtl->lang_dependent_initialized;
6545 break out rtl initialization to ...
6546 (initialize_rtl): ... here; call also backend_init_target
6548 * toplev.h (initialize_rtl): New function.
6549 * function.c: Include toplev.h
6550 (init_function_start): Call initialize_rtl.
6551 * rtl.h (target_rtl): Add target_specific_initialized,
6552 lang_dependent_initialized.
6554 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
6555 Jakub Jelinek <jakub@redhat.com>
6557 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
6559 2014-06-25 Tom de Vries <tom@codesourcery.com>
6561 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
6563 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6565 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
6566 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
6567 Issue a strict overflow warning if appropriate.
6569 2014-06-25 Martin Liska <mliska@suse.cz>
6572 * Makefile.in: Removed header file (ipa-ref-inline.h).
6573 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
6575 (cgraph_speculative_call_info): Likewise.
6576 (cgraph_for_node_thunks_and_aliases): Likewise.
6577 (cgraph_for_node_and_aliases): Likewise.
6578 (verify_cgraph_node): Likewise.
6579 * cgraph.h: Batch of IPA REF functions become member functions of
6580 symtab_node: add_reference, maybe_add_reference, clone_references,
6581 clone_referring, clone_reference, find_reference,
6582 remove_stmt_references, remove_all_references,
6583 remove_all_referring, dump_references, dump_referring,
6584 has_alias_p, iterate_reference, iterate_referring.
6585 * cgraphbuild.c (record_reference): New IPA REF function used.
6586 (record_type_list): Likewise.
6587 (record_eh_tables): Likewise.
6588 (mark_address): Likewise.
6589 (mark_load): Likewise.
6590 (mark_store): Likewise.
6591 (pass_build_cgraph_edges): Likewise.
6592 (rebuild_cgraph_edge): Likewise.
6593 (cgraph_rebuild_references): Likewise.
6594 (pass_remove_cgraph_callee_edges): Likewise.
6595 * cgraphclones.c (cgraph_clone_node): Likewise.
6596 (cgraph_create_virtual_clone): Likewise.
6597 (cgraph_materialize_clone): Likewise.
6598 (cgraph_materialize_all_clones): Likewise.
6599 * cgraphunit.c (cgraph_reset_node): Likewise.
6600 (cgraph_reset_node): Likewise.
6601 (analyze_function): Likewise.
6602 (assemble_thunks_and_aliases): Likewise.
6603 (expand_function): Likewise.
6604 * ipa-comdats.c (propagate_comdat_group): Likewise.
6605 (enqueue_references): Likewise.
6606 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
6607 (create_specialized_node): Likewise.
6608 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
6609 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
6610 * ipa-inline.c (reset_edge_caches): Likewise.
6611 (update_caller_keys): Likewise.
6612 (execute): Likewise.
6613 * ipa-prop.c (remove_described_reference): Likewise.
6614 (propagate_controlled_uses): Likewise.
6615 (ipa_edge_duplication_hook): Likewise.
6616 (ipa_modify_call_arguments): Likewise.
6617 * ipa-pure-const.c (propagate_pure_const): Likewise.
6618 * ipa-ref-inline.h: Header file removed, functions moved
6619 to symtab_node class.
6620 * ipa-ref.c (remove_reference): New class member function.
6621 (cannot_lead_to_return): New class member function.
6622 (referring_ref_list): Likewise.
6623 (referred_ref_list): Likewise.
6624 Rest of functions moved to symtab_node class.
6625 * ipa-ref.h: New member functions remove_reference,
6626 cannot_lead_to_return, referring_ref_list, referred_ref_list added
6628 ipa_ref_list class has new member functions: first_reference,
6629 first_referring, clear, nreferences.
6630 * ipa-reference.c (analyze_function): New IPA REF function used.
6631 (write_node_summary_p): Likewise.
6632 (ipa_reference_write_optimization_summary): Likewise.
6633 * ipa-split.c (split_function): Likewise.
6634 * ipa-utils.c (ipa_reverse_postorder): Likewise.
6635 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
6636 (function_and_variable_visibility): Likewise.
6637 * ipa.c (has_addr_references_p): Likewise.
6638 (process_references): Argument type changed.
6639 (symtab_remove_unreachable_nodes): New IPA REF function used.
6640 (process_references): Likewise.
6641 (set_writeonly_bit): Likewise.
6642 * lto-cgraph.c: Implementation of new symtab_node member functions
6643 that uses new IPA REF functions.
6644 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
6646 * lto-streamer-out.c (output_symbol_p): Likewise.
6647 * lto-streamer.h (referenced_from_this_partition_p): Argument type
6649 * symtab.c: Implementation of new IPA REF API.
6650 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
6651 (ipa_tm_create_version): Likewise.
6652 (ipa_tm_execute): Likewise.
6653 * tree-emutls.c (gen_emutls_addr): Likewise.
6654 * tree-inline.c (copy_bb): Likewise.
6655 (delete_unreachable_blocks_update_callgraph): Likewise.
6656 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
6657 (varpool_for_node_and_aliases): Likewise.
6659 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6661 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
6663 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6666 * fold-const.c (fold_checksum_tree): Use a hash_table of const
6667 tree_node * instead of tree_node *.
6669 (print_fold_checksum): Likewise.
6670 (fold_check_failed): Likewise.
6671 (debug_fold_checksum): Likewise.
6672 (fold_build1_stat_loc): Likewise.
6673 (fold_build2_stat_loc): Likewise.
6674 (fold_build3_stat_loc): Likewise.
6675 (fold_build_call_array_loc): Likewise.
6677 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
6679 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
6680 implementation with call to...
6681 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
6683 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
6686 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
6688 PR tree-optimization/57742
6689 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
6690 after replacing the statement.
6692 2014-06-25 Nick Clifton <nickc@redhat.com>
6694 * config/v850/v850.c (GHS_default_section_names): Change to const
6696 (GHS_current_section_names): Likewise.
6697 (v850_insert_attributes): Do not build strings, just assign the
6698 names directly. Change the type of 'chosen_section' to const
6700 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
6701 directly to the array entry.
6702 * config/v850/v850.h (GHS_default_section_names): Change to const
6704 (GHS_current_section_names): Likewise.
6706 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6708 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
6709 (LANG_HOOKS_DECLS): Add it.
6710 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
6712 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
6713 * langhooks.h (struct lang_hooks_for_decls): Add
6714 omp_clause_linear_ctor hook.
6715 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
6716 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
6717 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
6718 combined simd loop use omp_clause_linear_ctor hook.
6720 2014-06-24 Cong Hou <congh@google.com>
6722 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6723 pattern recognition.
6724 (type_conversion_p): PROMOTION is true if it's a type promotion
6725 conversion, and false otherwise. Return true if the given expression
6726 is a type conversion one.
6727 * tree-vectorizer.h: Adjust the number of patterns.
6728 * tree.def: Add SAD_EXPR.
6729 * optabs.def: Add sad_optab.
6730 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6731 * expr.c (expand_expr_real_2): Likewise.
6732 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6733 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6734 * optabs.c (optab_for_tree_code): Likewise.
6735 * tree-cfg.c (estimate_operator_cost): Likewise.
6736 * tree-ssa-operands.c (get_expr_operands): Likewise.
6737 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6738 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6739 * doc/generic.texi: Add document for SAD_EXPR.
6740 * doc/md.texi: Add document for ssad and usad.
6742 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6744 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6745 qualification in cast.
6747 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6749 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6750 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6751 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6752 (tree_function_decl): ... here.
6753 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6754 streaming of vindex to ...
6755 (write_ts_function_decl_tree_pointers): ... here.
6756 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6757 Do not stream DECL_VINDEX.
6758 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6760 2014-06-24 Catherine Moore <clm@codesourcery.com>
6761 Sandra Loosemore <sandra@codesourcery.com>
6763 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6764 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6765 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6767 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6769 * doc/invoke.texi (Warning Options): Remove duplicated
6770 -Wmaybe-uninitialized.
6772 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6774 PR tree-optimization/57742
6775 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6776 (handle_builtin_malloc, handle_builtin_memset): New functions.
6777 (strlen_optimize_stmt): Call them.
6778 * passes.def: Move strlen after loop+dom but before vrp.
6780 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6783 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6784 model family 6 CPU with has_longmode never use a CPU without
6787 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6790 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6793 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6795 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6796 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6798 * hash-map.h: New file.
6799 * ipa-comdats.c: Use hash_map instead of pointer_map.
6801 * lto-section-out.c: Adjust.
6802 * lto-streamer.h: Replace pointer_map with hash_map.
6803 * symtab.c (verify_symtab): Likewise.
6804 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6805 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6806 * tree-streamer.h: Likewise.
6807 * tree-streamer.c: Adjust.
6808 * pointer-set.h: Remove pointer_map.
6810 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6812 * hash-table.h: Add a template arg to choose between storing values
6813 and storing pointers to values, and then provide partial
6814 specializations for both.
6815 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6816 should store, not the type values should point to.
6817 * tree-into-ssa.c (var_info_hasher): Likewise.
6818 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6819 * tree-complex.c: Adjust.
6820 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6821 table instead of int_tree_map *.
6822 * tree-parloops.c: Adjust.
6823 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6824 type is being stored.
6825 * tree-vectorizer.c: Adjust.
6827 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6829 * hash-table.h: Remove a layer of indirection from hash_table so that
6830 it contains the hash table's data instead of a pointer to the data.
6831 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6832 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6833 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6834 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6835 fold-const.c, gcse.c, ggc-common.c,
6836 gimple-ssa-strength-reduction.c, gimplify.c,
6837 graphite-clast-to-gimple.c, graphite-dependences.c,
6838 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6839 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6840 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6841 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6842 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6843 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6844 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6845 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6846 tree-ssa-live.c, tree-ssa-loop-im.c,
6847 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6848 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6849 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6850 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6851 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6852 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6853 vtable-verify.c, vtable-verify.h: Adjust.
6855 2014-06-24 Richard Biener <rguenther@suse.de>
6857 PR tree-optimization/61572
6858 * tree-ssa-sink.c (statement_sink_location): Do not sink
6859 loads from hard registers.
6861 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6863 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6864 not mentioned in clauses use private clause if the iterator is
6865 declared in #pragma omp for simd, and when adding lastprivate
6866 instead, add it to the outer #pragma omp for too. Diagnose
6867 if the variable is private in outer context. For simd collapse > 1
6868 loops, replace all iterators with temporaries.
6869 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6870 same even in collapse > 1 loops.
6872 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6873 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6875 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6876 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6878 (gimplify_adjust_omp_clauses): Likewise.
6879 * omp-low.c (lower_rec_simd_input_clauses,
6880 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6881 safelen the same as safelen(1).
6882 * tree-nested.c (convert_nonlocal_omp_clauses,
6883 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6884 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6885 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6886 Fixup handling of GIMPLE_OMP_TARGET.
6887 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6890 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6892 PR tree-optimization/61554
6893 * tree-ssa-propagate.c: Include "bitmap.h".
6894 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6895 properly update constructor/destructor.
6896 (substitute_and_fold_dom_walker::before_dom_children):
6897 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6898 need_eh_cleaup instead.
6899 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6902 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6904 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6905 * tree-pass.h (make_pass_ipa_single_use): New pass.
6906 * cgraph.h (used_by_single_function): New flag.
6907 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6909 * passes.def (pass_ipa_single_use): Scedule.
6910 * ipa.c (BOTTOM): New macro.
6911 (meet): New function
6912 (propagate_single_user): New function.
6913 (ipa_single_use): New function.
6914 (pass_data_ipa_single_use): New pass.
6915 (pass_ipa_single_use): New pass.
6916 (pass_ipa_single_use::gate): New gate.
6917 (make_pass_ipa_single_use): New function.
6919 2014-06-23 Kai Tietz <ktietz@redhat.com>
6922 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6923 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6925 2014-06-23 Richard Biener <rguenther@suse.de>
6927 * tree-ssa-loop.c (gate_loop): New function.
6928 (pass_tree_loop::gate): Call it.
6929 (pass_data_tree_no_loop, pass_tree_no_loop,
6930 make_pass_tree_no_loop): New.
6931 * tree-vectorizer.c: Include tree-scalar-evolution.c
6932 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6934 (pass_slp_vectorize::clone): New method.
6935 * timevar.def (TV_TREE_NOLOOP): New.
6936 * tree-pass.h (make_pass_tree_no_loop): Declare.
6937 * passes.def (pass_tree_no_loop): New pass group with
6940 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6943 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6944 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6946 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6948 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6951 2014-06-23 Alan Modra <amodra@gmail.com>
6954 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6955 to zero on debug statements.
6957 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6960 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6961 Ignore third operand if present by marking qualifier_internal.
6963 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6965 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6967 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6968 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6969 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6970 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6971 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6972 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6973 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6974 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6975 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6976 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6977 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6978 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6979 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6980 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6981 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6982 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6983 logic in GCC vector extensions
6985 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6986 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6987 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6988 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6989 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6990 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6991 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6992 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6993 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6994 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6996 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6998 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
7001 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
7002 (vget_low_s64): Use __GET_LOW macro.
7003 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
7004 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
7005 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
7006 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
7007 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
7009 (vcombine_s64): Use GCC vector extensions; remove cast.
7010 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
7011 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
7012 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
7013 Fix type signature; remove cast.
7015 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
7018 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
7020 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
7023 (BUILTIN_VD_RE): Remove.
7024 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
7025 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
7026 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
7028 (vreinterpretv1df*, vreinterpret*v1df): New.
7029 (vreinterpretdf*, vreinterpret*df): Remove.
7030 * config/aarch64/aarch64-simd.md (aarch64_create,
7031 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
7032 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
7034 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
7035 (vcreate_f64): Remove cast, use v1df builtin.
7036 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
7037 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
7038 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
7039 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
7040 vmov_n_f64, vst1_f64): Use gcc vector extensions.
7041 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
7042 add range check using __builtin_aarch64_im_lane_boundsi.
7043 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
7044 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
7045 type signature, use gcc vector extensions.
7046 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
7047 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
7048 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
7049 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
7050 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
7051 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
7052 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
7053 vreinterpret_u64_f64): Use v1df builtin not df.
7055 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
7057 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
7060 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
7062 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
7065 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7067 * loop-invariant.c (pre_check_invariant_p): New function.
7068 (find_invariant_insn): Call pre_check_invariant_p.
7070 2014-06-22 Richard Henderson <rth@redhat.com>
7073 * compare-elim.c (struct comparison): Add eh_note.
7074 (find_comparison_dom_walker::before_dom_children): Don't eliminate
7075 a redundant comparison in a different EH region. Purge EH edges if
7078 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7080 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
7081 (var_shift): Use it.
7082 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
7083 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
7084 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
7085 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
7086 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
7087 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
7088 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
7089 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
7090 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
7091 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
7092 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
7093 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
7094 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
7095 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
7096 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
7097 *rotldi3_internal15be): Use the new attribute. Merge register and
7098 integer alternatives.
7100 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7102 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
7103 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
7104 split, *ashrdi3_internal3 and split): Delete, merge into...
7105 (ashr<mode>3): New expander.
7106 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
7107 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
7109 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7111 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
7112 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
7113 *rotldi3_internal3 and split): Delete, merge into...
7114 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
7115 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
7116 Use "rotlw" extended mnemonic.
7118 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7120 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
7121 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
7122 and split, *ashldi3_internal3 and split): Delete, merge into...
7123 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
7124 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
7126 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7128 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
7129 (lshrsi3, two anonymous define_insns and define_splits,
7130 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
7131 *lshrdi3_internal3 and split): Delete, merge into...
7132 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
7133 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
7135 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7137 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
7138 Remove "O" alternative.
7140 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
7142 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
7143 (mips_move_from_gpr_cost): Likewise.
7144 (mips_register_move_cost): Update accordingly.
7145 (mips_secondary_reload_class): Remove name of in_p.
7147 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
7150 * config/i386/i386.md (x86_64_shrd, x86_shrd,
7151 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
7153 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7155 * config/nios2/nios2.c: Include "builtins.h".
7157 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7159 * cgraph.h (tls_model_names): New variable.
7160 * print-tree.c (print_node): Simplify.
7161 * varpool.c (tls_model_names): New variable.
7162 (dump_varpool_node): Output tls model.
7164 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7166 * ipa-visibility.c (function_and_variable_visibility): Disable
7167 temporarily local aliases for some targets.
7169 2014-06-20 Marek Polacek <polacek@redhat.com>
7171 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
7172 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
7173 into SANITIZE_UNDEFINED.
7174 * doc/invoke.texi: Describe -fsanitize=bounds.
7175 * gimplify.c (gimplify_call_expr): Add gimplification of internal
7176 functions created in the FEs.
7177 * internal-fn.c: Move "internal-fn.h" after "tree.h".
7178 (expand_UBSAN_BOUNDS): New function.
7179 * internal-fn.def (UBSAN_BOUNDS): New internal function.
7180 * internal-fn.h: Don't define internal functions here.
7181 * opts.c (common_handle_option): Add -fsanitize=bounds.
7182 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
7183 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
7184 * tree-core.h: Define internal functions here.
7185 (struct tree_base): Add ifn field.
7186 * tree-pretty-print.c: Include "internal-fn.h".
7187 (dump_generic_node): Handle functions without CALL_EXPR_FN.
7188 * tree.c (get_callee_fndecl): Likewise.
7189 (build_call_expr_internal_loc): New function.
7190 * tree.def (CALL_EXPR): Update description.
7191 * tree.h (CALL_EXPR_IFN): Define.
7192 (build_call_expr_internal_loc): Declare.
7193 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
7195 (ubsan_type_descriptor): Change bool parameter to enum
7196 ubsan_print_style. Adjust the code. Add handling of
7198 (ubsan_expand_bounds_ifn): New function.
7199 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
7200 (ubsan_build_overflow_builtin): Likewise.
7201 (instrument_bool_enum_load): Likewise.
7202 (ubsan_instrument_float_cast): Likewise.
7203 * ubsan.h (enum ubsan_print_style): New enum.
7204 (ubsan_expand_bounds_ifn): Declare.
7205 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
7207 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
7209 * config/rs6000/rs6000.md: Append `DONE' to preparation
7210 statements of `bswap' pattern splitters.
7212 2014-06-20 Tom de Vries <tom@codesourcery.com>
7214 * target.def (call_fusage_contains_non_callee_clobbers): Update
7216 * doc/tm.texi: Regenerate.
7218 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7219 Max Ostapenko <m.ostapenko@partner.samsung.com>
7222 * asan.c (instrument_strlen_call): Fixed instrumentation of
7225 2014-06-20 Martin Jambor <mjambor@suse.cz>
7228 * ipa-prop.c (impossible_devirt_target): New function.
7229 (try_make_edge_direct_virtual_call): Use it, also instead of
7232 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7233 Max Ostapenko <m.ostapenko@partner.samsung.com>
7236 * asan.c (build_check_stmt): Add condition.
7238 2014-06-20 Martin Jambor <mjambor@suse.cz>
7241 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
7244 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7246 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
7248 (VCONQ): Make comment more helpful.
7250 * config/aarch64/aarch64-simd.md
7251 (aarch64_sqdmulh_lane<mode>):
7252 Use VCOND for operands 2. Update lane checking and flipping logic.
7253 (aarch64_sqrdmulh_lane<mode>): Likewise.
7254 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
7255 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
7256 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
7257 attribute of operand 3 to VCOND.
7258 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
7259 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7260 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
7261 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
7262 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7263 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
7265 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
7266 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
7267 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
7268 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
7269 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
7270 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
7271 operand to VCOND. Update lane flipping and bounds checking logic.
7272 (aarch64_sqdmlal2_lane<mode>): Likewise.
7273 (aarch64_sqdmlsl_lane<mode>): Likewise.
7274 (aarch64_sqdmull_lane<mode>): Likewise.
7275 (aarch64_sqdmull2_lane<mode>): Likewise.
7276 (aarch64_sqdmlal_laneq<mode>):
7277 Replace VCON usage with VCONQ.
7278 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
7279 (aarch64_sqdmlal2_laneq<mode>): Emit
7280 aarch64_sqdmlal2_laneq<mode>_internal insn.
7281 Replace VCON with VCONQ.
7282 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
7283 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7284 (aarch64_sqdmull_laneq<mode>): Emit
7285 aarch64_sqdmull_laneq<mode>_internal insn.
7286 Replace VCON with VCONQ.
7287 (aarch64_sqdmull2_laneq<mode>): Emit
7288 aarch64_sqdmull2_laneq<mode>_internal insn.
7289 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
7290 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
7291 of 3rd argument to int16x4_t.
7292 (vqdmlalh_lane_s16): Likewise.
7293 (vqdmlslh_lane_s16): Likewise.
7294 (vqdmull_high_lane_s16): Likewise.
7295 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
7296 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
7297 (vqdmlsl_lane_s16): Likewise.
7298 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
7299 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
7300 (vqdmlals_lane_s32): Likewise.
7301 (vqdmlsls_lane_s32): Likewise.
7302 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
7303 (vqdmulls_lane_s32): Likewise.
7304 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
7305 (vqdmlsl_lane_s32): Likewise.
7306 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
7307 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
7308 (vqrdmulhh_lane_s16): Likewise.
7309 (vqdmlsl_high_lane_s16): Likewise.
7310 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
7311 (vqdmlsl_high_lane_s32): Likewise.
7312 (vqrdmulhs_lane_s32): Likewise.
7314 2014-06-20 Tom de Vries <tom@codesourcery.com>
7316 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
7317 get_call_reg_set_usage.
7319 2014-06-20 Tom de Vries <tom@codesourcery.com>
7321 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
7322 it contains all call_used_regs.
7324 2014-06-20 Tom de Vries <tom@codesourcery.com>
7326 * final.c (collect_fn_hard_reg_usage): Add and use variable
7329 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7331 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
7332 (set_init_priority, get_init_priority, set_fini_priority,
7333 get_fini_priority): New methods.
7334 * tree.c (init_priority_for_decl): Remove.
7335 (init_ttree): Do not initialize init priority.
7336 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
7337 (decl_priority_info): Remove.
7338 (decl_init_priority_insert): Rewrite.
7339 (decl_fini_priority_insert): Rewrite.
7340 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
7341 tree_priority_map_marked_p): Remove.
7342 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
7343 * lto-streamer-out.c (hash_tree): Do not hash priorities.
7344 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
7345 not output priorities.
7346 (pack_ts_function_decl_value_fields): Likewise.
7347 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7348 not input priorities.
7349 (unpack_ts_function_decl_value_fields): Likewise.
7350 * symtab.c (symbol_priority_map): Declare.
7351 (init_priority_hash): Declare.
7352 (symtab_unregister_node): Unregister from priority hash, too.
7353 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
7355 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
7356 (symbol_priority_info): New function.
7357 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
7359 * tree-core.h (tree_priority_map): Remove.
7361 2014-06-20 Jakub Jelinek <jakub@redhat.com>
7363 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
7364 0xff to uint64_t before shifting it up.
7366 2014-06-20 Julian Brown <julian@codesourcery.com>
7367 Chung-Lin Tang <cltang@codesourcery.com>
7369 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
7370 TARGET_THUMB1_ONLY. Add comments.
7372 2014-06-19 Tom de Vries <tom@codesourcery.com>
7374 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
7375 return type to void.
7376 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
7378 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7380 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
7381 as "move", from depends_on.
7383 2014-06-19 Terry Guo <terry.guo@arm.com>
7385 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7388 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7390 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
7392 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
7394 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
7397 * config/sh/sh.c (prepare_move_operands): Don't process TLS
7398 addresses here if reload in progress or completed.
7400 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7402 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
7403 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
7404 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
7405 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
7406 (mips_register_priority): New function that implements the target
7407 hook TARGET_REGISTER_PRIORITY.
7408 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
7409 (mips_lra_p): Likewise for TARGET_LRA_P.
7410 (TARGET_REGISTER_PRIORITY): Define macro.
7411 (TARGET_SPILL_CLASS): Likewise.
7412 (TARGET_LRA_P): Likewise.
7413 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
7415 (REG_CLASS_NAMES): Likewise.
7416 (REG_CLASS_CONTENTS): Likewise.
7417 (BASE_REG_CLASS): Use M16_SP_REGS.
7418 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
7419 New set attribute to enable alternatives depending on the register
7421 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
7422 (*lea64): Disable pattern for MIPS16.
7423 * config/mips/mips.opt (mlra): New option.
7425 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7427 * lra-constraints.c (base_to_reg): New function.
7428 (process_address): Use new function.
7430 2014-06-18 Tom de Vries <tom@codesourcery.com>
7432 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
7433 * config/aarch64/aarch64.c
7434 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
7435 (aarch64_emit_call_insn): New function.
7436 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
7438 * config/aarch64/aarch64.md (define_expand "call_internal")
7439 (define_expand "call_value_internal", define_expand "sibcall_internal")
7440 (define_expand "sibcall_value_internal"): New.
7441 (define_expand "call", define_expand "call_value")
7442 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
7443 expand variant and aarch64_emit_call_insn.
7445 2014-06-18 Radovan Obradovic <robradovic@mips.com>
7446 Tom de Vries <tom@codesourcery.com>
7448 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
7449 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7451 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
7452 clobbers to CALL_INSN_FUNCTION_USAGE.
7453 (define_expand "sibcall_internal")
7454 (define_expand "sibcall_value_internal"): New.
7455 (define_expand "call", define_expand "call_value"): Add argument to
7457 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
7458 (define_expand "sibcall_value"): Use sibcall_value_internal and
7461 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7463 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
7465 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7467 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
7470 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7472 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
7473 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
7474 annotations. Fix DWARF information.
7476 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7478 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
7479 __udivmoddi4, and fixups for negative operands.
7481 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7483 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
7485 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7487 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
7490 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7492 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
7495 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7497 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
7498 describing register usage on function entry and exit.
7500 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7502 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
7503 (__aeabi_ldivmod): Fix whitespace.
7505 2014-06-18 Andreas Schwab <schwab@suse.de>
7507 * doc/md.texi (Standard Names): Use @itemx for grouped items.
7508 Remove blank line after @item.
7510 2014-06-18 Richard Henderson <rth@redhat.com>
7513 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
7515 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7517 * config/arm/arm.c (neon_vector_mem_operand): Allow register
7518 POST_MODIFY for neon loads and stores.
7519 (arm_print_operand): Output post-index register for neon loads and
7522 2014-06-18 Richard Biener <rguenther@suse.de>
7524 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
7526 2014-06-18 Richard Biener <rguenther@suse.de>
7528 * tree-pass.h (make_pass_dce_loop): Remove.
7529 * passes.def: Replace pass_dce_loop with pass_dce.
7530 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
7531 changed free niter estimates and reset the scev cache.
7532 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
7533 make_pass_dce_loop): Remove.
7534 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
7535 (fini_copy_prop): Return whether something changed. Always
7536 let substitute_and_fold perform DCE and free niter estimates
7537 and reset the scev cache if so.
7538 (execute_copy_prop): If sth changed schedule cleanup-cfg.
7539 (pass_data_copy_prop): Do not unconditionally schedule
7540 cleanup-cfg or update-ssa.
7542 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7544 PR tree-optimization/61518
7545 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
7546 reduction var is used in reduction stmt or phi-function only.
7548 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7550 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
7552 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7554 PR tree-optimization/61517
7555 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
7556 whose rhs's first tree is the source expression instead of the
7558 (find_bswap_or_nop): Likewise.
7559 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
7560 gimple stmt whose rhs's first tree is the source. In the memory source
7561 case, move the stmt to be replaced close to one of the original load to
7562 avoid the problem of a store between the load and the stmt's original
7564 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
7567 2014-06-18 Andreas Schwab <schwab@suse.de>
7569 PR rtl-optimization/54555
7570 * postreload.c (move2add_use_add2_insn): Substitute
7571 STRICT_LOW_PART only if it is cheaper.
7573 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
7575 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
7576 Do not use unspec as call operand. Use memory_operand instead of
7577 memory_nox32_operand and add "m" operand constraint. Disable
7578 pattern for TARGET_X32.
7579 (*sibcall_pop_memory): Ditto.
7580 (*sibcall_value_memory): Ditto.
7581 (*sibcall_value_pop_memory): Ditto.
7582 (sibcall peepholes): Merge SImode and DImode patterns using
7583 W mode iterator. Use memory_operand instead of memory_nox32_operand.
7584 Disable pattern for TARGET_X32. Check if eliminated register is
7585 really dead after call insn. Generate call RTX without unspec operand.
7586 (sibcall_value peepholes): Ditto.
7587 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
7588 instead of memory_nox32_operand. Check if eliminated register is
7589 really dead after call insn. Generate call RTX without unspec operand.
7590 (sibcall_value_pop peepholes): Ditto.
7591 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
7593 2014-06-18 Terry Guo <terry.guo@arm.com>
7596 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
7599 2014-06-18 Olivier Hainque <hainque@adacore.com>
7601 * tree-core.h (tree_block): Add an "end_locus" field, allowing
7602 memorization of the end of block source location.
7603 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
7604 * gimplify.c (gimplify_bind_expr): Propagate the block start and
7605 end source location info we have on the block entry/exit code we
7608 2014-06-18 Richard Biener <rguenther@suse.de>
7610 * common.opt (fssa-phiopt): New option.
7611 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
7613 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
7614 * doc/invoke.texi (-fssa-phiopt): Document.
7616 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7618 * genattrtab.c (n_bypassed): New variable.
7619 (process_bypasses): Initialise n_bypassed.
7620 Count number of bypassed reservations.
7621 (make_automaton_attrs): Allocate space for bypassed reservations
7622 rather than number of bypasses.
7624 2014-06-18 Richard Biener <rguenther@suse.de>
7626 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
7627 we propagated anything.
7628 (substitute_and_fold_dom_walker::before_dom_children): Something
7629 changed if we propagated into PHI arguments.
7630 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
7633 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
7635 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
7637 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
7638 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
7639 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
7640 Introduces alternative way of loads group permutaions.
7641 (vect_transform_grouped_load): Try alternative way of permutations.
7643 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7645 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
7646 changed in ORT_TARGET region, don't jump to do_outer.
7647 (struct gimplify_adjust_omp_clauses_data): New type.
7648 (gimplify_adjust_omp_clauses_1): Adjust for data being
7649 a struct gimplify_adjust_omp_clauses_data pointer instead
7650 of tree *. Pass pre_p as a new argument to
7651 lang_hooks.decls.omp_finish_clause hook.
7652 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
7653 splay_tree_foreach to pass both list_p and pre_p.
7654 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
7655 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
7656 gimplify_adjust_omp_clauses callers.
7657 * langhooks.c (lhd_omp_finish_clause): New function.
7658 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
7659 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
7660 * langhooks.h (struct lang_hooks_for_decls): Add a new
7661 gimple_seq * argument to omp_finish_clause hook.
7662 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
7663 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
7664 (scan_omp_parallel, lower_omp_for): When adding
7665 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
7666 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
7667 * tree-nested.c (convert_nonlocal_omp_clauses,
7668 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
7669 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
7671 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
7673 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
7674 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
7676 2014-06-17 Xinliang David Li <davidxl@google.com>
7678 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
7679 * passes.c (pass_init_dump_file): Do not set initialize
7680 flag to false unconditionally.
7682 2014-06-17 Richard Biener <rguenther@suse.de>
7684 * genopinit.c (main): Use vec<>::qsort method.
7685 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7687 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
7689 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
7691 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
7692 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
7693 (mips_move_to_gpr_cost): Remove ST_REGS case.
7694 (mips_move_from_gpr_cost): Likewise.
7695 (mips_register_move_cost): Likewise.
7696 (mips_secondary_reload_class): Likewise.
7698 2014-06-17 Richard Biener <rguenther@suse.de>
7700 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
7701 (pass_all_optimizations): Move 3rd copy-prop pass from after
7702 fre to before ifcombine/phiopt.
7704 2014-06-17 Richard Biener <rguenther@suse.de>
7706 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
7707 and allow all blocks to be forwarders.
7709 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
7712 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
7713 variable 'size'; calculate 'size' right in the front; use
7714 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
7715 pcum->aapcs_stack_words.
7717 2014-06-17 Nick Clifton <nickc@redhat.com>
7719 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
7720 (umulhi3, mulsidi3, umulsidi3): Likewise.
7722 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7725 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7726 check for section name.
7728 2014-06-17 Richard Biener <rguenther@suse.de>
7730 * tree-ssa-propagate.c: Include domwalk.h.
7731 (substitute_and_fold): Outline main worker into a domwalker ...
7732 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7733 Schedule stmts we can fully propagate for removal. Remove
7735 (substitute_and_fold): Apply a dominator walk to perform
7736 substitution. Process stmts scheduled for removal here.
7738 2014-06-17 Richard Biener <rguenther@suse.de>
7740 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7743 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7745 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7746 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7747 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7748 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7749 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7751 (get_fpscr) : Likewise.
7753 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7755 PR rtl-optimization/61325
7756 * lra-constraints.c (valid_address_p): Add forward declaration.
7757 (simplify_operand_subreg): Check address validity before and after
7758 alter_reg of memory subreg.
7760 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7762 * config/i386/i386.c (decide_alg): Correctly handle
7763 maximum size of stringop algorithm.
7765 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7767 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7769 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7771 PR rtl-optimization/61522
7772 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7774 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7777 * symtab.c (symtab_node::reset_section): New method.
7778 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7780 * cgraph.h (reset_section): Declare.
7781 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7782 do not consider comdat locals.
7783 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7785 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7786 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7787 reset sections of symbols dragged out of the comdats.
7788 (function_and_variable_visibility): Reset sections of
7791 2014-06-16 Richard Biener <rguenther@suse.de>
7793 PR tree-optimization/61482
7794 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7795 [-INF(OVF), +INF(OVF)] range.
7797 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7799 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7800 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7801 handling 32-bit multiplication.
7803 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7806 * lra-lives.c (process_bb_lives): Skip creating copy during
7807 insn scan when src/dest has constrained to same regno.
7809 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7811 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7812 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7814 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7816 * asan.c (check_func): New function.
7817 (maybe_create_ssa_name): Likewise.
7818 (build_check_stmt_with_calls): Likewise.
7819 (use_calls_p): Likewise.
7820 (report_error_func): Change interface.
7821 (build_check_stmt): Allow non-integer lengths; add support
7823 (asan_instrument): Likewise.
7824 (instrument_mem_region_access): Moved code to build_check_stmt.
7825 (instrument_derefs): Likewise.
7826 (instrument_strlen_call): Likewise.
7827 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7828 * doc/invoke.texi: Describe new parameter.
7829 * params.def: Define new parameter.
7830 * params.h: Likewise.
7831 * sanitizer.def: Describe new builtins.
7833 2014-06-16 Richard Biener <rguenther@suse.de>
7835 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7836 Make all defs available at the end.
7837 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7839 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7842 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7844 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7847 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7848 initialization. Replace remaining use of uid.
7850 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7852 * c-family/c-common.c (handle_tls_model_attribute): Use
7854 * c-family/c-common.c (handle_tls_model_attribute): Use
7856 * cgraph.h (struct varpool_node): Add tls_model.
7857 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7858 * tree.h (DECL_TLS_MODEL): Update.
7859 (DECL_THREAD_LOCAL_P): Check that variable is static.
7860 (decl_tls_model): Declare.
7861 (set_decl_tls_model): Declare.
7862 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7863 set symbol prorperties.
7864 (get_emutls_init_templ_addr): Cleanup.
7865 (new_emutls_decl): Update.
7866 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7867 (lto_input_varpool_node): Likewise.
7868 * lto-streamer-out.c (hash_tree): Likewise.
7869 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7870 not stream DECL_TLS_MODEL.
7871 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7872 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7874 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7876 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7878 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7880 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7881 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7883 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7884 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7885 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7886 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7887 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7888 (df_get_artificial_defs, df_get_artificial_uses)
7889 (df_single_def, df_single_use): Update accordingly.
7890 (df_refs_chain_dump): Take the first element in a linked list as
7891 parameter, rather than a pointer to an array of pointers.
7892 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7893 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7894 (df_chain_create_bb_process_use): Likewise.
7895 (df_md_bb_local_compute_process_def): Likewise.
7896 * fwprop.c (process_defs, process_uses): Likewise.
7897 (register_active_defs, update_uses): Likewise.
7898 (forward_propagate_asm): Update for new df_ref linking.
7899 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7900 (df_null_ref_rec, df_null_mw_rec): Likewise.
7901 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7903 (df_scan_free_bb_info): Remove check for null artificial_defs.
7904 (df_install_ref_incremental): Adjust for new df_ref linking.
7905 Use a single-element insertion rather than a full sort.
7906 (df_ref_chain_delete_du_chain): Take the first element
7907 in a linked list as parameter, rather than a pointer to an array of
7909 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7910 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7911 (df_insn_info_delete): Remove check for null defs and call to
7912 df_scan_free_mws_vec.
7913 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7914 null rather than df_null_*_rec.
7915 (df_insn_rescan_debug_internal): Likewise, and update null
7916 checks in the same way. Remove check for null defs.
7917 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7918 Move a single element rather doing a full sort.
7919 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7921 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7922 Initialize df_ref and df_mw_hardreg lists to null rather than
7924 (df_ref_compare): Take df_refs as parameter, transferring the
7926 (df_ref_ptr_compare): ...this new function.
7927 (df_sort_and_compress_refs): Update accordingly.
7928 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7930 (df_mw_ptr_compare): ...this new function.
7931 (df_sort_and_compress_mws): Update accordingly.
7932 (df_install_refs, df_install_mws): Return a linked list rather than
7933 an array of pointers.
7934 (df_refs_add_to_chains): Assert that old lists are empty rather
7936 (df_insn_refs_verify): Don't handle null defs speciailly.
7937 * web.c (union_match_dups): Update for new df_ref linking.
7939 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7941 * df.h (df_ref_create, df_ref_remove): Delete.
7942 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7943 (df_ref_remove): Likewise.
7945 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7947 * df.h (df_single_def, df_single_use): New functions.
7948 * ira.c (find_moveable_pseudos): Use them.
7950 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7952 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7953 * df-problems.c (df_note_bb_compute): Use it.
7954 * regstat.c (regstat_bb_compute_ri): Likewise.
7956 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7958 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7959 * cse.c (cse_extended_basic_block): Use them.
7960 * dce.c (mark_artificial_use): Likewise.
7961 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7962 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7963 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7964 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7965 (df_simulate_initialize_backwards): Likewise.
7966 (df_simulate_finalize_backwards): Likewise.
7967 (df_simulate_initialize_forwards): Likewise.
7968 (df_md_simulate_artificial_defs_at_top): Likewise.
7969 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7970 * regrename.c (init_rename_info): Likewise.
7971 * regstat.c (regstat_bb_compute_ri): Likewise.
7972 (regstat_bb_compute_calls_crossed): Likewise.
7974 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7976 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7977 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7978 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7979 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7980 * combine.c (create_log_links): Likewise.
7981 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7982 (try_eliminate_compare): Likewise.
7983 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7984 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7985 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7986 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7987 (word_dce_process_block, dce_process_block): Likewise.
7988 * ddg.c (def_has_ccmode_p): Likewise.
7989 * df-core.c (df_bb_regno_first_def_find): Likewise.
7990 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7991 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7992 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7993 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7994 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7995 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7996 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7997 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7998 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7999 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
8000 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
8001 * fwprop.c (local_ref_killed_between_p): Likewise.
8002 (all_uses_available_at, free_load_extend): Likewise.
8003 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
8004 * hw-doloop.c (scan_loop): Likewise.
8005 * ifcvt.c (dead_or_predicable): Likewise.
8006 * init-regs.c (initialize_uninitialized_regs): Likewise.
8007 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
8008 (process_bb_node_lives): Likewise.
8009 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
8010 (find_moveable_pseudos): Likewise.
8011 * loop-invariant.c (check_dependencies, record_uses): Likewise.
8012 * recog.c (peep2_find_free_register): Likewise.
8013 * ree.c (get_defs): Likewise.
8014 * regstat.c (regstat_bb_compute_ri): Likewise.
8015 (regstat_bb_compute_calls_crossed): Likewise.
8016 * sched-deps.c (find_inc, find_mem): Likewise.
8017 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
8018 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
8019 * shrink-wrap.c (requires_stack_frame_p): Likewise.
8020 (prepare_shrink_wrap): Likewise.
8021 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
8022 * web.c (union_defs, pass_web::execute): Likewise.
8023 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
8024 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
8026 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
8028 * lra-assign.c (assign_by_spills): Add code to assign vector regs
8029 to inheritance pseudos.
8030 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
8032 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
8035 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
8036 (BU_MISC_2): Rename to ...
8037 (BU_LDBL128_2): ... this.
8038 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
8039 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
8040 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
8042 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
8043 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
8044 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
8045 (unpacktf_1): Likewise.
8046 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
8047 (__builtin_longdouble_dw1): Likewise.
8048 * doc/sourcebuild.texi (longdouble128): Document.
8050 2014-06-13 Jeff Law <law@redhat.com>
8052 PR rtl-optimization/61094
8053 PR rtl-optimization/61446
8054 * ree.c (combine_reaching_defs): Get the mode for the copy from
8055 the extension insn rather than the defining insn.
8057 2014-06-13 Dehao Chen <dehao@google.com>
8059 * dwarf2out.c (add_linkage_name): Emit more linkage name.
8061 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
8063 * doc/install.texi (--enable-linker-plugin-configure-flags)
8064 (--enable-linker-plugin-flags): Document new flags.
8066 2014-06-13 Martin Jambor <mjambor@suse.cz>
8069 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
8070 cache_token if returning early.
8072 2014-06-13 Nick Clifton <nickc@redhat.com>
8074 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
8075 requested alignment is active.
8076 (LABEL_ALIGN): Likewise.
8077 (LOOP_ALIGN): Likewise.
8079 2014-06-13 Richard Biener <rguenther@suse.de>
8081 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8082 Rewrite to propagate the VN result into all uses where
8083 possible and to remove stmts becoming dead because of that.
8084 (eliminate): Generalize stmt removal handling, remove in
8085 reverse dominator order to support proper debug stmt
8086 generation. Update stmts before removing stmts.
8087 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
8089 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8091 PR tree-optimization/61375
8092 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
8093 symbolic number cannot be represented in an uint64_t.
8094 (find_bswap_or_nop_1): Likewise.
8096 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
8098 * symtab.c (symtab_node::reset_section): New method.
8099 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
8101 * cgraph.h (reset_section): Declare.
8102 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
8103 do not consider comdat locals.
8104 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
8106 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
8107 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
8108 reset sections of symbols dragged out of the comdats.
8109 (function_and_variable_visibility): Reset sections of
8112 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
8114 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
8115 to use symtab and decl_binds_to_current_def_p
8116 * tree-vectorizer.c (increase_alignment): Increase alignment
8117 of alias target, too.
8119 2014-06-12 Jakub Jelinek <jakub@redhat.com>
8122 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
8123 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
8124 if outer combined construct is distribute.
8125 (gimplify_omp_for): For OMP_DISTRIBUTE set
8126 gimplify_omp_ctxp->distribute.
8127 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
8128 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
8129 mapping into decl map.
8131 2014-06-12 Jason Merrill <jason@redhat.com>
8133 * common.opt (fabi-version): Change default to 0.
8135 2014-06-12 Jason Merrill <jason@redhat.com>
8137 * toplev.c (process_options): Reject -fabi-version=1.
8139 2014-06-12 Jeff Law <law@redhat.com>
8141 PR tree-optimization/61009
8142 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
8143 value when we stop processing a block due to problematic PHIs.
8145 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
8147 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
8148 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
8149 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
8150 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
8151 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
8152 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
8153 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
8154 are not in the spec.
8156 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
8159 * config/aarch64/aarch64-modes.def: Add V1DFmode.
8160 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
8163 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
8165 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
8167 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
8170 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
8171 loading from address spaces.
8173 2014-06-12 Martin Liska <mliska@suse.cz>
8176 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
8177 statement is reachable.
8179 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8181 * symtab.c (section_hash): New hash.
8182 (symtab_unregister_node): Clear section before freeing.
8183 (hash_section_hash_entry): New haser.
8184 (eq_sections): New function.
8185 (symtab_node::set_section_for_node): New method.
8186 (set_section_1): Update.
8187 (symtab_node::set_section): Take string instead of tree as parameter.
8188 (symtab_resolve_alias): Update.
8189 * cgraph.h (section_hash_entry_d): New structure.
8190 (section_hash_entry): New typedef.
8191 (cgraph_node): Change comdat_group_ to x_comdat_group,
8192 change section_ to x_section and turn into section_hash_entry;
8193 update accestors; put set_section_for_node offline.
8194 * tree.c (decl_section_name): Turn into string.
8195 (set_decl_section_name): Change parameter to be string.
8196 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
8197 * sdbout.c (sdbout_one_type): Update.
8198 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
8199 * varasm.c (IN_NAMED_SECTION, get_named_section,
8200 resolve_unique_section, hot_function_section, get_named_text_section,
8201 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
8202 make_decl_rtl, default_unique_section): Update.
8203 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
8204 (c6x_elf_unique_section): Update.
8205 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
8206 * config/pa/pa.c (pa_function_section): Update.
8207 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
8208 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
8209 * config/arc/arc.c (arc_in_small_data_p): Update.
8210 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
8211 * config/mcore/mcore.c (mcore_unique_section): Update.
8212 * config/mips/mips.c (mips16_build_function_stub): Update.
8213 (mips16_build_call_stub): Update.
8214 (mips_function_rodata_section): Update.
8215 (mips_in_small_data_p): Update.
8216 * config/score/score.c (score_in_small_data_p): Update.
8217 * config/rx/rx.c (rx_in_small_data): Update.
8218 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
8219 (rs6000_xcoff_asm_named_section): Update.
8220 (rs6000_xcoff_unique_section): Update.
8221 * config/frv/frv.c (frv_string_begins_with): Update.
8222 (frv_in_small_data_p): Update.
8223 * config/v850/v850.c (v850_encode_data_area): Update.
8224 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
8225 (bfin_handle_l1_data_attribute): Update.
8226 (bfin_handle_l2_attribute): Update.
8227 * config/mep/mep.c (mep_unique_section): Update.
8228 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
8230 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
8231 (h8300_handle_tiny_data_attribute): Update.
8232 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
8233 (m32r_in_small_data_p): Update.
8234 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
8235 * config/i386/i386.c (ix86_in_large_data_p): Update.
8236 * config/i386/winnt.c (i386_pe_unique_section): Update.
8237 * config/darwin.c (darwin_function_section): Update.
8238 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
8239 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8240 (new_emutls_decl): Update.
8241 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
8242 input_varpool_node): Update.
8243 (ead_string_cst): Turn to ...
8244 (read_string): ... this one.
8245 * dwarf2out.c (secname_for_decl): Update.
8246 * asan.c (asan_protect_global): Update.
8248 2014-06-11 DJ Delorie <dj@redhat.com>
8250 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
8252 * config/rx/rx.c (rx_option_override): Likewise.
8253 (rx_align_for_label): Likewise.
8255 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
8257 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
8259 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
8262 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8264 * common.md: New file.
8265 * doc/md.texi: Update description of generic, machine-independent
8267 * config/s390/constraints.md (e): Delete.
8268 * Makefile.in (md_file): Include common.md.
8269 * config/m32c/t-m32c (md_file): Likewise.
8270 * genpreds.c (general_mem): New array.
8271 (generic_constraint_letters): Remove constraints now defined by
8273 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8274 Allow the first character to be '<' or '>' as well.
8275 * genoutput.c (general_mem): New array.
8276 (indep_constraints): Remove constraints now defined by common.md.
8277 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8278 Remove special handling of 'm'.
8279 * ira-costs.c (record_reg_classes): Remove special handling of
8280 constraints now defined by common.md.
8281 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8282 * ira-lives.c (single_reg_class): Likewise.
8283 (ira_implicitly_set_insn_hard_regs): Likewise.
8284 * lra-constraints.c (reg_class_from_constraints): Likewise.
8285 (process_alt_operands, process_address, curr_insn_transform): Likewise.
8286 * postreload.c (reload_cse_simplify_operands): Likewise.
8287 * reload.c (push_secondary_reload, scratch_reload_class)
8288 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8289 * reload1.c (maybe_fix_stack_asms): Likewise.
8290 * targhooks.c (default_secondary_reload): Likewise.
8291 * stmt.c (parse_output_constraint): Likewise.
8292 * recog.c (preprocess_constraints): Likewise.
8293 (constrain_operands, peep2_find_free_register): Likewise.
8294 (asm_operand_ok): Likewise, but add a comment saying why 'o'
8295 must be handled specially.
8297 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8299 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
8300 * genpreds.c (have_const_dbl_constraints): Delete.
8301 (add_constraint): Don't set it.
8302 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
8303 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
8304 constraints using the lookup_constraint logic.
8305 * ira-lives.c (single_reg_class): Likewise.
8306 * ira.c (ira_setup_alts): Likewise.
8307 * lra-constraints.c (process_alt_operands): Likewise.
8308 * recog.c (asm_operand_ok, constrain_operands): Likewise.
8309 * reload.c (find_reloads): Likewise.
8311 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8313 * genpreds.c (const_int_start, const_int_end): New variables.
8314 (choose_enum_order): Output CONST_INT constraints before memory
8316 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
8318 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
8319 * ira.c (ira_setup_alts): Likewise.
8320 * lra-constraints.c (process_alt_operands): Likewise.
8321 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8322 * reload.c (find_reloads): Likewise.
8324 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8326 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
8327 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
8328 * recog.c (preprocess_constraints): Update accordingly.
8330 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8332 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
8333 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
8334 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
8335 * genpreds.c (print_type_tree): New function.
8336 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
8337 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
8338 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
8339 Write out enum constraint_type and get_constraint_type.
8340 * lra-constraints.c (satisfies_memory_constraint_p): Take a
8341 constraint_num rather than a constraint string.
8342 (satisfies_address_constraint_p): Likewise.
8343 (reg_class_from_constraints): Avoid old constraint macros.
8344 (process_alt_operands, process_address_1): Likewise.
8345 (curr_insn_transform): Likewise.
8346 * ira-costs.c (record_reg_classes): Likewise.
8347 (record_operand_costs): Likewise.
8348 * ira-lives.c (single_reg_class): Likewise.
8349 (ira_implicitly_set_insn_hard_regs): Likewise.
8350 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8351 * postreload.c (reload_cse_simplify_operands): Likewise.
8352 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8353 (constrain_operands, peep2_find_free_register): Likewise.
8354 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
8355 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8356 * reload1.c (maybe_fix_stack_asms): Likewise.
8357 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8358 * targhooks.c (default_secondary_reload): Likewise.
8359 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
8360 to EXTRA_CONSTRAINT_STR.
8361 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
8363 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8365 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
8366 (write_constraint_satisfied_p_array): ...this new function.
8367 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
8369 (write_insn_preds_c): Update accordingly.
8371 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8373 * genpreds.c (write_lookup_constraint): Rename to...
8374 (write_lookup_constraint_1): ...this.
8375 (write_lookup_constraint_array): New function.
8376 (write_tm_preds_h): Define lookup_constraint as an inline function
8377 that uses write_lookup_constraint_array where possible.
8378 (write_insn_preds_c): Update for the changes above.
8380 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8382 * doc/md.texi (regclass_for_constraint): Rename to...
8383 (reg_class_for_constraint): ...this.
8384 * genpreds.c (num_constraints, enum_order, register_start)
8385 (register_end, satisfied_start, memory_start, memory_end)
8386 (address_start, address_end): New variables.
8387 (add_constraint): Count the number of constraints.
8388 (choose_enum_order): New function.
8389 (write_enum_constraint_num): Iterate over enum_order.
8390 (write_regclass_for_constraint): Rename to...
8391 (write_reg_class_for_constraint_1): ...this and update output
8393 (write_constraint_satisfied_p): Rename to...
8394 (write_constraint_satisfied_p_1): ...this and update output
8395 accordingly. Do nothing if all extra constraints are register
8397 (write_insn_extra_memory_constraint): Delete.
8398 (write_insn_extra_address_constraint): Delete.
8399 (write_range_function): New function.
8400 (write_tm_preds_h): Define constraint_satisfied_p and
8401 reg_class_for_constraint as inline functions that do a range check
8402 before calling the out-of-line function. Use write_range_function
8403 to implement insn_extra_{register,memory,address}_constraint,
8404 the first of which is new.
8405 (write_insn_preds_c): Update after above changes to write_* functions.
8406 (main): Call choose_enum_order.
8408 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
8410 PR tree-optimization/61306
8411 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
8412 expression instead of its size.
8413 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
8414 false to prevent optimization when the result is unpredictable due to
8415 arithmetic right shift of signed type with highest byte is set.
8416 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
8417 (init_symbolic_number): Likewise.
8418 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
8419 when the result is unpredictable due to sign extension.
8421 2014-06-11 Terry Guo <terry.guo@arm.com>
8423 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
8424 (*thumb1_addsi3): Ditto.
8425 (*thumb_subdi3): Ditto.
8426 (thumb1_subsi3_insn): Ditto.
8427 (*thumb_mulsi3): Ditto.
8428 (*thumb_mulsi3_v6): Ditto.
8429 (*thumb1_andsi3_insn): Ditto.
8430 (thumb1_bicsi3): Ditto.
8431 (*thumb1_iorsi3_insn): Ditto.
8432 (*thumb1_xorsi3_insn): Ditto.
8433 (*thumb1_ashlsi3): Ditto.
8434 (*thumb1_ashrsi3): Ditto.
8435 (*thumb1_lshrsi3): Ditto.
8436 (*thumb1_rotrsi3): Ditto.
8437 (*thumb1_negdi2): Ditto.
8438 (*thumb1_negsi2): Ditto.
8439 (*thumb1_abssi2): Ditto.
8440 (*thumb1_neg_abssi2): Ditto.
8441 (*thumb1_one_cmplsi2): Ditto.
8442 (*thumb1_zero_extendhisi2): Ditto.
8443 (*thumb1_zero_extendqisi2): Ditto.
8444 (*thumb1_zero_extendqisi2_v6): Ditto.
8445 (thumb1_extendhisi2): Ditto.
8446 (thumb1_extendqisi2): Ditto.
8447 (*thumb1_movdi_insn): Ditto.
8448 (*thumb1_movsi_insn): Ditto.
8449 (*thumb1_movhi_insn): Ditto.
8450 (thumb_movhi_clobber): Ditto.
8451 (*thumb1_movqi_insn): Ditto.
8452 (*thumb1_movhf): Ditto.
8453 (*thumb1_movsf_insn): Ditto.
8454 (*thumb_movdf_insn): Ditto.
8457 (cbranchqi4): Ditto.
8458 (cbranchsi4_insn): Ditto.
8459 (cbranchsi4_scratch): Ditto.
8460 (*negated_cbranchsi4): Ditto.
8461 (*tbit_cbranch): Ditto.
8462 (*tlobits_cbranch): Ditto.
8463 (*tstsi3_cbranch): Ditto.
8464 (*cbranchne_decr1): Ditto.
8465 (*addsi3_cbranch): Ditto.
8466 (*addsi3_cbranch_scratch): Ditto.
8467 (*thumb_cmpdi_zero): Ditto.
8468 (cstoresi_eq0_thumb1): Ditto.
8469 (cstoresi_ne0_thumb1): Ditto.
8470 (*cstoresi_eq0_thumb1_insn): Ditto.
8471 (*cstoresi_ne0_thumb1_insn): Ditto.
8472 (cstoresi_nltu_thumb1): Ditto.
8473 (cstoresi_ltu_thumb1): Ditto.
8474 (thumb1_addsi3_addgeu): Ditto.
8475 (*thumb_jump): Ditto.
8476 (*call_reg_thumb1_v5): Ditto.
8477 (*call_reg_thumb1): Ditto.
8478 (*call_value_reg_thumb1_v5): Ditto.
8479 (*call_value_reg_thumb1): Ditto.
8480 (*call_insn): Ditto.
8481 (*call_value_insn): Ditto.
8482 (thumb1_casesi_internal_pic): Ditto.
8483 (thumb1_casesi_dispatch): Ditto.
8484 (*thumb1_indirect_jump): Ditto.
8485 (prologue_thumb1_interwork): Ditto.
8486 (*epilogue_insns): Ditto.
8487 (consttable_1): Ditto.
8488 (consttable_2): Ditto.
8490 (*thumb1_tablejump): Ditto.
8491 (thumb_eh_return): Ditto.
8492 (define_peephole2): Two of them are thumb1 only and got moved into
8494 (define_split): Six of them are thumb1 only and got moved into new
8496 * config/arm/thumb1.md: New file comprised of above thumb1 only
8499 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8501 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
8502 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
8504 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
8505 (aarch64_crc_builtin_datum): New struct.
8506 (aarch64_crc_builtin_data): New.
8507 (aarch64_init_crc32_builtins): New function.
8508 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
8509 (aarch64_crc32_expand_builtin): New.
8510 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
8511 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8512 __ARM_FEATURE_CRC32 when appropriate.
8513 (TARGET_CRC32): Define.
8514 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
8515 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
8516 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
8517 (aarch64_<crc_variant>): New pattern.
8518 * config/aarch64/arm_acle.h: New file.
8519 * config/aarch64/iterators.md (CRC): New int iterator.
8520 (crc_variant, crc_mode): New int attributes.
8521 * doc/aarch64-acle-intrinsics.texi: New file.
8522 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
8523 Include aarch64-acle-intrinsics.texi.
8525 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
8527 * tree-vect-data-refs.c (vect_grouped_store_supported): New
8528 check for stores group of length 3.
8529 (vect_permute_store_chain): New permutations for stores group of
8531 * tree-vect-stmts.c (vect_model_store_cost): Change cost
8532 of vec_perm_shuffle for the new permutations.
8534 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8536 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
8537 table rewriting temporarily on targets not supporting ONE_ONLY.
8539 2014-06-11 Richard Biener <rguenther@suse.de>
8543 2014-06-04 Richard Biener <rguenther@suse.de>
8545 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8546 TREE_PUBLIC and DECL_EXTERNAL decls.
8548 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8550 * varasm.c (set_implicit_section): New function.
8551 (resolve_unique_section): Use it to set implicit section
8553 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
8554 (default_function_section): Likewise.
8555 (decl_binds_to_current_def_p): Constify argument.
8556 * varasm.h (decl_binds_to_current_def_p): Update prototype.
8557 * asan.c (asan_protect_global): Use
8558 symtab_get_node (decl)->implicit_section.
8559 * symtab.c (dump_symtab_base): Dump implicit sections.
8560 (verify_symtab_base): Verify sanity of sectoins and comdats.
8561 (symtab_resolve_alias): Alias share the section of its target.
8562 (set_section_1): New function.
8563 (symtab_node::set_section): Move here, recurse to aliases.
8564 (verify_symtab): Check for duplicated symtab lists.
8565 * tree-core.h (implicit_section_name_p): Remove.
8566 * tree-vect-data-refs.c: Include varasm.h.
8567 (vect_can_force_dr_alignment_p): Fix conditional on when
8568 decl bints to current definition; use
8569 symtab_get_node (decl)->implicit_section.
8570 * cgraph.c (cgraph_make_node_local_1): Fix section set.
8571 * cgraph.h (struct symtab_node): Add implicit_section.
8572 (set_section): Rename to ...
8573 (set_section_for_node): ... this one.
8574 (set_section): Declare.
8575 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
8576 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8577 input_overwrite_node, input_varpool_node): Stream implicit_section.
8578 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
8579 removal; it will fail in LTO.
8581 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8583 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
8584 Change second alternative type to f_mcr.
8585 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
8586 and 12th alternatives' types to f_mcr and f_mrc.
8587 (*movdi_aarch64): Same for 12th and 13th alternatives.
8588 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
8589 (aarch64_movtilow_tilow): Change type to fmov.
8591 2014-06-10 Jiong Wang <jiong.wang@arm.com>
8593 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
8594 (aarch64_save_or_restore_callee_save_registers): Fix layout.
8596 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8598 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
8600 (aarch64_sqrdmulh_lane<mode>): Likewise.
8601 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8602 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8603 (aarch64_sqdmulh_laneq<mode>): New expander.
8604 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8605 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
8606 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
8607 (aarch64_sqdmulh_lane<mode>): New expander.
8608 (aarch64_sqrdmulh_lane<mode>): Likewise.
8609 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8610 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8611 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
8612 (aarch64_sqdmlal_laneq<mode>): Likewise.
8613 (aarch64_sqdmlsl_lane<mode>): Likewise.
8614 (aarch64_sqdmlsl_laneq<mode>): Likewise.
8615 (aarch64_sqdmlal2_lane<mode>): Likewise.
8616 (aarch64_sqdmlal2_laneq<mode>): Likewise.
8617 (aarch64_sqdmlsl2_lane<mode>): Likewise.
8618 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8619 (aarch64_sqdmull_lane<mode>): Likewise.
8620 (aarch64_sqdmull_laneq<mode>): Likewise.
8621 (aarch64_sqdmull2_lane<mode>): Likewise.
8622 (aarch64_sqdmull2_laneq<mode>): Likewise.
8624 2014-06-10 Richard Biener <rguenther@suse.de>
8626 PR tree-optimization/61438
8627 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
8628 (eliminate_dom_walker::before_dom_children): Only try to inhibit
8629 insertion of IVs if running PRE.
8630 (eliminate): Adjust.
8631 (pass_pre::execute): Likewise.
8632 (pass_fre::execute): Likewise.
8634 2014-06-10 Richard Biener <rguenther@suse.de>
8637 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8638 Do not use the main variant for the type comparison.
8639 (ncr_compar): Likewise.
8640 (nonoverlapping_component_refs_p): Likewise.
8642 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
8644 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
8645 REG_CFA_RESTORE mode.
8647 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
8649 * config/i386/i386.c (expand_vec_perm_pblendv): New.
8650 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
8651 expand_vec_perm_pblendv.
8653 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8655 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
8657 Simplify description of __crc32d and __crc32cd intrinsics.
8658 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
8661 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
8664 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
8665 * config.in: Regenerate.
8666 * configure: Likewise.
8668 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8670 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
8672 (intersect_static_var_sets): Remove.
8673 (propagate): Do not prune local statics.
8675 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8678 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
8679 Set lastprivate_firstprivate even if omp_private_outer_ref
8680 langhook returns true.
8681 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
8682 langhook, call unshare_expr on new_var and call
8683 build_outer_var_ref to get the last argument.
8685 2014-06-10 Marek Polacek <polacek@redhat.com>
8688 * doc/extend.texi: Add cindex for transparent_union.
8690 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
8692 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
8693 init_symbolic_number ().
8695 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
8698 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
8699 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
8700 (verify_rtl_sharing): Likewise.
8702 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
8705 * tree.c (build_qualified_type): Use a canonical type for
8708 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8710 * config/arm/arm-modes.def: Remove XFmode.
8712 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
8715 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
8716 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
8717 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
8718 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
8719 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
8720 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8721 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8722 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8723 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8725 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8727 * tree-core.h (tree_decl_with_vis): Remove section_name.
8729 2014-06-09 Kito Cheng <kito@0xlab.org>
8731 * ira.c (ira): Don't call init_caller_save if LRA enabled
8732 since LRA use its own infrastructure to handle that.
8734 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8736 * symtab.c (dump_symtab_base): Update dumping.
8737 (symtab_make_decl_local): Clear only DECL_COMDAT.
8738 * tree-vect-data-refs.c (Check that variable is static before
8739 tampering with sections.
8740 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8741 (cgraph_create_virtual_clone): Likewise.
8742 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8743 (decl_section_name, set_decl_section_name): New accessors.
8744 (find_decls_types_r): Do not walk section name
8745 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8746 (decl_comdat_group, decl_comdat_group_id): Constify.
8747 (decl_section_name, set_decl_section_name): Update.
8748 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8749 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8750 (cgraph_make_node_local_1): Clear section and comdat group.
8751 * cgraph.h (set_comdat_group): Sanity check.
8752 (get_section, set_section): New.
8753 * ipa-comdats.c (ipa_comdats): Use get_section.
8754 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8755 * lto-streamer-out.c: Do not follow section names.
8756 * c-family/c-common.c (handle_section_attribute): Update.
8757 * lto-cgraph.c (lto_output_node): Output section.
8758 (lto_output_varpool_node): Likewise.
8759 (read_comdat_group): Rename to ...
8760 (read_identifier): ... this one.
8761 (read_string_cst): New function.
8762 (input_node, input_varpool_node): Input section names.
8763 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8764 (new_emutls_decl): Update.
8765 (secname_for_decl): Check section names only of static vars.
8766 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8767 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8768 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8769 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8770 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8771 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8772 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8773 * config/v850/v850.c (v850_insert_attributes): Likewise.
8774 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8776 (h8300_handle_tiny_data_attribute): Likewise.
8777 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8778 (bfin_handle_l2_attribute): Likewise.
8780 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8782 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8783 remove static initializer.
8785 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8787 * varasm.c (use_blocks_for_decl_p): Check symbol table
8788 instead of alias attribute.
8789 (place_block_symbol): Recurse on aliases.
8791 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8793 * ipa-visibility.c: Include varasm.h
8794 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8796 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8798 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8801 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8803 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8804 from test_insn into GGC space escape via SET_SRC.
8806 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8808 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8809 call statement, if any.
8810 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8811 statements, if any. Tidy up.
8813 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8816 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8817 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8818 handles swapping the two 64-bit double words on little endian
8819 systems. Include V1TImode and optionally TImode in VSX_LE so that
8820 these types are properly swapped. Change all of the insns and
8821 splits that do the 64-bit swaps to use VSX_LE.
8822 (vsx_le_perm_load_<mode>): Likewise.
8823 (vsx_le_perm_store_<mode>): Likewise.
8824 (splitters for little endian memory operations): Likewise.
8825 (vsx_xxpermdi2_le_<mode>): Likewise.
8826 (vsx_lxvd2x2_le_<mode>): Likewise.
8827 (vsx_stxvd2x2_le_<mode>): Likewise.
8829 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8832 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8833 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8834 and corresponding splitters. Zero extend general register
8835 or memory input operand to XMM temporary. Enable for
8836 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8837 (floatunssi<mode>2): Update expander predicate.
8839 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8841 PR rtl-optimization/61325
8842 * lra-constraints.c (process_address_1): Check scale equal to one
8843 to prevent transformation: base + scale * index => base + new_reg.
8845 2014-06-06 Richard Biener <rguenther@suse.de>
8847 PR tree-optimization/59299
8848 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8850 (nearest_common_dominator_of_uses): Likewise.
8851 (statement_sink_location): Adjust. Support sinking loads.
8853 2014-06-06 Martin Jambor <mjambor@suse.cz>
8855 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8856 (build_agg_jump_func_from_list): Likewise.
8857 (determine_known_aggregate_parts): Renamed to
8858 determine_locally_known_aggregate_parts. Moved some functionality
8859 to the two functions above, removed bound checks.
8861 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8863 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8864 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8865 (aarch64_progress_pointer): Likewise.
8866 (aarch64_copy_one_part_and_move_pointers): Likewise.
8867 (aarch64_expand_movmen): Likewise.
8868 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8869 * config/aarch64/aarch64.md (movmem<mode>): New.
8871 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8873 * targhooks.c (default_add_stmt_cost): Call target specific
8874 hook instead of default one.
8876 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8878 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8879 endianness instead of host endianness.
8880 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8883 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8886 * function.c (instantiate_decls): Process the saved static chain.
8887 (expand_function_start): If not optimizing, save the static chain
8889 * tree-nested.c (convert_all_function_calls): Always create the static
8890 chain for nested functions if not optimizing.
8892 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8894 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8896 2014-06-06 Richard Biener <rguenther@suse.de>
8898 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8899 (construct_init_block): Likewise.
8900 (construct_exit_block): Likewise.
8901 (pass_expand::execute): Likewise.
8902 * graphite.c (graphite_transforms): Replace check for current_loops
8903 with a check for > 1 loops.
8904 (pass_graphite_transforms::execute): Adjust.
8905 * ipa-split.c (split_function): Remove check for current_loops.
8906 * omp-low.c (expand_parallel_call): Likewise.
8907 (expand_omp_for_init_counts): Likewise.
8908 (extract_omp_for_update_vars): Likewise.
8909 (expand_omp_for_generic): Likewise.
8910 (expand_omp_sections): Likewise.
8911 (expand_omp_target): Likewise.
8912 * tracer.c (tail_duplicate): Likewise.
8913 (pass_tracer::execute): Likewise.
8914 * trans-mem.c (expand_transaction): Likewise.
8915 * tree-complex.c (expand_complex_div_wide): Likewise.
8916 * tree-eh.c (lower_resx): Likewise.
8917 (cleanup_empty_eh_merge_phis): Likewise.
8918 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8919 current_loops with a check for > 1 loops.
8920 (pass_predcom::execute): Adjust.
8921 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8922 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8923 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8924 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8925 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8926 * tree-switch-conversion.c (process_switch): Likewise.
8927 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8928 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8929 (execute_vrp): Likewise.
8930 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8932 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8934 * rtl.h (insn_location): Declare.
8935 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8936 with UNKNOWN_LOCATION.
8937 * emit-rtl.c (insn_location): New function.
8938 * final.c (notice_source_line): Check that the instruction has a
8939 location before retrieving it and use insn_location.
8940 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8941 * print-rtl.c (print_rtx): Likewise.
8943 2014-06-06 Richard Biener <rguenther@suse.de>
8945 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8947 2014-06-06 Christian Bruel <christian.bruel@st.com>
8949 PR tree-optimization/43934
8950 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8953 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8955 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8956 return NO_REGS for extra address and memory constraints. Handle
8957 operands that match (or are equivalent to something that matches)
8958 extra constant constraints. Ignore other non-register operands.
8960 2014-06-06 Alan Modra <amodra@gmail.com>
8963 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8964 * doc/tm.texi: Regenerate.
8965 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8966 Use throughout in place of REG_PARM_STACK_SPACE.
8967 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8968 "incoming" param. Pass to rs6000_function_parms_need_stack.
8969 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8970 prototype_p when incoming. Use function decl when incoming
8971 to handle K&R style functions.
8972 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8973 (INCOMING_REG_PARM_STACK_SPACE): Define.
8975 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8978 * cfgexpand.c (expand_debug_expr): Use address space of nested
8979 TREE_TYPE for ADDR_EXPR and MEM_REF.
8981 2014-06-05 Jeff Law <law@redhat.com>
8983 PR tree-optimization/61289
8984 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8985 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8986 looking for those which match LHS. All callers changed.
8987 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8988 parameters and code which manipulated them. All callers changed.
8989 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8990 and DST_MAP parameters. Simplify invalidation code by just calling
8991 invalidate_equivalences. All callers changed.
8992 (thread_across_edge): Simplify now that we don't need to maintain
8993 the map of equivalences to invalidate.
8995 2014-06-05 Kai Tietz <ktietz@redhat.com>
8996 Richard Henderson <rth@redhat.com>
8999 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
9000 checking for !TARGET_X32.
9001 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
9002 (sibcall_intern): New define_insn, plus required peepholes.
9003 (sibcall_pop_intern): Likewise.
9004 (sibcall_value_intern): Likewise.
9005 (sibcall_value_pop_intern): Likewise.
9007 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
9009 * tree-inline.c (tree_function_versioning): Check DF info existence
9010 before accessing it.
9012 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9014 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
9016 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
9017 aarch64_frame hard_fp_offset and frame_size.
9018 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
9019 frame_size; remove original_frame_size.
9020 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
9021 (aarch64_initial_elimination_offset): Remove frame_size and
9022 offset. Use aarch64_frame frame_size.
9024 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9025 Jiong Wang <jiong.wang@arm.com>
9026 Renlin <renlin.li@arm.com>
9028 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
9029 initialization of R30 offset. Update offset. Iterate core
9030 regisers upto X30. Remove X29, X30 specific code.
9032 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9033 Jiong Wang <jiong.wang@arm.com>
9035 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
9036 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
9037 (aarch64_register_saved_on_entry): Adjust test.
9039 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9041 * config/aarch64/aarch64.h (machine_function): Move
9042 saved_varargs_size from here...
9043 (aarch64_frame): ... to here.
9045 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9046 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
9047 (aarch64_initial_elimination_offset)
9048 (aarch64_setup_incoming_varargs): Adjust location of
9051 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9053 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
9056 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
9057 Prachi Godbole <Prachi.Godbole@imgtec.com>
9059 * config/mips/mips-cpus.def: Add definition for p5600. Updated
9060 mips32r5 entry to use PROCESSOR_P5600.
9061 * config/mips/mips-tables.opt: Regenerate.
9062 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
9063 * config/mips/mips.c (mips_fmadd_bypass): New function.
9064 (mips_rtx_cost_data): Add costs for p5600.
9065 (mips_issue_rate): Add support for p5600.
9066 (mips_multipass_dfa_lookahead): Likewise.
9067 * config/mips/mips.h (TUNE_P5600): New define.
9068 (TUNE_MACC_CHAINS): Add TUNE_P5600.
9069 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
9070 * config/mips/mips.md: Include p5600.md.
9071 (processor): Add p5600.
9072 * config/mips/p5600.md: New file.
9074 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
9076 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
9077 * config/i386/predicates.md (palignr_operand): New.
9078 Indicates if permutation is suitable for palignr instruction.
9080 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
9082 PR tree-optimization/61319
9083 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
9084 stmt belongs to loop.
9086 2014-06-05 Richard Biener <rguenther@suse.de>
9088 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
9089 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
9090 (lookup_tmp_var): Adjust.
9091 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
9093 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9095 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
9097 2014-06-05 Marek Polacek <polacek@redhat.com>
9100 * doc/invoke.texi: Document -Wlogical-not-parentheses.
9102 2014-06-04 Tom de Vries <tom@codesourcery.com>
9104 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
9107 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
9109 PR tree-optimization/61385
9110 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
9112 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
9114 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
9115 changed to use fatal_error.
9116 (main): Ensure lto_wrapper_cleanup is run atexit.
9118 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9120 * lra-constraints.c (valid_address_p): Move earlier in file.
9121 (address_eliminator): New structure.
9122 (satisfies_memory_constraint_p): New function.
9123 (satisfies_address_constraint_p): Likewise.
9124 (process_alt_operands, process_address, curr_insn_transform): Use them.
9126 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9128 * lra-int.h (lra_static_insn_data): Make operand_alternative a
9130 (target_lra_int, default_target_lra_int, this_target_lra_int)
9131 (op_alt_data): Delete.
9132 * lra.h (lra_init): Delete.
9133 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
9134 (init_insn_code_data_once): Remove op_alt_data handling.
9135 (finish_insn_code_data_once): Likewise.
9136 (init_op_alt_data): Delete.
9137 (get_static_insn_data): Initialize operand_alternative to null.
9138 (free_insn_recog_data): Cast operand_alternative before freeing it.
9139 (setup_operand_alternative): Take the operand_alternative as
9140 parameter and assume it isn't already cached in the static
9142 (lra_set_insn_recog_data): Update accordingly.
9144 * ira.c (ira_init): Don't call lra_init.
9145 * target-globals.h (this_target_lra_int): Declare.
9146 (target_globals): Remove lra_int.
9147 (restore_target_globals): Update accordingly.
9148 * target-globals.c: Don't include lra-int.h.
9149 (default_target_globals, save_target_globals): Remove lra_int.
9151 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9153 * recog.h (operand_alternative): Convert reg_class, reject,
9154 matched and matches into bitfields.
9155 (preprocess_constraints): New overload.
9156 (preprocess_insn_constraints): New function.
9157 (preprocess_constraints): Take the insn as parameter.
9158 (recog_op_alt): Change into a pointer.
9159 (target_recog): Add x_op_alt.
9160 * recog.c (asm_op_alt): New variable.
9161 (recog_op_alt): Change into a pointer.
9162 (preprocess_constraints): New overload, replacing the old function
9163 definition with one that doesn't use global state.
9164 (preprocess_insn_constraints): New function.
9165 (preprocess_constraints): Use them. Take the insn as parameter.
9166 Use asm_op_alt for asms.
9167 (recog_init): Free existing x_op_alt entries.
9168 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
9170 (make_early_clobber_and_input_conflicts): Likewise.
9171 (process_bb_node_lives): Pass the insn to process_constraints.
9172 * reg-stack.c (check_asm_stack_operands): Likewise.
9173 (subst_asm_stack_regs): Likewise.
9174 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9175 * regrename.c (build_def_use): Likewise.
9176 * sched-deps.c (sched_analyze_insn): Likewise.
9177 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
9178 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9179 (note_invalid_constants): Likewise.
9180 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9181 (ix86_legitimate_combined_insn): Make operand_alternative pointer
9184 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9186 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
9187 * ira-lives.c (check_and_make_def_conflict): Check for disabled
9189 (make_early_clobber_and_input_conflicts): Likewise.
9190 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9192 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9194 * recog.h (alternative_class): New function.
9195 (which_op_alt): Return a const recog_op_alt.
9196 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
9197 (subst_asm_stack_regs): Likewise.
9198 * config/arm/arm.c (note_invalid_constants): Likewise.
9199 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
9200 the operand_alternative; use alternative class instead.
9201 * sel-sched.c (get_reg_class): Likewise.
9202 * regrename.c (build_def_use): Likewise.
9203 (hide_operands, restore_operands, record_out_operands): Update type
9206 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9208 * recog.h (recog_op_alt): Convert to a flat array.
9209 (which_op_alt): New function.
9210 * recog.c (recog_op_alt): Convert to a flat array.
9211 (preprocess_constraints): Update accordingly, grouping all
9212 operands of the same alternative together, rather than the
9214 * ira-lives.c (check_and_make_def_conflict): Likewise.
9215 (make_early_clobber_and_input_conflicts): Likewise.
9216 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9217 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
9218 (subst_asm_stack_regs): Likewise.
9219 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9220 * regrename.c (hide_operands, record_out_operands): Likewise.
9221 (build_def_use): Likewise.
9222 * sel-sched.c (get_reg_class): Likewise.
9223 * config/arm/arm.c (note_invalid_constants): Likewise.
9225 2014-06-04 Jason Merrill <jason@redhat.com>
9229 * gimplify.c (gimplify_arg): Non-static.
9230 * gimplify.h: Declare it.
9232 2014-06-04 Richard Biener <rguenther@suse.de>
9234 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9235 TREE_PUBLIC and DECL_EXTERNAL decls.
9237 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
9239 * regcprop.c (copyprop_hardreg_forward_1): Account for
9240 HARD_REGNO_CALL_PART_CLOBBERED.
9242 2014-06-04 Richard Biener <rguenther@suse.de>
9244 * configure.ac: Check whether the underlying type of int64_t
9245 is long or long long.
9246 * configure: Regenerate.
9247 * config.in: Likewise.
9248 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
9249 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9251 2014-06-04 Richard Biener <rguenther@suse.de>
9253 PR tree-optimization/60098
9254 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
9256 (dse_optimize_stmt): Simplify, now that we found a kill
9259 2014-06-04 Richard Biener <rguenther@suse.de>
9261 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
9262 of accesses with non-invariant address.
9264 2014-06-04 Martin Liska <mliska@suse.cz>
9266 * cgraph.h (cgraph_make_wrapper): New function introduced.
9267 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
9268 * ipa-inline.h (inline_analyze_function): The function is global.
9269 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
9271 2014-06-04 Martin Liska <mliska@suse.cz>
9273 * tree.h (private_lookup_attribute_starting): New function.
9274 (lookup_attribute_starting): Likewise.
9275 * tree.c (private_lookup_attribute_starting): Likewise.
9277 2014-06-04 Martin Liska <mliska@suse.cz>
9279 * cgraph.h (expand_thunk): New argument added.
9280 (address_taken_from_non_vtable_p): New global function.
9281 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
9282 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
9283 * cgraphunit.c (analyze_function): Likewise.
9284 (assemble_thunks_and_aliases): Argument added to call.
9285 (expand_thunk): New argument forces to produce GIMPLE thunk.
9287 2014-06-04 Martin Liska <mliska@suse.cz>
9289 * coverage.h (coverage_compute_cfg_checksum): Argument added.
9290 * coverage.c (coverage_compute_cfg_checksum): Likewise.
9291 * profile.c (branch_prob): Likewise.
9293 2014-06-04 Martin Jambor <mjambor@suse.cz>
9296 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
9297 handler for switch on an ipa_ref_use enum.
9298 * ipa-reference.c (analyze_function): Likewise.
9300 2014-06-04 Kai Tietz <ktietz@redhat.com>
9302 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
9303 from old call-instruction.
9305 2014-06-04 Bin Cheng <bin.cheng@arm.com>
9307 * config/aarch64/aarch64.c (aarch64_classify_address)
9308 (aarch64_legitimize_reload_address): Support full addressing modes
9310 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
9311 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
9313 2014-06-03 Andrew Pinski <apinski@cavium.com>
9315 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
9318 2014-06-03 Andrew Pinski <apinski@cavium.com>
9320 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
9321 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
9323 2014-06-03 Kai Tietz <ktietz@redhat.com>
9325 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
9328 2014-06-03 Dehao Chen <dehao@google.com>
9330 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
9333 2014-06-03 Marek Polacek <polacek@redhat.com>
9336 * doc/invoke.texi: Document -Wswitch-bool.
9337 * function.c (stack_protect_epilogue): Cast controlling expression of
9339 * gengtype.c (walk_type): Generate switch expression with its
9340 controlling expression cast to int.
9342 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
9344 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
9346 * config/avr/avr-tables.opt: Regenerate.
9347 * config/avr/t-multilib: Regenerate.
9348 * doc/avr-mmcu.texi: Regenerate.
9350 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
9351 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9353 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
9354 (ata6617c, ata664251): Add new avr35 devices.
9355 (ata6612c): Add new avr4 device.
9356 (ata6613c, ata6614q): Add new avr5 devices.
9357 * config/avr/avr-tables.opt: Regenerate.
9358 * config/avr/t-multilib: Regenerate.
9359 * doc/avr-mmcu.texi: Regenerate.
9361 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9363 * gcc/config/aarch64/aarch64-builtins.c
9364 (aarch64_types_binop_ssu_qualifiers): New static data.
9365 (TYPES_BINOP_SSU): Define.
9366 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
9367 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
9368 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
9369 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
9370 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
9371 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
9372 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
9373 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
9374 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
9375 suffix to builtin function name, remove cast.
9376 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
9377 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
9378 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
9380 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9382 * gcc/config/aarch64/aarch64-builtins.c
9383 (aarch64_types_binop_uus_qualifiers,
9384 aarch64_types_shift_to_unsigned_qualifiers,
9385 aarch64_types_unsigned_shiftacc_qualifiers): Define.
9386 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9387 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9388 sqshlu_n, uqshl_n): Update qualifiers.
9389 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
9390 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
9391 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
9392 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
9393 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
9394 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
9395 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
9396 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
9397 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
9398 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
9399 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
9400 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
9401 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
9402 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
9403 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
9404 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
9405 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
9406 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
9407 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
9408 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
9409 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
9410 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
9411 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
9412 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
9413 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
9414 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
9415 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
9417 2014-06-03 Teresa Johnson <tejohnson@google.com>
9419 * tree-sra.c (modify_function): Record caller nodes after rebuild.
9421 2014-06-02 Jason Merrill <jason@redhat.com>
9424 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
9426 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9428 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
9431 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9433 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
9435 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
9436 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
9437 * config/aarch64/iterators.md (REVERSE): New iterator.
9438 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
9439 (rev_op): New int_attribute.
9440 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
9441 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
9442 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
9443 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
9444 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
9445 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
9446 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
9447 Replace temporary __asm__ with __builtin_shuffle.
9449 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9451 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
9453 * config/mips/mips-tables.opt: Regenerate.
9454 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
9455 to use mips_isa_rev rather than ISA_MIPS32R2.
9456 * config/mips/mips.h (ISA_MIPS32R3): New define.
9457 (ISA_MIPS32R5): New define.
9458 (ISA_MIPS64R3): New define.
9459 (ISA_MIPS64R5): New define.
9460 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
9461 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
9462 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
9464 (MIPS_ISA_SYNCI_SPEC): Likewise.
9465 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
9466 (LINK_SPEC): Added mips32r3 and mips32r5.
9467 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
9468 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
9469 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
9470 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
9471 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
9472 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
9473 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
9475 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9477 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
9479 * config/mips/mips.opt (mxpa): New option.
9480 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
9483 2014-06-03 Martin Jambor <mjambor@suse.cz>
9486 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
9489 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
9491 PR tree-optimization/61328
9492 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
9493 initialization from find_bswap_or_nop_1.
9494 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
9495 in source_expr2 before using the size value the function sets. Also
9496 make use of init_symbolic_number () in both the old place and
9497 find_bswap_or_nop_load () to avoid reading uninitialized memory when
9498 doing recursion in the GIMPLE_BINARY_RHS case.
9500 2014-06-03 Richard Biener <rguenther@suse.de>
9502 PR tree-optimization/61383
9503 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
9506 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
9508 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
9509 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
9510 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
9511 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
9513 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
9514 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
9515 * system.h: ...here and make it unconditional.
9516 * target.def (conditional_register_usage): Mention
9517 define_register_constraint instead of old-style constraint macros.
9518 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
9519 * doc/tm.texi: Regenerate.
9520 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
9521 protected by !USE_MD_CONSTRAINTS.
9522 * config/frv/frv.md: Remove quote from old version of documentation.
9523 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
9524 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
9525 CONST_DOUBLE_OK_FOR_LETTER.
9526 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
9528 2014-06-02 Andrew Pinski <apinski@cavium.com>
9530 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
9531 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
9532 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
9533 file whose name depends on -mabi= and -mbig-endian.
9534 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
9535 Handle LP64 better and handle ilp32 too.
9536 (MULTILIB_OPTIONS): Delete.
9537 (MULTILIB_DIRNAMES): Delete.
9539 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
9541 * expr.h: Remove prototypes of functions defined in builtins.c.
9542 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
9543 Remove prototypes of functions defined in builtins.c.
9544 * builtins.h: Update prototype list to include all exported functions.
9545 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
9546 no_c99_libc_has_function): Move to targhooks.c
9547 (build_string_literal, build_call_expr_loc_array,
9548 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
9550 (expand_builtin_object_size, fold_builtin_object_size): Make static.
9551 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
9552 no_c99_libc_has_function): Relocate from builtins.c.
9553 * tree.c: Include builtins.h.
9554 (build_call_expr_loc_array, build_call_expr_loc_vec,
9555 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
9557 * fold-const.h (fold_fma): Move prototype to builtins.h.
9558 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
9559 * asan.c: Include builtins.h.
9560 * cfgexpand.c: Likewise.
9561 * convert.c: Likewise.
9562 * emit-rtl.c: Likewise.
9563 * except.c: Likewise.
9565 * fold-const.c: Likewise.
9566 * gimple-fold.c: Likewise.
9567 * gimple-ssa-strength-reduction.c: Likewise.
9568 * gimplify.c: Likewise.
9569 * ipa-inline.c: Likewise.
9570 * ipa-prop.c: Likewise.
9571 * lto-streamer-out.c: Likewise.
9573 * tree-inline.c: Likewise.
9574 * tree-object-size.c: Likewise.
9575 * tree-sra.c: Likewise.
9576 * tree-ssa-ccp.c: Likewise.
9577 * tree-ssa-forwprop.c: Likewise.
9578 * tree-ssa-loop-ivcanon.c: Likewise.
9579 * tree-ssa-loop-ivopts.c: Likewise.
9580 * tree-ssa-math-opts.c: Likewise.
9581 * tree-ssa-reassoc.c: Likewise.
9582 * tree-ssa-threadedge.c: Likewise.
9583 * tree-streamer-in.c: Likewise.
9584 * tree-vect-data-refs.c: Likewise.
9585 * tree-vect-patterns.c: Likewise.
9586 * tree-vect-stmts.c: Likewise.
9587 * config/aarch64/aarch64.c: Likewise.
9588 * config/alpha/alpha.c: Likewise.
9589 * config/arc/arc.c: Likewise.
9590 * config/arm/arm.c: Likewise.
9591 * config/avr/avr.c: Likewise.
9592 * config/bfin/bfin.c: Likewise.
9593 * config/c6x/c6x.c: Likewise.
9594 * config/cr16/cr16.c: Likewise.
9595 * config/cris/cris.c: Likewise.
9596 * config/epiphany/epiphany.c: Likewise.
9597 * config/fr30/fr30.c: Likewise.
9598 * config/frv/frv.c: Likewise.
9599 * config/h8300/h8300.c: Likewise.
9600 * config/i386/i386.c: Likewise.
9601 * config/i386/winnt.c: Likewise.
9602 * config/ia64/ia64.c: Likewise.
9603 * config/iq2000/iq2000.c: Likewise.
9604 * config/lm32/lm32.c: Likewise.
9605 * config/m32c/m32c.c: Likewise.
9606 * config/m32r/m32r.c: Likewise.
9607 * config/m68k/m68k.c: Likewise.
9608 * config/mcore/mcore.c: Likewise.
9609 * config/mep/mep.c: Likewise.
9610 * config/microblaze/microblaze.c: Likewise.
9611 * config/mips/mips.c: Likewise.
9612 * config/mmix/mmix.c: Likewise.
9613 * config/mn10300/mn10300.c: Likewise.
9614 * config/moxie/moxie.c: Likewise.
9615 * config/msp430/msp430.c: Likewise.
9616 * config/nds32/nds32.c: Likewise.
9617 * config/pa/pa.c: Likewise.
9618 * config/pdp11/pdp11.c: Likewise.
9619 * config/picochip/picochip.c: Likewise.
9620 * config/rl78/rl78.c: Likewise.
9621 * config/rs6000/rs6000.c: Likewise.
9622 * config/rx/rx.c: Likewise.
9623 * config/s390/s390.c: Likewise.
9624 * config/score/score.c: Likewise.
9625 * config/sh/sh.c: Likewise.
9626 * config/sparc/sparc.c: Likewise.
9627 * config/spu/spu.c: Likewise.
9628 * config/stormy16/stormy16.c: Likewise.
9629 * config/tilegx/tilegx.c: Likewise.
9630 * config/tilepro/tilepro.c: Likewise.
9631 * config/v850/v850.c: Likewise.
9632 * config/vax/vax.c: Likewise.
9633 * config/xtensa/xtensa.c: Likewise.
9635 2014-06-02 Jeff Law <law@redhat.com>
9637 PR rtl-optimization/61094
9638 * ree.c (combine_reaching_defs): Do not reextend an insn if it
9639 was marked as do_no_reextend. If a copy is needed to eliminate
9640 an extension, then mark it as do_not_reextend.
9642 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
9644 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
9646 2014-06-02 Richard Henderson <rth@redhat.com>
9649 * config/alpha/alpha.c (print_operand_address): Allow symbolic
9650 addresses inside asms. Use output_operand_lossage instead of
9653 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
9656 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
9657 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
9659 2014-06-02 Tom de Vries <tom@codesourcery.com>
9661 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
9662 case that x has VOIDmode.
9664 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
9666 * varasm.c (copy_constant): Delete function.
9667 (build_constant_desc): Don't call it.
9669 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9672 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
9673 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
9674 with immediate_operand.
9676 2014-06-02 Andreas Schwab <schwab@suse.de>
9678 * config/ia64/ia64.c
9679 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
9680 pending_data_specs first.
9682 2014-06-02 Richard Biener <rguenther@suse.de>
9684 PR tree-optimization/61378
9685 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
9688 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
9690 * config/i386/constraints.md (Bw): Rename from 'w'.
9691 (Bz): Rename from 'z'.
9692 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
9694 2014-06-01 Kai Tietz <ktietz@redhat.com>
9697 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
9698 * config/i386/i386.md (sibcall_insn_operand): Use Bs
9699 instead of m constraint.
9701 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
9703 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
9704 a separate alternative where the scratch operand 2 is marked as
9707 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9709 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9710 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
9711 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
9712 and __builtins_arm_get_fpscr.
9713 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9714 __builtins_arm_get_fpscr.
9715 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
9716 __builtins_arm_ldfpscr.
9717 (arm_atomic_assign_expand_fenv): New function.
9718 * config/arm/vfp.md (set_fpscr): New pattern.
9719 (get_fpscr) : Likewise.
9720 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9722 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9723 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9725 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9727 * asan.c (report_error_func): Add SLOW_P argument, use
9728 BUILT_IN_ASAN_*_N if set.
9729 (build_check_stmt): Likewise.
9730 (instrument_derefs): If T has insufficient alignment,
9731 force same handling as for odd sizes.
9733 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9734 BUILT_IN_ASAN_REPORT_STORE_N): New.
9735 * asan.c (struct asan_mem_ref): Change access_size type to
9737 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9738 update_mem_ref_hash_table): Likewise.
9739 (asan_mem_ref_hasher::hash): Hash in a HWI.
9740 (report_error_func): Change size_in_bytes argument to HWI.
9741 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9743 (build_shadow_mem_access): New function.
9744 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9745 Handle size_in_bytes not power of two or larger than 16.
9746 (instrument_derefs): Don't give up if size_in_bytes is not
9747 power of two or is larger than 16.
9749 2014-05-30 Kai Tietz <ktietz@redhat.com>
9752 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9753 for sibling-tail-calls.
9754 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9756 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9757 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9759 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9761 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9762 * config/avr/avr-tables.opt: Regenerate.
9763 * config/avr/t-multilib: Regenerate.
9764 * doc/avr-mmcu.texi: Regenerate.
9766 2014-05-30 Ian Lance Taylor <iant@google.com>
9768 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9771 2014-05-30 Tom de Vries <tom@codesourcery.com>
9773 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9776 2014-05-30 Tom de Vries <tom@codesourcery.com>
9778 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9779 * lra.c (initialize_lra_reg_info_element): Add init of
9780 actual_call_used_reg_set field.
9781 (lra): Call lra_create_live_ranges before lra_inheritance for
9783 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9785 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9786 instead of call_used_reg_set for -fuse-caller-save.
9787 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9789 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9791 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9793 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9795 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9797 * ira.c (ira_get_dup_out_num): Check for output operands at
9798 the start of the loop. Handle cases where an included alternative
9799 follows an excluded one.
9801 2014-05-29 Mike Stump <mikestump@comcast.net>
9804 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9805 post ld passes when lto is used.
9807 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9809 PR rtl-optimization/61325
9810 * lra-constraints.c (process_address): Rename to process_address_1.
9811 (process_address): New function.
9813 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9815 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9816 TYPES_BINOPV): New static data.
9817 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9819 * config/aarch64/aarch64-simd.md (aarch64_ext,
9820 aarch64_im_lane_boundsi): New patterns.
9821 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9823 (aarch64_evpc_ext): New function.
9825 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9827 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9828 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9829 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9830 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9831 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9833 2014-05-29 Tom de Vries <tom@codesourcery.com>
9835 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9837 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9838 Richard Sandiford <rdsandiford@googlemail.com>
9840 * arm/iterators.md (shiftable_ops): New code iterator.
9841 (t2_binop0, arith_shift_insn): New code attributes.
9842 * arm/predicates.md (shift_nomul_operator): New predicate.
9843 * arm/arm.md (insn_enabled): Delete.
9844 (enabled): Remove insn_enabled test.
9845 (*arith_shiftsi): Delete. Replace with ...
9846 (*<arith_shift_insn>_multsi): ... new pattern.
9847 (*<arith_shift_insn>_shiftsi): ... new pattern.
9848 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9850 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9851 Tom de Vries <tom@codesourcery.com>
9853 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9854 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9856 (mips_split_call): Use POST_CALL_TMP_REG.
9857 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9859 2014-05-29 Tom de Vries <tom@codesourcery.com>
9861 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9862 with #ifdef STACK_REGS.
9864 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9866 * varasm.c (get_variable_section): Walk aliases.
9867 (place_block_symbol): Walk aliases.
9869 2014-05-28 Tom de Vries <tom@codesourcery.com>
9872 2014-05-28 Tom de Vries <tom@codesourcery.com>
9874 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9875 * lra.c (initialize_lra_reg_info_element): Add init of
9876 actual_call_used_reg_set field.
9877 (lra): Call lra_create_live_ranges before lra_inheritance for
9879 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9881 * lra-constraints.c (need_for_call_save_p): Use
9882 actual_call_used_reg_set instead of call_used_reg_set for
9884 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9886 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9888 * doc/md.texi: Document that the % constraint character must
9889 be at the beginning of the string.
9890 * genoutput.c (validate_insn_alternatives): Check that '=',
9891 '+' and '%' only appear at the beginning of a constraint.
9892 * ira.c (commutative_constraint_p): Delete.
9893 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9894 at the start of the string.
9895 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9897 * config/arm/neon.md (bicdi3_neon): Likewise.
9898 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9899 (slt_si, sltu_si): Likewise.
9900 * config/vax/vax.md (sbcdi3): Likewise.
9901 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9902 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9903 (mul64): Move '%' to beginning of constraint.
9904 * config/arm/arm.md (*xordi3_insn): Likewise.
9905 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9908 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9910 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9912 2014-05-28 Jason Merrill <jason@redhat.com>
9915 * cgraph.h (symtab_node::get_comdat_group_id): New.
9916 * cgraphunit.c (analyze_functions): Call it.
9917 * symtab.c (dump_symtab_node): Likewise.
9918 * tree.c (decl_comdat_group_id): New.
9919 * tree.h: Declare it.
9920 * lto-streamer-out.c (write_symbol): Use it.
9921 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9923 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9925 PR bootstrap/PR61146
9926 * wide-int.cc: Do not include longlong.h when compiling with clang.
9928 2014-05-28 Richard Biener <rguenther@suse.de>
9930 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9931 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9932 (vrp_visit_assignment_or_call): Print less vertical space.
9933 (vrp_visit_stmt): Likewise.
9934 (vrp_visit_phi_node): Likewise. For a PHI argument with
9935 VR_VARYING range consider recording it as copy.
9937 2014-05-28 Richard Biener <rguenther@suse.de>
9940 2014-05-28 Richard Biener <rguenther@suse.de>
9942 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9944 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9946 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9947 sufficiently aligned and an offset is used at the same time.
9948 (expand_expr_real_1): Likewise.
9950 2014-05-28 Richard Biener <rguenther@suse.de>
9953 * fold-const.c (fold_comparison): When folding
9954 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9955 the sign of the remaining constant operand stays the same.
9957 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9959 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9960 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9961 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9963 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9964 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9965 (m32bit-doubles) Likewise.
9966 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9967 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9970 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9972 * configure.ac ($gcc_cv_ld_clearcap): New test.
9973 * configure: Regenerate.
9974 * config.in: Regenerate.
9975 * config/sol2.opt (mclear-hwcap): New option.
9976 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9977 * config/sol2-clearcap.map: Moved here from
9978 testsuite/gcc.target/i386/clearcap.map.
9979 * config/sol2-clearcapv2.map: Move here from
9980 gcc.target/i386/clearcapv2.map.
9981 * config/t-sol2 (install): Depend on install-clearcap-map.
9982 (install-clearcap-map): New target.
9983 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9986 2014-05-28 Richard Biener <rguenther@suse.de>
9988 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9989 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9990 ... here and remove the rest.
9991 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9993 2014-05-28 Richard Biener <rguenther@suse.de>
9995 PR tree-optimization/61335
9996 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9997 new range fails, drop to varying.
9999 2014-05-28 Olivier Hainque <hainque@adacore.com>
10001 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
10002 (CPP_SPEC): Add entry for -mcpu=8548.
10003 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
10004 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
10006 2014-05-28 Tom de Vries <tom@codesourcery.com>
10008 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10009 * lra.c (initialize_lra_reg_info_element): Add init of
10010 actual_call_used_reg_set field.
10011 (lra): Call lra_create_live_ranges before lra_inheritance for
10013 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10015 * lra-constraints.c (need_for_call_save_p): Use
10016 actual_call_used_reg_set instead of call_used_reg_set for
10018 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10020 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10021 Tom de Vries <tom@codesourcery.com>
10023 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
10025 (@item -fuse-caller-save): New item.
10027 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10028 Tom de Vries <tom@codesourcery.com>
10030 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
10031 OPT_fuse_caller_save.
10033 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10034 Tom de Vries <tom@codesourcery.com>
10036 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
10037 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
10038 get_call_reg_set_usage.
10039 * resource.c (mark_set_resources, mark_target_live_regs): Use
10040 get_call_reg_set_usage.
10041 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
10043 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
10044 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
10045 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10046 * ira-build.c (ira_create_allocno): Init
10047 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10048 (create_cap_allocno, propagate_allocno_info)
10049 (propagate_some_info_from_allocno)
10050 (copy_info_to_removed_store_destinations): Handle
10051 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10052 * ira-costs.c (ira_tune_allocno_costs): Use
10053 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
10055 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10056 Tom de Vries <tom@codesourcery.com>
10058 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
10059 and function_used_regs_valid fields.
10060 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
10061 find_all_hard_reg_sets.
10062 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
10063 (get_call_reg_set_usage): New function.
10064 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
10065 * regs.h (get_call_reg_set_usage): Declare.
10067 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
10070 * config/dbx.h (License): Add Runtime Library Exception.
10071 * config/newlib-stdint.h (License): Same.
10072 * config/rtems.h (License): Same
10073 * config/initfini-array.h (License): Same
10074 * config/v850/v850.h (License): Same.
10075 * config/v850/v850-opts.h (License): Same
10076 * config/v850/rtems.h (License): Same.
10078 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
10081 * doc/extend.texi (Local Labels): Note that label differences are
10082 not supported for AVR.
10084 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10085 Olivier Hainque <hainque@adacore.com>
10087 * rtl.h (set_for_reg_notes): Declare.
10088 * emit-rtl.c (set_for_reg_notes): New function.
10089 (set_unique_reg_note): Use it.
10090 * optabs.c (add_equal_note): Likewise
10092 2014-05-27 Andrew Pinski <apinski@cavium.com>
10094 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
10095 Use <w> for the register in assembly template.
10096 (stack_protect_test): Use the mode of operands[0] for the result.
10097 (stack_protect_test_<mode>): Use <w> for the register
10098 in assembly template.
10100 2014-05-27 DJ Delorie <dj@redhat.com>
10102 * config/rx/rx.c (add_vector_labels): New.
10103 (rx_output_function_prologue): Call it.
10104 (rx_handle_func_attribute): Don't require empty arguments.
10105 (rx_handle_vector_attribute): New.
10106 (rx_attribute_table): Add "vector" attribute.
10107 * doc/extend.texi (interrupt, vector): Document new/changed
10108 RX-specific attributes.
10110 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
10112 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
10114 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
10115 predicate to detect a negative quotient.
10117 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
10119 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
10120 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
10121 Add X - Y CMP 0 to X CMP Y transformation.
10122 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
10124 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
10126 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
10129 2014-05-27 Steve Ellcey <sellcey@mips.com>
10131 * config/mips/mips.c: Add include of cgraph.h.
10133 2014-05-27 Richard Biener <rguenther@suse.de>
10135 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
10137 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10140 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
10141 * config/arm/arm-cores.def (License): Same.
10142 * config/arm/arm-opts.h (License): Same.
10143 * config/arm/aout.h (License): Same.
10144 * config/arm/bpabi.h (License): Same.
10145 * config/arm/elf.h (License): Same.
10146 * config/arm/linux-elf.h (License): Same.
10147 * config/arm/linux-gas.h (License): Same.
10148 * config/arm/netbsd-elf.h (License): Same.
10149 * config/arm/uclinux-eabi.h (License): Same.
10150 * config/arm/uclinux-elf.h (License): Same.
10151 * config/arm/vxworks.h (License): Same.
10153 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10155 * config/arm/neon.md (neon_bswap<mode>): New pattern.
10156 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
10157 (arm_init_neon_builtins): Handle NEON_BSWAP.
10158 Define required type nodes.
10159 (arm_expand_neon_builtin): Handle NEON_BSWAP.
10160 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
10161 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
10162 * config/arm/iterators.md (VDQHSD): New mode iterator.
10164 2014-05-27 Richard Biener <rguenther@suse.de>
10166 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10167 Try using literal operands when comparing value-ranges failed.
10169 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10171 * ira.c (commutative_operand): Adjust for change to recog_data.
10172 [Missing from previous commit.]
10174 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10176 * system.h (TEST_BIT): New macro.
10177 * recog.h (alternative_mask): New type.
10178 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
10179 (recog_data_d): Replace alternative_enabled_p array with
10180 enabled_alternatives.
10181 (target_recog): New structure.
10182 (default_target_recog, this_target_recog): Declare.
10183 (get_enabled_alternatives, recog_init): Likewise.
10184 * recog.c (default_target_recog, this_target_recog): New variables.
10185 (get_enabled_alternatives): New function.
10186 (extract_insn): Use it.
10187 (recog_init): New function.
10188 (preprocess_constraints, constrain_operands): Adjust for change to
10190 * postreload.c (reload_cse_simplify_operands): Likewise.
10191 * reload.c (find_reloads): Likewise.
10192 * ira-costs.c (record_reg_classes): Likewise.
10193 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
10194 all alternatives after a disabled one would be skipped.
10195 (ira_implicitly_set_insn_hard_regs): Likewise.
10196 * ira.c (ira_setup_alts): Adjust for change to recog_data.
10197 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
10198 with enabled_alternatives.
10199 * lra.c (free_insn_recog_data): Update accordingly.
10200 (lra_update_insn_recog_data): Likewise.
10201 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
10202 * lra-constraints.c (process_alt_operands): Likewise. Handle
10203 only_alternative as part of the enabled mask.
10204 * target-globals.h (this_target_recog): Declare.
10205 (target_globals): Add a recog field.
10206 (restore_target_globals): Restore this_target_recog.
10207 * target-globals.c: Include recog.h.
10208 (default_target_globals): Initialize recog field.
10209 (save_target_globals): Likewise.
10210 * reginfo.c (reinit_regs): Call recog_init.
10211 * toplev.c (backend_init_target): Likewise.
10213 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10215 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
10216 rather than any named insn's code.
10218 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10221 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
10222 * config/arm/arm-cores.def (License): Same.
10224 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
10226 * tree.h (decl_comdat_group): Declare.
10227 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
10228 * tree.c (decl_comdat_group): Here.
10230 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
10232 PR rtl-optimization/61222
10233 * combine.c (simplify_shift_const_1): When moving a PLUS outside
10234 the shift, truncate the PLUS operand to the result mode.
10236 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
10239 * config/i386/i386.c (ix86_rtx_costs)
10240 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
10243 2014-05-26 Martin Jambor <mjambor@suse.cz>
10245 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
10248 2014-05-26 Richard Biener <rguenther@suse.de>
10250 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
10251 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
10252 Provide specializations.
10253 (wi::int_traits <HOST_WIDE_INT>,
10254 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
10256 2014-05-26 Alan Modra <amodra@gmail.com>
10259 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
10260 params and return a bool. Remove dead code. Update comment.
10261 Assert we have a const_int source. Remove bogus code from
10262 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
10263 handling of constants > 2G and reg_equal note, from..
10264 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
10265 return value. Update comment. If we can, use a new pseudo
10266 for intermediate calculations.
10267 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
10269 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
10270 call to rs6000_emit_set_const in splitter.
10271 (movdi_internal64+2, +3): Likewise.
10273 2014-05-26 Richard Biener <rguenther@suse.de>
10275 * system.h: Define __STDC_FORMAT_MACROS before
10276 including inttypes.h.
10277 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
10278 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
10279 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
10280 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
10281 HOST_WIDEST_INT_C): Remove.
10282 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
10283 if C99 inttypes.h is not available.
10284 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
10285 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
10286 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
10287 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
10288 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
10289 (struct output_info): Likewise.
10290 (print_statistics): Adjust.
10291 (dump_bitmap_statistics): Likewise.
10292 * bt-load.c (migrate_btr_defs): Print with PRId64.
10293 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
10294 (MAX_SAFE_MULTIPLIER): Adjust.
10295 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
10296 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
10297 dump_cgraph_node): Likewise.
10298 * final.c (dump_basic_block_info): Likewise.
10299 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
10300 * gcov.c (format_gcov): Likewise.
10301 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
10303 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
10304 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
10305 (inline_small_functions, dump_overall_stats, dump_inline_stats):
10306 Use PRId64 for dumping.
10307 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
10308 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
10309 (add_allocno_hard_regs): Adjust.
10310 * loop-doloop.c (doloop_modify): Print using PRId64.
10311 * loop-iv.c (inverse): Compute in uint64_t.
10312 (determine_max_iter, iv_number_of_iterations): Likewise.
10313 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
10314 Print using PRId64.
10315 * lto-streamer-out.c (write_symbol): Use uint64_t.
10316 * mcf.c (CAP_INFINITY): Use int64_t maximum.
10317 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
10318 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
10319 * modulo-sched.c (const_iteration_count): Use int64_t.
10320 (sms_schedule): Dump using PRId64.
10321 * predict.c (dump_prediction): Likewise.
10322 * pretty-print.h (pp_widest_integer): Remove.
10323 * profile.c (get_working_sets, is_edge_inconsistent,
10324 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
10325 * tree-pretty-print.c (pp_double_int): Remove case handling
10326 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
10327 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
10329 (pass_optimize_bswap::execute): Remove restriction on hosts.
10330 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
10331 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
10332 * tree.c (widest_int_cst_value): Remove.
10333 * tree.h (widest_int_cst_value): Likewise.
10334 * value-prof.c (dump_histogram_value): Print using PRId64.
10335 * gengtype.c (main): Also inject int64_t.
10336 * ggc-page.c (struct max_alignment): Use int64_t.
10337 * alloc-pool.c (struct allocation_object_def): Likewise.
10338 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
10340 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
10341 * doc/tm.texi: Regenerated.
10342 * gengtype-lex.l (IWORD): Handle [u]int64_t.
10343 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
10344 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
10345 mmix_output_register_setting): Use [u]int64_t in prototypes.
10346 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
10347 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
10348 mmix_output_octa, mmix_output_shifted_value): Adjust.
10349 (mmix_intval): Adjust. Remove unreachable case.
10350 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
10352 2014-05-26 Richard Biener <rguenther@suse.de>
10354 * configure.ac: Drop __int64 type check. Insist that we
10355 found uint64_t and int64_t.
10356 * hwint.h (HOST_BITS_PER___INT64): Remove.
10357 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
10358 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
10359 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
10360 (HOST_WIDEST_FAST_INT): Remove __int64 case.
10361 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
10362 for dst_q_src_df_rms_cdt.
10363 * configure: Regenerate.
10364 * config.in: Likewise.
10366 2014-05-26 Michael Tautschnig <mt@debian.org>
10369 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
10370 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
10372 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10374 PR rtl-optimization/61278
10375 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
10377 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10379 PR rtl-optimization/61220
10380 Part of PR rtl-optimization/61225
10381 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
10382 insn; skip split_edge for a block with only one successor.
10384 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10386 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10389 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10391 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
10392 (update_vtable_references): New function.
10393 (function_and_variable_visibility): Rewrite also vtable initializers.
10394 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
10396 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10398 * ggc.h (ggc_grow): New function.
10399 * ggc-none.c (ggc_grow): New function.
10400 * ggc-page.c (ggc_grow): Likewise.
10402 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10404 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
10405 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
10406 comdat_can_be_unshared_p, cgraph_externally_visible_p,
10407 varpool_externally_visible_p, can_replace_by_local_alias,
10408 update_visibility_by_resolution_info, function_and_variable_visibility,
10409 pass_data_ipa_function_and_variable_visibility,
10410 make_pass_ipa_function_and_variable_visibility,
10411 whole_program_function_and_variable_visibility,
10412 pass_data_ipa_whole_program_visibility,
10413 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
10414 * cgraph.h (cgraph_local_node_p): Declare.
10415 * ipa-visibility.c: New file.
10416 * Makefile.in (OBJS): Add ipa-visiblity.o
10418 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10420 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
10421 that var decl is available.
10423 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10425 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
10426 symtab_node pointer.
10427 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
10428 (find_decls_types_r): Do not walk COMDAT_GROUP.
10429 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
10430 * varasm.c (make_decl_one_only): Use set_comdat_group;
10431 create node if needed.
10432 * ipa-inline-transform.c (save_inline_function_body): Update
10433 way we decl->symtab mapping.
10434 * symtab.c (symtab_hash, hash_node, eq_node
10435 symtab_insert_node_to_hashtable): Remove.
10436 (symtab_register_node): Update.
10437 (symtab_unregister_node): Update.
10438 (symtab_get_node): Reimplement as inline function.
10439 (symtab_add_to_same_comdat_group): Update.
10440 (symtab_dissolve_same_comdat_group_list): Update.
10441 (dump_symtab_base): Update.
10442 (verify_symtab_base): Update.
10443 (symtab_make_decl_local): Update.
10444 (fixup_same_cpp_alias_visibility): Update.
10445 (symtab_nonoverwritable_alias): Update.
10446 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
10447 * ipa.c (update_visibility_by_resolution_info): UPdate.
10448 * bb-reorder.c: Include cgraph.h
10449 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
10450 with comdat groups.
10451 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
10452 * cgraph.c (cgraph_get_create_node): Update.
10453 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
10455 (symtab_get_node): Make inline.
10456 (symtab_insert_node_to_hashtable): Remove.
10457 (symtab_can_be_discarded): Update.
10458 (decl_comdat_group): New function.
10459 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
10461 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
10463 (read_comdat_group): New function.
10464 (input_node, input_varpool_node): Use it.
10465 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
10467 * mips.c (mips_start_unique_function): Likewise.
10468 (ix86_code_end): Likewise.
10469 (rs6000_code_end): Likweise.
10470 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
10472 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10474 * gengtype-state.c (fatal_reading_state): Bring offline.
10475 * optabs.c (widening_optab_handler): Bring offline.
10476 * optabs.h (widening_optab_handler): Likewise.
10477 * final.c (get_attr_length_1): Likewise.
10479 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10481 * sched-int.h (sd_iterator_cond): Manually tail recurse.
10483 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10485 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
10486 (ppc440-compare): Include shift with dot.
10487 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
10488 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
10490 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
10492 (e6500_sfx2): Include it.
10493 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
10494 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
10495 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
10496 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
10497 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
10498 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
10499 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
10500 *lshiftrt_internal1le, *lshiftrt_internal1be,
10501 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
10502 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
10503 *rotldi3_internal10le, *rotldi3_internal10be,
10504 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
10505 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
10506 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
10507 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
10508 define_insns): Use type "shift" in the appropriate alternatives.
10510 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10512 * config/rs6000/rs6000.md (type): Add "logical". Delete
10514 (dot): Adjust comment.
10515 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
10516 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
10517 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
10518 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
10519 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
10520 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
10521 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
10522 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10524 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10525 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10526 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10527 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10528 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10529 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10530 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10531 * config/rs6000/8540.md (ppc8540_su): Adjust.
10532 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10533 cell-cmp-microcoded): Adjust.
10534 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10535 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10536 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10537 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10538 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10539 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10540 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10541 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10542 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10544 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10545 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
10546 Adjust. Adjust comment.
10547 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10548 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10550 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10552 * config/rs6000/rs6000.md (type): Add "add".
10553 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
10554 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
10555 define_insns): Use it.
10556 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10558 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10559 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10560 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10561 * config/rs6000/601.md (ppc601-integer): Adjust.
10562 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10563 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10564 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10565 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10566 * config/rs6000/8540.md (ppc8540_su): Adjust.
10567 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10568 cell-cmp-microcoded): Adjust.
10569 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10570 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10571 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10572 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10573 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10574 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10575 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10576 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10577 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10579 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10580 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
10581 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10582 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10584 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10586 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
10587 "delayed_compare", "var_delayed_compare".
10588 (var_shift): New attribute.
10589 (cell_micro): Adjust.
10590 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
10591 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
10592 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
10593 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10594 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10595 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10596 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10597 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
10598 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
10599 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10600 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
10601 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
10602 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
10603 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
10604 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
10605 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
10606 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
10607 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
10608 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
10609 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
10610 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
10611 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
10612 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
10613 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10614 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10616 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10617 * config/rs6000/440.md (ppc440-integer): Adjust.
10618 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10619 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
10620 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10621 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10622 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10623 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10624 * config/rs6000/8540.md (ppc8540_su): Adjust.
10625 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10626 cell-cmp-microcoded): Adjust.
10627 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
10628 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10629 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
10630 e500mc64_delayed): Adjust.
10631 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
10632 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
10633 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10634 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
10635 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
10636 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
10637 power6-delayed-compare, power6-var-delayed-compare): Adjust.
10638 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
10639 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
10641 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10642 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10644 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10646 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
10647 (bits): New mode_attr.
10648 (idiv_ldiv): Delete mode_attr.
10649 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
10650 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10651 rs6000_adjust_priority, is_nonpipeline_insn,
10652 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10654 * config/rs6000/40x.md (ppc403-idiv): Adjust.
10655 * config/rs6000/440.md (ppc440-idiv): Adjust.
10656 * config/rs6000/476.md (ppc476-idiv): Adjust.
10657 * config/rs6000/601.md (ppc601-idiv): Adjust.
10658 * config/rs6000/603.md (ppc603-idiv): Adjust.
10659 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
10660 ppc620-ldiv): Adjust.
10661 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
10662 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
10663 * config/rs6000/8540.md (ppc8540_divide): Adjust.
10664 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
10665 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
10666 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
10667 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
10668 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
10669 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
10670 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
10671 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
10672 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
10673 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
10674 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
10675 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
10676 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
10677 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
10678 * config/rs6000/titan.md (titan_fxu_div): Adjust.
10680 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10682 * config/rs6000/rs6000.md (type): Delete "insert_word",
10683 "insert_dword". Add "insert".
10684 (size): Update comment.
10685 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10686 insn_must_be_first_in_group): Adjust.
10687 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10688 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10689 *insvsi_internal6, insvdi_internal): Adjust.
10691 * config/rs6000/40x.md (ppc403-integer): Adjust.
10692 * config/rs6000/440.md (ppc440-integer): Adjust.
10693 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
10694 * config/rs6000/601.md (ppc601-integer): Adjust.
10695 * config/rs6000/603.md (ppc603-integer): Adjust.
10696 * config/rs6000/6xx.md (ppc604-integer): Adjust.
10697 * config/rs6000/7450.md (ppc7450-integer): Adjust.
10698 * config/rs6000/7xx.md (ppc750-integer): Adjust.
10699 * config/rs6000/8540.md (ppc8540_su): Adjust.
10700 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
10701 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
10702 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10703 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
10704 * config/rs6000/e5500.md (e5500_sfx): Adjust.
10705 * config/rs6000/e6500.md (e6500_sfx): Adjust.
10706 * config/rs6000/mpc.md (mpccore-integer): Adjust.
10707 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
10708 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
10709 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
10710 * config/rs6000/power7.md (power7-integer): Adjust.
10711 * config/rs6000/power8.md (power8-1cyc): Adjust.
10712 * config/rs6000/rs64.md (rs64a-integer): Adjust.
10713 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10715 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10717 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
10718 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
10719 (size): New attribute.
10720 (dot): New attribute.
10721 (cell_micro): Adjust.
10722 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10723 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10724 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10725 umuldi3_highpart): Adjust.
10726 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10727 rs6000_adjust_priority, is_nonpipeline_insn,
10728 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10730 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10731 ppc405-imul3): Adjust.
10732 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10733 * config/rs6000/476.md (ppc476-imul): Adjust.
10734 * config/rs6000/601.md (ppc601-imul): Adjust.
10735 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10736 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10737 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10738 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10739 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10741 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10742 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10743 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10744 cell-imul): Adjust.
10745 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10746 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10747 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10748 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10749 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10750 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10751 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10752 power4-lmul, power4-imul, power4-imul3): Adjust.
10753 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10754 power5-lmul, power5-imul, power5-imul3): Adjust.
10755 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10756 power6-lmul, power6-imul, power6-imul3): Adjust.
10757 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10758 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10760 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10761 rs64a-lmul): Adjust.
10762 * config/rs6000/titan.md (titan_imul): Adjust.
10764 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10766 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10767 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10768 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10769 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10770 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10771 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10772 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10773 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10774 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10775 * config/rs6000/titan.md: Delete nonsensical comment.
10776 (titan_imul): Add type imul3.
10777 (titan_mulhw): Remove type imul3; add type halfmul.
10779 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10781 * config/rs6000/rs6000.md (type): Reorder, reformat.
10783 2014-05-23 Martin Jambor <mjambor@suse.cz>
10785 PR tree-optimization/53787
10786 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10787 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10788 analysis_done, update all uses.
10789 * ipa-prop.c: Include domwalk.h
10790 (param_analysis_info): Removed.
10791 (param_aa_status): New type.
10792 (ipa_bb_info): Likewise.
10793 (func_body_info): Likewise.
10794 (ipa_get_bb_info): New function.
10795 (aa_overwalked): Likewise.
10796 (find_dominating_aa_status): Likewise.
10797 (parm_bb_aa_status_for_bb): Likewise.
10798 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10799 (load_from_unmodified_param): Accept func_body_info as a parameter
10800 instead of parms_ainfo.
10801 (parm_ref_data_preserved_p): Changed to use new param AA info.
10802 (parm_ref_data_pass_through_p): Likewise.
10803 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10804 (compute_complex_assign_jump_func): Changed to use new param AA info.
10805 (compute_complex_ancestor_jump_func): Likewise.
10806 (ipa_compute_jump_functions_for_edge): Likewise.
10807 (ipa_compute_jump_functions): Removed.
10808 (ipa_compute_jump_functions_for_bb): New function.
10809 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10811 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10812 and info, moved variable declarations down.
10813 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10815 (ipa_analyze_stmt_uses): Likewise.
10816 (ipa_analyze_params_uses): Removed.
10817 (ipa_analyze_params_uses_in_bb): New function.
10818 (ipa_analyze_controlled_uses): Likewise.
10819 (free_ipa_bb_info): Likewise.
10820 (analysis_dom_walker): New class.
10821 (ipa_analyze_node): Handle node-specific forbidden analysis,
10822 initialize and free func_body_info, use dominator walker.
10823 (ipcp_modif_dom_walker): New class.
10824 (ipcp_transform_function): Create and free func_body_info, use
10825 ipcp_modif_dom_walker, moved a lot of functionality there.
10827 2014-05-23 Marek Polacek <polacek@redhat.com>
10828 Jakub Jelinek <jakub@redhat.com>
10830 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10831 * gcc.c (sanitize_spec_function): Likewise.
10832 * convert.c (convert_to_integer): Include "ubsan.h". Add
10833 floating-point to integer instrumentation.
10834 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10835 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10836 SANITIZE_NONDEFAULT.
10837 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10838 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10839 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10840 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10841 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10842 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10843 float/double/long double.
10844 (ubsan_instrument_float_cast): New function.
10845 * ubsan.h (ubsan_instrument_float_cast): Declare.
10847 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10849 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10851 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10852 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10853 Adjust for tailcalling through registers.
10854 * config/aarch64/aarch64.h (enum reg_class): New caller save
10856 (REG_CLASS_NAMES): Likewise.
10857 (REG_CLASS_CONTENTS): Likewise.
10858 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10859 Allow tailcalling without decls.
10861 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10863 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10864 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10866 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10867 gsi, and variables v_* to v*.
10869 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10871 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10873 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10875 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10876 * omp-low.c: Update accordingly.
10878 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10879 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10880 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10881 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10882 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10883 GF_OMP_TARGET_KIND_UPDATE.
10885 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10886 Explicitly enumerate the expected region types.
10888 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10891 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10892 documentation; the old documentation didn't clearly state the
10893 constraints on the contents of the pointed-to storage.
10895 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10897 Fix bootstrap error on ia64
10898 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10899 Return default value.
10901 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10903 PR tree-optimization/54733
10904 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10906 (find_bswap_or_nop_load): New.
10907 (find_bswap_1): Renamed to ...
10908 (find_bswap_or_nop_1): This. Also add support for memory source.
10909 (find_bswap): Renamed to ...
10910 (find_bswap_or_nop): This. Also add support for memory source and
10911 detection of bitwise operations equivalent to load in target
10913 (execute_optimize_bswap): Likewise. Also move its leading comment back
10914 in place and split statement transformation into ...
10915 (bswap_replace): This.
10917 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10919 PR rtl-optimization/61215
10920 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10921 simplify_gen_subreg until final substitution.
10923 2014-05-23 Alan Modra <amodra@gmail.com>
10926 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10927 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10928 Use "Y" constraint rather than "m".
10930 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10932 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10934 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10935 New function declaration.
10936 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10937 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10938 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10939 (aarch64_init_builtins) : Initialize builtins
10940 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10941 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10942 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10943 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10944 and __builtins_aarch64_set_fpsr.
10945 (aarch64_atomic_assign_expand_fenv): New function.
10946 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10947 (get_fpcr) : Likewise.
10948 (set_fpsr) : Likewise.
10949 (get_fpsr) : Likewise.
10950 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10951 and UNSPECV_SET_FPSR.
10952 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10953 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10954 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10956 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10958 PR rtl-optimization/60969
10959 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10960 constraints. Set up mem cost for NO_REGS case.
10962 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10964 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10966 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10968 * config/darwin.c: Include "lto-section-names.h".
10969 (LTO_SEGMENT_NAME): Don't define.
10970 * config/i386/winnt.c: Include "lto-section-names.h".
10971 * lto-streamer.c: Include "lto-section-names.h".
10972 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10973 * lto-wrapper.c: Include "lto-section-names.h".
10974 (LTO_SECTION_NAME_PREFIX): Don't define.
10975 * lto-section-names.h: New file.
10976 * cgraphunit.c: Include "lto-section-names.h".
10978 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10980 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10982 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10985 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10987 2014-05-22 Nick Clifton <nickc@redhat.com>
10989 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10991 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10993 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10994 -> (T)A transformation to integer types.
10996 2014-05-22 Teresa Johnson <tejohnson@google.com>
10998 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10999 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
11000 (gcov_rewrite): Use gcov_nonruntime_assert.
11001 (gcov_open): Ditto.
11002 (gcov_write_words): Ditto.
11003 (gcov_write_length): Ditto.
11004 (gcov_read_words): Use gcov_nonruntime_assert, and remove
11005 gcc_assert from IN_LIBGCOV code.
11006 (gcov_read_summary): Use gcov_error to flag profile corruption.
11007 (gcov_sync): Use gcov_nonruntime_assert.
11008 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
11009 (gcov_histo_index): Use gcov_nonruntime_assert.
11010 (static void gcov_histogram_merge): Ditto.
11011 (compute_working_sets): Ditto.
11012 * gcov-io.h (gcov_nonruntime_assert): Define.
11013 (gcov_error): Define for !IN_LIBGCOV
11015 2014-05-22 Richard Biener <rguenther@suse.de>
11017 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11018 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
11019 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
11020 and deallocation site.
11021 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11022 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
11023 passing through the incoming points-to set.
11024 (handle_lhs_call): Use flags argument instead of recomputing it.
11025 (find_func_aliases_for_call): Call handle_lhs_call with proper
11028 2014-05-22 Jakub Jelinek <jakub@redhat.com>
11030 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
11031 all padding bits in REAL_VALUE_TYPE are cleared.
11033 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11035 Cleanup and improve multipass_dfa_lookahead_guard
11036 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
11037 (core2i7_first_cycle_multipass_begin,)
11038 (core2i7_first_cycle_multipass_issue,)
11039 (core2i7_first_cycle_multipass_backtrack): Update signature.
11040 * config/ia64/ia64.c
11041 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
11042 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
11043 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
11045 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
11046 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
11048 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
11050 * doc/tm.texi: Regenerate.
11052 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
11053 * haifa-sched.c (ready_try): Make signed to allow negative values.
11054 (rebug_ready_list_1): Update.
11055 (choose_ready): Simplify.
11056 (sched_extend_ready_list): Update.
11058 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11060 Remove IA64 speculation tweaking flags
11061 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
11062 speculation tuning flags.
11063 (msched-prefer-non-data-spec-insns,)
11064 (msched-prefer-non-control-spec-insns): Obsolete options.
11065 * haifa-sched.c (choose_ready): Remove handling of
11066 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11067 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
11068 and PREFER_NON_DATA_SPEC.
11069 * sel-sched.c (process_spec_exprs): Remove handling of
11070 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11072 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11074 Improve scheduling debug output
11075 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
11076 (advance_one_cycle): Update.
11077 (schedule_insn, queue_to_ready): Add debug printouts.
11078 (debug_ready_list_1): New static function.
11079 (debug_ready_list): Update.
11080 (max_issue): Add debug printouts.
11081 (dump_insn_stream): New static function.
11082 (schedule_block): Use it. Also better indent printouts.
11084 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11086 Fix sched_insn debug counter
11087 * haifa-sched.c (schedule_insn): Update.
11088 (struct haifa_saved_data): Add nonscheduled_insns_begin.
11089 (save_backtrack_point, restore_backtrack_point): Update.
11090 (first_nonscheduled_insn): New static function.
11091 (queue_to_ready, choose_ready): Use it.
11092 (schedule_block): Init nonscheduled_insns_begin.
11093 (sched_emit_insn): Update.
11096 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11098 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
11100 (aarch64_secondary_reload) : LikeWise.
11101 (aarch64_class_max_nregs) : Remove CORE_REGS.
11102 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
11103 (REG_CLASS_NAMES) : Likewise.
11104 (REG_CLASS_CONTENTS) : LikeWise.
11105 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
11107 2014-05-21 Guozhi Wei <carrot@google.com>
11110 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
11112 (vqdmulhq_n_s16): Likewise.
11114 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11116 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
11118 2014-05-21 Marek Polacek <polacek@redhat.com>
11121 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
11123 2014-05-21 Martin Jambor <mjambor@suse.cz>
11125 * doc/invoke.texi (Optimize Options): Document parameters
11126 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
11127 ipa-cp-array-index-hint-bonus.
11129 2014-05-21 Mark Wielaard <mjw@redhat.com>
11132 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
11133 version >= 3 or not strict DWARF.
11134 * langhooks.h (struct lang_hooks_for_types): Add
11135 enum_underlying_base_type.
11136 * langhooks.c (lhd_enum_underlying_base_type): New function.
11137 * gcc/langhooks.h (struct lang_hooks_for_types): Add
11138 enum_underlying_base_type.
11139 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
11140 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
11141 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
11143 2014-05-21 Richard Biener <rguenther@suse.de>
11145 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
11147 2014-05-21 John Marino <gnugcc@marino.st>
11149 * config.gcc (*-*-dragonfly*): New target.
11150 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
11151 * configure: Regenerate.
11152 * config/dragonfly-stdint.h: New.
11153 * config/dragonfly.h: New.
11154 * config/dragonfly.opt: New.
11155 * config/i386/dragonfly.h: New.
11156 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
11158 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11160 * tree.def (VOID_CST): New.
11161 * tree-core.h (TI_VOID): New.
11162 * tree.h (void_node): New.
11163 * tree.c (tree_node_structure_for_code, tree_code_size)
11164 (iterative_hash_expr): Handle VOID_CST.
11165 (build_common_tree_nodes): Initialize void_node.
11167 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
11169 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
11171 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
11173 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
11176 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
11177 flag_reorder_blocks_and_partition.
11178 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
11180 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
11183 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
11185 (*addc_r_t): Add new insn_and_split.
11187 2014-05-21 Jakub Jelinek <jakub@redhat.com>
11189 PR middle-end/61252
11190 * omp-low.c (handle_simd_reference): New function.
11191 (lower_rec_input_clauses): Use it. Defer adding reference
11192 initialization even for reduction without placeholder if in simd,
11193 handle it properly later on.
11195 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11197 PR tree-optimization/60899
11198 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
11199 assume all static symbols will have definition wile parsing and
11200 check the do have definition later in compilation; check that
11201 variable referring symbol will be output before concluding that
11202 reference is safe; be conservative for referring local statics;
11203 be more precise about when comdat is output in other partition.
11205 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11208 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
11210 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
11211 (ipa_inline): Loop inline_to_all_callers until no more aliases
11214 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11216 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
11217 set writeonly flag only for vars actually written to.
11219 2014-05-20 Dehao Chen <dehao@google.com>
11221 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
11222 and callee count to get clone count.
11223 * tree-inline.c (expand_call_inline): Use callee count instead of bb
11224 count in copy_body.
11226 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
11228 PR rtl-optimization/61243
11229 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
11231 2014-05-20 Xinliang David Li <davidxl@google.com>
11233 * cgraphunit.c (walk_polymorphic_call_targets): Add
11234 dbgcnt and fopt-info support.
11235 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
11236 * ipa-devirt.c (ipa_devirt): Ditto.
11237 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
11238 * ipa.c (walk_polymorphic_call_targets): Ditto.
11239 * gimple-fold.c (fold_gimple_assign): Ditto.
11240 (gimple_fold_call): Ditto.
11241 * dbgcnt.def: New counter.
11243 2014-05-20 DJ Delorie <dj@redhat.com>
11245 * config/msp430/msp430.md (split): Don't allow subregs when
11246 splitting SImode adds.
11247 (andneghi): Fix subtraction logic.
11248 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
11250 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11252 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
11254 * except.c (switch_to_exception_section, resolve_unique_section,
11255 get_named_text_section, default_function_rodata_section,
11256 align_variable, get_block_for_decl, default_section_type_flags):
11257 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11258 * symtab.c (symtab_add_to_same_comdat_group,
11259 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
11260 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
11262 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
11263 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
11264 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11265 (c6x_function_in_section_p): Likewise.
11266 * config/darwin.c (machopic_select_section): Likewise.
11267 * config/arm/arm.c (arm_function_in_section_p): Likewise.
11268 * config/mips/mips.c (mips_function_rodata_section): Likewise.
11269 * config/mep/mep.c (mep_select_section): LIkewise.
11270 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11272 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
11274 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
11275 EH region of calls to pure functions that can throw an exception.
11276 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
11277 (copy_reference_ops_from_call): Also copy the EH region of the call if
11278 it can throw an exception.
11280 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11282 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
11283 nested VEC_SELECTs that are inverses of each other.
11285 2014-05-20 Richard Biener <rguenther@suse.de>
11287 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
11288 (extract_and_process_scc_for_name): not here.
11289 (cond_dom_walker::before_dom_children): Only process
11290 stmts that end the BB in interesting ways.
11291 (run_scc_vn): Mark param uses as visited.
11293 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11295 * config/arm/arm.md (arith_shiftsi): Do not predicate for
11298 2014-05-20 Nick Clifton <nickc@redhat.com>
11300 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11301 (msp430_gimplify_va_arg_expr): New function.
11302 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
11304 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
11305 operand 0 in order to prevent confusion about the number of
11306 registers involved.
11308 2014-05-20 Richard Biener <rguenther@suse.de>
11310 PR tree-optimization/61221
11311 * tree-ssa-pre.c (el_to_update): Remove.
11312 (eliminate_dom_walker::before_dom_children): Handle released
11313 VDEFs by value-numbering them to the associated VUSE. Update
11314 stmt immediately for substituted call address.
11315 (eliminate): Remove delayed stmt updating code.
11316 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
11317 possibly late re-numbered vuses.
11318 (vn_reference_lookup_2): Adjust.
11319 (vn_reference_lookup_pieces): Likewise.
11320 (vn_reference_lookup): Likewise.
11322 2014-05-20 Richard Biener <rguenther@suse.de>
11324 * config.gcc: Remove need_64bit_hwint.
11325 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
11326 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
11328 * config.in: Regenerate.
11329 * configure: Likewise.
11331 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
11333 * doc/extend.texi: Create Label Attributes section,
11334 move all label attributes into it and reference it.
11336 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
11338 * arm.c (thumb1_reorg): When scanning backwards skip anything
11339 that's not a proper insn.
11341 2014-05-19 Richard Biener <rguenther@suse.de>
11343 PR tree-optimization/61221
11344 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11345 Do nothing for unreachable blocks.
11346 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
11347 Improve unreachability detection.
11349 2014-05-19 Richard Biener <rguenther@suse.de>
11351 PR tree-optimization/61209
11352 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
11354 2014-05-19 Nick Clifton <nickc@redhat.com>
11356 * except.c (init_eh): Fix computation of builtin setjmp buffer
11357 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
11359 2014-05-19 Richard Biener <rguenther@suse.de>
11361 PR tree-optimization/61184
11362 * tree-vrp.c (is_negative_overflow_infinity): Use
11363 TREE_OVERFLOW_P and do that check first.
11364 (is_positive_overflow_infinity): Likewise.
11365 (is_overflow_infinity): Likewise.
11366 (vrp_operand_equal_p): Properly treat operands with
11367 differing overflow as not equal.
11369 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
11371 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
11372 shift simplification where it was intended.
11374 2014-05-19 Christian Bruel <christian.bruel@st.com>
11377 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
11379 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
11382 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11385 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11387 * reg-notes.def (CROSSING_JUMP): Likewise.
11388 * rtl.h (rtx_def): Update comment for jump flag.
11389 (CROSSING_JUMP_P): Define.
11390 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
11391 of a REG_CROSSING_JUMP note.
11392 * cfghooks.c (tidy_fallthru_edges): Likewise.
11393 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
11394 * emit-rtl.c (try_split): Likewise.
11395 * haifa-sched.c (sched_create_recovery_edges): Likewise.
11396 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11397 * jump.c (redirect_jump_2): Likewise.
11398 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
11399 (relax_delay_slots): Likewise.
11400 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
11401 (bbit_di): Likewise.
11402 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
11403 * config/sh/sh.md (jump_compact): Likewise.
11404 * bb-reorder.c (rotate_loop): Likewise.
11405 (pass_duplicate_computed_gotos::execute): Likewise.
11406 (add_reg_crossing_jump_notes): Rename to...
11407 (update_crossing_jump_flags): ...this.
11408 (pass_partition_blocks::execute): Update accordingly.
11410 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11412 * tree.h: Remove extraneous template <>.
11414 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11416 * ipa.c (symtab_remove_unreachable_nodes): Remove
11417 symbol from comdat group if its body was eliminated.
11418 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
11419 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
11420 (symtab_unregister_node): ... this one.
11421 (verify_symtab_base): More strict checking of comdats.
11422 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
11424 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11426 * tree-pass.h (make_pass_ipa_comdats): New pass.
11427 * timevar.def (TV_IPA_COMDATS): New timevar.
11428 * passes.def (pass_ipa_comdats): Add.
11429 * Makefile.in (OBJS): Add ipa-comdats.o
11430 * ipa-comdats.c: New file.
11432 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11434 * ipa.c (update_visibility_by_resolution_info): New function.
11435 (function_and_variable_visibility): Use it.
11437 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11439 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
11441 (FOR_EACH_DEFINED_SYMBOL): New macro.
11442 (varpool_first_static_initializer, varpool_next_static_initializer,
11443 varpool_first_defined_variable, varpool_next_defined_variable):
11445 (symtab_in_same_comdat_p): Correctly deal with inline functions.
11447 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11449 * ggc-page.c (ggc_handle_finalizers): Add comment.
11451 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11453 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
11454 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
11455 (ggc_internal_cleared_alloc): Likewise.
11456 * ggc-page.c (finalizer): New class.
11457 (vec_finalizer): Likewise.
11458 (globals::finalizers): New member.
11459 (globals::vec_finalizers): Likewise.
11460 (ggc_internal_alloc): Record the finalizer if any for the block being
11462 (ggc_handle_finalizers): New function.
11463 (ggc_collect): Call ggc_handle_finalizers.
11464 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
11466 (ggc_internal_cleared_alloc): Likewise.
11467 (finalize): New function.
11468 (need_finalization_p): Likewise.
11469 (ggc_alloc): Install the type's destructor as the finalizer if it
11470 might do something.
11471 (ggc_cleared_alloc): Likewise.
11472 (ggc_vec_alloc): Likewise.
11473 (ggc_cleared_vec_alloc): Likewise.
11475 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11477 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
11479 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11481 * alias.c (record_alias_subset): Adjust.
11482 * bitmap.c (bitmap_element_allocate): Likewise.
11483 (bitmap_gc_alloc_stat): Likewise.
11484 * cfg.c (init_flow): Likewise.
11485 (alloc_block): Likewise.
11486 (unchecked_make_edge): Likewise.
11487 * cfgloop.c (alloc_loop): Likewise.
11488 (flow_loops_find): Likewise.
11489 (rescan_loop_exit): Likewise.
11490 * cfgrtl.c (init_rtl_bb_info): Likewise.
11491 * cgraph.c (insert_new_cgraph_node_version): Likewise.
11492 (cgraph_allocate_node): Likewise.
11493 (cgraph_create_edge_1): Likewise.
11494 (cgraph_allocate_init_indirect_info): Likewise.
11495 * cgraphclones.c (cgraph_clone_edge): Likewise.
11496 * cgraphunit.c (add_asm_node): Likewise.
11497 (init_lowered_empty_function): Likewise.
11498 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
11499 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11500 (alpha_use_linkage): Likewise.
11501 * config/arc/arc.c (arc_init_machine_status): Likewise.
11502 * config/arm/arm.c (arm_init_machine_status): Likewise.
11503 * config/avr/avr.c (avr_init_machine_status): Likewise.
11504 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11505 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
11506 * config/cris/cris.c (cris_init_machine_status): Likewise.
11507 * config/darwin.c (machopic_indirection_name): Likewise.
11508 (darwin_build_constant_cfstring): Likewise.
11509 (darwin_enter_string_into_cfstring_table): Likewise.
11510 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
11511 * config/frv/frv.c (frv_init_machine_status): Likewise.
11512 * config/i386/i386.c (get_dllimport_decl): Likewise.
11513 (ix86_init_machine_status): Likewise.
11514 (assign_386_stack_local): Likewise.
11515 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11516 (i386_pe_maybe_record_exported_symbol): Likewise.
11517 (i386_pe_record_stub): Likewise.
11518 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11519 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11520 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11521 (m32c_note_pragma_address): Likewise.
11522 * config/mep/mep.c (mep_init_machine_status): Likewise.
11523 (mep_note_pragma_flag): Likewise.
11524 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11525 (mips16_local_alias): Likewise.
11526 (mips_init_machine_status): Likewise.
11527 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11528 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11529 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
11530 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
11531 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
11532 * config/pa/pa.c (pa_init_machine_status): Likewise.
11533 (pa_get_deferred_plabel): Likewise.
11534 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
11535 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11536 (rs6000_init_machine_status): Likewise.
11537 (output_toc): Likewise.
11538 * config/s390/s390.c (s390_init_machine_status): Likewise.
11539 * config/score/score.c (score_output_external): Likewise.
11540 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11541 * config/spu/spu.c (spu_init_machine_status): Likewise.
11542 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
11543 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
11544 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11545 * coverage.c (coverage_end_function): Likewise.
11546 * dbxout.c (dbxout_init): Likewise.
11547 * doc/gty.texi: Don't mention variable_size attribute.
11548 * dwarf2cfi.c (new_cfi): Adjust.
11549 (new_cfi_row): Likewise.
11550 (copy_cfi_row): Likewise.
11551 (create_cie_data): Likewise.
11552 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
11553 (new_loc_descr): Likewise.
11554 (find_AT_string_in_table): Likewise.
11555 (add_addr_table_entry): Likewise.
11556 (new_die): Likewise.
11557 (add_var_loc_to_decl): Likewise.
11558 (clone_die): Likewise.
11559 (clone_as_declaration): Likewise.
11560 (break_out_comdat_types): Likewise.
11561 (new_loc_list): Likewise.
11562 (add_loc_descr_to_each): Likewise.
11563 (add_location_or_const_value_attribute): Likewise.
11564 (add_linkage_name): Likewise.
11565 (lookup_filename): Likewise.
11566 (dwarf2out_var_location): Likewise.
11567 (new_line_info_table): Likewise.
11568 (dwarf2out_init): Likewise.
11569 (mem_loc_descriptor): Likewise.
11570 (loc_descriptor): Likewise.
11571 (add_const_value_attribute): Likewise.
11572 (tree_add_const_value_attribute): Likewise.
11573 (comp_dir_string): Likewise.
11574 (dwarf2out_vms_debug_main_pointer): Likewise.
11575 (string_cst_pool_decl): Likewise.
11576 * emit-rtl.c (set_mem_attrs): Likewise.
11577 (get_reg_attrs): Likewise.
11578 (start_sequence): Likewise.
11579 (init_emit): Likewise.
11580 (init_emit_regs): Likewise.
11581 * except.c (init_eh_for_function): Likewise.
11582 (gen_eh_region): Likewise.
11583 (gen_eh_region_catch): Likewise.
11584 (gen_eh_landing_pad): Likewise.
11585 (add_call_site): Likewise.
11586 * function.c (add_frame_space): Likewise.
11587 (insert_temp_slot_address): Likewise.
11588 (assign_stack_temp_for_type): Likewise.
11589 (get_hard_reg_initial_val): Likewise.
11590 (allocate_struct_function): Likewise.
11591 (prepare_function_start): Likewise.
11592 (types_used_by_var_decl_insert): Likewise.
11593 * gengtype.c (variable_size_p): Remove function.
11594 (enum alloc_quantity): Remove enum.
11595 (write_typed_alloc_def): Remove function.
11596 (write_typed_struct_alloc_def): Likewise.
11597 (write_typed_typedef_alloc_def): Likewise.
11598 (write_typed_alloc_defns): Likewise.
11600 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
11601 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
11602 * ggc.h (ggc_alloc): new function.
11603 (ggc_cleared_alloc): Likewise.
11604 (ggc_vec_alloc): Template on type of vector element, and remove
11605 element size argument.
11606 (ggc_cleared_vec_alloc): Likewise.
11607 * gimple.c (gimple_build_omp_for): Adjust.
11608 (gimple_copy): Likewise.
11609 * ipa-cp.c (get_replacement_map): Likewise.
11610 (find_aggregate_values_for_callers_subset): Likewise.
11611 (known_aggs_to_agg_replacement_list): Likewise.
11612 * ipa-devirt.c (get_odr_type): Likewise.
11613 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
11614 (read_agg_replacement_chain): Likewise.
11615 * loop-iv.c (get_simple_loop_desc): Likewise.
11616 * lto-cgraph.c (input_node_opt_summary): Likewise.
11617 * lto-section-in.c (lto_new_in_decl_state): Likewise.
11618 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11619 (input_eh_region): Likewise.
11620 (input_eh_lp): Likewise.
11621 (input_cfg): Likewise.
11622 * optabs.c (set_optab_libfunc): Likewise.
11623 (init_tree_optimization_optabs): Likewise.
11624 (set_conv_libfunc): Likewise.
11625 * passes.c (do_per_function_toporder): Likewise.
11626 * rtl.h: Don't use variable_size gty attribute.
11627 * sese.c (if_region_set_false_region): Adjust.
11628 * stringpool.c (gt_pch_save_stringpool): Likewise.
11629 * target-globals.c (save_target_globals): Likewise.
11630 * toplev.c (general_init): Likewise.
11631 * trans-mem.c (record_tm_replacement): Likewise.
11632 (split_bb_make_tm_edge): Likewise.
11633 * tree-cfg.c (move_sese_region_to_fn): Likewise.
11634 * tree-data-ref.h (lambda_vector_new): Likewise.
11635 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11636 * tree-iterator.c (tsi_link_before): Likewise.
11637 (tsi_link_after): Likewise.
11638 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11639 * tree-ssa-loop-niter.c (record_estimate): Likewise.
11640 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11641 * tree-ssa-operands.h: Don't use variable_size gty attribute.
11642 * tree-ssa.c (init_tree_ssa): Adjust.
11643 * tree-ssanames.c (set_range_info): Likewise.
11644 (get_ptr_info): Likewise.
11645 (duplicate_ssa_name_ptr_info): Likewise.
11646 (duplicate_ssa_name_range_info): Likewise.
11647 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
11648 (unpack_ts_fixed_cst_value_fields): Likewise.
11649 * tree.c (build_fixed): Likewise.
11650 (build_real): Likewise.
11651 (build_string): Likewise.
11652 (decl_priority_info): Likewise.
11653 (decl_debug_expr_insert): Likewise.
11654 (decl_value_expr_insert): Likewise.
11655 (decl_debug_args_insert): Likewise.
11656 (type_hash_add): Likewise.
11657 (build_omp_clause): Likewise.
11658 * ubsan.c (decl_for_type_insert): Likewise.
11659 * varasm.c (get_unnamed_section): Likewise.
11660 (get_noswitch_section): Likewise.
11661 (get_section): Likewise.
11662 (get_block_for_section): Likewise.
11663 (create_block_symbol): Likewise.
11664 (build_constant_desc): Likewise.
11665 (create_constant_pool): Likewise.
11666 (force_const_mem): Likewise.
11667 (record_tm_clone_pair): Likewise.
11668 * varpool.c (varpool_create_empty_node): Likewise.
11670 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11672 * dwarf2out.c (tree_add_const_value_attribute): Call
11673 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
11674 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
11675 instead of ggc_internal_<x>alloc_stat.
11676 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
11677 (ggc_realloc): Likewise.
11678 * ggc-none.c (ggc_internal_alloc): Likewise.
11679 (ggc_internal_cleared_alloc): Likewise.
11680 * ggc-page.c: Likewise.
11681 * ggc.h (ggc_internal_alloc_stat): Likewise.
11682 (ggc_internal_alloc): Remove macro.
11683 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
11684 (ggc_internal_cleared_alloc): Remove macro.
11685 (GGC_RESIZEVEC): Adjust.
11686 (ggc_resizevar): Remove macro.
11687 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
11688 (ggc_internal_cleared_vec_alloc_stat): Likewise.
11689 (ggc_internal_vec_cleared_alloc): Remove macro.
11690 (ggc_alloc_atomic_stat): Drop _stat suffix.
11691 (ggc_alloc_atomic): Remove macro.
11692 (ggc_alloc_cleared_atomic): Remove macro.
11693 (ggc_alloc_string_stat): Drop _stat suffix.
11694 (ggc_alloc_string): Remove macro.
11695 (ggc_alloc_rtx_def_stat): Adjust.
11696 (ggc_alloc_tree_node_stat): Likewise.
11697 (ggc_alloc_cleared_tree_node_stat): Likewise.
11698 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
11699 (ggc_alloc_cleared_simd_clone_stat): Likewise.
11700 * gimple.c (gimple_build_omp_for): Likewise.
11701 (gimple_copy): Likewise.
11702 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
11703 * toplev.c (realloc_for_line_map): Adjust.
11704 * tree-data-ref.h (lambda_vector_new): Likewise.
11705 * tree-phinodes.c (allocate_phi_node): Likewise.
11706 * tree.c (grow_tree_vec_stat): Likewise.
11707 * vec.h (va_gc::reserve): Adjust.
11709 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
11711 * config/microblaze/microblaze.c (break_handler): New Declaration.
11712 (microblaze_break_function_p,microblaze_is_break_handler): New.
11713 (compute_frame_size): Use microblaze_break_function_p.
11714 Add the test of break_handler.
11715 (microblaze_function_prologue) : Add the test of variable
11716 break_handler. Check the fnname by BREAK_HANDLER_NAME.
11717 (microblaze_function_epilogue) : Add the test of break_handler.
11718 (microblaze_globalize_label) : Add the test of break_handler.
11719 Check the name by BREAK_HANDLER_NAME.
11721 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11723 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11724 microblaze_is_break_handler test.
11725 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11726 Use SYMBOL_REF_DECL.
11728 * config/microblaze/microblaze-protos.h
11729 (microblaze_break_function_p,microblaze_is_break_handler):
11732 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11733 new MicroBlaze break_handler functions.
11735 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11737 * doc/extend.texi (Size of an asm): Move node text according
11738 to its @menu entry position.
11740 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11742 PR tree-optimization/61140
11743 PR tree-optimization/61150
11744 PR tree-optimization/61197
11745 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11747 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11749 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11751 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11753 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11754 __SIZEOF_INT128__ is defined.
11756 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11758 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11759 (rs6000_delegitimize_address): Use it.
11761 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11763 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11764 inplace argument. Store the new address in the original MEM when true.
11765 * emit-rtl.c (change_address_1): Likewise.
11766 (adjust_address_1, adjust_automodify_address_1, offset_address):
11767 Update accordingly.
11768 * rtl.h (plus_constant): Add an inplace argument.
11769 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11770 when true. Avoid generating (plus X (const_int 0)).
11771 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11772 in-place. Pass true to plus_constant.
11773 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11775 2014-05-16 Dehao Chen <dehao@google.com>
11777 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11779 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11782 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11784 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11786 2014-05-16 Dehao Chen <dehao@google.com>
11788 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11789 optimize_function_for_size_p.
11790 * regs.h (REG_FREQ_FROM_BB): Likewise.
11792 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11795 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11796 negt_reg_operand cases.
11797 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11799 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11801 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11803 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11806 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11809 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11811 * tree-cfg.c (dump_function_to_file): Dump the return type of
11812 functions, in a line to itself before the function body, mimicking
11813 the layout of a C function.
11815 2014-05-16 Dehao Chen <dehao@google.com>
11817 * cfghooks.c (make_forwarder_block): Use direct computation to
11818 get fall-through edge's count and frequency.
11820 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11822 * config/arc/arc.c (arc_init): Fix typo in error message.
11823 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11824 (split_stack_prologue_scratch_regno): Likewise.
11825 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11826 word from error message.
11828 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11830 * ira-costs.c: Fix typo in comment.
11832 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11834 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11836 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11838 * varpool.c (dump_varpool_node): Dump write-only flag.
11839 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11841 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11842 write-only variables.
11843 * ipa.c (process_references): New function.
11844 (set_readonly_bit): New function.
11845 (set_writeonly_bit): New function.
11846 (clear_addressable_bit): New function.
11847 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11848 fix handling of aliases.
11849 * cgraph.h (struct varpool_node): Add writeonly flag.
11851 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11853 PR rtl-optimization/60969
11854 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11855 Calculate costs for this case.
11857 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11859 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11860 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11862 2014-05-16 Richard Biener <rguenther@suse.de>
11864 PR tree-optimization/61194
11865 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11866 bool patterns ending in a COND_EXPR.
11868 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11870 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11872 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11874 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11875 where we were unable to cost an RTX.
11877 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11879 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11882 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11883 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11885 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11887 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11888 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11890 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11891 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11893 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11894 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11896 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11899 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11900 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11902 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11905 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11906 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11908 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11909 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11911 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11912 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11914 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11915 rotates and shifts.
11917 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11918 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11920 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11921 ZERO_EXTEND and SIGN_EXTEND better.
11923 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11924 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11926 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11927 logical operations.
11929 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11930 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11932 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11933 costs when costing loads and stores to memory.
11935 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11936 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11938 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11941 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11943 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11945 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11946 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11948 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11950 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11952 (aarch64_rtx_mult_cost): New.
11953 (aarch64_rtx_costs): Use it, refactor as appropriate.
11955 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11956 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11958 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11959 emit instructions, return number of instructions which would
11961 (aarch64_add_constant): Update call to aarch64_build_constant.
11962 (aarch64_output_mi_thunk): Likewise.
11963 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11966 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11968 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11969 (TARGET_RTX_COSTS): Call it.
11971 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11973 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11974 (cortexa57_vector_cost): Likewise.
11975 (cortexa57_tunings): Use them.
11977 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11979 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11980 (cpu_addrcost_table): Use it.
11981 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11982 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11985 2014-05-16 Richard Biener <rguenther@suse.de>
11987 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11988 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11989 (visit_phi): Ignore edges marked as not executable.
11990 (class cond_dom_walker): New.
11991 (cond_dom_walker::before_dom_children): Value-number
11992 control statements and mark successor edges as not
11993 executable if possible.
11994 (run_scc_vn): First walk all control statements in
11995 dominator order, marking edges as not executable.
11996 * tree-inline.c (copy_edges_for_bb): Be not confused
11997 about random edge flags.
11999 2014-05-16 Richard Biener <rguenther@suse.de>
12001 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
12003 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
12006 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
12007 (__TM_simple_begin): Use it.
12008 (__TM_begin): Likewise.
12010 2014-05-15 Martin Jambor <mjambor@suse.cz>
12013 * ipa-prop.c (update_indirect_edges_after_inlining): Check
12014 type_preserved flag when the indirect edge is polymorphic.
12016 2014-05-15 Martin Jambor <mjambor@suse.cz>
12018 PR tree-optimization/61090
12019 * tree-sra.c (sra_modify_expr): Pass the current gsi to
12020 build_ref_for_model.
12022 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12024 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
12025 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
12027 2014-05-15 Jakub Jelinek <jakub@redhat.com>
12029 PR tree-optimization/61158
12030 * fold-const.c (fold_binary_loc): If X is zero-extended and
12031 shiftc >= prec, make sure zerobits is all ones instead of
12032 invoking undefined behavior.
12034 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12036 * regcprop.h: New file.
12037 * regcprop.c (skip_debug_insn_p): New decl.
12038 (replace_oldest_value_reg): Check skip_debug_insn_p.
12039 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
12040 * shrink-wrap.c: Include regcprop.h.
12041 (prepare_shrink_wrap): Call
12042 copyprop_hardreg_forward_bb_without_debug_insn.
12044 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12046 * shrink-wrap.h: Update comment.
12047 * shrink-wrap.c: Update comment.
12048 (next_block_for_reg): Rename to live_edge_for_reg.
12049 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
12050 (move_insn_for_shrink_wrap): Split live_edge.
12051 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
12053 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12055 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
12057 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
12058 * config/sparc/sparc.md (fptype_ut699): New attribute.
12059 (in_branch_delay): Return false if -mfix-ut699 is specified and
12060 fptype_ut699 is set to single.
12061 (truncdfsf2): Add fptype_ut699 attribute.
12062 (fix_truncdfsi2): Likewise.
12063 (floatsisf2): Change fptype attribute.
12064 (fix_truncsfsi2): Likewise.
12065 (negtf2_notv9): Delete.
12066 (negtf2_v9): Likewise.
12067 (negtf2_hq): New instruction.
12068 (negtf2): New instruction and splitter.
12069 (negdf2_notv9): Rewrite.
12070 (abstf2_notv9): Delete.
12071 (abstf2_hq_v9): Likewise.
12072 (abstf2_v9): Likewise.
12073 (abstf2_hq): New instruction.
12074 (abstf2): New instruction and splitter.
12075 (absdf2_notv9): Rewrite.
12077 2014-05-14 Cary Coutant <ccoutant@google.com>
12080 * opts.c (common_handle_option): Don't special-case "-g".
12081 (set_debug_level): Default to at least level 2 with "-g".
12083 2014-05-14 DJ Delorie <dj@redhat.com>
12085 * config/msp430/msp430.c (msp430_builtin): Add
12086 MSP430_BUILTIN_DELAY_CYCLES.
12087 (msp430_init_builtins): Register void __delay_cycles(long long).
12088 (msp430_builtin_decl): Add it.
12089 (cg_magic_constant): New.
12090 (msp430_expand_delay_cycles): New.
12091 (msp430_expand_builtin): Call it.
12092 (msp430_print_operand_raw): Change integer printing from "int" to
12094 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
12095 (delay_cycles_start): New.
12096 (delay_cycles_end): New.
12097 (delay_cycles_32): New.
12098 (delay_cycles_32x): New.
12099 (delay_cycles_16): New.
12100 (delay_cycles_16x): New.
12101 (delay_cycles_2): New.
12102 (delay_cycles_1): New.
12103 * doc/extend.texi: Document __delay_cycles().
12105 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
12107 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
12108 length attribute computation.
12110 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
12113 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
12115 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
12118 * config/sparc/sparc.md: Fix types of low and high in DI constant
12119 splitter. Use gen_int_mode in some other splitters.
12121 2014-05-14 Martin Jambor <mjambor@suse.cz>
12124 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
12126 2014-05-14 James Norris <jnorris@codesourcery.com>
12128 * omp-low.c (expand_parallel_call): Remove shadow variable.
12129 (expand_omp_taskreg): Likewise.
12131 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
12133 * common/config/i386/i386-common.c
12134 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
12135 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
12136 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
12137 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
12138 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
12139 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
12140 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
12141 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
12142 xsavecintrin.h, xsavesintrin.h.
12143 (x86_64-*-*): Ditto.
12144 * config/i386/clflushoptintrin.h: New.
12145 * config/i386/xsavecintrin.h: Ditto.
12146 * config/i386/xsavesintrin.h: Ditto.
12147 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
12148 (bit_XSAVES): Ditto.
12149 (bit_XSAVES): Ditto.
12150 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
12151 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
12153 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12154 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
12155 OPTION_MASK_ISA_XSAVES.
12156 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
12157 -mxsavec, -mxsaves.
12158 (PTA_CLFLUSHOPT) Define.
12159 (PTA_XSAVEC): Ditto.
12160 (PTA_XSAVES): Ditto.
12161 (ix86_option_override_internal): Handle new options.
12162 (ix86_valid_target_attribute_inner_p): Ditto.
12163 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
12164 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
12165 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
12166 (bdesc_special_args): Add __builtin_ia32_xsaves,
12167 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
12168 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
12169 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
12170 (ix86_expand_builtin): Handle new builtins.
12171 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
12172 (TARGET_CLFLUSHOPT_P): Ditto.
12173 (TARGET_XSAVEC): Ditto.
12174 (TARGET_XSAVEC_P): Ditto.
12175 (TARGET_XSAVES): Ditto.
12176 (TARGET_XSAVES_P): Ditto.
12177 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
12178 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
12179 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
12181 (ANY_XRSTOR64): Ditto.
12183 (xrstor): Change into <xrstor>.
12184 (xrstor_rex64): Change into <xrstor>_rex64.
12185 (xrstor64): Change into <xrstor>64
12187 * config/i386/i386.opt (mclflushopt): New.
12190 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
12192 * doc/invoke.texi: Document new options.
12194 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12196 PR rtl-optimization/60866
12197 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
12198 Default it to -1. Pass it down to init_simplejump_data.
12199 (init_simplejump_data): New parameter old_seqno. Pass it down
12200 to get_seqno_for_a_jump.
12201 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
12202 initializing new jump seqno as a last resort. Add comment.
12203 (sel_redirect_edge_and_branch): Save old seqno of the conditional
12204 jump and pass it down to sel_init_new_insn.
12205 (sel_redirect_edge_and_branch_force): Likewise.
12207 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
12209 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
12210 shifted values to avoid build warning.
12212 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12214 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
12215 * cfgrtl.c (rtl_merge_blocks): Fix comment.
12216 (cfg_layout_merge_blocks): Likewise.
12217 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
12219 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12221 PR rtl-optimization/60901
12222 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
12223 bb predecessor belongs to the same scheduling region. Adjust comment.
12225 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
12227 * doc/sourcebuild.texi: (dfp_hw): Document.
12228 (p8vector_hw): Likewise.
12229 (powerpc_eabi_ok): Likewise.
12230 (powerpc_elfv2): Likewise.
12231 (powerpc_htm_ok): Likewise.
12232 (ppc_recip_hw): Likewise.
12233 (vsx_hw): Likewise.
12235 2014-05-13 Cary Coutant <ccoutant@google.com>
12237 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
12239 2014-05-13 David Malcolm <dmalcolm@redhat.com>
12241 * gengtype-parse.c (require3): Eliminate in favor of...
12243 (require_template_declaration): Update to support optional single *
12246 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
12247 (create_user_defined_type): Handle a single level of explicit
12248 pointerness within template arguments.
12249 (struct write_types_data): Add field "kind".
12250 (filter_type_name): Handle "*" character.
12251 (write_user_func_for_structure_ptr): Require a write_types_data
12252 rather than just a prefix string, so that we can look up the kind
12253 of the wtd and use it as an index into wrote_user_func_for_ptr,
12254 ensuring that such functions are written at most once. Support
12255 subclasses by invoking the marking function of the ultimate base class.
12256 (write_user_func_for_structure_body): Require a write_types_data
12257 rather than just a prefix string, so that we can pass this to
12258 write_user_func_for_structure_ptr.
12259 (write_func_for_structure): Likewise.
12260 (ggc_wtd): Add initializer of new "kind" field.
12261 (pch_wtd): Likewise.
12263 * gengtype.h (enum write_types_kinds): New.
12264 (struct type): Add field wrote_user_func_for_ptr to the "s"
12267 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12269 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
12270 instead of const_binop.
12271 (fold_binary_loc): Likewise.
12273 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12275 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
12276 calculation to match get_ref_base_and_extent.
12278 2014-05-13 Catherine Moore <clm@codesourcery.com>
12279 Sandra Loosemore <sandra@codesourcery.com>
12281 * configure.ac: Fix assembly for explicit JALR relocation check.
12282 * configure: Regenerate.
12284 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12286 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
12287 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
12288 Remove associated type declarations and initialisations.
12289 (arm_expand_neon_builtin): Likewise.
12290 (neon_emit_pair_result_insn): Delete.
12291 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
12292 * config/arm/neon.md (neon_vtrn<mode>): Delete.
12293 (neon_vzip<mode>): Likewise.
12294 (neon_vuzp<mode>): Likewise.
12296 2014-05-13 Richard Biener <rguenther@suse.de>
12299 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
12300 it needs revisiting whether the call still may be tail-called.
12302 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12304 * rtl.def (SYMBOL_REF): Remove middle "0" field.
12305 * rtl.h (block_symbol): Reduce number of fields to 2.
12306 (rtx_def): Add u2.symbol_ref_flags.
12307 (SYMBOL_REF_FLAGS): Use it.
12308 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
12309 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
12310 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
12311 Lower index of SYMBOL_REF_DATA.
12312 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
12313 Print SYMBOL_REF_FLAGS at the same time.
12314 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
12316 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12318 * rtl.def (VAR_LOCATION): Remove "i" field.
12319 * rtl.h (rtx_def): Add u2.var_location_status.
12320 (PAT_VAR_LOCATION_STATUS): Use it.
12321 (gen_rtx_VAR_LOCATION): Declare.
12322 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
12323 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
12324 * var-tracking.c (emit_note_insn_var_location): Remove casts.
12326 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12328 * rtl.def (scratch): Fix outdated comment and remove "0" field.
12329 * gengtype.c (adjust_field_rtx_def): Update accordingly.
12331 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12333 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
12334 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
12335 * rtl.h (rtx_def): Add insn_uid to u2 field.
12336 (RTX_FLAG_CHECK8): Delete in favor of...
12337 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
12338 (INSN_DELETED_P): Update accordingly.
12339 (INSN_UID): Use u2.insn_uid.
12340 (INSN_CHAIN_CODE_P): Define.
12341 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
12342 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
12343 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
12344 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
12345 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
12346 indices accordingly.
12347 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
12348 Update indices for insn-chain rtxes.
12349 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
12350 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
12351 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
12352 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
12353 * combine.c (try_combine): Likewise.
12354 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12356 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12358 * rtl.def (REG): Remove middle field.
12359 * rtl.h (rtx_def): Add orignal_regno to u2.
12360 (ORIGINAL_REGNO): Use it instead of field 1.
12361 (REG_ATTRS): Lower field index accordingly.
12362 * gengtype.c (adjust_field_rtx_def): Remove handling of
12363 ORIGINAL_REGNO. Move REG_ATTRS index down.
12364 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
12365 code that prints the REGNO.
12367 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12369 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
12372 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12374 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
12376 2014-05-13 Bin Cheng <bin.cheng@arm.com>
12378 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
12379 (alloc_iv): Lower base expressions containing ADDR_EXPR.
12381 2014-05-13 Ian Bolton <ian.bolton@arm.com>
12383 * config/aarch64/aarch64-protos.h
12384 (aarch64_hard_regno_caller_save_mode): New prototype.
12385 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12387 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12389 2014-05-13 Christian Bruel <christian.bruel@st.com>
12391 * target.def (mode_switching): New hook vector.
12392 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
12393 (mode_exit, modepriority_to_mode): Likewise.
12394 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
12395 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12396 * target.h: Include tm.h and hard-reg-set.h.
12397 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
12398 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
12399 * doc/tm.texi Regenerate.
12400 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12401 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12402 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
12403 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
12404 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12405 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12406 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
12407 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
12408 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
12409 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
12410 (ix86_emit_mode_set): Hookify.
12411 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
12413 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12414 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
12415 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
12416 (epiphany_mode_priority_to_mode): Remove declaration.
12417 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
12418 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
12419 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
12421 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
12422 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
12423 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
12425 2014-05-13 Jakub Jelinek <jakub@redhat.com>
12428 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
12429 is const0_rtx, return immediately. Don't test count == 0 when
12432 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12434 * Makefile.in: add shrink-wrap.o.
12435 * config/i386/i386.c: include "shrink-wrap.h"
12436 * function.c: Likewise.
12437 (requires_stack_frame_p, next_block_for_reg,
12438 move_insn_for_shrink_wrap, prepare_shrink_wrap,
12439 dup_block_and_redirect): Move to shrink-wrap.c
12440 (thread_prologue_and_epilogue_insns): Extract three code segments
12441 as functions in shrink-wrap.c
12442 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
12444 * shrink-wrap.c: New file.
12445 * shrink-wrap.h: New file.
12447 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12449 * doc/extend.texi: Reflect current numbers of pragmas. Remove
12450 reference to Solaris.
12452 2014-05-12 Mike Stump <mikestump@comcast.net>
12455 * genattrtab.c (filename): Add.
12456 (convert_set_attr_alternative): Improve error message.
12457 (check_defs): Restore read_md_filename for error messages.
12458 (gen_insn): Save filename.
12460 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
12462 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
12463 -fno-local-ivars and -fivar-visibility.
12464 * c-family/c.opt: Make -Wshadow also implicitly enable
12467 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12469 * doc/tm.texi: Remove reference to deleted macro.
12470 * doc/tm.texi.in: Likewise.
12472 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12475 * config/avr/avr.c (avr_out_store_psi): Use correct constant
12478 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
12481 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
12482 * config/arm/aout.h (License): Same.
12483 * config/arm/bpabi.h (License): Same.
12484 * config/arm/elf.h (License): Same.
12485 * config/arm/linux-elf.h (License): Same.
12486 * config/arm/linux-gas.h (License): Same.
12487 * config/arm/netbsd-elf.h (License): Same.
12488 * config/arm/uclinux-eabi.h (License): Same.
12489 * config/arm/uclinux-elf.h (License): Same.
12490 * config/arm/vxworks.h (License): Same.
12492 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12494 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
12495 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
12496 number of operands to 3.
12497 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
12498 * tree-nested.c (convert_nonlocal_omp_clauses,
12499 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
12500 * gimplify.c (gimplify_scan_omp_clauses): Handle
12501 OMP_CLAUSE_LINEAR_STMT.
12502 * omp-low.c (lower_rec_input_clauses): Fix typo.
12503 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
12504 cast between Fortran boolean_type_node and C _Bool if
12507 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
12509 PR tree-optimization/61136
12510 * wide-int.h (multiple_of_p): Define a version that doesn't return
12512 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
12513 integer_zerop/const_binop pair.
12514 (multiple_of_p): Likewise, converting both operands to widest_int
12517 2014-05-09 Teresa Johnson <tejohnson@google.com>
12519 * cgraphunit.c (analyze_functions): Use correct dump file.
12521 2014-05-09 Florian Weimer <fweimer@redhat.com>
12523 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
12525 (stack_protect_return_slot_p): New function.
12526 (expand_used_vars): Call stack_protect_decl_p and
12527 stack_protect_return_slot_p for -fstack-protector-strong.
12529 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
12530 Andrew Haley <aph@redhat.com>
12531 Richard Sandiford <rdsandiford@googlemail.com>
12533 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
12536 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
12538 PR middle-end/61111
12539 * fold-const.c (fold_binary_loc): Changed width of mask.
12541 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12543 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
12544 unsigned int initializers for regno_in, regno_out.
12546 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12549 * config/avr/avr.md (cc): Add new attribute set_vzn.
12550 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
12551 Set cc insn attribute to set_vzn instead of set_zn for alternatives
12552 with INC, DEC or NEG.
12553 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
12554 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
12555 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
12557 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12560 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12562 * wide-int.cc (UTItype): Define.
12563 (UDWtype): Define for appropriate W_TYPE_SIZE.
12565 2014-05-09 Richard Biener <rguenther@suse.de>
12567 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
12568 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
12569 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
12570 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
12571 ssa_propagate): Adjust.
12573 2014-05-08 Jeff Law <law@redhat.com>
12575 PR tree-optimization/61009
12576 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
12577 tri-state rather than a boolean. When a block is too big to
12578 thread through, inform caller via negative return value.
12579 (thread_across_edge): If a block was too big for normal threading,
12580 then it's too big for a joiner too, so remove temporary equivalences
12581 and return immediately.
12583 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12584 Matthias Klose <doko@ubuntu.com>
12587 * optc-gen.awk: Fix option handling for -Wunused-parameter.
12589 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12592 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
12594 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12597 * config/alpha/alpha.c: Include gimple-iterator.h.
12598 (alpha_gimple_fold_builtin): New function. Move
12599 ALPHA_BUILTIN_UMULH folding from ...
12600 (alpha_fold_builtin): ... here.
12601 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
12603 2014-05-08 Wei Mi <wmi@google.com>
12606 * config/i386/i386.c (ix86_compute_frame_layout): Update
12607 preferred_stack_boundary for call, expanded from tls descriptor.
12608 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
12609 to depend on SP register.
12610 (*tls_local_dynamic_base_32_gnu): Ditto.
12611 (*tls_local_dynamic_32_once): Ditto.
12612 (tls_global_dynamic_64_<mode>): Set
12613 ix86_tls_descriptor_calls_expanded_in_cfun.
12614 (tls_local_dynamic_base_64_<mode>): Ditto.
12615 (tls_global_dynamic_32): Set
12616 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
12617 to depend on SP register.
12618 (tls_local_dynamic_base_32): Ditto.
12620 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12622 * config/arm/arm_neon.h: Update comment.
12623 * config/arm/neon-docgen.ml: Delete.
12624 * config/arm/neon-gen.ml: Delete.
12625 * doc/arm-neon-intrinsics.texi: Update comment.
12627 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12629 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
12631 (vand, vorr, veor, vorn, vbic): Remove.
12632 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
12634 (neon_vsub_unspec): Likewise.
12635 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
12637 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12639 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
12640 (vadd_s16): Likewise.
12641 (vadd_s32): Likewise.
12642 (vadd_f32): Likewise.
12643 (vadd_u8): Likewise.
12644 (vadd_u16): Likewise.
12645 (vadd_u32): Likewise.
12646 (vadd_s64): Likewise.
12647 (vadd_u64): Likewise.
12648 (vaddq_s8): Likewise.
12649 (vaddq_s16): Likewise.
12650 (vaddq_s32): Likewise.
12651 (vaddq_s64): Likewise.
12652 (vaddq_f32): Likewise.
12653 (vaddq_u8): Likewise.
12654 (vaddq_u16): Likewise.
12655 (vaddq_u32): Likewise.
12656 (vaddq_u64): Likewise.
12657 (vmul_s8): Likewise.
12658 (vmul_s16): Likewise.
12659 (vmul_s32): Likewise.
12660 (vmul_f32): Likewise.
12661 (vmul_u8): Likewise.
12662 (vmul_u16): Likewise.
12663 (vmul_u32): Likewise.
12664 (vmul_p8): Likewise.
12665 (vmulq_s8): Likewise.
12666 (vmulq_s16): Likewise.
12667 (vmulq_s32): Likewise.
12668 (vmulq_f32): Likewise.
12669 (vmulq_u8): Likewise.
12670 (vmulq_u16): Likewise.
12671 (vmulq_u32): Likewise.
12672 (vsub_s8): Likewise.
12673 (vsub_s16): Likewise.
12674 (vsub_s32): Likewise.
12675 (vsub_f32): Likewise.
12676 (vsub_u8): Likewise.
12677 (vsub_u16): Likewise.
12678 (vsub_u32): Likewise.
12679 (vsub_s64): Likewise.
12680 (vsub_u64): Likewise.
12681 (vsubq_s8): Likewise.
12682 (vsubq_s16): Likewise.
12683 (vsubq_s32): Likewise.
12684 (vsubq_s64): Likewise.
12685 (vsubq_f32): Likewise.
12686 (vsubq_u8): Likewise.
12687 (vsubq_u16): Likewise.
12688 (vsubq_u32): Likewise.
12689 (vsubq_u64): Likewise.
12690 (vand_s8): Likewise.
12691 (vand_s16): Likewise.
12692 (vand_s32): Likewise.
12693 (vand_u8): Likewise.
12694 (vand_u16): Likewise.
12695 (vand_u32): Likewise.
12696 (vand_s64): Likewise.
12697 (vand_u64): Likewise.
12698 (vandq_s8): Likewise.
12699 (vandq_s16): Likewise.
12700 (vandq_s32): Likewise.
12701 (vandq_s64): Likewise.
12702 (vandq_u8): Likewise.
12703 (vandq_u16): Likewise.
12704 (vandq_u32): Likewise.
12705 (vandq_u64): Likewise.
12706 (vorr_s8): Likewise.
12707 (vorr_s16): Likewise.
12708 (vorr_s32): Likewise.
12709 (vorr_u8): Likewise.
12710 (vorr_u16): Likewise.
12711 (vorr_u32): Likewise.
12712 (vorr_s64): Likewise.
12713 (vorr_u64): Likewise.
12714 (vorrq_s8): Likewise.
12715 (vorrq_s16): Likewise.
12716 (vorrq_s32): Likewise.
12717 (vorrq_s64): Likewise.
12718 (vorrq_u8): Likewise.
12719 (vorrq_u16): Likewise.
12720 (vorrq_u32): Likewise.
12721 (vorrq_u64): Likewise.
12722 (veor_s8): Likewise.
12723 (veor_s16): Likewise.
12724 (veor_s32): Likewise.
12725 (veor_u8): Likewise.
12726 (veor_u16): Likewise.
12727 (veor_u32): Likewise.
12728 (veor_s64): Likewise.
12729 (veor_u64): Likewise.
12730 (veorq_s8): Likewise.
12731 (veorq_s16): Likewise.
12732 (veorq_s32): Likewise.
12733 (veorq_s64): Likewise.
12734 (veorq_u8): Likewise.
12735 (veorq_u16): Likewise.
12736 (veorq_u32): Likewise.
12737 (veorq_u64): Likewise.
12738 (vbic_s8): Likewise.
12739 (vbic_s16): Likewise.
12740 (vbic_s32): Likewise.
12741 (vbic_u8): Likewise.
12742 (vbic_u16): Likewise.
12743 (vbic_u32): Likewise.
12744 (vbic_s64): Likewise.
12745 (vbic_u64): Likewise.
12746 (vbicq_s8): Likewise.
12747 (vbicq_s16): Likewise.
12748 (vbicq_s32): Likewise.
12749 (vbicq_s64): Likewise.
12750 (vbicq_u8): Likewise.
12751 (vbicq_u16): Likewise.
12752 (vbicq_u32): Likewise.
12753 (vbicq_u64): Likewise.
12754 (vorn_s8): Likewise.
12755 (vorn_s16): Likewise.
12756 (vorn_s32): Likewise.
12757 (vorn_u8): Likewise.
12758 (vorn_u16): Likewise.
12759 (vorn_u32): Likewise.
12760 (vorn_s64): Likewise.
12761 (vorn_u64): Likewise.
12762 (vornq_s8): Likewise.
12763 (vornq_s16): Likewise.
12764 (vornq_s32): Likewise.
12765 (vornq_s64): Likewise.
12766 (vornq_u8): Likewise.
12767 (vornq_u16): Likewise.
12768 (vornq_u32): Likewise.
12769 (vornq_u64): Likewise.
12771 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12773 * wide-int.cc (UTItype): Define.
12774 (UDWtype): Define for appropriate W_TYPE_SIZE.
12776 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12778 PR tree-optimization/59100
12779 * tree-ssa-phiopt.c: Include tree-inline.h.
12780 (neutral_element_p, absorbing_element_p): New functions.
12781 (value_replacement): Handle conditional binary operations with a
12782 neutral or absorbing element.
12784 2014-05-08 Richard Biener <rguenther@suse.de>
12786 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12787 folding the expression.
12788 (valueize_expr): Remove.
12789 (visit_reference_op_load): Do not valueize the result of
12791 (simplify_binary_expression): Likewise.
12792 (simplify_unary_expression): Likewise.
12794 2014-05-08 Richard Biener <rguenther@suse.de>
12796 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12797 looking at TYPE_ARG_TYPES.
12799 2014-05-08 Richard Biener <rguenther@suse.de>
12801 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12802 pointer propagation special-case.
12804 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12806 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12807 core part of address expressions.
12809 2014-05-08 Alan Modra <amodra@gmail.com>
12812 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12813 loads and stores when -mno-strict-align at any alignment.
12814 (expand_block_clear): Similarly. Also correct calculation of
12817 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12819 PR middle-end/39246
12820 * tree-complex.c (expand_complex_move): Keep line info when expanding
12822 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12823 of complex expression. Use new argument to display correct location
12824 for values coming from phi statement.
12825 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12826 (warn_uninitialized_phi): Pass location of phi argument to
12828 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12829 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12831 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12833 * config/rs6000/predicates.md (indexed_address_mem): New.
12834 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12835 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12836 fpstore_ux, fpstore_u.
12837 (sign_extend, indexed, update): New.
12838 (cell_micro): Adjust.
12839 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12840 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12841 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12842 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12843 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12844 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12845 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12846 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12847 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12848 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12849 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12850 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12851 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12852 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12853 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12855 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12856 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12857 *vsx_extract_<mode>_store): Adjust.
12858 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12859 is_cracked_insn, insn_must_be_first_in_group,
12860 insn_must_be_last_in_group): Adjust.
12862 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12864 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12865 ppc440-fpstore): Adjust.
12866 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12867 ppc476-fpstore): Adjust.
12868 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12869 ppc601-fpstore): Adjust.
12870 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12872 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12874 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12875 ppc7450-fpstore): Adjust.
12876 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12877 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12878 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12880 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12881 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12882 cell-fpstore, cell-fpstore-update): Adjust.
12883 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12884 ppce300c3_store, ppce300c3_fpstore): Adjust.
12885 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12886 e500mc_fpstore): Adjust.
12887 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12888 e500mc64_store, e500mc64_fpstore): Adjust.
12889 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12890 e5500_fpstore): Adjust.
12891 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12892 e6500_fpstore): Adjust.
12893 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12895 * config/rs6000/power4.md (power4-load, power4-load-ext,
12896 power4-load-ext-update, power4-load-ext-update-indexed,
12897 power4-load-update-indexed, power4-load-update, power4-fpload,
12898 power4-fpload-update, power4-store, power4-store-update,
12899 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12901 * config/rs6000/power5.md (power5-load, power5-load-ext,
12902 power5-load-ext-update, power5-load-ext-update-indexed,
12903 power5-load-update-indexed, power5-load-update, power5-fpload,
12904 power5-fpload-update, power5-store, power5-store-update,
12905 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12907 * config/rs6000/power6.md (power6-load, power6-load-ext,
12908 power6-load-update, power6-load-update-indexed,
12909 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12910 power6-fpload-update, power6-store, power6-store-update,
12911 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12913 * config/rs6000/power7.md (power7-load, power7-load-ext,
12914 power7-load-update, power7-load-update-indexed,
12915 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12916 power7-fpload-update, power7-store, power7-store-update,
12917 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12919 * config/rs6000/power8.md (power8-load, power8-load-update,
12920 power8-load-ext, power8-load-ext-update, power8-fpload,
12921 power8-fpload-update, power8-store, power8-store-update-indexed,
12922 power8-fpstore, power8-fpstore-update): Adjust.
12923 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12925 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12926 titan_lsu_store, titan_lsu_fpstore): Adjust.
12927 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12929 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12932 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12933 unrolled byte insns. Emit address increments after move insns.
12935 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12937 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12938 const_gimple, rather than a gimple.
12939 (gimple_call_builtin_p): Likewise, for the three variants.
12941 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12942 (gimple_call_builtin_p): Likewise, for the three variants.
12944 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12946 PR tree-optimization/61095
12947 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12949 2014-05-07 Richard Biener <rguenther@suse.de>
12951 PR tree-optimization/61034
12952 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12953 (maybe_skip_until): Use translate to take into account
12954 lattices when trying to do disambiguations.
12955 (get_continuation_for_phi_1): Likewise.
12956 (get_continuation_for_phi): Adjust for added translate arguments.
12957 (walk_non_aliased_vuses): Likewise.
12958 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12959 (walk_non_aliased_vuses): Likewise.
12960 (call_may_clobber_ref_p_1): Declare.
12961 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12962 calls. Stop early if we are only supposed to disambiguate.
12963 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12965 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12967 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12968 Emit an error when the function has arguments.
12970 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12972 * cfgloop.h (unswitch_loops): Remove.
12973 * doc/passes.texi: Remove references to loop-unswitch.c
12974 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12976 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12978 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12979 check for loads group of length 3.
12980 (vect_permute_load_chain): New permutations for loads group of
12982 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12983 of vec_perm_shuffle for the new permutations.
12985 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12987 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12988 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12989 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12990 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12991 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12992 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12993 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12994 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12996 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12998 * loop-unswitch.c: Delete.
13000 2014-05-07 Richard Biener <rguenther@suse.de>
13002 * config.gcc: Always set need_64bit_hwint to yes.
13004 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
13006 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
13007 of using optimize_size.
13009 2014-05-06 Mike Stump <mikestump@comcast.net>
13011 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
13013 2014-05-06 Joseph Myers <joseph@codesourcery.com>
13015 * config/i386/sse.md (*mov<mode>_internal)
13016 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
13017 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
13018 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
13019 (*<code><mode>3, *andnot<mode>3<mask_name>)
13020 (<mask_codefor><code><mode>3<mask_name>): Only consider
13021 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
13023 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13026 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13028 * lra-constraints.c (valid_address_p): Move earlier in file.
13029 Add a constraint argument to the address_info version.
13030 (satisfies_memory_constraint_p): New function.
13031 (satisfies_address_constraint_p): Likewise.
13032 (process_alt_operands, curr_insn_transform): Use them.
13033 (process_address): Pass the constraint to valid_address_p when
13034 checking address operands.
13036 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
13038 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
13039 to their respective blocks. Fix inadvertent use of "node".
13041 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13043 * emit-rtl.c (init_derived_machine_modes): New functionm, split
13045 (init_emit_once): ...here.
13046 * rtl.h (init_derived_machine_modes): Declare.
13047 * toplev.c (do_compile): Call it even if no_backend.
13049 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
13050 Mike Stump <mikestump@comcast.net>
13051 Richard Sandiford <rdsandiford@googlemail.com>
13052 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13054 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
13055 (rtx_equal_for_memref_p): Update comment.
13056 (adjust_offset_for_component_ref): Use wide-int interfaces.
13057 * builtins.c (get_object_alignment_2): Likewise.
13058 (c_readstr): Likewise.
13059 (target_char_cast): Add comment.
13060 (determine_block_size): Use wide-int interfaces.
13061 (expand_builtin_signbit): Likewise.
13062 (fold_builtin_int_roundingfn): Likewise.
13063 (fold_builtin_bitop): Likewise.
13064 (fold_builtin_bswap): Likewise.
13065 (fold_builtin_logarithm): Use signop.
13066 (fold_builtin_pow): Likewise.
13067 (fold_builtin_memory_op): Use wide-int interfaces.
13068 (fold_builtin_object_size): Likewise.
13069 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
13070 nb_iterations_estimate.
13071 (record_niter_bound): Use wide-int interfaces.
13072 (get_estimated_loop_iterations_int): Likewise.
13073 (get_estimated_loop_iterations): Likewise.
13074 (get_max_loop_iterations): Likewise.
13075 * cfgloop.h: Include wide-int.h.
13076 (struct nb_iter_bound): Change bound to widest_int.
13077 (struct loop): Change nb_iterations_upper_bound and
13078 nb_iterations_estimate to widest_int.
13079 (record_niter_bound): Switch to use widest_int.
13080 (get_estimated_loop_iterations): Likewise.
13081 (get_max_loop_iterations): Likewise.
13082 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
13083 update for wide-int.
13084 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
13085 * combine.c (try_combine): Likewise.
13086 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
13087 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
13089 (aarch64_float_const_representable_p): Likewise.
13090 * config/arc/arc.c: Include wide-int.h.
13091 (arc_can_use_doloop_p): Use wide-int interfaces.
13092 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
13093 (vfp3_const_double_index): Likewise.
13094 * config/avr/avr.c (avr_out_round): Likewise.
13095 (avr_fold_builtin): Likewise.
13096 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
13097 (bfin_can_use_doloop_p): Likewise.
13098 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
13099 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
13100 * config/i386/i386.c: Include wide-int.h.
13101 (ix86_data_alignment): Use wide-int interfaces.
13102 (ix86_local_alignment): Likewise.
13103 (ix86_emit_swsqrtsf): Update real_from_integer.
13104 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
13105 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
13106 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
13107 (zero_constant): Likewise.
13108 (input_operand): Likewise.
13109 (splat_input_operand): Likewise.
13110 (non_logical_cint_operand): Change const_double to const_wide_int.
13111 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
13112 (easy_altivec_constant): Remove comment.
13113 (paired_expand_vector_init): Use CONSTANT_P.
13114 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
13115 (rs6000_emit_move): Update checks.
13116 (rs6000_aggregate_candidate): Use wide-int interfaces.
13117 (rs6000_expand_ternop_builtin): Likewise.
13118 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
13119 (rs6000_assemble_integer): Likewise.
13120 (rs6000_hash_constant): Likewise.
13121 (output_toc): Likewise.
13122 (rs6000_rtx_costs): Likewise.
13123 (rs6000_emit_swrsqrt); Update call to real_from_integer.
13124 * config/rs6000/rs6000-c.c: Include wide-int.h.
13125 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
13126 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
13127 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
13128 Handle CONST_WIDE_INT.
13129 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
13130 Use tree_fits_uhwi_p.
13131 * config/sparc/sparc.c: Include wide-int.h.
13132 (sparc_fold_builtin): Use wide-int interfaces.
13133 * config/vax/vax.c: Include wide-int.h.
13134 (vax_float_literal): Use real_from_integer.
13135 * coretypes.h (struct hwivec_def): New.
13137 (const_hwivec): New.
13138 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
13139 (equiv_constant): Handle CONST_WIDE_INT.
13140 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
13141 (cselib_hash_rtx): Handle CONST_WIDE_INT.
13142 * dbxout.c (stabstr_U): Use wide-int interfaces.
13143 (dbxout_type): Update to use cst_fits_shwi_p.
13144 * defaults.h (LOG2_BITS_PER_UNIT): Define.
13145 (TARGET_SUPPORTS_WIDE_INT): Add default.
13146 * dfp.c: Include wide-int.h.
13147 (decimal_real_to_integer2): Use wide-int interfaces and rename to
13148 decimal_real_to_integer.
13149 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
13150 decimal_real_to_integer.
13151 * doc/generic.texi (Constant expressions): Update for wide_int.
13152 * doc/rtl.texi (const_double): Likewise.
13153 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
13154 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
13155 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
13156 (REAL_VALUE_FROM_INT): Remove.
13157 (TARGET_SUPPORTS_WIDE_INT): New.
13158 * doc/tm.texi: Regenerate.
13159 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
13160 * double-int.h: Include wide-int.h.
13161 (struct wi::int_traits): New.
13162 * dwarf2out.c (get_full_len): New.
13163 (dw_val_equal_p): Add case dw_val_class_wide_int.
13164 (size_of_loc_descr): Likewise.
13165 (output_loc_operands): Likewise.
13166 (insert_double): Remove.
13167 (insert_wide_int): New.
13168 (add_AT_wide): New.
13169 (print_die): Add case dw_val_class_wide_int.
13170 (attr_checksum): Likewise.
13171 (attr_checksum_ordered): Likewise.
13172 (same_dw_val_p): Likewise.
13173 (size_of_die): Likewise.
13174 (value_format): Likewise.
13175 (output_die): Likewise.
13176 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
13178 (clz_loc_descriptor): Use wide-int interfaces.
13179 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
13180 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
13181 (round_up_to_align): Use wide-int interfaces.
13182 (field_byte_offset): Likewise.
13183 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
13184 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
13185 CONST_DOUBLE handling. Use wide-int interfaces.
13186 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
13187 (gen_enumeration_type_die): Use add_AT_wide.
13188 (hash_loc_operands): Add case dw_val_class_wide_int.
13189 (compare_loc_operands): Likewise.
13190 * dwarf2out.h: Include wide-int.h.
13191 (wide_int_ptr): New.
13192 (enum dw_val_class): Add dw_val_class_wide_int.
13193 (struct dw_val_struct): Add val_wide.
13194 * emit-rtl.c (const_wide_int_htab): New.
13195 (const_wide_int_htab_hash): New.
13196 (const_wide_int_htab_eq): New.
13197 (lookup_const_wide_int): New.
13198 (const_double_htab_hash): Use wide-int interfaces.
13199 (const_double_htab_eq): Likewise.
13200 (rtx_to_double_int): Conditionally compile for wide-int.
13201 (immed_double_int_const): Rename to immed_wide_int_const and
13202 update for wide-int.
13203 (immed_double_const): Conditionally compile for wide-int.
13204 (init_emit_once): Use wide-int interfaces.
13205 * explow.c (plus_constant): Likewise.
13206 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
13207 (lshift_value): Use wide-int interfaces.
13208 (expand_mult): Likewise.
13209 (choose_multiplier): Likewise.
13210 (expand_smod_pow2): Likewise.
13211 (make_tree): Likewise.
13212 * expr.c (convert_modes): Consolidate handling of constants.
13213 Use wide-int interfaces.
13214 (emit_group_load_1): Add note.
13215 (store_expr): Update comment.
13216 (get_inner_reference): Use wide-int interfaces.
13217 (expand_constructor): Update comment.
13218 (expand_expr_real_2): Use wide-int interfaces.
13219 (expand_expr_real_1): Likewise.
13220 (reduce_to_bit_field_precision): Likewise.
13221 (const_vector_from_tree): Likewise.
13222 * final.c: Include wide-int-print.h.
13223 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
13224 * fixed-value.c: Include wide-int.h.
13225 (fixed_from_string): Use wide-int interfaces.
13226 (fixed_to_decimal): Likewise.
13227 (fixed_convert_from_real): Likewise.
13228 (real_convert_from_fixed): Likewise.
13229 * fold-const.h (mem_ref_offset): Return an offset_int.
13230 (div_if_zero_remainder): Remove code parameter.
13231 * fold-const.c (div_if_zero_remainder): Remove code parameter.
13232 Use wide-int interfaces.
13233 (may_negate_without_overflow_p): Use wide-int interfaces.
13234 (negate_expr_p): Likewise.
13235 (fold_negate_expr): Likewise.
13236 (int_const_binop_1): Likewise.
13237 (const_binop): Likewise.
13238 (fold_convert_const_int_from_int): Likewise.
13239 (fold_convert_const_int_from_real): Likewise.
13240 (fold_convert_const_int_from_fixed): Likewise.
13241 (fold_convert_const_fixed_from_int): Likewise.
13242 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
13243 (sign_bit_p): Use wide-int interfaces.
13244 (make_range_step): Likewise.
13245 (build_range_check): Likewise. Pass an integer of the correct type
13246 instead of using integer_one_node.
13247 (range_predecessor): Pass an integer of the correct type instead
13248 of using integer_one_node.
13249 (range_successor): Likewise.
13250 (merge_ranges): Likewise.
13251 (unextend): Use wide-int interfaces.
13252 (extract_muldiv_1): Likewise.
13253 (fold_div_compare): Likewise.
13254 (fold_single_bit_test): Likewise.
13255 (fold_sign_changed_comparison): Likewise.
13256 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
13257 (fold_plusminus_mult_expr): Use wide-int interfaces.
13258 (native_encode_int): Likewise.
13259 (native_interpret_int): Likewise.
13260 (fold_unary_loc): Likewise.
13261 (pointer_may_wrap_p): Likewise.
13262 (size_low_cst): Likewise.
13263 (mask_with_tz): Likewise.
13264 (fold_binary_loc): Likewise.
13265 (fold_ternary_loc): Likewise.
13266 (multiple_of_p): Likewise.
13267 (tree_call_nonnegative_warnv_p): Update calls to
13268 tree_int_cst_min_precision and real_from_integer.
13269 (fold_negate_const): Use wide-int interfaces.
13270 (fold_abs_const): Likewise.
13271 (fold_relational_const): Use tree_int_cst_lt.
13272 (round_up_loc): Use wide-int interfaces.
13273 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
13274 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
13275 * gengtype.c: Remove include of double-int.h.
13276 (do_typedef): Use wide-int interfaces.
13277 (open_base_files): Add wide-int.h.
13278 (main): Add offset_int and widest_int typedefs.
13279 * gengtype-lex.l: Handle "^".
13280 (CXX_KEYWORD): Add "static".
13281 * gengtype-parse.c (require3): New.
13282 (require_template_declaration): Handle constant template arguments
13283 and nested templates.
13284 * gengtype-state.c: Don't include "double-int.h".
13285 * genpreds.c (write_one_predicate_function): Update comment.
13286 (write_tm_constrs_h): Add check for hval and lval use in
13288 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
13289 (add_to_sequence): Likewise.
13290 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
13291 and const_double_operand.
13292 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
13294 * gimple-fold.c (get_base_constructor): Likewise.
13295 (fold_array_ctor_reference): Likewise.
13296 (fold_nonarray_ctor_reference): Likewise.
13297 (fold_const_aggregate_ref_1): Likewise.
13298 (gimple_val_nonnegative_real_p): Likewise.
13299 (gimple_fold_indirect_ref): Likewise.
13300 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
13301 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
13302 (struct slsr_cand_d): Change index to be widest_int.
13303 (struct incr_info_d): Change incr to be widest_int.
13304 (alloc_cand_and_find_basis): Use wide-int interfaces.
13305 (slsr_process_phi): Likewise.
13306 (backtrace_base_for_ref): Likewise. Return a widest_int.
13307 (restructure_reference): Take a widest_int instead of a double_int.
13308 (slsr_process_ref): Use wide-int interfaces.
13309 (create_mul_ssa_cand): Likewise.
13310 (create_mul_imm_cand): Likewise.
13311 (create_add_ssa_cand): Likewise.
13312 (create_add_imm_cand): Take a widest_int instead of a double_int.
13313 (slsr_process_add): Use wide-int interfaces.
13314 (slsr_process_cast): Likewise.
13315 (slsr_process_copy): Likewise.
13316 (dump_candidate): Likewise.
13317 (dump_incr_vec): Likewise.
13318 (replace_ref): Likewise.
13319 (cand_increment): Likewise. Return a widest_int.
13320 (cand_abs_increment): Likewise.
13321 (replace_mult_candidate): Take a widest_int instead of a double_int.
13322 (replace_unconditional_candidate): Use wide-int interfaces.
13323 (incr_vec_index): Take a widest_int instead of a double_int.
13324 (create_add_on_incoming_edge): Likewise.
13325 (create_phi_basis): Use wide-int interfaces.
13326 (replace_conditional_candidate): Likewise.
13327 (record_increment): Take a widest_int instead of a double_int.
13328 (record_phi_increments): Use wide-int interfaces.
13329 (phi_incr_cost): Take a widest_int instead of a double_int.
13330 (lowest_cost_path): Likewise.
13331 (total_savings): Likewise.
13332 (analyze_increments): Use wide-int interfaces.
13333 (ncd_with_phi): Take a widest_int instead of a double_int.
13334 (ncd_of_cand_and_phis): Likewise.
13335 (nearest_common_dominator_for_cands): Likewise.
13336 (insert_initializers): Use wide-int interfaces.
13337 (all_phi_incrs_profitable): Likewise.
13338 (replace_one_candidate): Likewise.
13339 (replace_profitable_candidates): Likewise.
13340 * godump.c: Include wide-int-print.h.
13341 (go_output_typedef): Use wide-int interfaces.
13342 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
13343 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
13344 (build_loop_iteration_domains): Likewise.
13345 * hooks.h: Include wide-int.h rather than double-int.h.
13346 (hook_bool_dint_dint_uint_bool_true): Delete.
13347 (hook_bool_wint_wint_uint_bool_true): Declare.
13348 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
13349 (hook_bool_wint_wint_uint_bool_true): New.
13350 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
13352 (ubsan_expand_si_overflow_mul_check): Likewise.
13353 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
13354 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
13355 (get_ancestor_addr_info): Likewise.
13356 (ipa_modify_call_arguments): Likewise.
13357 * loop-doloop.c (doloop_modify): Likewise.
13358 (doloop_optimize): Likewise.
13359 * loop-iv.c (iv_number_of_iterations): Likewise.
13360 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
13361 (unroll_loop_constant_iterations): Likewise.
13362 (decide_unroll_runtime_iterations): Likewise.
13363 (unroll_loop_runtime_iterations): Likewise.
13364 (decide_peel_simple): Likewise.
13365 (decide_unroll_stupid): Likewise.
13366 * lto-streamer-in.c (streamer_read_wi): Add.
13367 (input_cfg): Use wide-int interfaces.
13368 (lto_input_tree_1): Likewise.
13369 * lto-streamer-out.c (streamer_write_wi): Add.
13370 (hash_tree): Use wide-int interfaces.
13371 (output_cfg): Likewise.
13372 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
13373 (GTFILES): Add wide-int.h and signop.h.
13374 (TAGS): Look for .cc files too.
13375 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
13376 * optabs.c (expand_subword_shift): Likewise.
13377 (expand_doubleword_shift): Likewise.
13378 (expand_absneg_bit): Likewise.
13379 (expand_copysign_absneg): Likewise.
13380 (expand_copysign_bit): Likewise.
13381 * postreload.c (reload_cse_simplify_set): Likewise.
13382 * predict.c (predict_iv_comparison): Likewise.
13383 * pretty-print.h: Include wide-int-print.h.
13385 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13386 * print-tree.c: Include wide-int-print.h.
13387 (print_node_brief): Use wide-int interfaces.
13388 (print_node): Likewise.
13389 * read-rtl.c (validate_const_wide_int): New.
13390 (read_rtx_code): Add CONST_WIDE_INT case.
13391 * real.c: Include wide-int.h.
13392 (real_to_integer2): Delete.
13393 (real_to_integer): New function, returning a wide_int.
13394 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13395 (ten_to_ptwo): Update call to real_from_integer.
13396 (real_digit): Likewise.
13397 * real.h: Include signop.h, wide-int.h and insn-modes.h.
13398 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
13399 (REAL_VALUE_TO_INT): Delete.
13400 (real_to_integer): Declare a wide-int form.
13401 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13402 * recog.c (const_int_operand): Improve comment.
13403 (const_scalar_int_operand): New.
13404 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
13405 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
13406 (split_double): Likewise.
13407 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
13408 (rtx_size): Likewise.
13409 (rtx_alloc_stat_v): New.
13410 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
13411 (cwi_output_hex): New.
13412 (iterative_hash_rtx): Handle CONST_WIDE_INT.
13413 (cwi_check_failed_bounds): New.
13414 * rtl.def (CONST_WIDE_INT): New.
13415 * rtl.h: Include <utility> and wide-int.h.
13416 (struct hwivec_def): New.
13417 (CWI_GET_NUM_ELEM): New.
13418 (CWI_PUT_NUM_ELEM): New.
13419 (struct rtx_def): Add num_elem and hwiv.
13420 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
13421 (CASE_CONST_UNIQUE): Likewise.
13422 (CASE_CONST_ANY): Likewise.
13423 (CONST_SCALAR_INT_P): Likewise.
13424 (CONST_WIDE_INT_P): New.
13426 (HWIVEC_CHECK): New.
13427 (cwi_check_failed_bounds): New.
13429 (HWIVEC_CHECK): New.
13430 (CONST_WIDE_INT_VEC) New.
13431 (CONST_WIDE_INT_NUNITS) New.
13432 (CONST_WIDE_INT_ELT) New.
13433 (rtx_mode_t): New type.
13434 (wi::int_traits <rtx_mode_t>): New.
13436 (wi::min_value): New.
13437 (wi::max_value): New.
13439 (const_wide_int_alloc): New.
13440 (immed_wide_int_const): New.
13441 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
13442 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
13443 * signop.h: New file.
13444 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
13445 (simplify_const_unary_operation): Use wide-int interfaces.
13446 (simplify_binary_operation_1): Likewise.
13447 (simplify_const_binary_operation): Likewise.
13448 (simplify_const_relational_operation): Likewise.
13449 (simplify_immed_subreg): Likewise.
13450 * stmt.c (expand_case): Likewise.
13451 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
13452 signop rather than a bool.
13453 * stor-layout.c (layout_type): Use wide-int interfaces.
13454 (initialize_sizetypes): Update calls to
13455 set_min_and_max_values_for_integral_type.
13456 (set_min_and_max_values_for_integral_type): Take a signop rather
13457 than a bool. Use wide-int interfaces.
13458 (fixup_signed_type): Update accordingly. Remove
13459 HOST_BITS_PER_DOUBLE_INT limit.
13460 (fixup_unsigned_type): Likewise.
13461 * system.h (STATIC_CONSTANT_P): New.
13462 (STATIC_ASSERT): New.
13463 * target.def (can_use_doloop_p): Take widest_ints rather than
13465 * target.h: Include wide-int.h rather than double-int.h.
13466 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
13468 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
13469 rather than INT_CST_LT_UNSIGNED.
13470 (can_use_doloop_if_innermost): Take widest_ints rather than
13472 * tree-affine.c: Include wide-int-print.h.
13473 (double_int_ext_for_comb): Delete.
13474 (wide_int_ext_for_comb): New.
13475 (aff_combination_zero): Use wide-int interfaces.
13476 (aff_combination_const): Take a widest_int instead of a double_int.
13477 (aff_combination_elt): Use wide-int interfaces.
13478 (aff_combination_scale): Take a widest_int instead of a double_int.
13479 (aff_combination_add_elt): Likewise.
13480 (aff_combination_add_cst): Likewise.
13481 (aff_combination_add): Use wide-int interfaces.
13482 (aff_combination_convert): Likewise.
13483 (tree_to_aff_combination): Likewise.
13484 (add_elt_to_tree): Take a widest_int instead of a double_int.
13485 (aff_combination_to_tree): Use wide-int interfaces.
13486 (aff_combination_remove_elt): Likewise.
13487 (aff_combination_add_product): Take a widest_int instead of
13489 (aff_combination_mult): Use wide-int interfaces.
13490 (aff_combination_expand): Likewise.
13491 (double_int_constant_multiple_p): Delete.
13492 (wide_int_constant_multiple_p): New.
13493 (aff_combination_constant_multiple_p): Take a widest_int pointer
13494 instead of a double_int pointer.
13495 (print_aff): Use wide-int interfaces.
13496 (get_inner_reference_aff): Take a widest_int pointer
13497 instead of a double_int pointer.
13498 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
13499 * tree-affine.h: Include wide-int.h.
13500 (struct aff_comb_elt): Change type of coef to widest_int.
13501 (struct affine_tree_combination): Change type of offset to widest_int.
13502 (double_int_ext_for_comb): Delete.
13503 (wide_int_ext_for_comb): New.
13504 (aff_combination_const): Use widest_int instead of double_int.
13505 (aff_combination_scale): Likewise.
13506 (aff_combination_add_elt): Likewise.
13507 (aff_combination_constant_multiple_p): Likewise.
13508 (get_inner_reference_aff): Likewise.
13509 (aff_comb_cannot_overlap_p): Likewise.
13510 (aff_combination_zero_p): Use wide-int interfaces.
13511 * tree.c: Include tree.h.
13512 (init_ttree): Use make_int_cst.
13513 (tree_code_size): Removed code for INTEGER_CST case.
13514 (tree_size): Add INTEGER_CST case.
13515 (make_node_stat): Update comment.
13516 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
13517 (build_int_cst_type): Use wide-int interfaces.
13518 (double_int_to_tree): Likewise.
13519 (double_int_fits_to_tree_p): Delete.
13520 (force_fit_type_double): Delete.
13521 (force_fit_type): New.
13522 (int_cst_hash_hash): Use wide-int interfaces.
13523 (int_cst_hash_eq): Likewise.
13524 (build_int_cst_wide): Delete.
13525 (wide_int_to_tree): New.
13526 (cache_integer_cst): Use wide-int interfaces.
13527 (build_low_bits_mask): Likewise.
13528 (cst_and_fits_in_hwi): Likewise.
13529 (real_value_from_int_cst): Likewise.
13530 (make_int_cst_stat): New.
13531 (integer_zerop): Use wide_int interfaces.
13532 (integer_onep): Likewise.
13533 (integer_all_onesp): Likewise.
13534 (integer_pow2p): Likewise.
13535 (integer_nonzerop): Likewise.
13536 (tree_log2): Likewise.
13537 (tree_floor_log2): Likewise.
13538 (tree_ctz): Likewise.
13539 (int_size_in_bytes): Likewise.
13540 (mem_ref_offset): Return an offset_int rather than a double_int.
13541 (build_type_attribute_qual_variant): Use wide_int interfaces.
13542 (type_hash_eq): Likewise
13543 (tree_int_cst_equal): Likewise.
13544 (tree_int_cst_lt): Delete.
13545 (tree_int_cst_compare): Likewise.
13546 (tree_fits_shwi_p): Use wide_int interfaces.
13547 (tree_fits_uhwi_p): Likewise.
13548 (tree_int_cst_sign_bit): Likewise.
13549 (tree_int_cst_sgn): Likewise.
13550 (tree_int_cst_min_precision): Take a signop rather than a bool.
13551 (simple_cst_equal): Use wide_int interfaces.
13552 (compare_tree_int): Likewise.
13553 (iterative_hash_expr): Likewise.
13554 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
13556 (get_type_static_bounds): Use wide_int interfaces.
13557 (tree_int_cst_elt_check_failed): New.
13558 (build_common_tree_nodes): Reordered to set prec before filling in
13560 (int_cst_value): Check cst_and_fits_in_hwi.
13561 (widest_int_cst_value): Use wide_int interfaces.
13562 (upper_bound_in_type): Likewise.
13563 (lower_bound_in_type): Likewise.
13564 (num_ending_zeros): Likewise.
13565 (drop_tree_overflow): Likewise.
13566 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
13567 (gen_conditions_for_pow_cst_base): Likewise.
13568 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
13569 (group_case_labels_stmt): Use wide-int interfaces.
13570 (verify_gimple_assign_binary): Likewise.
13571 (print_loop): Likewise.
13572 * tree-chrec.c (tree_fold_binomial): Likewise.
13573 * tree-core.h (struct tree_base): Add int_length.
13574 (struct tree_int_cst): Change rep of value.
13575 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
13576 (dr_may_alias_p): Likewise.
13577 (max_stmt_executions_tree): Likewise.
13578 * tree.def (INTEGER_CST): Update comment.
13579 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
13580 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
13581 * tree-dump.c: Include wide-int.h and wide-int-print.h.
13582 (dequeue_and_dump): Use wide-int interfaces.
13583 * tree.h: Include wide-int.h.
13584 (NULL_TREE): Moved to earlier loc in file.
13585 (TREE_INT_CST_ELT_CHECK): New.
13586 (tree_int_cst_elt_check_failed): New.
13588 (TREE_INT_CST): Delete.
13589 (TREE_INT_CST_LOW): Use wide-int interfaces.
13590 (TREE_INT_CST_HIGH): Delete.
13591 (TREE_INT_CST_NUNITS): New.
13592 (TREE_INT_CST_EXT_NUNITS): Likewise.
13593 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
13594 (TREE_INT_CST_ELT): Likewise.
13595 (INT_CST_LT): Delete.
13596 (tree_int_cst_elt_check): New (two forms).
13597 (type_code_size): Update comment.
13598 (make_int_cst_stat, make_int_cst): New.
13599 (tree_to_double_int): Delete.
13600 (double_int_fits_to_tree_p): Delete.
13601 (force_fit_type_double): Delete.
13602 (build_int_cstu): Replace with out-of-line function.
13603 (build_int_cst_wide): Delete.
13604 (tree_int_cst_lt): Define inline.
13605 (tree_int_cst_le): New.
13606 (tree_int_cst_compare): Define inline.
13607 (tree_int_cst_min_precision): Take a signop rather than a bool.
13608 (wi::int_traits <const_tree>): New.
13609 (wi::int_traits <tree>): New.
13610 (wi::extended_tree): New.
13611 (wi::int_traits <wi::extended_tree>): New.
13612 (wi::to_widest): New.
13613 (wi::to_offset): New.
13614 (wi::fits_to_tree_p): New.
13615 (wi::min_value): New.
13616 (wi::max_value): New.
13617 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
13618 (copy_tree_body_r): Likewise.
13619 * tree-object-size.c (compute_object_offset): Likewise.
13620 (addr_object_size): Likewise.
13621 * tree-predcom.c: Include wide-int-print.h.
13622 (struct dref_d): Change type of offset to widest_int.
13623 (dump_dref): Call wide-int printer.
13624 (aff_combination_dr_offset): Use wide-int interfaces.
13625 (determine_offset): Take a widest_int pointer rather than a
13626 double_int pointer.
13627 (split_data_refs_to_components): Use wide-int interfaces.
13628 (suitable_component_p): Likewise.
13629 (order_drefs): Likewise.
13630 (add_ref_to_chain): Likewise.
13631 (valid_initializer_p): Likewise.
13632 (determine_roots_comp): Likewise.
13633 * tree-pretty-print.c: Include wide-int-print.h.
13634 (dump_generic_node): Use wide-int interfaces.
13635 * tree-sra.c (sra_ipa_modify_expr): Likewise.
13636 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13637 (move_fixed_address_to_symbol): Likewise.
13638 (move_hint_to_base): Likewise.
13639 (move_pointer_to_base): Likewise.
13640 (move_variant_to_index): Likewise.
13641 (most_expensive_mult_to_index): Likewise.
13642 (addr_to_parts): Likewise.
13643 (copy_ref_info): Likewise.
13644 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
13645 (indirect_refs_may_alias_p): Likewise.
13646 (stmt_kills_ref_p_1): Likewise.
13647 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13648 * tree-ssa-ccp.c: Update comment at top of file. Include
13650 (struct prop_value_d): Change type of mask to widest_int.
13651 (extend_mask): New function.
13652 (dump_lattice_value): Use wide-int interfaces.
13653 (get_default_value): Likewise.
13654 (set_constant_value): Likewise.
13655 (set_value_varying): Likewise.
13656 (valid_lattice_transition): Likewise.
13657 (set_lattice_value): Likewise.
13658 (value_to_double_int): Delete.
13659 (value_to_wide_int): New.
13660 (get_value_from_alignment): Use wide-int interfaces.
13661 (get_value_for_expr): Likewise.
13662 (do_dbg_cnt): Likewise.
13663 (ccp_finalize): Likewise.
13664 (ccp_lattice_meet): Likewise.
13665 (bit_value_unop_1): Use widest_ints rather than double_ints.
13666 (bit_value_binop_1): Likewise.
13667 (bit_value_unop): Use wide-int interfaces.
13668 (bit_value_binop): Likewise.
13669 (bit_value_assume_aligned): Likewise.
13670 (evaluate_stmt): Likewise.
13671 (ccp_fold_stmt): Likewise.
13672 (visit_cond_stmt): Likewise.
13673 (ccp_visit_stmt): Likewise.
13674 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13675 (constant_pointer_difference): Likewise.
13676 (associate_pointerplus): Likewise.
13677 (combine_conversions): Likewise.
13678 * tree-ssa-loop.h: Include wide-int.h.
13679 (struct tree_niter_desc): Change type of max to widest_int.
13680 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
13681 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
13682 (remove_redundant_iv_tests): Likewise.
13683 (canonicalize_loop_induction_variables): Likewise.
13684 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
13685 (constant_multiple_of): Take a widest_int pointer instead of
13686 a double_int pointer.
13687 (get_computation_aff): Use wide-int interfaces.
13688 (ptr_difference_cost): Likewise.
13689 (difference_cost): Likewise.
13690 (get_loop_invariant_expr_id): Likewise.
13691 (get_computation_cost_at): Likewise.
13692 (iv_elimination_compare_lt): Likewise.
13693 (may_eliminate_iv): Likewise.
13694 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
13695 instead of double_int.
13696 (max_loop_iterations): Likewise.
13697 (max_stmt_executions): Likewise.
13698 (estimated_stmt_executions): Likewise.
13699 * tree-ssa-loop-niter.c: Include wide-int-print.h.
13700 (split_to_var_and_offset): Use wide-int interfaces.
13701 (determine_value_range): Likewise.
13702 (bound_difference_of_offsetted_base): Likewise.
13703 (bounds_add): Take a widest_int instead of a double_int.
13704 (number_of_iterations_ne_max): Use wide-int interfaces.
13705 (number_of_iterations_ne): Likewise.
13706 (number_of_iterations_lt_to_ne): Likewise.
13707 (assert_loop_rolls_lt): Likewise.
13708 (number_of_iterations_lt): Likewise.
13709 (number_of_iterations_le): Likewise.
13710 (number_of_iterations_cond): Likewise.
13711 (number_of_iterations_exit): Likewise.
13712 (finite_loop_p): Likewise.
13713 (derive_constant_upper_bound_assign): Likewise.
13714 (derive_constant_upper_bound): Return a widest_int.
13715 (derive_constant_upper_bound_ops): Likewise.
13716 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
13717 (record_estimate): Take a widest_int rather than a double_int.
13718 (record_nonwrapping_iv): Use wide-int interfaces.
13719 (double_int_cmp): Delete.
13720 (wide_int_cmp): New.
13721 (bound_index): Take a widest_int rather than a double_int.
13722 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13723 (maybe_lower_iteration_bound): Likewise.
13724 (estimate_numbers_of_iterations_loop): Likewise.
13725 (estimated_loop_iterations): Take a widest_int pointer than than
13726 a double_int pointer.
13727 (estimated_loop_iterations_int): Use wide-int interfaces.
13728 (max_loop_iterations): Take a widest_int pointer than than
13729 a double_int pointer.
13730 (max_loop_iterations_int): Use wide-int interfaces.
13731 (max_stmt_executions): Take a widest_int pointer than than
13732 a double_int pointer.
13733 (estimated_stmt_executions): Likewise.
13734 (n_of_executions_at_most): Use wide-int interfaces.
13735 (scev_probably_wraps_p): Likewise.
13736 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13737 to real_to_integer.
13738 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13740 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13741 double_ints. Adjust for trailing_wide_ints <3> representation.
13742 (set_nonzero_bits): Likewise.
13743 (get_range_info): Return wide_ints rather than double_ints.
13744 Adjust for trailing_wide_ints <3> representation.
13745 (get_nonzero_bits): Likewise.
13746 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13748 * tree-ssanames.h (struct range_info_def): Replace min, max and
13749 nonzero_bits with a trailing_wide_ints <3>.
13750 (set_range_info): Use wide_int_refs rather than double_ints.
13751 (set_nonzero_bits): Likewise.
13752 (get_range_info): Return wide_ints rather than double_ints.
13753 (get_nonzero_bits): Likewise.
13754 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13755 * tree-ssa-pre.c (phi_translate_1): Likewise.
13756 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13757 (acceptable_pow_call): Likewise.
13758 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13760 (vn_reference_fold_indirect): Likewise.
13761 (vn_reference_maybe_forwprop_address): Likewise.
13762 (valueize_refs_1): Likewise.
13763 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13764 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13765 tree_int_cst_lt and tree_int_cst_le.
13766 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13768 (streamer_alloc_tree): Likewise.
13769 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13770 (streamer_write_tree_header): Likewise.
13771 (streamer_write_integer_cst): Likewise.
13772 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13773 (build_constructors): Likewise.
13774 (array_value_type): Likewise.
13775 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13776 (vect_check_gather): Likewise.
13777 * tree-vect-generic.c (build_replicated_const): Likewise.
13778 (expand_vector_divmod): Likewise.
13779 * tree-vect-loop.c (vect_transform_loop): Likewise.
13780 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13781 (vect_do_peeling_for_alignment): Likewise.
13782 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13783 * tree-vrp.c: Include wide-int.h.
13784 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13785 (extract_range_from_assert): Use wide-int interfaces.
13786 (vrp_int_const_binop): Likewise.
13787 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13788 double_int pointers.
13789 (ranges_from_anti_range): Use wide-int interfaces.
13790 (quad_int_cmp): Delete.
13791 (quad_int_pair_sort): Likewise.
13792 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13793 (extract_range_from_unary_expr_1): Likewise.
13794 (adjust_range_with_scev): Likewise.
13795 (masked_increment): Take and return wide_ints rather than double_ints.
13796 (register_edge_assert_for_2): Use wide-int interfaces.
13797 (check_array_ref): Likewise.
13798 (search_for_addr_array): Likewise.
13799 (maybe_set_nonzero_bits): Likewise.
13800 (union_ranges): Pass an integer of the correct type instead of
13801 using integer_one_node.
13802 (intersect_ranges): Likewise.
13803 (simplify_truth_ops_using_ranges): Likewise.
13804 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13805 (range_fits_type_p): Likewise.
13806 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13808 (simplify_conversion_using_ranges): Use wide-int interfaces.
13809 (simplify_float_conversion_using_ranges): Likewise.
13810 (vrp_finalize): Likewise.
13811 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13812 (gimple_stringops_transform): Likewise.
13813 * varasm.c (decode_addr_const): Likewise.
13814 (const_hash_1): Likewise.
13815 (const_rtx_hash_1): Likewise
13816 (output_constant): Likewise.
13817 (array_size_for_constructor): Likewise.
13818 (output_constructor_regular_field): Likewise.
13819 (output_constructor_bitfield): Likewise.
13820 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13821 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13823 * gencheck.c: Define BITS_PER_UNIT.
13824 * wide-int.cc: New.
13826 * wide-int-print.cc: New.
13827 * wide-int-print.h: New.
13829 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13831 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13833 2014-05-06 Richard Biener <rguenther@suse.de>
13835 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13836 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13837 (TODO_verify_all): Adjust.
13838 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13839 TODO_verify_stmts and TODO_verify_rtl_sharing.
13840 * bb-reorder.c: Likewise.
13841 * cfgexpand.c: Likewise.
13842 * cprop.c: Likewise.
13844 * function.c: Likewise.
13845 * fwprop.c: Likewise.
13846 * gcse.c: Likewise.
13847 * gimple-ssa-isolate-paths.c: Likewise.
13848 * gimple-ssa-strength-reduction.c: Likewise.
13849 * ipa-split.c: Likewise.
13850 * loop-init.c: Likewise.
13851 * loop-unroll.c: Likewise.
13852 * lower-subreg.c: Likewise.
13853 * modulo-sched.c: Likewise.
13854 * postreload-gcse.c: Likewise.
13855 * predict.c: Likewise.
13856 * recog.c: Likewise.
13857 * sched-rgn.c: Likewise.
13858 * store-motion.c: Likewise.
13859 * tracer.c: Likewise.
13860 * trans-mem.c: Likewise.
13861 * tree-call-cdce.c: Likewise.
13862 * tree-cfg.c: Likewise.
13863 * tree-cfgcleanup.c: Likewise.
13864 * tree-complex.c: Likewise.
13865 * tree-eh.c: Likewise.
13866 * tree-emutls.c: Likewise.
13867 * tree-if-conv.c: Likewise.
13868 * tree-into-ssa.c: Likewise.
13869 * tree-loop-distribution.c: Likewise.
13870 * tree-object-size.c: Likewise.
13871 * tree-parloops.c: Likewise.
13872 * tree-pass.h: Likewise.
13873 * tree-sra.c: Likewise.
13874 * tree-ssa-ccp.c: Likewise.
13875 * tree-ssa-copy.c: Likewise.
13876 * tree-ssa-copyrename.c: Likewise.
13877 * tree-ssa-dce.c: Likewise.
13878 * tree-ssa-dom.c: Likewise.
13879 * tree-ssa-dse.c: Likewise.
13880 * tree-ssa-forwprop.c: Likewise.
13881 * tree-ssa-ifcombine.c: Likewise.
13882 * tree-ssa-loop-ch.c: Likewise.
13883 * tree-ssa-loop-ivcanon.c: Likewise.
13884 * tree-ssa-loop.c: Likewise.
13885 * tree-ssa-math-opts.c: Likewise.
13886 * tree-ssa-phiopt.c: Likewise.
13887 * tree-ssa-phiprop.c: Likewise.
13888 * tree-ssa-pre.c: Likewise.
13889 * tree-ssa-reassoc.c: Likewise.
13890 * tree-ssa-sink.c: Likewise.
13891 * tree-ssa-strlen.c: Likewise.
13892 * tree-ssa-tail-merge.c: Likewise.
13893 * tree-ssa-uncprop.c: Likewise.
13894 * tree-switch-conversion.c: Likewise.
13895 * tree-tailcall.c: Likewise.
13896 * tree-vect-generic.c: Likewise.
13897 * tree-vectorizer.c: Likewise.
13898 * tree-vrp.c: Likewise.
13899 * tsan.c: Likewise.
13900 * var-tracking.c: Likewise.
13901 * bt-load.c: Likewise.
13902 * cfgcleanup.c: Likewise.
13903 * combine-stack-adj.c: Likewise.
13904 * combine.c: Likewise.
13905 * compare-elim.c: Likewise.
13906 * config/epiphany/resolve-sw-modes.c: Likewise.
13907 * config/i386/i386.c: Likewise.
13908 * config/mips/mips.c: Likewise.
13909 * config/s390/s390.c: Likewise.
13910 * config/sh/sh_treg_combine.cc: Likewise.
13911 * config/sparc/sparc.c: Likewise.
13914 * final.c: Likewise.
13915 * ifcvt.c: Likewise.
13916 * mode-switching.c: Likewise.
13917 * passes.c: Likewise.
13918 * postreload.c: Likewise.
13920 * reg-stack.c: Likewise.
13921 * regcprop.c: Likewise.
13922 * regrename.c: Likewise.
13925 2014-05-06 Richard Biener <rguenther@suse.de>
13927 PR middle-end/61070
13928 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13929 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13931 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13934 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13936 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13937 Tom de Vries <tom@codesourcery.com>
13939 * target.def (call_fusage_contains_non_callee_clobbers): New
13941 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13943 (@node Miscellaneous Register Hooks): New node.
13944 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13945 * doc/tm.texi: Regenerate.
13947 2014-05-05 Marek Polacek <polacek@redhat.com>
13950 * opts.c (common_handle_option): Call error_at instead of warning_at.
13952 2014-05-05 Richard Biener <rguenther@suse.de>
13954 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13955 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13956 under the TODO_verify_il umbrella.
13958 2014-05-05 Richard Biener <rguenther@suse.de>
13960 * passes.c (execute_function_todo): Move TODO_verify_flow under
13961 the TODO_verify_ul umbrella.
13963 2014-05-05 Richard Biener <rguenther@suse.de>
13965 PR middle-end/61010
13966 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13967 X & CST away from a CST that is the mask of a mode.
13969 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13971 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13972 int argument to enum machine_mode.
13973 (picochip_class_max_nregs): Ditto.
13974 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13975 (picochip_class_max_nregs): Ditto.
13977 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13979 * target.def: Add new target hook.
13980 * doc/tm.texi: Regenerate.
13981 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13982 * targhooks.c (default_keep_leaf_when_profiled): New function.
13984 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13985 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13987 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13989 PR tree-optimization/60363
13990 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13991 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13992 (update_destination_phis): New parameter.
13993 (create_edge_and_update_destination_phis): Ditto.
13994 (ssa_fix_duplicate_block_edges): Pass new arguments.
13995 (thread_single_edge): Ditto.
13997 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13999 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
14000 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
14001 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
14002 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
14003 Use RS6000_BTM_HARD_FLOAT.
14004 (BU_MISC_2): Likewise.
14005 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14006 RS6000_BTM_HARD_FLOAT.
14007 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
14008 is explicitly used.
14009 (rs6000_invalid_builtin): Add hard floating builtin support.
14010 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
14011 hard float builtins.
14012 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
14014 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14016 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
14017 Add missing function* argument.
14019 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
14021 * lra-constraints.c (valid_address_p): Move earlier in file.
14022 Add a constraint argument to the address_info version.
14023 (satisfies_memory_constraint_p): New function.
14024 (satisfies_address_constraint_p): Likewise.
14025 (process_alt_operands, curr_insn_transform): Use them.
14026 (process_address): Pass the constraint to valid_address_p when
14027 checking address operands.
14029 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
14031 * config/mips/mips.c (mips_isa_rev): New variable.
14032 (mips_set_architecture): Set it.
14033 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
14035 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
14036 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
14037 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
14038 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
14039 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
14040 conditions in terms of mips_isa_rev.
14041 (mips_isa_rev): Declare.
14043 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14045 * config/sh/sh-mem.cc: Use tabs instead of spaces.
14046 (prob_unlikely, prob_likely): Make variables const.
14048 2014-05-03 Denis Chertykov <chertykov@gmail.com>
14050 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
14052 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14054 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
14056 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14058 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
14059 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
14060 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
14062 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
14063 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
14065 Replace usage of ROUND_REG with sh_round_reg.
14066 Use CEIL instead of ROUND_ADVANCE.
14068 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14071 * config/sh/sh.c: Include stdlib headers before everything else.
14073 2014-05-02 Jakub Jelinek <jakub@redhat.com>
14075 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
14076 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
14077 (gimplify_adjust_omp_clauses): Simd region is never
14078 directly nested in combined parallel. Instead, for linear
14079 with copyin/copyout, if in combined for simd loop, make decl
14080 firstprivate/lastprivate on OMP_FOR.
14081 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
14082 expand_omp_for_static_chunk): When setting endvar, also set
14083 fd->loop.v to the same value.
14085 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14087 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
14089 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
14091 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
14094 2014-05-02 Marek Polacek <polacek@redhat.com>
14096 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
14098 2014-05-02 Kito Cheng <kito@0xlab.org>
14100 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
14101 to a C expression marco.
14102 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
14103 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
14104 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
14105 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
14106 HONOR_REG_ALLOC_ORDER.
14107 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
14109 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14111 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
14113 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14115 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
14117 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14119 * tree-if-conv.c (is_cond_scalar_reduction): New function.
14120 (convert_scalar_cond_reduction): Likewise.
14121 (predicate_scalar_phi): Add recognition and transformation
14122 of simple conditioanl reduction to be vectorizable.
14124 2014-05-01 Marek Polacek <polacek@redhat.com>
14127 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
14129 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
14131 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
14132 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
14133 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
14134 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
14135 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
14136 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
14137 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
14138 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
14140 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
14142 * config/arc/arc.opt (mlra): Move comment above option name
14143 to avoid mis-parsing as language options.
14145 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14147 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
14148 * config/sol2.h: ... here.
14149 * config/sol2-10.h: Remove.
14151 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
14152 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
14153 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
14154 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
14155 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
14156 * config/sol2.h: ... here.
14157 (SECTION_NAME_FORMAT): Don't redefine.
14158 (STARTFILE_ARCH32_SPEC): Rename to ...
14159 (STARTFILE_ARCH_SPEC): ... this.
14160 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14161 * config/sparc/sol2.h: ... here.
14162 (SECTION_NAME_FORMAT): Don't undef.
14163 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
14164 (SUBTARGET_EXTRA_SPECS): Remove.
14165 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14167 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
14168 (MD_STARTFILE_PREFIX): Remove.
14169 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
14170 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
14171 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
14172 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
14173 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
14174 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
14175 * config/i386/sol2.h: ... here.
14176 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
14177 * config/i386/sol2-bi.h: Remove.
14178 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
14179 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
14181 * config/i386/t-sol2-64: Rename to ...
14182 * config/i386/t-sol2: ... this.
14183 * config/sparc/t-sol2-64: Rename to ...
14184 * config/sparc/t-sol2: ... this.
14186 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
14187 sol2_tm_file_head, sol2_tm_file_tail.
14188 Include ${cpu_type}/sol2.h before sol2.h.
14190 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
14191 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
14192 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
14193 Reflect i386/t-sol2-64 renaming.
14194 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
14195 Reflect sparc/t-sol2-64 renaming.
14197 2014-04-30 Richard Biener <rguenther@suse.de>
14199 * passes.c (execute_function_todo): Move TODO_verify_stmts
14200 and TODO_verify_ssa under the TODO_verify_il umbrella.
14201 * tree-ssa.h (verify_ssa): Adjust prototype.
14202 * tree-ssa.c (verify_ssa): Add parameter to tell whether
14203 we should verify SSA operands.
14204 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
14205 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
14206 whether we should verify whether not throwing stmts have EH info.
14207 * graphite-scop-detection.c (create_sese_edges): Adjust.
14208 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
14209 * tree-eh.c (lower_try_finally_switch): Do not add the
14210 default case label twice.
14212 2014-04-30 Marek Polacek <polacek@redhat.com>
14214 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
14215 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
14216 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
14217 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
14219 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
14221 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
14222 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
14223 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
14224 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
14225 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
14226 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
14227 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
14228 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
14230 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14232 * tree-cfg.c (dump_function_to_file): Dump the return type of
14233 functions, in a line to itself before the function body, mimicking
14234 the layout of a C function.
14236 2014-04-29 Jakub Jelinek <jakub@redhat.com>
14238 PR tree-optimization/60971
14239 * tree-tailcall.c (process_assignment): Reject conversions which
14242 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
14244 * calls.c (initialize_argument_information): Always treat
14245 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
14246 (expand_call): Likewise.
14247 (emit_library_call_calue_1): Likewise.
14248 * expr.c (PUSH_ARGS_REVERSED): Do not define.
14249 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
14252 2014-04-29 Nick Clifton <nickc@redhat.com>
14254 * config/msp430/msp430.md (umulsidi): Fix typo.
14255 (mulhisi3): Enable even inside interrupt handlers.
14256 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
14257 bigger return address pushed in large mode.
14259 2014-04-29 Nick Clifton <nickc@redhat.com>
14261 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
14262 (arc_init_reg_tables): Use a machine_mode enum to iterate over
14264 * config/m32r/m32r.c (init_reg_tables): Likewise.
14265 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
14266 enum to hold the modes.
14268 2014-04-29 Richard Biener <rguenther@suse.de>
14270 * dominance.c (free_dominance_info): Add overload with
14271 function parameter.
14272 (dom_info_state): Likewise.
14273 (dom_info_available_p): Likewise.
14274 * basic-block.h (free_dominance_info, dom_info_state,
14275 dom_info_available_p): Declare overloads.
14276 * passes.c (execute_function_todo): Verify that verifiers
14277 don't change dominator info state. Drop dominator info
14278 for IPA pass invocations.
14279 * cgraph.c (release_function_body): Restore asserts that
14280 dominator information is released.
14282 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
14284 * doc/invoke.texi: Fix typo.
14285 * tree-vrp.c: Fix typos.
14286 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
14288 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14290 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
14292 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14294 * config/aarch64/aarch64-builtins.c
14295 (aarch64_types_storestruct_lane_qualifiers): New.
14296 (TYPES_STORESTRUCT_LANE): Likewise.
14297 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
14298 (st3_lane): Likewise.
14299 (st4_lane): Likewise.
14300 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
14301 (vec_store_lanesci_lane<mode>): Likewise.
14302 (vec_store_lanesxi_lane<mode>): Likewise.
14303 (aarch64_st2_lane<VQ:mode>): Likewise.
14304 (aarch64_st3_lane<VQ:mode>): Likewise.
14305 (aarch64_st4_lane<VQ:mode>): Likewise.
14306 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
14307 * config/aarch64/arm_neon.h
14308 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
14309 use new macro arguments.
14310 (__ST3_LANE_FUNC): Likewise.
14311 (__ST4_LANE_FUNC): Likewise.
14312 * config/aarch64/iterators.md (V_TWO_ELEM): New.
14313 (V_THREE_ELEM): Likewise.
14314 (V_FOUR_ELEM): Likewise.
14316 2014-04-28 David Malcolm <dmalcolm@redhat.com>
14318 * doc/gimple.texi: Replace the description of the now-defunct
14319 union gimple_statement_d with a diagram showing the
14320 gimple_statement_base class hierarchy and its relationships to
14321 the GSS_ and GIMPLE_ enums.
14323 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14325 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
14326 * config/aarch64/aarch64.c
14327 (aarch64_cannot_change_mode_class): Weaken conditions.
14328 (aarch64_modes_tieable_p): New.
14329 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
14331 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
14333 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
14334 (loadsync_<mode>): Change mode.
14335 (load_quadpti, store_quadpti): New.
14336 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
14337 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
14339 2014-04-28 Martin Jambor <mjambor@suse.cz>
14341 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
14342 same alias type as the original statement.
14343 (subreplacement_assignment_data): New type.
14344 (handle_unscalarized_data_in_subtree): New type of parameter,
14345 generate new memory accesses with same alias type as the original
14347 (load_assign_lhs_subreplacements): Likewise.
14348 (sra_modify_constructor_assign): Generate new memory accesses with
14349 same alias type as the original statement.
14351 2014-04-28 Richard Biener <rguenther@suse.de>
14353 * tree-pass.h (TODO_verify_il): Define.
14354 (TODO_verify_all): Complete properly.
14355 * passes.c (execute_function_todo): Move existing loop-closed
14356 SSA verification under TODO_verify_il.
14357 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
14358 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
14359 Fix tree sharing issue.
14361 2014-04-28 Richard Biener <rguenther@suse.de>
14363 PR middle-end/60092
14364 * builtins.def (DEF_C11_BUILTIN): Add.
14365 (BUILT_IN_ALIGNED_ALLOC): Likewise.
14366 * coretypes.h (enum function_class): Add function_c11_misc.
14367 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14368 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
14369 (call_may_clobber_ref_p_1): Likewise.
14370 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14371 (mark_all_reaching_defs_necessary_1): Likewise.
14372 (propagate_necessity): Likewise.
14373 (eliminate_unnecessary_stmts): Likewise.
14374 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
14376 2014-04-28 Richard Biener <rguenther@suse.de>
14378 * tree-vrp.c (vrp_var_may_overflow): Remove.
14379 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
14380 with overflow immediately bump to one before that value and
14381 let iteration figure out overflow status.
14383 2014-04-28 Richard Biener <rguenther@suse.de>
14385 * configure.ac: Do valgrind header checks unconditionally.
14386 Add --enable-valgrind-annotations.
14387 * system.h: Guard valgrind header inclusion with
14388 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
14389 * alloc-pool.c (pool_alloc, pool_free): Use
14390 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
14391 to guard possibly dead code.
14392 * config.in: Regenerated.
14393 * configure: Likewise.
14395 2014-04-28 Jeff Law <law@redhat.com>
14397 PR tree-optimization/60902
14398 * tree-ssa-threadedge.c
14399 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
14400 over real defs when invalidating outputs from statements that do not
14401 produce useful outputs for threading.
14403 2014-04-28 Richard Biener <rguenther@suse.de>
14405 PR tree-optimization/60979
14406 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
14407 SCOPs that end in a block with a successor with abnormal
14410 2014-04-28 Richard Biener <rguenther@suse.de>
14412 * tree-pass.h (execute_pass_list): Adjust prototype.
14413 * passes.c (pass_manager::execute_early_local_passes): Adjust.
14414 (do_per_function): Change callback signature, push all actual
14415 work to the callbals.
14416 (do_per_function_toporder): Likewise.
14417 (execute_function_dump): Adjust.
14418 (execute_function_todo): Likewise.
14419 (clear_last_verified): Likewise.
14420 (verify_curr_properties): Likewise.
14421 (update_properties_after_pass): Likewise.
14422 (execute_pass_list_1): Split out from ...
14423 (execute_pass_list): ... here. Adjust.
14424 (execute_ipa_pass_list): Likewise.
14425 * cgraphunit.c (cgraph_add_new_function): Adjust.
14426 (analyze_function): Likewise.
14427 (expand_function): Likewise.
14428 * cgraph.c (release_function_body): Free dominance info
14429 here instead of asserting it was magically freed elsewhere.
14431 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
14433 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
14434 * configure: Regenerate.
14435 * config/sparc/sparc.opt (muser-mode): New option.
14436 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
14438 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
14439 * doc/invoke.texi (SPARC options): Document -muser-mode.
14441 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
14443 * cselib.c (find_slot_memmode): Delete.
14444 (cselib_hasher): Change compare_type to a struct.
14445 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
14447 (preserve_constants_and_equivs): Adjust for new compare_type.
14448 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
14449 (wrap_constant): Delete.
14450 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
14452 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14454 * doc/install.texi (Building with profile feedback): Remove
14457 2014-04-26 Tom de Vries <tom@codesourcery.com>
14459 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
14462 2014-04-25 Cary Coutant <ccoutant@google.com>
14465 * dwarf2out.c (should_move_die_to_comdat): A type definition
14466 can contain a subprogram definition, but don't move it to a
14468 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
14469 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
14471 (clone_tree_hash): Rename to...
14472 (clone_tree_partial): ...this; change callers. Copy
14473 DW_TAG_subprogram DIEs as declarations.
14474 (copy_decls_walk): Don't copy children of a declaration into a
14477 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
14480 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
14483 2014-04-25 Jiong Wang <jiong.wang@arm.com>
14485 * config/arm/predicates.md (call_insn_operand): Add long_call check.
14486 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
14488 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
14491 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14493 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
14495 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14497 PR tree-optimization/60930
14498 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
14499 creating a multiply candidate by folding two constant
14500 multiplicands when the result overflows.
14502 2014-04-25 Jakub Jelinek <jakub@redhat.com>
14504 PR tree-optimization/60960
14505 * tree-vect-generic.c (expand_vector_operation): Only call
14506 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
14508 2014-04-25 Tom de Vries <tom@codesourcery.com>
14510 * expr.c (clobber_reg_mode): New function.
14511 * expr.h (clobber_reg): New function.
14513 2014-04-25 Tom de Vries <tom@codesourcery.com>
14515 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
14518 2014-04-25 Radovan Obradovic <robradovic@mips.com>
14519 Tom de Vries <tom@codesourcery.com>
14521 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
14523 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
14524 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
14525 new argument to find_all_hard_reg_sets call.
14527 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14529 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
14530 Use HOST_WIDE_INT_C for mask literal.
14531 (aarch_rev16_shleft_mask_imm_p): Likewise.
14533 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
14536 * config/sparc/sparc.md (ashlsi3_extend): Delete.
14538 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
14540 PR preprocessor/56540
14541 * config/i386/i386-c.c (ix86_target_macros): Define
14542 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
14544 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14546 * configure.ac (tga_func): Remove.
14547 (LIB_TLS_SPEC): Remove.
14548 * configure: Regenerate.
14549 * config.in: Regenerate.
14550 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
14552 2014-04-25 Richard Biener <rguenther@suse.de>
14555 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
14556 call stmt use/clobber sets during stmt walk instead of
14557 walking the possibly incomplete set of caller edges.
14559 2014-04-25 Richard Biener <rguenther@suse.de>
14562 * passes.c (apply_ipa_transforms): Inline into only caller ...
14563 (execute_one_pass): ... here. Properly bring in function
14564 bodies for nodes we want to apply IPA transforms to.
14566 2014-04-24 Cong Hou <congh@google.com>
14568 PR tree-optimization/60896
14569 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
14570 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
14571 (vect_mark_pattern_stmts): Set the def type of all statements in
14572 PATTERN_DEF_SEQ as vect_internal_def.
14574 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14576 * doc/extend.texi (PowerPC Built-in Functions): Document new
14577 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
14578 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
14580 * config/rs6000/predicates.md (const_0_to_3_operand): New
14581 predicate to match 0..3 integer constants.
14583 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
14584 to support adding miscellaneous builtin functions.
14585 (BU_DFP_MISC_2): Likewise.
14586 (BU_P7_MISC_1): Likewise.
14587 (BU_P7_MISC_2): Likewise.
14588 (BU_P8V_MISC_3): Likewise.
14589 (BU_MISC_1): Likewise.
14590 (BU_MISC_2): Likewise.
14591 (DIVWE): Add extended divide builtin functions.
14592 (DIVWEO): Likewise.
14593 (DIVWEU): Likewise.
14594 (DIVWEUO): Likewise.
14596 (DIVDEO): Likewise.
14597 (DIVDEU): Likewise.
14598 (DIVDEUO): Likewise.
14599 (DXEX): Add decimal floating-point builtin functions.
14601 (DDEDPD): Likewise.
14602 (DDEDPDQ): Likewise.
14603 (DENBCD): Likewise.
14604 (DENBCDQ): Likewise.
14608 (DSCLIQ): Likewise.
14610 (DSCRIQ): Likewise.
14611 (CDTBCD): Add new BCD builtin functions.
14612 (CBCDTD): Likewise.
14613 (ADDG6S): Likewise.
14614 (BCDADD): Likewise.
14615 (BCDADD_LT): Likewise.
14616 (BCDADD_EQ): Likewise.
14617 (BCDADD_GT): Likewise.
14618 (BCDADD_OV): Likewise.
14619 (BCDSUB): Likewise.
14620 (BCDSUB_LT): Likewise.
14621 (BCDSUB_EQ): Likewise.
14622 (BCDSUB_GT): Likewise.
14623 (BCDSUB_OV): Likewise.
14624 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
14625 (UNPACK_TD): Likewise.
14626 (PACK_TF): Likewise.
14627 (UNPACK_TF): Likewise.
14628 (UNPACK_TF_0): Likewise.
14629 (UNPACK_TF_1): Likewise.
14630 (PACK_V1TI): Likewise.
14631 (UNPACK_V1TI): Likewise.
14633 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14634 support for decimal floating point builtin functions.
14635 (rs6000_expand_ternop_builtin): Add checks for the new builtin
14636 functions that take constant arguments.
14637 (rs6000_invalid_builtin): Add decimal floating point builtin support.
14638 (rs6000_init_builtins): Setup long double, _Decimal64, and
14639 _Decimal128 types for new builtin functions.
14640 (builtin_function_type): Set the unsigned flags appropriately for
14641 the new builtin functions.
14642 (rs6000_opt_masks): Add support for decimal floating point builtin
14645 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
14646 floating point builtin functions.
14647 (RS6000_BTM_COMMON): Likewise.
14648 (RS6000_BTI_long_double): Likewise.
14649 (RS6000_BTI_dfloat64): Likewise.
14650 (RS6000_BTI_dfloat128): Likewise.
14651 (long_double_type_internal_node): Likewise.
14652 (dfloat64_type_internal_node): Likewise.
14653 (dfloat128_type_internal_node): Likewise.
14655 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
14656 2.07 bcd arithmetic instructions.
14657 (UNSPEC_BCDSUB): Likewise.
14658 (UNSPEC_BCD_OVERFLOW): Likewise.
14659 (UNSPEC_BCD_ADD_SUB): Likewise.
14660 (bcd_add_sub): Likewise.
14661 (BCD_TEST): Likewise.
14662 (bcd<bcd_add_sub>): Likewise.
14663 (bcd<bcd_add_sub>_test): Likewise.
14664 (bcd<bcd_add_sub>_test2): Likewise.
14665 (bcd<bcd_add_sub>_<code>): Likewise.
14666 (peephole2 for combined bcd ops): Likewise.
14668 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
14669 decimal floating point builtin functions.
14670 (UNSPEC_DENBCD): Likewise.
14671 (UNSPEC_DXEX): Likewise.
14672 (UNSPEC_DIEX): Likewise.
14673 (UNSPEC_DSCLI): Likewise.
14674 (UNSPEC_DSCRI): Likewise.
14675 (D64_D128): Likewise.
14676 (dfp_suffix): Likewise.
14677 (dfp_ddedpd_<mode>): Likewise.
14678 (dfp_denbcd_<mode>): Likewise.
14679 (dfp_dxex_<mode>): Likewise.
14680 (dfp_diex_<mode>): Likewise.
14681 (dfp_dscli_<mode>): Likewise.
14682 (dfp_dscri_<mode>): Likewise.
14684 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
14686 (UNSPEC_CDTBCD): Likewise.
14687 (UNSPEC_CBCDTD): Likewise.
14688 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
14689 (UNSPEC_DIVEO): Likewise.
14690 (UNSPEC_DIVEU): Likewise.
14691 (UNSPEC_DIVEUO): Likewise.
14692 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
14693 pack/unpack 128-bit types.
14694 (UNSPEC_PACK_128BIT): Likewise.
14695 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
14696 (udiv<mode>3): Use idiv_ldiv mode attribute.
14697 (div<mode>3): Likewise.
14698 (addg6s): Add new BCD builtin functions.
14699 (cdtbcd): Likewise.
14700 (cbcdtd): Likewise.
14701 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
14702 (div_extend): Likewise.
14703 (div<div_extend>_<mode>"): Likewise.
14704 (FP128_64): Add support for new builtin functions to pack/unpack
14706 (unpack<mode>): Likewise.
14707 (unpacktf_0): Likewise.
14708 (unpacktf_1): Likewise.
14709 (unpack<mode>_dm): Likewise.
14710 (unpack<mode>_nodm): Likewise.
14711 (pack<mode>): Likewise.
14712 (unpackv1ti): Likewise.
14713 (packv1ti): Likewise.
14715 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
14717 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
14720 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14722 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14723 * gimplify.c (omp_is_private): Change last argument's type to int.
14724 Only diagnose lastprivate if the simd argument is 1, only diagnose
14725 linear if the simd argument is 2.
14726 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14727 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14728 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14729 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14730 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14731 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14732 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14733 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14734 * tree-nested.c (convert_nonlocal_omp_clauses,
14735 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14737 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14740 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14743 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14745 * flag-types.h (enum ivar_visibility): Add.
14747 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14749 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14750 function * argument.
14752 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14754 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14756 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14757 Tom de Vries <tom@codesourcery.com>
14759 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14760 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14762 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14763 * emit-rtl.c (try_split): Same.
14765 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14766 Tom de Vries <tom@codesourcery.com>
14768 * common.opt (fuse-caller-save): New option.
14770 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14772 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14773 elements for big-endian.
14775 2014-04-24 Richard Biener <rguenther@suse.de>
14777 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14778 during TER and instead use the sepops interface for expanding
14779 non-GIMPLE_SINGLE_RHS.
14781 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14783 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14784 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14786 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14788 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14789 assembler 64-bit option.
14790 * configure: Regenerate.
14792 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14794 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14795 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14796 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14797 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14798 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14800 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14802 * config/aarch64/aarch64-builtins.c
14803 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14804 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14805 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14806 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14808 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14809 (Vrevsuff): New mode attribute.
14811 2014-04-24 Terry Guo <terry.guo@arm.com>
14813 * config/arm/arm.h (machine_function): Define variable
14814 after_arm_reorg here.
14815 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14816 (arm_split_constant): Update the way to access variable
14818 (arm_reorg): Ditto.
14819 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14821 2014-04-23 Tom de Vries <tom@codesourcery.com>
14823 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14825 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14827 * is-a.h: Update comments to reflect the following changes to the
14828 "pointerness" of the API, making the template parameter match the
14829 return type, allowing use of is-a.h with typedefs of pointers.
14830 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14831 that the return type matches the parameter to the is_a_helper.
14833 (dyn_cast): Likewise.
14835 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14836 pointer from the is-a.h API.
14838 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14839 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14841 (is_a_helper <varpool_node>::test): Likewise, convert to...
14842 (is_a_helper <varpool_node *>::test): ...this.
14844 (varpool_first_variable): Update for removal of implicit pointer
14845 from the is-a.h API.
14846 (varpool_next_variable): Likewise.
14847 (varpool_first_static_initializer): Likewise.
14848 (varpool_next_static_initializer): Likewise.
14849 (varpool_first_defined_variable): Likewise.
14850 (varpool_next_defined_variable): Likewise.
14851 (cgraph_first_defined_function): Likewise.
14852 (cgraph_next_defined_function): Likewise.
14853 (cgraph_first_function): Likewise.
14854 (cgraph_next_function): Likewise.
14855 (cgraph_first_function_with_gimple_body): Likewise.
14856 (cgraph_next_function_with_gimple_body): Likewise.
14857 (cgraph_alias_target): Likewise.
14858 (varpool_alias_target): Likewise.
14859 (cgraph_function_or_thunk_node): Likewise.
14860 (varpool_variable_node): Likewise.
14861 (symtab_real_symbol_p): Likewise.
14862 * cgraphunit.c (referred_to_p): Likewise.
14863 (analyze_functions): Likewise.
14864 (handle_alias_pairs): Likewise.
14865 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14866 * gimple-ssa.h (gimple_vuse_op): Likewise.
14867 (gimple_vdef_op): Likewise.
14868 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14869 * gimple.c (gimple_build_asm_1): Likewise.
14870 (gimple_build_try): Likewise.
14871 (gimple_build_resx): Likewise.
14872 (gimple_build_eh_dispatch): Likewise.
14873 (gimple_build_omp_for): Likewise.
14874 (gimple_omp_for_set_clauses): Likewise.
14876 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14877 (is_a_helper <gimple_statement_asm *>::test): ...this.
14878 (is_a_helper <gimple_statement_bind>::test): Convert to...
14879 (is_a_helper <gimple_statement_bind *>::test): ...this.
14880 (is_a_helper <gimple_statement_call>::test): Convert to...
14881 (is_a_helper <gimple_statement_call *>::test): ...this.
14882 (is_a_helper <gimple_statement_catch>::test): Convert to...
14883 (is_a_helper <gimple_statement_catch *>::test): ...this.
14884 (is_a_helper <gimple_statement_resx>::test): Convert to...
14885 (is_a_helper <gimple_statement_resx *>::test): ...this.
14886 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14887 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14888 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14889 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14890 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14891 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14892 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14893 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14894 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14895 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14896 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14897 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14898 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14899 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14900 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14901 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14902 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14903 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14904 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14905 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14906 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14907 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14908 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14909 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14910 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14911 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14912 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14913 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14914 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14915 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14916 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14917 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14918 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14919 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14920 (is_a_helper <gimple_statement_phi>::test): Convert to...
14921 (is_a_helper <gimple_statement_phi *>::test): ...this.
14922 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14923 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14924 (is_a_helper <gimple_statement_try>::test): Convert to...
14925 (is_a_helper <gimple_statement_try *>::test): ...this.
14926 (is_a_helper <gimple_statement_wce>::test): Convert to...
14927 (is_a_helper <gimple_statement_wce *>::test): ...this.
14928 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14929 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14930 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14931 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14932 (is_a_helper <const gimple_statement_call>::test): Convert to...
14933 (is_a_helper <const gimple_statement_call *>::test): ...this.
14934 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14935 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14936 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14937 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14938 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14939 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14940 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14941 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14942 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14944 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14946 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14948 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14950 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14951 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14952 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14954 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14955 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14957 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14958 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14959 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14960 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14961 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14962 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14964 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14965 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14966 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14967 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14969 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14970 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14971 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14972 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14973 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14974 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14975 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14976 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14977 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14978 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14979 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14980 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14981 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14982 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14983 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14984 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14986 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14988 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14989 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14991 (gimple_use_ops): Update for removal of implicit pointer from the
14993 (gimple_set_use_ops): Likewise.
14994 (gimple_vuse): Likewise.
14995 (gimple_vdef): Likewise.
14996 (gimple_vuse_ptr): Likewise.
14997 (gimple_vdef_ptr): Likewise.
14998 (gimple_set_vuse): Likewise.
14999 (gimple_set_vdef): Likewise.
15000 (gimple_omp_return_set_lhs): Likewise.
15001 (gimple_omp_return_lhs): Likewise.
15002 (gimple_omp_return_lhs_ptr): Likewise.
15003 (gimple_call_fntype): Likewise.
15004 (gimple_call_set_fntype): Likewise.
15005 (gimple_call_set_internal_fn): Likewise.
15006 (gimple_call_use_set): Likewise.
15007 (gimple_call_clobber_set): Likewise.
15008 (gimple_bind_vars): Likewise.
15009 (gimple_bind_set_vars): Likewise.
15010 (gimple_bind_body_ptr): Likewise.
15011 (gimple_bind_set_body): Likewise.
15012 (gimple_bind_add_stmt): Likewise.
15013 (gimple_bind_block): Likewise.
15014 (gimple_bind_set_block): Likewise.
15015 (gimple_asm_ninputs): Likewise.
15016 (gimple_asm_noutputs): Likewise.
15017 (gimple_asm_nclobbers): Likewise.
15018 (gimple_asm_nlabels): Likewise.
15019 (gimple_asm_input_op): Likewise.
15020 (gimple_asm_input_op_ptr): Likewise.
15021 (gimple_asm_output_op): Likewise.
15022 (gimple_asm_output_op_ptr): Likewise.
15023 (gimple_asm_set_output_op): Likewise.
15024 (gimple_asm_clobber_op): Likewise.
15025 (gimple_asm_set_clobber_op): Likewise.
15026 (gimple_asm_label_op): Likewise.
15027 (gimple_asm_set_label_op): Likewise.
15028 (gimple_asm_string): Likewise.
15029 (gimple_catch_types): Likewise.
15030 (gimple_catch_types_ptr): Likewise.
15031 (gimple_catch_handler_ptr): Likewise.
15032 (gimple_catch_set_types): Likewise.
15033 (gimple_catch_set_handler): Likewise.
15034 (gimple_eh_filter_types): Likewise.
15035 (gimple_eh_filter_types_ptr): Likewise.
15036 (gimple_eh_filter_failure_ptr): Likewise.
15037 (gimple_eh_filter_set_types): Likewise.
15038 (gimple_eh_filter_set_failure): Likewise.
15039 (gimple_eh_must_not_throw_fndecl): Likewise.
15040 (gimple_eh_must_not_throw_set_fndecl): Likewise.
15041 (gimple_eh_else_n_body_ptr): Likewise.
15042 (gimple_eh_else_e_body_ptr): Likewise.
15043 (gimple_eh_else_set_n_body): Likewise.
15044 (gimple_eh_else_set_e_body): Likewise.
15045 (gimple_try_eval_ptr): Likewise.
15046 (gimple_try_cleanup_ptr): Likewise.
15047 (gimple_try_set_eval): Likewise.
15048 (gimple_try_set_cleanup): Likewise.
15049 (gimple_wce_cleanup_ptr): Likewise.
15050 (gimple_wce_set_cleanup): Likewise.
15051 (gimple_phi_capacity): Likewise.
15052 (gimple_phi_num_args): Likewise.
15053 (gimple_phi_result): Likewise.
15054 (gimple_phi_result_ptr): Likewise.
15055 (gimple_phi_set_result): Likewise.
15056 (gimple_phi_arg): Likewise.
15057 (gimple_phi_set_arg): Likewise.
15058 (gimple_resx_region): Likewise.
15059 (gimple_resx_set_region): Likewise.
15060 (gimple_eh_dispatch_region): Likewise.
15061 (gimple_eh_dispatch_set_region): Likewise.
15062 (gimple_omp_critical_name): Likewise.
15063 (gimple_omp_critical_name_ptr): Likewise.
15064 (gimple_omp_critical_set_name): Likewise.
15065 (gimple_omp_for_clauses): Likewise.
15066 (gimple_omp_for_clauses_ptr): Likewise.
15067 (gimple_omp_for_set_clauses): Likewise.
15068 (gimple_omp_for_collapse): Likewise.
15069 (gimple_omp_for_index): Likewise.
15070 (gimple_omp_for_index_ptr): Likewise.
15071 (gimple_omp_for_set_index): Likewise.
15072 (gimple_omp_for_initial): Likewise.
15073 (gimple_omp_for_initial_ptr): Likewise.
15074 (gimple_omp_for_set_initial): Likewise.
15075 (gimple_omp_for_final): Likewise.
15076 (gimple_omp_for_final_ptr): Likewise.
15077 (gimple_omp_for_set_final): Likewise.
15078 (gimple_omp_for_incr): Likewise.
15079 (gimple_omp_for_incr_ptr): Likewise.
15080 (gimple_omp_for_set_incr): Likewise.
15081 (gimple_omp_for_pre_body_ptr): Likewise.
15082 (gimple_omp_for_set_pre_body): Likewise.
15083 (gimple_omp_parallel_clauses): Likewise.
15084 (gimple_omp_parallel_clauses_ptr): Likewise.
15085 (gimple_omp_parallel_set_clauses): Likewise.
15086 (gimple_omp_parallel_child_fn): Likewise.
15087 (gimple_omp_parallel_child_fn_ptr): Likewise.
15088 (gimple_omp_parallel_set_child_fn): Likewise.
15089 (gimple_omp_parallel_data_arg): Likewise.
15090 (gimple_omp_parallel_data_arg_ptr): Likewise.
15091 (gimple_omp_parallel_set_data_arg): Likewise.
15092 (gimple_omp_task_clauses): Likewise.
15093 (gimple_omp_task_clauses_ptr): Likewise.
15094 (gimple_omp_task_set_clauses): Likewise.
15095 (gimple_omp_task_child_fn): Likewise.
15096 (gimple_omp_task_child_fn_ptr): Likewise.
15097 (gimple_omp_task_set_child_fn): Likewise.
15098 (gimple_omp_task_data_arg): Likewise.
15099 (gimple_omp_task_data_arg_ptr): Likewise.
15100 (gimple_omp_task_set_data_arg): Likewise.
15101 (gimple_omp_taskreg_clauses): Likewise.
15102 (gimple_omp_taskreg_clauses_ptr): Likewise.
15103 (gimple_omp_taskreg_set_clauses): Likewise.
15104 (gimple_omp_taskreg_child_fn): Likewise.
15105 (gimple_omp_taskreg_child_fn_ptr): Likewise.
15106 (gimple_omp_taskreg_set_child_fn): Likewise.
15107 (gimple_omp_taskreg_data_arg): Likewise.
15108 (gimple_omp_taskreg_data_arg_ptr): Likewise.
15109 (gimple_omp_taskreg_set_data_arg): Likewise.
15110 (gimple_omp_task_copy_fn): Likewise.
15111 (gimple_omp_task_copy_fn_ptr): Likewise.
15112 (gimple_omp_task_set_copy_fn): Likewise.
15113 (gimple_omp_task_arg_size): Likewise.
15114 (gimple_omp_task_arg_size_ptr): Likewise.
15115 (gimple_omp_task_set_arg_size): Likewise.
15116 (gimple_omp_task_arg_align): Likewise.
15117 (gimple_omp_task_arg_align_ptr): Likewise.
15118 (gimple_omp_task_set_arg_align): Likewise.
15119 (gimple_omp_single_clauses): Likewise.
15120 (gimple_omp_single_clauses_ptr): Likewise.
15121 (gimple_omp_single_set_clauses): Likewise.
15122 (gimple_omp_target_clauses): Likewise.
15123 (gimple_omp_target_clauses_ptr): Likewise.
15124 (gimple_omp_target_set_clauses): Likewise.
15125 (gimple_omp_target_child_fn): Likewise.
15126 (gimple_omp_target_child_fn_ptr): Likewise.
15127 (gimple_omp_target_set_child_fn): Likewise.
15128 (gimple_omp_target_data_arg): Likewise.
15129 (gimple_omp_target_data_arg_ptr): Likewise.
15130 (gimple_omp_target_set_data_arg): Likewise.
15131 (gimple_omp_teams_clauses): Likewise.
15132 (gimple_omp_teams_clauses_ptr): Likewise.
15133 (gimple_omp_teams_set_clauses): Likewise.
15134 (gimple_omp_sections_clauses): Likewise.
15135 (gimple_omp_sections_clauses_ptr): Likewise.
15136 (gimple_omp_sections_set_clauses): Likewise.
15137 (gimple_omp_sections_control): Likewise.
15138 (gimple_omp_sections_control_ptr): Likewise.
15139 (gimple_omp_sections_set_control): Likewise.
15140 (gimple_omp_for_set_cond): Likewise.
15141 (gimple_omp_for_cond): Likewise.
15142 (gimple_omp_atomic_store_set_val): Likewise.
15143 (gimple_omp_atomic_store_val): Likewise.
15144 (gimple_omp_atomic_store_val_ptr): Likewise.
15145 (gimple_omp_atomic_load_set_lhs): Likewise.
15146 (gimple_omp_atomic_load_lhs): Likewise.
15147 (gimple_omp_atomic_load_lhs_ptr): Likewise.
15148 (gimple_omp_atomic_load_set_rhs): Likewise.
15149 (gimple_omp_atomic_load_rhs): Likewise.
15150 (gimple_omp_atomic_load_rhs_ptr): Likewise.
15151 (gimple_omp_continue_control_def): Likewise.
15152 (gimple_omp_continue_control_def_ptr): Likewise.
15153 (gimple_omp_continue_set_control_def): Likewise.
15154 (gimple_omp_continue_control_use): Likewise.
15155 (gimple_omp_continue_control_use_ptr): Likewise.
15156 (gimple_omp_continue_set_control_use): Likewise.
15157 (gimple_transaction_body_ptr): Likewise.
15158 (gimple_transaction_label): Likewise.
15159 (gimple_transaction_label_ptr): Likewise.
15160 (gimple_transaction_set_body): Likewise.
15161 (gimple_transaction_set_label): Likewise.
15163 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
15164 * ipa-inline-analysis.c (inline_write_summary): Likewise.
15165 * ipa-ref.c (ipa_record_reference): Likewise.
15166 * ipa-reference.c (analyze_function): Likewise.
15167 (ipa_reference_write_optimization_summary): Likewise.
15168 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
15169 (address_taken_from_non_vtable_p): Likewise.
15170 (comdat_can_be_unshared_p_1): Likewise.
15171 * lto-cgraph.c (lto_output_ref): Likewise.
15172 (add_references): Likewise.
15173 (compute_ltrans_boundary): Likewise.
15174 (output_symtab): Likewise.
15175 (input_ref): Likewise.
15176 (input_cgraph_1): Likewise.
15177 (output_cgraph_opt_summary): Likewise.
15178 * lto-streamer-out.c (lto_output): Likewise.
15179 (output_symbol_p): Likewise.
15180 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
15181 (lsei_start_function_in_partition): Likewise.
15182 (lsei_next_variable_in_partition): Likewise.
15183 (lsei_start_variable_in_partition): Likewise.
15184 * symtab.c (insert_to_assembler_name_hash): Likewise.
15185 (unlink_from_assembler_name_hash): Likewise.
15186 (symtab_unregister_node): Likewise.
15187 (symtab_remove_node): Likewise.
15188 (dump_symtab_node): Likewise.
15189 (verify_symtab_base): Likewise.
15190 (verify_symtab_node): Likewise.
15191 (symtab_make_decl_local): Likewise.
15192 (symtab_alias_ultimate_target): Likewise.
15193 (symtab_resolve_alias): Likewise.
15194 (symtab_get_symbol_partitioning_class): Likewise.
15195 * tree-phinodes.c (allocate_phi_node): Likewise.
15196 (reserve_phi_args_for_new_edge): Likewise.
15197 (remove_phi_args): Likewise.
15198 * varpool.c (varpool_node_for_asm): Likewise.
15199 (varpool_remove_unreferenced_decls): Likewise.
15201 2014-04-23 Jeff Law <law@redhat.com>
15203 PR tree-optimization/60902
15204 * tree-ssa-threadedge.c
15205 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
15206 invalidate outputs from statements that do not produce useful
15207 outputs for threading.
15209 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15211 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
15212 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
15213 machine descriptions for Stack Smashing Protector.
15215 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
15217 * aarch64.md (<optab>_rol<mode>3): New pattern.
15218 (<optab>_rolsi3_uxtw): Likewise.
15219 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
15221 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
15223 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
15224 (arm_cortex_a12_tune): Likewise.
15226 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15228 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
15230 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15232 * config/arm/arm.md (arm_rev16si2): New pattern.
15233 (arm_rev16si2_alt): Likewise.
15234 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
15236 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15238 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
15239 (rev16<mode>2_alt): Likewise.
15240 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
15241 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
15242 (aarch_rev16_shleft_mask_imm_p): Likewise.
15243 (aarch_rev16_p_1): Likewise.
15244 (aarch_rev16_p): Likewise.
15245 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
15246 (aarch_rev16_shright_mask_imm_p): Likewise.
15247 (aarch_rev16_shleft_mask_imm_p): Likewise.
15249 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15251 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
15252 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
15254 (cortex_a53_extra_costs): Likewise.
15255 (cortex_a57_extra_costs): Likewise.
15256 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
15257 (cortexa7_extra_costs): Likewise.
15258 (cortexa8_extra_costs): Likewise.
15259 (cortexa12_extra_costs): Likewise.
15260 (cortexa15_extra_costs): Likewise.
15261 (v7m_extra_costs): Likewise.
15262 (arm_new_rtx_costs): Handle BSWAP.
15264 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15266 * config/arm/arm.c (cortexa8_extra_costs): New table.
15267 (arm_cortex_a8_tune): New tuning struct.
15268 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
15270 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15272 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
15274 2014-04-23 Richard Biener <rguenther@suse.de>
15276 * Makefile.in (OBJS): Remove loop-unswitch.o.
15277 * tree-pass.h (make_pass_rtl_unswitch): Remove.
15278 * passes.def (pass_rtl_unswitch): Likewise.
15279 * loop-init.c (gate_rtl_unswitch): Likewise.
15280 (rtl_unswitch): Likewise.
15281 (pass_data_rtl_unswitch): Likewise.
15282 (pass_rtl_unswitch): Likewise.
15283 (make_pass_rtl_unswitch): Likewise.
15284 * rtl.h (reversed_condition): Likewise.
15285 (compare_and_jump_seq): Likewise.
15286 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
15288 * loop-unroll.c (compare_and_jump_seq): Likewise.
15290 2014-04-23 Richard Biener <rguenther@suse.de>
15292 PR tree-optimization/60903
15293 * tree-ssa-loop-im.c (analyze_memory_references): Remove
15294 commented code block.
15295 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
15296 loop flags to newly created BBs and edges.
15298 2014-04-23 Nick Clifton <nickc@redhat.com>
15300 * config/msp430/msp430.c (msp430_handle_option): Move function
15302 (msp430_option_override): Simplify mcu and mcpu option handling.
15303 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
15304 support for -mhwmult command line option.
15305 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
15306 -mhwmult command line option.
15307 (msp430_hwmult_enabled): Delete.
15308 (msp43o_output_labelref): Add support for -mhwmult command line option.
15309 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
15310 (umulsidi3): Likewise.
15311 * config/msp430/msp430.opt (mmcu): Add Report attribute.
15312 (mcpu, mlarge, msmall): Likewise.
15313 (mhwmult): New option.
15314 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
15316 (msp430_is_f5_mcu): Remove prototype.
15317 (msp430_use_f5_series_hwmult): Add prototype.
15318 * config/msp430/msp430-opts.h: New file.
15319 * common/config/msp430: New directory.
15320 * common/config/msp430/msp430-common.c: New file.
15321 * config.gcc (msp430): Remove target_has_targetm_common.
15322 * doc/invoke.texi: Document -mhwmult command line option.
15324 2014-04-23 Nick Clifton <nickc@redhat.com>
15326 * config/i386/cygwin.h (ENDFILE_SPEC): Include
15327 default-manifest.o if it can be found in the search path.
15328 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15330 2014-04-23 Terry Guo <terry.guo@arm.com>
15332 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
15334 2014-04-23 Richard Biener <rguenther@suse.de>
15336 PR middle-end/60895
15337 * tree-inline.c (declare_return_variable): Use mark_addressable.
15339 2014-04-23 Richard Biener <rguenther@suse.de>
15341 PR middle-end/60891
15342 * loop-init.c (loop_optimizer_init): Make sure to apply
15343 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
15345 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15348 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
15350 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
15351 if flag_sanitize_undefined_trap_on_error.
15352 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
15353 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
15354 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
15355 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
15356 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
15357 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
15358 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
15359 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
15360 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
15361 * ubsan.c (ubsan_instrument_unreachable): Return
15362 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
15363 (ubsan_expand_null_ifn): Emit __builtin_trap ()
15364 if flag_sanitize_undefined_trap_on_error and
15365 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
15366 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15367 instrument_bool_enum_load): Emit __builtin_trap () if
15368 flag_sanitize_undefined_trap_on_error and
15369 __builtin_handle_*_abort () if !flag_sanitize_recover.
15370 * doc/invoke.texi (-fsanitize-recover,
15371 -fsanitize-undefined-trap-on-error): Document.
15373 2014-04-22 Christian Bruel <christian.bruel@st.com>
15375 * config/sh/sh.md (mov<mode>): Replace movQIHI.
15376 Force immediates to SImode.
15378 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
15380 * config/nios2/nios2.md (UNSPEC_ROUND): New.
15381 (lroundsfsi2): New.
15382 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15383 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15384 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15385 (nios2_fpu_insn): Add entry for round.
15386 (N2FPU_NO_ERRNO_P): Define.
15387 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15389 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
15391 2014-04-22 Richard Henderson <rth@redhat.com>
15393 * config/aarch64/aarch64 (addti3, subti3): New expanders.
15394 (add<GPI>3_compare0): Remove leading * from name.
15395 (add<GPI>3_carryin): Likewise.
15396 (sub<GPI>3_compare0): Likewise.
15397 (sub<GPI>3_carryin): Likewise.
15398 (<su_optab>mulditi3): New expander.
15399 (multi3): New expander.
15400 (madd<GPI>): Remove leading * from name.
15402 2014-04-22 Martin Jambor <mjambor@suse.cz>
15404 * cgraphclones.c (cgraph_function_versioning): Copy
15405 ipa_transforms_to_apply instead of asserting it is empty.
15407 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
15410 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
15411 on count_exp to get mode.
15413 2014-04-22 Andrew Pinski <apinski@cavium.com>
15415 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15416 Handle TLS for ILP32.
15417 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
15418 (tlsie_small_<mode>): this and handle PTR.
15419 (tlsie_small_sidi): New pattern.
15420 (tlsle_small): Change to an expand to handle ILP32.
15421 (tlsle_small_<mode>): New pattern.
15422 (tlsdesc_small): Rename to ...
15423 (tlsdesc_small_<mode>): this and handle PTR.
15425 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15427 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
15429 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15431 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15432 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
15433 (aarch64_types_signed_poly_qualifiers): Likewise.
15434 (aarch64_types_unsigned_signed_qualifiers): Likewise.
15435 (aarch64_types_poly_signed_qualifiers): Likewise.
15436 (TYPES_REINTERP_SS): Type macro added.
15437 (TYPES_REINTERP_SU): Likewise.
15438 (TYPES_REINTERP_SP): Likewise.
15439 (TYPES_REINTERP_US): Likewise.
15440 (TYPES_REINTERP_PS): Likewise.
15441 (aarch64_fold_builtin): New expression folding added.
15442 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
15443 Declarations removed.
15444 (REINTERP_SS): Declarations added.
15445 (REINTERP_US): Likewise.
15446 (REINTERP_PS): Likewise.
15447 (REINTERP_SU): Likewise.
15448 (REINTERP_SP): Likewise.
15449 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
15450 (vreinterpretq_p8_f64): Likewise.
15451 (vreinterpret_p16_f64): Likewise.
15452 (vreinterpretq_p16_f64): Likewise.
15453 (vreinterpret_f32_f64): Likewise.
15454 (vreinterpretq_f32_f64): Likewise.
15455 (vreinterpret_f64_f32): Likewise.
15456 (vreinterpret_f64_p8): Likewise.
15457 (vreinterpret_f64_p16): Likewise.
15458 (vreinterpret_f64_s8): Likewise.
15459 (vreinterpret_f64_s16): Likewise.
15460 (vreinterpret_f64_s32): Likewise.
15461 (vreinterpret_f64_s64): Likewise.
15462 (vreinterpret_f64_u8): Likewise.
15463 (vreinterpret_f64_u16): Likewise.
15464 (vreinterpret_f64_u32): Likewise.
15465 (vreinterpret_f64_u64): Likewise.
15466 (vreinterpretq_f64_f32): Likewise.
15467 (vreinterpretq_f64_p8): Likewise.
15468 (vreinterpretq_f64_p16): Likewise.
15469 (vreinterpretq_f64_s8): Likewise.
15470 (vreinterpretq_f64_s16): Likewise.
15471 (vreinterpretq_f64_s32): Likewise.
15472 (vreinterpretq_f64_s64): Likewise.
15473 (vreinterpretq_f64_u8): Likewise.
15474 (vreinterpretq_f64_u16): Likewise.
15475 (vreinterpretq_f64_u32): Likewise.
15476 (vreinterpretq_f64_u64): Likewise.
15477 (vreinterpret_s64_f64): Likewise.
15478 (vreinterpretq_s64_f64): Likewise.
15479 (vreinterpret_u64_f64): Likewise.
15480 (vreinterpretq_u64_f64): Likewise.
15481 (vreinterpret_s8_f64): Likewise.
15482 (vreinterpretq_s8_f64): Likewise.
15483 (vreinterpret_s16_f64): Likewise.
15484 (vreinterpretq_s16_f64): Likewise.
15485 (vreinterpret_s32_f64): Likewise.
15486 (vreinterpretq_s32_f64): Likewise.
15487 (vreinterpret_u8_f64): Likewise.
15488 (vreinterpretq_u8_f64): Likewise.
15489 (vreinterpret_u16_f64): Likewise.
15490 (vreinterpretq_u16_f64): Likewise.
15491 (vreinterpret_u32_f64): Likewise.
15492 (vreinterpretq_u32_f64): Likewise.
15494 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15496 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15497 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
15498 (vreinterpret_p8_s8): Likewise.
15499 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
15500 (vreinterpret_p8_s16): Likewise.
15501 (vreinterpret_p8_s32): Likewise.
15502 (vreinterpret_p8_s64): Likewise.
15503 (vreinterpret_p8_f32): Likewise.
15504 (vreinterpret_p8_u8): Likewise.
15505 (vreinterpret_p8_u16): Likewise.
15506 (vreinterpret_p8_u32): Likewise.
15507 (vreinterpret_p8_u64): Likewise.
15508 (vreinterpret_p8_p16): Likewise.
15509 (vreinterpretq_p8_s8): Likewise.
15510 (vreinterpretq_p8_s16): Likewise.
15511 (vreinterpretq_p8_s32): Likewise.
15512 (vreinterpretq_p8_s64): Likewise.
15513 (vreinterpretq_p8_f32): Likewise.
15514 (vreinterpretq_p8_u8): Likewise.
15515 (vreinterpretq_p8_u16): Likewise.
15516 (vreinterpretq_p8_u32): Likewise.
15517 (vreinterpretq_p8_u64): Likewise.
15518 (vreinterpretq_p8_p16): Likewise.
15519 (vreinterpret_p16_s8): Likewise.
15520 (vreinterpret_p16_s16): Likewise.
15521 (vreinterpret_p16_s32): Likewise.
15522 (vreinterpret_p16_s64): Likewise.
15523 (vreinterpret_p16_f32): Likewise.
15524 (vreinterpret_p16_u8): Likewise.
15525 (vreinterpret_p16_u16): Likewise.
15526 (vreinterpret_p16_u32): Likewise.
15527 (vreinterpret_p16_u64): Likewise.
15528 (vreinterpret_p16_p8): Likewise.
15529 (vreinterpretq_p16_s8): Likewise.
15530 (vreinterpretq_p16_s16): Likewise.
15531 (vreinterpretq_p16_s32): Likewise.
15532 (vreinterpretq_p16_s64): Likewise.
15533 (vreinterpretq_p16_f32): Likewise.
15534 (vreinterpretq_p16_u8): Likewise.
15535 (vreinterpretq_p16_u16): Likewise.
15536 (vreinterpretq_p16_u32): Likewise.
15537 (vreinterpretq_p16_u64): Likewise.
15538 (vreinterpretq_p16_p8): Likewise.
15539 (vreinterpret_f32_s8): Likewise.
15540 (vreinterpret_f32_s16): Likewise.
15541 (vreinterpret_f32_s32): Likewise.
15542 (vreinterpret_f32_s64): Likewise.
15543 (vreinterpret_f32_u8): Likewise.
15544 (vreinterpret_f32_u16): Likewise.
15545 (vreinterpret_f32_u32): Likewise.
15546 (vreinterpret_f32_u64): Likewise.
15547 (vreinterpret_f32_p8): Likewise.
15548 (vreinterpret_f32_p16): Likewise.
15549 (vreinterpretq_f32_s8): Likewise.
15550 (vreinterpretq_f32_s16): Likewise.
15551 (vreinterpretq_f32_s32): Likewise.
15552 (vreinterpretq_f32_s64): Likewise.
15553 (vreinterpretq_f32_u8): Likewise.
15554 (vreinterpretq_f32_u16): Likewise.
15555 (vreinterpretq_f32_u32): Likewise.
15556 (vreinterpretq_f32_u64): Likewise.
15557 (vreinterpretq_f32_p8): Likewise.
15558 (vreinterpretq_f32_p16): Likewise.
15559 (vreinterpret_s64_s8): Likewise.
15560 (vreinterpret_s64_s16): Likewise.
15561 (vreinterpret_s64_s32): Likewise.
15562 (vreinterpret_s64_f32): Likewise.
15563 (vreinterpret_s64_u8): Likewise.
15564 (vreinterpret_s64_u16): Likewise.
15565 (vreinterpret_s64_u32): Likewise.
15566 (vreinterpret_s64_u64): Likewise.
15567 (vreinterpret_s64_p8): Likewise.
15568 (vreinterpret_s64_p16): Likewise.
15569 (vreinterpretq_s64_s8): Likewise.
15570 (vreinterpretq_s64_s16): Likewise.
15571 (vreinterpretq_s64_s32): Likewise.
15572 (vreinterpretq_s64_f32): Likewise.
15573 (vreinterpretq_s64_u8): Likewise.
15574 (vreinterpretq_s64_u16): Likewise.
15575 (vreinterpretq_s64_u32): Likewise.
15576 (vreinterpretq_s64_u64): Likewise.
15577 (vreinterpretq_s64_p8): Likewise.
15578 (vreinterpretq_s64_p16): Likewise.
15579 (vreinterpret_u64_s8): Likewise.
15580 (vreinterpret_u64_s16): Likewise.
15581 (vreinterpret_u64_s32): Likewise.
15582 (vreinterpret_u64_s64): Likewise.
15583 (vreinterpret_u64_f32): Likewise.
15584 (vreinterpret_u64_u8): Likewise.
15585 (vreinterpret_u64_u16): Likewise.
15586 (vreinterpret_u64_u32): Likewise.
15587 (vreinterpret_u64_p8): Likewise.
15588 (vreinterpret_u64_p16): Likewise.
15589 (vreinterpretq_u64_s8): Likewise.
15590 (vreinterpretq_u64_s16): Likewise.
15591 (vreinterpretq_u64_s32): Likewise.
15592 (vreinterpretq_u64_s64): Likewise.
15593 (vreinterpretq_u64_f32): Likewise.
15594 (vreinterpretq_u64_u8): Likewise.
15595 (vreinterpretq_u64_u16): Likewise.
15596 (vreinterpretq_u64_u32): Likewise.
15597 (vreinterpretq_u64_p8): Likewise.
15598 (vreinterpretq_u64_p16): Likewise.
15599 (vreinterpret_s8_s16): Likewise.
15600 (vreinterpret_s8_s32): Likewise.
15601 (vreinterpret_s8_s64): Likewise.
15602 (vreinterpret_s8_f32): Likewise.
15603 (vreinterpret_s8_u8): Likewise.
15604 (vreinterpret_s8_u16): Likewise.
15605 (vreinterpret_s8_u32): Likewise.
15606 (vreinterpret_s8_u64): Likewise.
15607 (vreinterpret_s8_p8): Likewise.
15608 (vreinterpret_s8_p16): Likewise.
15609 (vreinterpretq_s8_s16): Likewise.
15610 (vreinterpretq_s8_s32): Likewise.
15611 (vreinterpretq_s8_s64): Likewise.
15612 (vreinterpretq_s8_f32): Likewise.
15613 (vreinterpretq_s8_u8): Likewise.
15614 (vreinterpretq_s8_u16): Likewise.
15615 (vreinterpretq_s8_u32): Likewise.
15616 (vreinterpretq_s8_u64): Likewise.
15617 (vreinterpretq_s8_p8): Likewise.
15618 (vreinterpretq_s8_p16): Likewise.
15619 (vreinterpret_s16_s8): Likewise.
15620 (vreinterpret_s16_s32): Likewise.
15621 (vreinterpret_s16_s64): Likewise.
15622 (vreinterpret_s16_f32): Likewise.
15623 (vreinterpret_s16_u8): Likewise.
15624 (vreinterpret_s16_u16): Likewise.
15625 (vreinterpret_s16_u32): Likewise.
15626 (vreinterpret_s16_u64): Likewise.
15627 (vreinterpret_s16_p8): Likewise.
15628 (vreinterpret_s16_p16): Likewise.
15629 (vreinterpretq_s16_s8): Likewise.
15630 (vreinterpretq_s16_s32): Likewise.
15631 (vreinterpretq_s16_s64): Likewise.
15632 (vreinterpretq_s16_f32): Likewise.
15633 (vreinterpretq_s16_u8): Likewise.
15634 (vreinterpretq_s16_u16): Likewise.
15635 (vreinterpretq_s16_u32): Likewise.
15636 (vreinterpretq_s16_u64): Likewise.
15637 (vreinterpretq_s16_p8): Likewise.
15638 (vreinterpretq_s16_p16): Likewise.
15639 (vreinterpret_s32_s8): Likewise.
15640 (vreinterpret_s32_s16): Likewise.
15641 (vreinterpret_s32_s64): Likewise.
15642 (vreinterpret_s32_f32): Likewise.
15643 (vreinterpret_s32_u8): Likewise.
15644 (vreinterpret_s32_u16): Likewise.
15645 (vreinterpret_s32_u32): Likewise.
15646 (vreinterpret_s32_u64): Likewise.
15647 (vreinterpret_s32_p8): Likewise.
15648 (vreinterpret_s32_p16): Likewise.
15649 (vreinterpretq_s32_s8): Likewise.
15650 (vreinterpretq_s32_s16): Likewise.
15651 (vreinterpretq_s32_s64): Likewise.
15652 (vreinterpretq_s32_f32): Likewise.
15653 (vreinterpretq_s32_u8): Likewise.
15654 (vreinterpretq_s32_u16): Likewise.
15655 (vreinterpretq_s32_u32): Likewise.
15656 (vreinterpretq_s32_u64): Likewise.
15657 (vreinterpretq_s32_p8): Likewise.
15658 (vreinterpretq_s32_p16): Likewise.
15659 (vreinterpret_u8_s8): Likewise.
15660 (vreinterpret_u8_s16): Likewise.
15661 (vreinterpret_u8_s32): Likewise.
15662 (vreinterpret_u8_s64): Likewise.
15663 (vreinterpret_u8_f32): Likewise.
15664 (vreinterpret_u8_u16): Likewise.
15665 (vreinterpret_u8_u32): Likewise.
15666 (vreinterpret_u8_u64): Likewise.
15667 (vreinterpret_u8_p8): Likewise.
15668 (vreinterpret_u8_p16): Likewise.
15669 (vreinterpretq_u8_s8): Likewise.
15670 (vreinterpretq_u8_s16): Likewise.
15671 (vreinterpretq_u8_s32): Likewise.
15672 (vreinterpretq_u8_s64): Likewise.
15673 (vreinterpretq_u8_f32): Likewise.
15674 (vreinterpretq_u8_u16): Likewise.
15675 (vreinterpretq_u8_u32): Likewise.
15676 (vreinterpretq_u8_u64): Likewise.
15677 (vreinterpretq_u8_p8): Likewise.
15678 (vreinterpretq_u8_p16): Likewise.
15679 (vreinterpret_u16_s8): Likewise.
15680 (vreinterpret_u16_s16): Likewise.
15681 (vreinterpret_u16_s32): Likewise.
15682 (vreinterpret_u16_s64): Likewise.
15683 (vreinterpret_u16_f32): Likewise.
15684 (vreinterpret_u16_u8): Likewise.
15685 (vreinterpret_u16_u32): Likewise.
15686 (vreinterpret_u16_u64): Likewise.
15687 (vreinterpret_u16_p8): Likewise.
15688 (vreinterpret_u16_p16): Likewise.
15689 (vreinterpretq_u16_s8): Likewise.
15690 (vreinterpretq_u16_s16): Likewise.
15691 (vreinterpretq_u16_s32): Likewise.
15692 (vreinterpretq_u16_s64): Likewise.
15693 (vreinterpretq_u16_f32): Likewise.
15694 (vreinterpretq_u16_u8): Likewise.
15695 (vreinterpretq_u16_u32): Likewise.
15696 (vreinterpretq_u16_u64): Likewise.
15697 (vreinterpretq_u16_p8): Likewise.
15698 (vreinterpretq_u16_p16): Likewise.
15699 (vreinterpret_u32_s8): Likewise.
15700 (vreinterpret_u32_s16): Likewise.
15701 (vreinterpret_u32_s32): Likewise.
15702 (vreinterpret_u32_s64): Likewise.
15703 (vreinterpret_u32_f32): Likewise.
15704 (vreinterpret_u32_u8): Likewise.
15705 (vreinterpret_u32_u16): Likewise.
15706 (vreinterpret_u32_u64): Likewise.
15707 (vreinterpret_u32_p8): Likewise.
15708 (vreinterpret_u32_p16): Likewise.
15709 (vreinterpretq_u32_s8): Likewise.
15710 (vreinterpretq_u32_s16): Likewise.
15711 (vreinterpretq_u32_s32): Likewise.
15712 (vreinterpretq_u32_s64): Likewise.
15713 (vreinterpretq_u32_f32): Likewise.
15714 (vreinterpretq_u32_u8): Likewise.
15715 (vreinterpretq_u32_u16): Likewise.
15716 (vreinterpretq_u32_u64): Likewise.
15717 (vreinterpretq_u32_p8): Likewise.
15718 (vreinterpretq_u32_p16): Likewise.
15720 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15722 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15724 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15726 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15727 (vqnegd_s64): Likewise.
15728 (vqabs_s64): Likewise.
15729 (vqabsd_s64): Likewise.
15731 2014-04-22 Richard Henderson <rth@redhat.com>
15733 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15734 computation to the top of the loop.
15736 2014-04-22 Renlin <renlin.li@arm.com>
15737 Jiong Wang <jiong.wang@arm.com>
15739 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15740 * config/aarch64/aarch64.c (aarch64_layout_frame)
15741 (aarch64_initial_elimination_offset): Likewise.
15743 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15745 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15748 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15750 * machmode.h (bitwise_mode_for_mode): Declare.
15751 * stor-layout.h (bitwise_type_for_mode): Likewise.
15752 * stor-layout.c (bitwise_mode_for_mode): New function.
15753 (bitwise_type_for_mode): Likewise.
15754 * builtins.c (fold_builtin_memory_op): Use it instead of
15755 int_mode_for_mode and build_nonstandard_integer_type.
15757 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15759 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15760 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15761 (*-*-solaris2*): Simplify.
15762 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15763 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15764 *-*-solaris2.9* handling.
15766 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15768 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15769 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15770 handling, simplify.
15771 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15772 * configure: Regenerate.
15774 * config/i386/sol2-9.h: Remove.
15776 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15777 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15778 Remove Solaris 9 references.
15780 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15782 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15783 (floatuns<GPI:mode><GPF:mode>2): Remove.
15784 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15785 and floatuns conversions.
15786 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15787 and floatuns conversions.
15788 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15789 (w1,w2): New mode attributes for inequal width conversions.
15791 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15793 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15794 the output asm format.
15796 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15798 * config/aarch64/aarch64-simd.md
15799 (aarch64_cm<optab>di): Always split.
15800 (*aarch64_cm<optab>di): New.
15801 (aarch64_cmtstdi): Always split.
15802 (*aarch64_cmtstdi): New.
15804 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15806 PR tree-optimization/60823
15807 * omp-low.c (ipa_simd_modify_function_body): Go through
15808 all SSA_NAMEs and for those refering to vector arguments
15809 which are going to be replaced adjust SSA_NAME_VAR and,
15810 if it is a default definition, change it into a non-default
15811 definition assigned at the beginning of function from new_decl.
15812 (ipa_simd_modify_stmt_ops): Rewritten.
15813 * tree-dfa.c (set_ssa_default_def): When removing default def,
15814 check for NULL loc instead of NULL *loc.
15816 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15818 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15819 restrictions on core registers for DImode values in Thumb2.
15821 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15823 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15824 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15826 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15828 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15829 (*iordi_notzesidi_di): Likewise.
15830 (*iordi_notsesidi_di): Likewise.
15832 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15834 * config/arm/arm-protos.h (tune_params): New struct members.
15835 * config/arm/arm.c: Initialise tune_params per processor.
15836 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15837 for speed, based on new tune_params.
15839 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15841 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15842 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15843 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15844 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15845 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15846 (vrnda_f64): Likewise.
15847 (vrndi_f64): Likewise.
15848 (vrndm_f64): Likewise.
15849 (vrndn_f64): Likewise.
15850 (vrndp_f64): Likewise.
15851 (vrndx_f64): Likewise.
15853 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15855 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15856 GET_MODE_SIZE argument is enum machine_mode.
15858 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15861 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15862 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15864 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15866 PR middle-end/60281
15867 * asan.c (asan_emit_stack_protection): Force the base to align to
15868 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15869 appropriate bits if STRICT_ALIGNMENT.
15870 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15872 (expand_used_vars): Leave a space in the stack frame for alignment
15873 if STRICT_ALIGNMENT.
15875 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15877 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15879 (gimple_store_p): Likewise.
15880 (gimple_assign_load_p): Likewise.
15881 (gimple_assign_cast_p): Likewise.
15882 (gimple_clobber_p): Likewise.
15884 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15885 rather than a gimple.
15886 (gimple_assign_cast_p): Likewise.
15888 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15891 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15892 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15894 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15895 more debug information for E500 if -mdebug=reg.
15897 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15900 * config/i386/i386.c (ix86_expand_builtin)
15901 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15902 register for target RTX.
15903 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15905 2014-04-18 Cong Hou <congh@google.com>
15907 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15908 the widen-mult pattern by handling two operands with different sizes,
15909 and operands whose size is smaller than half of the result type.
15911 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15913 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15914 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15915 (do_estimate_edge_time): Compute it.
15916 * ipa-inline.c (want_inline_small_function_p): Bypass
15917 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15919 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15921 * ipa-inline.c (spec_rem): New static variable.
15922 (dump_overall_stats): New function.
15923 (dump_inline_stats): New function.
15925 2014-04-18 Richard Henderson <rth@redhat.com>
15927 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15928 to GET_MODE_SIZE, not a reg_class_t.
15930 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15932 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15933 (vsx_xxmrglw_<mode>): Likewise.
15935 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15938 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15939 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15940 (rs6000_init_hard_regno_mode_ok): Likewise.
15942 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15944 * ipa-inline.c (inline_small_functions): Account only non-cold
15946 * doc/invoke.texi (inline-unit-growth): Update documentation.
15948 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15950 * config/rs6000/rs6000.md (addti3, subti3): New.
15952 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15955 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15956 comment. Check optimize_insn_for_size_p instead of
15957 optimize_insn_for_speed_p.
15959 2014-04-17 Martin Jambor <mjambor@suse.cz>
15961 * gimple-iterator.c (gsi_start_edge): New function.
15962 * gimple-iterator.h (gsi_start_edge): Declare.
15963 * tree-sra.c (single_non_eh_succ): New function.
15964 (disqualify_ops_if_throwing_stmt): Renamed to
15965 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15966 having one non-EH successor BB.
15967 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15968 generate loads into replacements.
15969 (sra_modify_assign): Likewise and and also use the simple path for
15971 (sra_modify_function_body): Commit statements on edges.
15973 2014-04-17 Richard Biener <rguenther@suse.de>
15975 PR middle-end/60849
15976 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15977 comparison results and add clarifying comment.
15979 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15981 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15982 (blank_mode): Initialize it.
15983 (emit_mode_size_inline, emit_mode_nunits_inline,
15984 emit_mode_inner_inline): New functions.
15985 (emit_insn_modes_h): Call them and surround their output with
15986 #if GCC_VERSION >= 4001 ... #endif.
15987 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15988 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15989 mode_* arrays if the argument is __builtin_constant_p.
15990 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15991 is enum machine_mode.
15993 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15995 * passes.c (opt_pass::execute): Adjust.
15996 (pass_manager::execute_pass_mode_switching): Likewise.
15997 (early_local_passes::execute): Likewise.
15998 (execute_one_pass): Pass cfun to the pass's execute method.
15999 * tree-pass.h (opt_pass::execute): Add function * argument.
16000 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16001 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16002 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16003 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16004 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16005 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
16006 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
16007 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16008 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16009 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
16010 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
16011 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
16012 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
16013 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
16014 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16015 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16016 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16017 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
16018 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16019 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16020 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16021 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16022 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16023 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16024 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16025 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16026 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16027 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16028 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16031 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16033 * passes.c (opt_pass::gate): Take function * argument.
16034 (gate_all_early_local_passes): Merge into
16035 (early_local_passes::gate): this.
16036 (gate_all_early_optimizations): Merge into
16037 (all_early_optimizations::gate): this.
16038 (gate_all_optimizations): Mege into
16039 (all_optimizations::gate): this.
16040 (gate_all_optimizations_g): Merge into
16041 (all_optimizations_g::gate): this.
16042 (gate_rest_of_compilation): Mege into
16043 (rest_of_compilation::gate): this.
16044 (gate_postreload): Merge into
16045 (postreload::gate): this.
16046 (dump_one_pass): Pass cfun to the pass's gate method.
16047 (execute_ipa_summary_passes): Likewise.
16048 (execute_one_pass): Likewise.
16049 (ipa_write_summaries_2): Likewise.
16050 (ipa_write_optimization_summaries_1): Likewise.
16051 (ipa_read_summaries_1): Likewise.
16052 (ipa_read_optimization_summaries_1): Likewise.
16053 (execute_ipa_stmt_fixups): Likewise.
16054 * tree-pass.h (opt_pass::gate): Add function * argument.
16055 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
16056 combine-stack-adj.c, combine.c, compare-elim.c,
16057 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16058 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
16059 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
16060 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
16061 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16062 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16063 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16064 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
16065 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16066 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
16067 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16068 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16069 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
16070 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16071 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16072 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16073 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16074 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16075 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16076 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16077 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16078 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16079 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16080 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
16081 var-tracking.c, vtable-verify.c, web.c: Adjust.
16083 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16085 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
16086 * configure: Regenerate.
16088 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16090 * passes.c (dump_one_pass): don't check pass->has_gate.
16091 (execute_ipa_summary_passes): Likewise.
16092 (execute_one_pass): Likewise.
16093 (ipa_write_summaries_2): Likewise.
16094 (ipa_write_optimization_summaries_1): Likewise.
16095 (ipa_read_optimization_summaries_1): Likewise.
16096 (execute_ipa_stmt_fixups): Likewise.
16097 * tree-pass.h (pass_data::has_gate): Remove.
16098 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16099 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16100 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16101 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16102 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16103 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16104 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16105 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16106 gimple-low.c, gimple-ssa-isolate-paths.c,
16107 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16108 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16109 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16110 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
16111 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
16112 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
16113 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
16114 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
16115 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
16116 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16117 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16118 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16119 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16120 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16121 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16122 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16123 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16124 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16125 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16126 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16127 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16128 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16131 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16133 * pass_manager.h (pass_manager::register_dump_files_1): Remove
16135 * passes.c (pass_manager::register_dump_files_1): Merge into
16136 (pass_manager::register_dump_files): this, and remove its handling of
16137 properties since the pass always has the properties anyway.
16138 (pass_manager::pass_manager): Adjust.
16140 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16142 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
16143 * passes.c (pass_manager::register_dump_files_1): Remove dead code
16144 dealing with properties.
16145 (pass_manager::register_dump_files): Adjust.
16147 2014-03-20 Mark Wielaard <mjw@redhat.com>
16149 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
16150 then represent the bound as normal constant value.
16152 2014-04-17 Jakub Jelinek <jakub@redhat.com>
16155 Forward port from 4.8 branch
16156 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
16158 * config/i386/bmiintrin.h (_blsi_u32): New.
16159 (_blsi_u64): Ditto.
16160 (_blsr_u32): Ditto.
16161 (_blsr_u64): Ditto.
16162 (_blsmsk_u32): Ditto.
16163 (_blsmsk_u64): Ditto.
16164 (_tzcnt_u32): Ditto.
16165 (_tzcnt_u64): Ditto.
16167 2014-04-17 Kito Cheng <kito@0xlab.org>
16169 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
16171 2014-04-17 Richard Biener <rguenther@suse.de>
16173 PR middle-end/60849
16174 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
16175 boolean results for comparisons.
16177 2014-04-17 Richard Biener <rguenther@suse.de>
16179 PR tree-optimization/60836
16180 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
16181 initial PHI args to be gimple values.
16183 2014-04-17 Richard Biener <rguenther@suse.de>
16185 PR tree-optimization/60841
16186 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
16187 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
16188 of stmts to SLP build.
16189 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
16190 (vect_analyze_slp): Likewise.
16191 (vect_analyze_slp_instance): Likewise.
16192 (vect_build_slp_tree): Limit overall SLP tree growth.
16193 * tree-vectorizer.h (vect_analyze_data_refs,
16194 vect_analyze_slp): Adjust prototypes.
16196 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16198 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
16201 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16203 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
16204 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
16205 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
16206 for TARGET_SLOW_PSHUFB
16208 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16210 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
16211 * config/i386/i386.c (intel_cost): Ditto.
16213 2014-04-17 Joey Ye <joey.ye@arm.com>
16215 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
16217 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16219 * opts.c (common_handle_option): Disable -fipa-reference coorectly
16220 with -fuse-profile.
16222 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16224 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
16225 (type_all_derivations_known_p): New predicate.
16226 (type_all_ctors_visible_p): New predicate.
16227 (type_possibly_instantiated_p): New predicate.
16228 (get_odr_type): Compute all_derivations_known.
16229 (dump_odr_type): Dump the flag.
16230 (maybe_record_type): Cleanup.
16231 (record_target_from_binfo): Add bases_to_consider array;
16232 record bases for types w/o instances and skip CXX destructor.
16233 (possible_polymorphic_call_targets_1): Add bases_to_consider
16234 and consider_construction parameters; check if type may have instance.
16235 (get_polymorphic_call_info): Set maybe_in_construction to true
16236 when we know nothing.
16237 (record_targets_from_bases): Skip CXX destructors; they are
16238 never called for types in construction.
16239 (possible_polymorphic_call_targets): Do not record target when
16240 type may not have instance.
16242 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16245 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
16246 external aliases alive, too.
16248 2014-04-16 Andrew Pinski <apinski@cavium.com>
16250 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
16253 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16255 * final.c (compute_alignments): Do not apply loop alignment to a block
16256 falling through to the exit.
16258 2014-04-16 Catherine Moore <clm@codesourcery.com>
16260 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
16261 Adjust constraints for microMIPS store patterns.
16263 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16265 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
16267 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16269 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
16270 (append_use): Run at -O0.
16271 (append_vdef): Likewise.
16272 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
16273 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
16275 2014-04-16 Jakub Jelinek <jakub@redhat.com>
16277 PR tree-optimization/60844
16278 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
16279 (propagate_op_to_single_use, remove_visited_stmt_chain,
16280 linearize_expr, repropagate_negates, reassociate_bb): Use it
16281 instead of gsi_remove.
16283 2014-04-16 Martin Jambor <mjambor@suse.cz>
16285 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
16286 ipa_transforms_to_apply.
16287 (cgraph_function_versioning): Assert that old_node has empty
16288 ipa_transforms_to_apply.
16289 * trans-mem.c (ipa_tm_create_version): Likewise.
16290 * tree-inline.c (tree_function_versioning): Do not duplicate
16291 ipa_transforms_to_apply.
16293 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16296 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
16298 Pass necessary as flags on 64-bit Solaris/x86.
16299 Use lowercase relocs for x86_64-*-*.
16300 * configure: Regenerate.
16302 2014-04-15 Jan Hubicka <jh@suse.cz>
16304 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
16305 (maybe_record_node, likely_target_p): Use it.
16307 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16310 Revert following patch
16312 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16315 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16316 software floating point or no floating point registers, do not
16317 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16318 in GPRs that occurs after we tested for GPRs that would never be
16321 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16322 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16323 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16324 specifically allow DDmode, since that does not use the SPE SIMD
16327 2014-03-21 Mark Wielaard <mjw@redhat.com>
16329 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
16330 as unsigned or int depending on type and value used.
16332 2014-04-15 Richard Biener <rguenther@suse.de>
16334 PR rtl-optimization/56965
16335 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
16336 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
16338 * alias.c (true_dependence_1): Do not call
16339 nonoverlapping_component_refs_p.
16340 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
16341 nonoverlapping_component_refs_p.
16342 (indirect_refs_may_alias_p): Likewise.
16344 2014-04-15 Teresa Johnson <tejohnson@google.com>
16346 * cfg.c (dump_bb_info): Fix flags check.
16347 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
16349 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16351 PR rtl-optimization/60663
16352 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
16355 2014-04-15 Richard Biener <rguenther@suse.de>
16357 * lto-streamer.h (LTO_major_version): Bump to 4.
16359 2014-04-15 Richard Biener <rguenther@suse.de>
16361 * common.opt (lto_partition_model): New enum.
16362 (flto-partition=): Merge separate options with a single with argument,
16363 add -flto-partition=one support.
16364 * flag-types.h (enum lto_partition_model): Declare.
16365 * opts.c (finish_options): Remove duplicate -flto-partition=
16367 * lto-wrapper.c (run_gcc): Adjust.
16369 2014-04-15 Richard Biener <rguenther@suse.de>
16371 * alias.c (ncr_compar): New function.
16372 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
16374 2014-04-15 Richard Biener <rguenther@suse.de>
16376 * alias.c (record_component_aliases): Do not walk BINFOs.
16378 2014-04-15 Richard Biener <rguenther@suse.de>
16380 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16381 Add struct function argument and adjust.
16382 (find_func_aliases_for_call): Likewise.
16383 (find_func_aliases): Likewise.
16384 (find_func_clobbers): Likewise.
16385 (intra_create_variable_infos): Likewise.
16386 (compute_points_to_sets): Likewise.
16387 (ipa_pta_execute): Adjust. Do not push/pop cfun.
16389 2014-04-15 Richard Biener <rguenther@suse.de>
16391 * tree.c (iterative_hash_expr): Use enum tree_code_class
16392 to store TREE_CODE_CLASS.
16393 (tree_block): Likewise.
16394 (tree_set_block): Likewise.
16395 * tree.h (fold_build_pointer_plus_loc): Use
16396 convert_to_ptrofftype_loc.
16398 2014-04-15 Jakub Jelinek <jakub@redhat.com>
16401 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
16404 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
16406 * cfgloop.h (struct loop): Move force_vectorize down.
16407 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
16408 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
16409 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
16410 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
16411 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
16412 * tree-core.h (enum annot_expr_kind): Add new kind values.
16413 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
16414 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
16416 * tree.def (ANNOTATE_EXPR): Tweak comment.
16418 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16420 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
16423 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
16425 * tree.h (TYPE_IDENTIFIER): Declare.
16426 * tree.c (subrange_type_for_debug_p): Use it.
16427 * godump.c (go_format_type): Likewise.
16428 * dwarf2out.c (is_cxx_auto, modified_type_die,
16429 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
16430 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
16432 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16435 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
16437 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
16439 * config/i386/i386.c (examine_argument): Return bool. Return true if
16440 parameter should be passed in memory.
16441 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
16442 (construct_container): Update calls to examine_argument.
16443 (function_arg_advance_64): Ditto.
16444 (return_in_memory_32): Merge with ix86_return_in_memory.
16445 (return_in_memory_64): Ditto.
16446 (return_in_memory_ms_64): Ditto.
16448 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16450 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
16451 * coverage.c (coverage_compute_profile_id): Handle externally visible
16454 2014-04-14 Martin Jambor <mjambor@suse.cz>
16456 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
16457 DECL_DISREGARD_INLINE_LIMITS functions.
16459 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16462 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
16464 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16467 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
16468 optimize_insn_for_speed_p instead of
16469 optimize_function_for_speed_p.
16471 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
16473 * doc/invoke.texi (free): Document AArch64.
16475 2014-04-14 Richard Biener <rguenther@suse.de>
16477 PR tree-optimization/60042
16478 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
16479 (insert_into_preds_of_block): Do not prevent PHI insertion
16480 for REFERENCE exprs here ...
16481 (eliminate_dom_walker::before_dom_children): ... but prevent
16482 their use here under similar conditions when applied to the
16483 IL after PRE optimizations.
16485 2014-04-14 Richard Biener <rguenther@suse.de>
16487 * passes.def: Move early points-to after early SRA.
16489 2014-04-14 Richard Biener <rguenther@suse.de>
16491 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
16492 check for which sign-changes we allow when forwarding
16493 a converted value into a switch.
16495 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16497 * stor-layout.c (place_field): Finalize non-constant offset for the
16500 2014-04-14 Richard Biener <rguenther@suse.de>
16502 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
16504 (expand_switch_using_bit_tests_p): Likewise.
16505 (process_switch): Compute and pass on speed_p based on the
16507 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
16508 optimize_bb_for_speed_p.
16510 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16512 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
16513 * function.h (struct function): Rename has_force_vect_loops into
16514 has_force_vectorize_loops.
16515 * lto-streamer-in.c (input_cfg): Adjust for renaming.
16516 (input_struct_function_base): Likewise.
16517 * lto-streamer-out.c (output_cfg): Likewise.
16518 (output_struct_function_base): Likewise.
16519 * omp-low.c (expand_omp_simd): Likewise.
16520 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16521 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
16522 (version_loop_for_if_conversion): Likewise.
16523 (tree_if_conversion): Likewise.
16524 (main_tree_if_conversion): Likewise.
16525 (gate_tree_if_conversion): Likewise.
16526 * tree-inline.c (copy_loops): Likewise.
16527 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
16528 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
16529 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16530 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
16531 * tree-vectorizer.c (vectorize_loops): Likewise.
16532 * tree-vectorizer.h (unlimited_cost_model): Likewise.
16534 2014-04-14 Richard Biener <rguenther@suse.de>
16537 * lto-streamer-out.c (wrap_refs): New function.
16538 (lto_output): Wrap symbol references in global initializes in
16539 type-preserving MEM_REFs.
16541 2014-04-14 Christian Bruel <christian.bruel@st.com>
16543 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
16545 2014-04-14 Christian Bruel <christian.bruel@st.com>
16547 * config/sh/sh.md (setmemqi): New expand pattern.
16548 * config/sh/sh.h (CLEAR_RATIO): Define.
16549 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
16550 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
16552 2014-04-14 Richard Biener <rguenther@suse.de>
16554 PR middle-end/55022
16555 * fold-const.c (negate_expr_p): Don't negate directional rounding
16557 (fold_negate_expr): Likewise.
16559 2014-04-14 Richard Biener <rguenther@suse.de>
16561 PR tree-optimization/59817
16562 PR tree-optimization/60453
16563 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
16564 recursion to catch all CHRECs in the scalar evolution and restrict
16565 the predicate for the remains appropriately.
16567 2014-04-12 Catherine Moore <clm@codesourcery.com>
16569 * config/mips/constraints.md: Add new register constraint "kb".
16570 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
16571 (*movhi_internal): Likewise.
16572 (*movqi_internal): Likewise.
16573 * config/mips/mips.h (M16_STORE_REGS): New register class.
16574 (REG_CLASS_NAMES): Add M16_STORE_REGS.
16575 (REG_CLASS_CONTENTS): Likewise.
16576 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
16578 2014-04-11 Tobias Burnus <burnus@net-b.de>
16581 * doc/invoke.texi (-Wformat-signedness): Document it.
16582 (Wformat=2): Mention that this enables -Wformat-signedness.
16584 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16586 * common/config/epiphany/epiphany-common.c
16587 (epiphany_option_optimization_table): Enable section anchors by
16588 default at -O1 or higher.
16589 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
16590 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
16591 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
16592 carries no extra cost.
16593 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
16594 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
16595 * config/epiphany/predicates.md (memclob_operand): New predicate.
16596 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
16597 Use memclob_operand predicate and X constraint for operand 3.
16599 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16601 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
16602 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
16605 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16607 PR rtl-optimization/60651
16608 * mode-switching.c (optimize_mode_switching): Make sure to emit
16609 sets of a lower numbered entity before sets of a higher numbered
16610 entity to a mode of the same or lower priority.
16611 When creating a seginfo for a basic block that starts with a code
16612 label, move the insertion point past the code label.
16613 (new_seginfo): Document and enforce requirement that
16614 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
16615 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
16616 * doc/tm.texi: Regenerate.
16618 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
16621 * config/arc/arc.c (arc_save_restore): Fix assert typo.
16623 2013-04-11 Jakub Jelinek <jakub@redhat.com>
16625 * BASE-VER: Set to 4.10.0.
16627 2014-04-11 Tobias Burnus <burnus@net-b.de>
16630 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
16631 * doc/gcc.texi (Service): Update description in the @menu
16632 * doc/invoke.texi (Option Summary): Remove misplaced and
16635 2014-04-11 Steve Ellcey <sellcey@mips.com>
16636 Jakub Jelinek <jakub@redhat.com>
16638 PR middle-end/60556
16639 * expr.c (convert_move): Use emit_store_flag_force instead of
16640 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
16643 2014-04-11 Richard Biener <rguenther@suse.de>
16645 PR middle-end/60797
16646 * varasm.c (assemble_alias): Avoid endless error reporting
16647 recursion by setting TREE_ASM_WRITTEN.
16649 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16651 * config/s390/s390.md: Add a splitter for NOT rtx.
16653 2014-04-11 Jakub Jelinek <jakub@redhat.com>
16655 PR rtl-optimization/60663
16656 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
16658 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
16659 Jakub Jelinek <jakub@redhat.com>
16662 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
16663 flag from decl_node to node.
16665 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16668 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
16669 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
16670 ameliorating the cases where it can be.
16672 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
16675 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16677 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16678 (loadsync_<mode>): Change mode.
16679 (load_quadpti, store_quadpti): New.
16680 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16681 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16682 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
16684 2014-04-09 Cong Hou <congh@google.com>
16687 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
16690 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16692 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
16693 instead of vnor to exploit possible fusion opportunity in the
16695 (altivec_expand_vec_perm_const_le): Likewise.
16697 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16699 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16700 (loadsync_<mode>): Change mode.
16701 (load_quadpti, store_quadpti): New.
16702 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16703 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16705 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
16708 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
16709 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
16710 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
16712 2014-04-08 Richard Biener <rguenther@suse.de>
16714 PR middle-end/60706
16715 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
16716 a 64bit widest int print double-int similar to on HWI64 hosts.
16718 2014-04-08 Richard Biener <rguenther@suse.de>
16720 PR tree-optimization/60785
16721 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16722 default defs properly.
16724 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16726 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16727 (Weffc++): Likewise.
16729 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16731 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16732 set completep to false rather than true.
16734 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16737 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16738 ARM_TARGET2_DWARF_FORMAT.
16740 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16743 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16744 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16747 2014-04-07 Richard Biener <rguenther@suse.de>
16749 PR tree-optimization/60766
16750 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16751 (may_eliminate_iv): Convert cand_value_at result to desired type.
16753 2014-04-07 Jason Merrill <jason@redhat.com>
16756 * common.opt (-fno-gnu-unique): Add.
16757 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16759 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16761 * haifa-sched.c: Fix outdated function reference and minor
16762 grammar errors in introductory comment.
16764 2014-04-07 Richard Biener <rguenther@suse.de>
16766 PR middle-end/60750
16767 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16768 for noreturn calls.
16769 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16771 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16774 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16775 size accounting for thunks.
16776 (pa_asm_output_mi_thunk): Use final_start_function() and
16777 final_end_function() to output function start and end directives.
16779 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16781 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16782 device specific ISA/ feature information. Remove short_sp and
16783 errata_skip ds. Add avr_device_specific_features enum to have device
16785 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16786 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16787 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16788 updated device specific info.
16789 * config/avr/avr-mcus.def: Merge device specific details to
16790 dev_attribute field.
16791 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16793 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16794 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16795 assembler if RMW isa supported by current device.
16796 * config/avr/genmultilib.awk: Update as device info structure changed.
16797 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16799 2014-04-04 Cong Hou <congh@google.com>
16801 PR tree-optimization/60656
16802 * tree-vect-stmts.c (supportable_widening_operation):
16803 Fix a bug that elements in a vector with vect_used_by_reduction
16804 property are incorrectly reordered when the operation on it is not
16805 consistant with the one in reduction operation.
16807 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16809 PR rtl-optimization/60155
16810 * gcse.c (record_set_data): New function.
16811 (single_set_gcse): New function.
16812 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16813 (hoist_code): Likewise.
16814 (get_pressure_class_and_nregs): Likewise.
16816 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16818 * explow.c (probe_stack_range): Emit a final optimization blockage.
16820 2014-04-04 Anthony Green <green@moxielogic.com>
16822 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16825 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16828 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16829 flags are set only during streaming.
16830 * ipa.c (process_references, walk_polymorphic_call_targets,
16831 symtab_remove_unreachable_nodes): Drop bodies of always inline
16832 after early inlining.
16833 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16835 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16836 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16839 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16842 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16845 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16847 (cortex_a53_fdivd): Likewise.
16849 2014-04-04 Martin Jambor <mjambor@suse.cz>
16852 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16853 Adjust all callers.
16854 * cgraph.c (clone_of_p): Also return true if thunks match.
16855 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16856 cgraph_function_or_thunk_node and an obsolete comment.
16857 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16859 (build_function_decl_skip_args): Likewise.
16860 (set_new_clone_decl_and_node_flags): New function.
16861 (duplicate_thunk_for_node): Likewise.
16862 (redirect_edge_duplicating_thunks): Likewise.
16863 (cgraph_clone_node): New parameter args_to_skip, pass it to
16864 redirect_edge_duplicating_thunks which is called instead of
16865 cgraph_redirect_edge_callee.
16866 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16867 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16869 2014-04-04 Jeff Law <law@redhat.com>
16872 * config/arm/predicates.md (const_int_I_operand): New predicate.
16873 (const_int_M_operand): Similarly.
16874 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16876 (insv_t2, extv_reg, extzv_t2): Likewise.
16877 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16878 (pop_multiple_with_writeback_and_return): Likewise.
16879 (vfp_pop_multiple_with_writeback): Likewise
16881 2014-04-04 Richard Biener <rguenther@suse.de>
16884 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16885 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16887 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16888 * gimplify.c (gimple_add_tmp_var_fn): New function.
16889 * gimple-expr.h (create_tmp_reg_fn): Declare.
16890 * gimple-expr.c (create_tmp_reg_fn): New function.
16891 * gimple-low.c (record_vars_into): Don't change cfun.
16892 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16893 code generation without cfun.
16895 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16898 * Makefile.in (install-driver): Fix shell scripting.
16900 2014-04-03 Cong Hou <congh@google.com>
16902 PR tree-optimization/60505
16903 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16904 threshold of number of iterations below which no vectorization
16906 * tree-vect-loop.c (new_loop_vec_info):
16907 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16908 * tree-vect-loop.c (vect_analyze_loop_operations):
16909 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16910 * tree-vect-loop.c (vect_transform_loop):
16911 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16912 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16913 of iterations of the loop and see if we should build the epilogue.
16915 2014-04-03 Richard Biener <rguenther@suse.de>
16917 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16918 (streamer_tree_cache_create): Adjust.
16919 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16920 to allow optional nodes array.
16921 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16922 (streamer_tree_cache_append): Likewise.
16923 (streamer_tree_cache_create): Create nodes array optionally
16924 as specified by parameter.
16925 * lto-streamer-out.c (create_output_block): Avoid maintaining
16926 the node array in the writer cache.
16927 (DFS_write_tree): Remove assertion.
16928 (produce_asm_for_decls): Free the out decl state hash table early.
16929 * lto-streamer-in.c (lto_data_in_create): Adjust for
16930 streamer_tree_cache_create prototype change.
16932 2014-04-03 Richard Biener <rguenther@suse.de>
16934 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16935 set TREE_CHAIN to NULL_TREE.
16937 2014-04-03 Richard Biener <rguenther@suse.de>
16939 PR tree-optimization/60740
16940 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16941 over all GIMPLE_COND operands.
16943 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16945 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16946 (Weffc++): Remove Scott's numbering, merge lists and reference
16949 2014-04-03 Nick Clifton <nickc@redhat.com>
16951 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16954 2014-04-03 Martin Jambor <mjambor@suse.cz>
16956 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16957 mention gcc_unreachable before failing.
16958 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16961 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16964 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16965 inconsistent code and instead mark the context inconsistent.
16966 (possible_polymorphic_call_targets): For inconsistent contexts
16967 return empty complete list.
16969 2014-04-02 Anthony Green <green@moxielogic.com>
16971 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16972 (extendqisi2, extendhisi2): Define.
16973 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16974 (WCHAR_TYPE): Change to unsigned int.
16976 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16978 PR tree-optimization/60733
16979 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16980 insertion point for PHI candidates to be the end of the feeding
16981 block for the PHI argument.
16983 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16985 PR rtl-optimization/60650
16986 * lra-constraints.c (process_alt_operands): Decrease reject for
16987 earlyclobber matching.
16989 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16991 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16993 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16995 * config/spu/spu.c (pad_bb): Do not crash when the last
16996 insn is CODE_FOR_blockage.
16998 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17000 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
17001 lies outside the target mode.
17003 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17006 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
17007 software floating point or no floating point registers, do not
17008 allow any type in the FPRs. Eliminate a test for SPE SIMD types
17009 in GPRs that occurs after we tested for GPRs that would never be
17012 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
17013 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
17014 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
17015 specifically allow DDmode, since that does not use the SPE SIMD
17018 2014-04-02 Richard Biener <rguenther@suse.de>
17020 PR middle-end/60729
17021 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
17022 MODE_INTs. Properly use negv_optab.
17023 (expand_abs): Likewise.
17025 2014-04-02 Richard Biener <rguenther@suse.de>
17028 * Makefile.in (install-driver): Guard extra installs with special
17031 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17033 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17034 Document vec_vgbbd.
17036 2014-04-01 Richard Henderson <rth@redhat.com>
17039 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
17040 alternative enabled before register allocation.
17042 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
17044 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
17045 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
17047 (nios2_large_got_address): Remove unneeded 'sym' parameter.
17048 (nios2_got_address): Update nios2_large_got_address call site.
17049 (nios2_delegitimize_address): New function.
17050 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
17051 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
17052 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
17054 2014-04-01 Martin Husemann <martin@duskware.de>
17056 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
17059 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
17061 PR rtl-optimization/60604
17062 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
17063 check from register_operand.
17064 (register_operand): Redefine in terms of general_operand.
17065 (nonmemory_operand): Use register_operand for the non-constant cases.
17067 2014-04-01 Richard Biener <rguenther@suse.de>
17069 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
17071 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
17073 * doc/invoke.texi (mapp-regs): Clarify.
17075 2014-03-31 Ulrich Drepper <drepper@gmail.com>
17077 * config/i386/avx512fintrin.h (__v32hi): Define type.
17078 (__v64qi): Likewise.
17079 (_mm512_set1_epi8): Define.
17080 (_mm512_set1_epi16): Define.
17081 (_mm512_set4_epi32): Define.
17082 (_mm512_set4_epi64): Define.
17083 (_mm512_set4_pd): Define.
17084 (_mm512_set4_ps): Define.
17085 (_mm512_setr4_epi64): Define.
17086 (_mm512_setr4_epi32): Define.
17087 (_mm512_setr4_pd): Define.
17088 (_mm512_setr4_ps): Define.
17089 (_mm512_setzero_epi32): Define.
17091 2014-03-31 Martin Jambor <mjambor@suse.cz>
17093 PR middle-end/60647
17094 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
17095 callsite_arguments_match_p. Updated all callers. Also check types of
17096 corresponding formal parameters and actual arguments.
17097 (not_all_callers_have_enough_arguments_p) Renamed to
17098 some_callers_have_mismatched_arguments_p.
17100 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
17102 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
17104 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17107 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
17110 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
17112 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
17113 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
17115 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
17116 Use FMAMODE_NOVF512 mode iterator.
17117 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
17118 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
17119 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
17120 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
17122 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
17123 Use VF_128_256 mode iterator.
17124 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
17127 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17129 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
17130 static chain if needed.
17132 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17135 * lra-constraints.c (index_part_to_reg): New.
17136 (process_address): Use it.
17138 2014-03-27 Jeff Law <law@redhat.com>
17139 Jakub Jelinek <jakub@redhat.com>
17142 * expr.c (do_tablejump): Use simplify_gen_binary rather than
17143 gen_rtx_{PLUS,MULT} to build up the address expression.
17145 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
17146 creating non-canonical RTL.
17148 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17151 * ipa-inline.c (want_inline_small_function_p): Short circuit large
17152 functions; reorganize to make cheap checks first.
17153 (inline_small_functions): Do not estimate growth when dumping;
17155 * ipa-inline.h (inline_summary): Add min_size.
17156 (growth_likely_positive): New function.
17157 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
17158 (set_cond_stmt_execution_predicate): Cleanup.
17159 (estimate_edge_size_and_time): Compute min_size.
17160 (estimate_calls_size_and_time): Likewise.
17161 (estimate_node_size_and_time): Likewise.
17162 (inline_update_overall_summary): Update min_size.
17163 (do_estimate_edge_time): Likewise.
17164 (do_estimate_edge_size): Update.
17165 (do_estimate_edge_hints): Update.
17166 (growth_likely_positive): New function.
17168 2014-03-28 Jakub Jelinek <jakub@redhat.com>
17171 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
17172 also if addr has VOIDmode.
17174 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17176 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
17177 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17179 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
17180 instructions as well as AdvancedSIMD loads.
17182 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17184 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
17185 Use crypto_aese type.
17186 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
17187 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
17188 crypto_aese, crypto_aesmc. Move to types.md.
17189 * config/arm/types.md (crypto_aes): Split into crypto_aese,
17191 * config/arm/iterators.md (crypto_type): Likewise.
17193 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17195 * cgraph.c: Include expr.h and tree-dfa.h.
17196 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
17199 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17202 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
17203 regs from checking multi-reg pseudos.
17205 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17207 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
17209 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17211 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
17212 if it would clobber the stack pointer, even temporarily.
17214 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
17216 * mode-switching.c: Make small adjustments to the top comment.
17218 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
17220 * config/rs6000/constraints.md (wD constraint): New constraint to
17221 match the constant integer to get the top DImode/DFmode out of a
17222 vector in a VSX register.
17224 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
17225 match the constant integer to get the top DImode/DFmode out of a
17226 vector in a VSX register.
17228 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
17231 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17234 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
17235 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
17237 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
17238 Optimize vec_extract of 64-bit values, where the value being
17239 extracted is in the top word, where we can use scalar
17240 instructions. Add direct move and store support. Combine the big
17241 endian/little endian vector select load support into a single insn.
17242 (vsx_extract_<mode>_internal1): Likewise.
17243 (vsx_extract_<mode>_internal2): Likewise.
17244 (vsx_extract_<mode>_load): Likewise.
17245 (vsx_extract_<mode>_store): Likewise.
17246 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
17247 combined into vsx_extract_<mode>_load.
17248 (vsx_extract_<mode>_one_le): Likewise.
17250 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
17251 define the top 64-bit vector element.
17253 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
17256 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17257 Document vec_vbpermq builtin.
17260 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
17261 enable use of xxsldwi and xxpermdi builtin functions.
17262 (vec_xxpermdi): Likewise.
17264 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17265 Document use of vec_xxsldwi and vec_xxpermdi builtins.
17267 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
17269 PR rtl-optimization/60650
17270 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
17272 (find_spills_for): New.
17273 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
17274 Spill all pseudos on the second iteration.
17276 2014-03-27 Marek Polacek <polacek@redhat.com>
17279 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
17282 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17284 * config/s390/s390.c (s390_can_use_return_insn): Check for
17285 call-saved FPRs on 31 bit.
17287 2014-03-27 Jakub Jelinek <jakub@redhat.com>
17289 PR middle-end/60682
17290 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
17291 if they need regimplification, just drop them instead of
17292 calling gimple_regimplify_operands on them.
17294 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
17297 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
17298 (aarch64_frame_pointer_required): Adjust logic.
17299 (aarch64_can_eliminate): Adjust logic.
17300 (aarch64_override_options_after_change): Adjust logic.
17302 2014-03-27 Dehao Chen <dehao@google.com>
17304 * ipa-inline.c (early_inliner): Update node's inline info.
17306 2014-03-26 Dehao Chen <dehao@google.com>
17308 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
17309 compiler inserted conditional jumps for NAN float check.
17311 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17313 * ubsan.h (ubsan_create_data): Change second argument's type
17314 to const location_t *.
17315 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
17317 (ubsan_create_data): Change second argument to const location_t *PLOC.
17318 Create Loc field whenever PLOC is non-NULL.
17319 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
17320 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
17324 * real.c (real_to_integer2): Change type of low to UHWI.
17326 2014-03-26 Tobias Burnus <burnus@net-b.de>
17328 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
17329 (CILK_SELF_SPECS): New define.
17330 (driver_self_specs): Use it.
17332 2014-03-26 Richard Biener <rguenther@suse.de>
17334 * tree-pretty-print.c (percent_K_format): Implement special
17335 case for LTO and its stripped down BLOCK tree.
17337 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17340 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
17342 * tree-vrp.c (simplify_internal_call_using_ranges): If only
17343 one range is range_int_cst_p, but not both, at least optimize
17344 addition/subtraction of 0 and multiplication by 0 or 1.
17345 * gimple-fold.c (gimple_fold_call): Fold
17346 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
17347 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
17348 INTEGER_CSTs, try to fold at least x * 0 and y - y.
17350 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
17352 PR rtl-optimization/60452
17353 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
17354 <case REG>: Return 1 for invalid offsets from the frame pointer.
17356 2014-03-26 Marek Polacek <polacek@redhat.com>
17359 * doc/extend.texi (C Extensions): Mention variable-length arrays in
17362 2014-03-26 Marek Polacek <polacek@redhat.com>
17365 * doc/extend.texi (Designated Inits): Describe what happens to omitted
17368 2014-03-26 Marek Polacek <polacek@redhat.com>
17371 * ira-color.c (update_conflict_hard_regno_costs): Perform the
17372 multiplication in unsigned type.
17374 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17376 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
17378 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17380 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
17382 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17385 * cif-code.def (UNREACHABLE) New code.
17386 * ipa-inline.c (inline_small_functions): Skip edges to
17387 __builtlin_unreachable.
17388 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
17389 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
17390 predicate to __bulitin_unreachable.
17391 (set_cond_stmt_execution_predicate): Fix issue when
17392 invert_tree_comparison returns ERROR_MARK.
17393 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
17394 propagate to inline clones.
17395 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
17397 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
17398 * cgraphclones.c (cgraph_clone_node): If call destination is already
17399 ureachable, do not redirect it back.
17400 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
17403 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17405 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
17406 Do not modify inline clones.
17408 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17410 * config/i386/i386.md (general_sext_operand): New mode attr.
17411 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
17412 don't generate (sign_extend (const_int)).
17413 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
17414 operands[2]. Use We constraint instead of <i> and
17415 <general_sext_operand> predicate instead of <general_operand>.
17416 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
17417 * config/i386/constraints.md (We): New constraint.
17418 * config/i386/predicates.md (x86_64_sext_operand,
17419 sext_operand): New predicates.
17421 2014-03-25 Martin Jambor <mjambor@suse.cz>
17424 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
17425 inconsistent devirtualizations to __builtin_unreachable.
17427 2014-03-25 Marek Polacek <polacek@redhat.com>
17430 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
17432 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
17434 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
17435 order of elements for big-endian.
17437 2014-03-25 Richard Biener <rguenther@suse.de>
17439 PR middle-end/60635
17440 * gimplify-me.c (gimple_regimplify_operands): Update the
17443 2014-03-25 Martin Jambor <mjambor@suse.cz>
17446 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
17447 (lto_output_varpool_node): Likewise.
17448 (input_overwrite_node): Likewise.
17449 (input_varpool_node): Likewise.
17451 2014-03-25 Richard Biener <rguenther@suse.de>
17453 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
17454 (run_gcc): Likewise.
17456 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17458 * combine.c (simplify_compare_const): Add MODE argument.
17459 Handle mode_width 0 as very large mode_width.
17460 (try_combine, simplify_comparison): Adjust callers.
17462 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
17463 type to avoid signed integer overflow.
17464 * explow.c (plus_constant): Likewise.
17466 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17468 * doc/generic.texi: Correct typos.
17470 2014-03-24 Tobias Burnus <burnus@net-b.de>
17472 * doc/invoke.texi (-flto): Expand section about
17473 using static libraries with LTO.
17475 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17477 PR rtl-optimization/60501
17478 * optabs.def (addptr3_optab): New optab.
17479 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
17480 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
17481 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
17483 * lra.c (emit_add3_insn): Use the addptr pattern if available.
17485 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
17487 2014-03-24 Ulrich Drepper <drepper@gmail.com>
17489 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
17492 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
17493 (_mm256_undefined_ps): Define.
17494 (_mm256_undefined_pd): Define.
17495 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
17496 (_mm_undefined_pd): Define.
17497 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
17498 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
17499 (_mm512_undefined_ps): Define.
17500 (_mm512_undefined_pd): Define.
17501 Use _mm*_undefined_*.
17502 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
17504 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
17506 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
17507 (lshr_simd): DI mode added.
17508 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
17509 (aarch64_ushr_simddi): Likewise.
17510 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
17511 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
17512 (vshrd_n_u64): Likewise.
17514 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17516 * Makefile.in (s-macro_list): Depend on cc1.
17518 2014-03-23 Teresa Johnson <tejohnson@google.com>
17520 * ipa-utils.c (ipa_print_order): Use specified dump file.
17522 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
17524 PR rtl-optimization/60601
17525 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
17527 * gcc.c (eval_spec_function): Initialize save_growing_value.
17529 2014-03-22 Jakub Jelinek <jakub@redhat.com>
17532 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
17533 code == MINUS_EXPR, never swap op0 with op1.
17535 * toplev.c (init_local_tick): Avoid signed integer multiplication
17537 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
17538 shift by first operand's bitsize.
17540 2014-03-21 Jakub Jelinek <jakub@redhat.com>
17543 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
17544 redefine to 1 or 0.
17545 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
17546 TARGET_ISA_64BIT_P(x).
17548 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17550 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
17551 pattern for vector nor instead of subtract from splat(-1).
17552 (altivec_expand_vec_perm_const_le): Likewise.
17554 2014-03-21 Richard Henderson <rth@twiddle.net>
17557 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
17558 related insns after epilogue_completed.
17560 2014-03-21 Martin Jambor <mjambor@suse.cz>
17563 * cgraph.h (symtab_node): New flag body_removed.
17564 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
17565 when removing bodies.
17566 * symtab.c (dump_symtab_base): Dump body_removed flag.
17567 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
17568 had their bodies removed.
17570 2014-03-21 Martin Jambor <mjambor@suse.cz>
17573 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
17576 2014-03-21 Richard Biener <rguenther@suse.de>
17578 PR tree-optimization/60577
17579 * tree-core.h (struct tree_base): Document nothrow_flag use
17580 in DECL_NONALIASED.
17581 * tree.h (DECL_NONALIASED): New.
17582 (may_be_aliased): Adjust.
17583 * coverage.c (build_var): Set DECL_NONALIASED.
17585 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17587 * expr.c (expand_expr_real_1): Remove outdated comment.
17589 2014-03-20 Jakub Jelinek <jakub@redhat.com>
17591 PR middle-end/60597
17592 * ira.c (adjust_cleared_regs): Call copy_rtx on
17593 *reg_equiv[REGNO (loc)].src_p before passing it to
17594 simplify_replace_fn_rtx.
17597 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
17598 into CONST, put pic register as first operand of PLUS. Use
17599 gen_const_mem for both 32-bit and 64-bit PIC got loads.
17601 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17603 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
17605 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17607 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
17608 around for store forwarding issue in the FPU on the UT699.
17609 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
17610 loads and operations if -mfix-ut699 is specified.
17611 (divtf3_hq): Tweak attribute.
17612 (sqrttf2_hq): Likewise.
17614 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17616 * calls.c (store_one_arg): Remove incorrect const qualification on the
17617 type of the temporary.
17618 * cfgexpand.c (expand_return): Likewise.
17619 * expr.c (expand_constructor): Likewise.
17620 (expand_expr_real_1): Likewise.
17622 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17624 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
17627 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17630 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
17632 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
17634 * config/arm/aarch-common-protos.h
17635 (alu_cost_table): Fix spelling of "extend".
17636 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
17638 2014-03-19 Richard Biener <rguenther@suse.de>
17640 PR middle-end/60553
17641 * tree-core.h (tree_type_common): Re-order pointer members
17642 to reduce recursion depth during GC walks.
17644 2014-03-19 Marek Polacek <polacek@redhat.com>
17647 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
17648 before accessing it.
17650 2014-03-19 Richard Biener <rguenther@suse.de>
17653 * lto-streamer-in.c (input_function): In WPA stage do not drop
17656 2014-03-19 Jakub Jelinek <jakub@redhat.com>
17658 PR tree-optimization/60559
17659 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
17660 with build_zero_cst assignment.
17662 2014-03-18 Kai Tietz <ktietz@redhat.com>
17664 PR rtl-optimization/56356
17665 * sdbout.c (sdbout_parms): Verify that parms'
17666 incoming argument is valid.
17667 (sdbout_reg_parms): Likewise.
17669 2014-03-18 Richard Henderson <rth@redhat.com>
17672 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
17673 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
17674 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
17676 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
17678 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
17679 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
17680 Italicize plugin event names in description. Explain that
17681 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
17682 Remind that no GCC functions should be called after PLUGIN_FINISH.
17683 Explain what pragmas with expansion are.
17685 2014-03-18 Martin Liska <mliska@suse.cz>
17687 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
17688 gimple call statement is update.
17689 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
17690 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
17692 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17695 * ubsan.c (ubsan_instrument_unreachable): Call
17696 initialize_sanitizer_builtins.
17697 (ubsan_pass): Likewise.
17700 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
17701 varpool_finalize_decl instead of rest_of_decl_compilation.
17703 2014-03-18 Richard Biener <rguenther@suse.de>
17705 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
17706 by using bitmap_and_compl instead of bitmap_and_compl_into.
17707 (df_rd_transfer_function): Likewise.
17709 2014-03-18 Richard Biener <rguenther@suse.de>
17711 * doc/lto.texi (fresolution): Fix typo.
17713 2014-03-18 Richard Biener <rguenther@suse.de>
17715 * doc/invoke.texi (flto): Update for changes in 4.9.
17717 2014-03-18 Richard Biener <rguenther@suse.de>
17719 * doc/loop.texi: Remove section on the removed lambda framework.
17720 Update loop docs with recent changes in preserving loop structure.
17722 2014-03-18 Richard Biener <rguenther@suse.de>
17724 * doc/lto.texi (-fresolution): Document.
17726 2014-03-18 Richard Biener <rguenther@suse.de>
17728 * doc/contrib.texi: Adjust my name.
17730 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17733 * internal-fn.c: Include diagnostic-core.h.
17734 (expand_BUILTIN_EXPECT): New function.
17735 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17736 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17737 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17738 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17739 IFN_BUILTIN_EXPECT.
17740 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17741 Revert 3 argument __builtin_expect code.
17742 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17743 * gimple-fold.c (gimple_fold_call): Likewise.
17744 * tree.h (fold_builtin_expect): New prototype.
17745 * builtins.c (build_builtin_expect_predicate): Add predictor
17746 argument, if non-NULL, create 3 argument __builtin_expect.
17747 (fold_builtin_expect): No longer static. Add ARG2 argument,
17748 pass it through to build_builtin_expect_predicate.
17749 (fold_builtin_2): Adjust caller.
17750 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17751 * internal-fn.def (BUILTIN_EXPECT): New.
17753 2014-03-18 Tobias Burnus <burnus@net-b.de>
17756 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17757 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17758 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17760 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17763 * predict.c (combine_predictions_for_bb): Fix up formatting.
17764 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17765 fill what it points to if non-NULL.
17766 (tree_predict_by_opcode): Adjust caller, use the predictor.
17767 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17769 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17771 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17772 proper constant for the store mode.
17774 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17776 * symtab.c (change_decl_assembler_name): Fix transparent alias
17777 chain construction.
17779 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17781 * config/aarch64/aarch64.c: Correct the comments about the
17782 aarch64 stack layout.
17784 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17786 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17787 check for GF_OMP_FOR_KIND_FOR.
17789 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17791 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17792 ymm and zmm register names.
17794 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17797 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17798 note creation for the 2010-08-31 changes.
17800 2014-03-17 Marek Polacek <polacek@redhat.com>
17802 PR middle-end/60534
17803 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17804 as -fno-tree-loop-vectorize.
17805 (expand_omp_simd): Likewise.
17807 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17809 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17810 (eligible_for_call_delay): New prototype.
17811 * config/sparc/sparc.c (tls_call_delay): Rename into...
17812 (eligible_for_call_delay): ...this. Return false if the instruction
17813 cannot be put in the delay slot of a branch.
17814 (eligible_for_restore_insn): Simplify.
17815 (eligible_for_return_delay): Return false if the instruction cannot be
17816 put in the delay slot of a branch and simplify.
17817 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17818 put in the delay slot of a branch.
17819 * config/sparc/sparc.md (fix_ut699): New attribute.
17820 (tls_call_delay): Delete.
17821 (in_call_delay): Reimplement.
17822 (eligible_for_sibcall_delay): Rename into...
17823 (in_sibcall_delay): ...this.
17824 (eligible_for_return_delay): Rename into...
17825 (in_return_delay): ...this.
17826 (in_branch_delay): Reimplement.
17827 (in_uncond_branch_delay): Delete.
17828 (in_annul_branch_delay): Delete.
17830 2014-03-14 Richard Henderson <rth@redhat.com>
17833 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17834 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17835 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17836 (floathi splitters): Remove.
17837 (float<SWI48x>xf2): New pattern.
17838 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17839 code that tried to handle DImode for 32-bit, but which was excluded
17840 by the pattern's condition. Drop allocation of stack temporary.
17841 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17842 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17843 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17844 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17845 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17846 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17847 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17848 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17849 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17850 (*float<SWI48x><X87MODEF>2_i387): Remove.
17851 (all float _with_temp splitters): Remove.
17852 (*float<SWI48x><MODEF>2_i387): New pattern.
17853 (*float<SWI48><MODEF>2_sse): New pattern.
17854 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17855 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17857 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17858 Marek Polacek <polacek@redhat.com>
17860 PR middle-end/60484
17861 * common.opt (dump_base_name_prefixed): New Variable.
17862 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17863 if x_dump_base_name_prefixed is already set, set it at the end.
17865 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17867 PR rtl-optimization/60508
17868 * lra-constraints.c (get_reload_reg): Add new parameter
17870 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17871 Pass the new parameter values.
17873 2014-03-14 Richard Biener <rguenther@suse.de>
17875 * common.opt: Revert unintented changes from r205065.
17876 * opts.c: Likewise.
17878 2014-03-14 Richard Biener <rguenther@suse.de>
17880 PR middle-end/60518
17881 * cfghooks.c (split_block): Properly adjust all loops the
17882 block was a latch of.
17884 2014-03-14 Martin Jambor <mjambor@suse.cz>
17887 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17890 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17893 * config/avr/avr.c (avr_set_current_function): Pass function name
17894 through default_strip_name_encoding before sanity checking instead
17895 of skipping the first char of the assembler name.
17897 2014-03-13 Richard Henderson <rth@redhat.com>
17900 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17901 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17902 * config/i386/i386-protos.h: Likewise.
17903 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17904 in the expander instead of a splitter.
17905 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17906 any possibility of requiring a memory.
17907 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17908 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17909 (fp branch splitters): Update for ix86_split_fp_branch.
17910 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17911 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17912 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17913 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17914 (*fop_<MODEF>_3_i387): Likewise.
17915 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17916 (splitters for the fop_* register patterns): Remove.
17917 (fscalexf4_i387): Rename from *fscalexf4_i387.
17918 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17920 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17922 PR tree-optimization/59779
17923 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17924 type for bitsize and maxsize instead of HOST_WIDE_INT.
17926 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17928 PR rtl-optimization/57320
17929 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17930 the CFG after thread_prologue_and_epilogue_insns.
17932 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17934 PR rtl-optimization/57189
17935 * lra-constraints.c (process_alt_operands): Disfavor spilling
17938 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17940 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17942 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17944 PR tree-optimization/59025
17945 PR middle-end/60418
17946 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17947 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17949 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17952 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17953 calls of avr_out_plus_1.
17955 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17957 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17958 BB's single pred and update the father loop's latch info later.
17960 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17962 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17966 (VEC_base): Likewise.
17967 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17968 registers, we need to swap double words in little endian mode.
17970 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17971 to be a container mode for 128-bit integer operations added in ISA
17972 2.07. Unlike TImode and PTImode, the preferred register set is
17973 the Altivec/VMX registers for the 128-bit operations.
17975 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17977 (rs6000_split_128bit_ok_p): Likewise.
17979 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17980 macros for creating ISA 2.07 normal and overloaded builtin
17981 functions with 3 arguments.
17982 (BU_P8V_OVERLOAD_3): Likewise.
17983 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17984 for use as overloaded functions.
17985 (VPERM_1TI_UNS): Likewise.
17986 (VSEL_1TI): Likewise.
17987 (VSEL_1TI_UNS): Likewise.
17988 (ST_INTERNAL_1ti): Likewise.
17989 (LD_INTERNAL_1ti): Likewise.
17990 (XXSEL_1TI): Likewise.
17991 (XXSEL_1TI_UNS): Likewise.
17992 (VPERM_1TI): Likewise.
17993 (VPERM_1TI_UNS): Likewise.
17994 (XXPERMDI_1TI): Likewise.
17995 (SET_1TI): Likewise.
17996 (LXVD2X_V1TI): Likewise.
17997 (STXVD2X_V1TI): Likewise.
17998 (VEC_INIT_V1TI): Likewise.
17999 (VEC_SET_V1TI): Likewise.
18000 (VEC_EXT_V1TI): Likewise.
18001 (EQV_V1TI): Likewise.
18002 (NAND_V1TI): Likewise.
18003 (ORC_V1TI): Likewise.
18004 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
18005 added in ISA 2.07. Add both normal 'altivec' builtins, and the
18006 overloaded builtin.
18007 (VADDUQM): Likewise.
18008 (VSUBCUQ): Likewise.
18009 (VADDEUQM): Likewise.
18010 (VADDECUQ): Likewise.
18011 (VSUBEUQM): Likewise.
18012 (VSUBECUQ): Likewise.
18014 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
18015 __int128_t and __uint128_t types.
18016 (__uint128_type): Likewise.
18017 (altivec_categorize_keyword): Add support for vector __int128_t,
18018 vector __uint128_t, vector __int128, and vector unsigned __int128
18019 as a container type for TImode operations that need to be done in
18020 VSX/Altivec registers.
18021 (rs6000_macro_to_expand): Likewise.
18022 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
18023 to support 128-bit integer instructions vaddcuq, vadduqm,
18024 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
18025 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
18027 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18028 for V1TImode, and set up preferences to use VSX/Altivec registers.
18029 Setup VSX reload handlers.
18030 (rs6000_debug_reg_global): Likewise.
18031 (rs6000_init_hard_regno_mode_ok): Likewise.
18032 (rs6000_preferred_simd_mode): Likewise.
18033 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
18034 (easy_altivec_constant): Likewise.
18035 (output_vec_const_move): Likewise.
18036 (rs6000_expand_vector_set): Convert V1TImode set and extract to
18038 (rs6000_expand_vector_extract): Likewise.
18039 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
18041 (rs6000_const_vec): Add support for V1TImode.
18042 (rs6000_emit_le_vsx_load): Swap double words when loading or
18043 storing TImode/V1TImode.
18044 (rs6000_emit_le_vsx_store): Likewise.
18045 (rs6000_emit_le_vsx_move): Likewise.
18046 (rs6000_emit_move): Add support for V1TImode.
18047 (altivec_expand_ld_builtin): Likewise.
18048 (altivec_expand_st_builtin): Likewise.
18049 (altivec_expand_vec_init_builtin): Likewise.
18050 (altivec_expand_builtin): Likewise.
18051 (rs6000_init_builtins): Add support for V1TImode type. Add
18052 support for ISA 2.07 128-bit integer builtins. Define type names
18053 for the VSX/Altivec vector types.
18054 (altivec_init_builtins): Add support for overloaded vector
18055 functions with V1TImode type.
18056 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
18057 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
18059 (rs6000_split_128bit_ok_p): Likewise.
18060 (rs6000_handle_altivec_attribute): Create V1TImode from vector
18061 __int128_t and vector __uint128_t.
18063 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
18064 and mode attributes.
18066 (VSX_M2): Likewise.
18071 (VS_scalar): Likewise.
18072 (VS_double): Likewise.
18073 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
18075 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
18076 we support the ISA 2.07 128-bit integer arithmetic instructions.
18077 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
18078 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
18079 and TImode types for use with the builtin functions.
18080 (V1TI_type_node): Likewise.
18081 (unsigned_V1TI_type_node): Likewise.
18082 (intTI_type_internal_node): Likewise.
18083 (uintTI_type_internal_node): Likewise.
18085 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
18086 128-bit builtin functions.
18087 (UNSPEC_VADDEUQM): Likewise.
18088 (UNSPEC_VADDECUQ): Likewise.
18089 (UNSPEC_VSUBCUQ): Likewise.
18090 (UNSPEC_VSUBEUQM): Likewise.
18091 (UNSPEC_VSUBECUQ): Likewise.
18092 (VM): Add V1TImode to vector mode iterators.
18094 (VI_unit): Likewise.
18095 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
18096 (altivec_vaddcuq): Likewise.
18097 (altivec_vsubuqm): Likewise.
18098 (altivec_vsubcuq): Likewise.
18099 (altivec_vaddeuqm): Likewise.
18100 (altivec_vaddecuq): Likewise.
18101 (altivec_vsubeuqm): Likewise.
18102 (altivec_vsubecuq): Likewise.
18104 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
18106 (BOOL_128): Likewise.
18107 (BOOL_REGS_OUTPUT): Likewise.
18108 (BOOL_REGS_OP1): Likewise.
18109 (BOOL_REGS_OP2): Likewise.
18110 (BOOL_REGS_UNARY): Likewise.
18111 (BOOL_REGS_AND_CR0): Likewise.
18113 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
18114 128-bit integer builtin support.
18115 (vec_vadduqm): Likewise.
18116 (vec_vaddecuq): Likewise.
18117 (vec_vaddeuqm): Likewise.
18118 (vec_vsubecuq): Likewise.
18119 (vec_vsubeuqm): Likewise.
18120 (vec_vsubcuq): Likewise.
18121 (vec_vsubuqm): Likewise.
18123 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18124 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
18125 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
18126 128-bit integer add/subtract to ISA 2.07.
18128 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
18130 * config/arc/arc.c (arc_predicate_delay_insns):
18131 Fix third argument passed to conditionalize_nonjump.
18133 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
18135 * config/aarch64/aarch64-builtins.c
18136 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
18137 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
18138 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
18139 instead of __builtin_lfloor.
18140 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
18142 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18144 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
18145 (tree_ssa_ifcombine_bb_1): New function.
18146 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
18147 is an empty forwarder block to then_bb or vice versa and then_bb
18148 and else_bb are effectively swapped.
18150 2014-03-12 Christian Bruel <christian.bruel@st.com>
18153 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
18154 REG_CFA_DEF_CFA note.
18155 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
18156 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
18158 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18160 PR tree-optimization/60454
18161 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
18163 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18165 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
18166 Do not define target_cpu_default2 to generic.
18167 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
18168 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
18169 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
18171 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18172 Marc Glisse <marc.glisse@inria.fr>
18174 PR tree-optimization/60502
18175 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
18176 instead of build_low_bits_mask.
18178 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18180 PR middle-end/60482
18181 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
18182 if there are multiple uses, but op doesn't live on E edge.
18183 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
18184 clobber stmts before __builtin_unreachable.
18186 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
18188 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
18189 hard_frame_pointer_rtx.
18190 * cse.c (cse_insn): Remove volatile check.
18191 * cselib.c (cselib_process_insn): Likewise.
18192 * dse.c (scan_insn): Likewise.
18194 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18196 * config/arc/arc.c (conditionalize_nonjump): New function,
18198 (arc_ifcvt): ... this.
18199 (arc_predicate_delay_insns): Use it.
18201 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18203 * config/arc/predicates.md (extend_operand): During/after reload,
18204 allow const_int_operand.
18205 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
18206 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
18207 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
18209 (umulsi3_highpart_i): Likewise.
18211 2014-03-11 Richard Biener <rguenther@suse.de>
18213 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18214 Add asserts to guard possible wrong-code bugs.
18216 2014-03-11 Richard Biener <rguenther@suse.de>
18218 PR tree-optimization/60429
18219 PR tree-optimization/60485
18220 * tree-ssa-structalias.c (set_union_with_increment): Properly
18221 take into account all fields that overlap the shifted vars.
18222 (do_sd_constraint): Likewise.
18223 (do_ds_constraint): Likewise.
18224 (get_constraint_for_ptr_offset): Likewise.
18226 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
18228 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
18229 (nios2_compute_frame_layout):
18230 Add calculation of cfun->machine->fp_save_offset.
18231 (nios2_expand_prologue): Correct setting of frame pointer register
18233 (nios2_expand_epilogue): Update recovery of stack pointer from
18234 frame pointer accordingly.
18235 (nios2_initial_elimination_offset): Update calculation of offset
18236 for eliminating to HARD_FRAME_POINTER_REGNUM.
18238 2014-03-10 Jakub Jelinek <jakub@redhat.com>
18241 * ipa.c (symtab_remove_unreachable_nodes): Don't call
18242 cgraph_get_create_node on VAR_DECLs.
18244 2014-03-10 Richard Biener <rguenther@suse.de>
18246 PR middle-end/60474
18247 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
18249 2014-03-08 Douglas B Rupp <rupp@gnat.com>
18251 * config/vms/vms.opt (vms_float_format): New variable.
18253 2014-03-08 Tobias Burnus <burnus@net-b.de>
18255 * doc/invoke.texi (-fcilkplus): Update implementation status.
18257 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
18258 Richard Biener <rguenther@suse.de>
18260 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
18261 consistently accross all TUs.
18262 (run_gcc): Enable -fshort-double automatically at link at link-time
18263 and disallow override.
18265 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
18268 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
18269 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
18270 if they can't be used.
18272 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18274 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
18275 for Solaris 11/x86 ld.
18276 * configure: Regenerate.
18278 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18280 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
18281 (LIB_TLS_SPEC): Save as ld_tls_libs.
18282 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
18283 (HAVE_AS_IX86_TLSLDM): New test.
18284 * configure, config.in: Regenerate.
18285 * config/i386/i386.c (legitimize_tls_address): Fall back to
18286 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
18287 cannot support TLS_MODEL_LOCAL_DYNAMIC.
18288 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
18289 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
18291 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
18293 * common.opt (fira-loop-pressure): Mark as optimization.
18295 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
18297 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
18298 an OpenMP mappable type.
18300 2014-03-06 Matthias Klose <doko@ubuntu.com>
18302 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
18303 MULTILIB_OSDIRNAMES is not defined.
18305 2014-03-06 Jakub Jelinek <jakub@redhat.com>
18306 Meador Inge <meadori@codesourcery.com>
18309 * config/arm/arm.c (arm_tls_symbol_p): Remove.
18310 (arm_legitimize_address): Call legitimize_tls_address for any
18311 arm_tls_referenced_p expression, handle constant addend. Call it
18312 before testing for !TARGET_ARM.
18313 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
18315 2014-03-06 Richard Biener <rguenther@suse.de>
18317 PR middle-end/60445
18321 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18323 * tree-streamer.c (record_common_node): Assert we don't record
18324 nodes with type double.
18325 (preload_common_node): Skip type double, complex double and double
18326 pointer since it is now frontend dependent due to fshort-double option.
18328 2014-03-06 Richard Biener <rguenther@suse.de>
18330 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
18331 or -fno-lto is specified and the linker has full plugin support.
18332 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
18333 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
18334 * lto-wrapper.c (merge_and_complain): Merge compile-time
18335 optimization levels.
18336 (run_gcc): And pass it through to the link options.
18338 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
18342 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18344 * cselib.c (remove_useless_values): Skip to avoid quadratic
18345 behavior if the condition moved from...
18346 (cselib_process_insn): ... here holds.
18348 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18351 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
18352 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
18355 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
18356 (TM_H): Add x86-tune.def.
18358 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18360 * config/aarch64/aarch64.c (generic_tunings):
18361 Use cortexa57_extra_costs.
18363 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18366 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
18367 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
18368 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
18371 2014-03-04 Heiher <r@hev.cc>
18373 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
18374 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
18376 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
18378 * config/i386/predicates.md (const2356_operand): Change to ...
18379 (const2367_operand): ... this.
18380 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
18382 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18383 (*avx512pf_scatterpf<mode>sf): Ditto.
18384 (avx512pf_scatterpf<mode>df): Ditto.
18385 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18386 (*avx512pf_scatterpf<mode>df): Ditto.
18387 * config/i386/i386.c (ix86_expand_builtin): Update
18388 incorrect hint operand error message.
18390 2014-03-04 Richard Biener <rguenther@suse.de>
18392 * lto-section-in.c (lto_get_section_data): Fix const cast.
18394 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18396 * tree-streamer.c (record_common_node): Assert we don't record
18397 nodes with type double.
18398 (preload_common_node): Skip type double, complex double and double
18399 pointer since it is now frontend dependent due to fshort-double option.
18401 2014-03-04 Richard Biener <rguenther@suse.de>
18404 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
18405 (lto_input_toplevel_asms): Likewise.
18406 * lto-section-in.c (lto_get_section_data): Instead do it here
18409 2014-03-04 Richard Biener <rguenther@suse.de>
18411 PR tree-optimization/60382
18412 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
18413 dead PHIs a reduction.
18415 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
18417 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
18419 (_mm_prefetch): Move out of GCC target("sse") pragma.
18420 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
18421 GCC target("prfchw") pragma.
18422 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
18424 * config/i386/i386.c (ix86_option_override_internal): Enable
18425 -mprfchw with -mprefetchwt1.
18427 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18429 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
18432 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18434 * opts.h (CL_PCH_IGNORE): Define.
18435 * targhooks.c (option_affects_pch_p):
18436 Return false for options that have CL_PCH_IGNORE set.
18437 * opt-functions.awk: Process PchIgnore.
18438 * doc/options.texi: Document PchIgnore.
18440 * config/arc/arc.opt (misize): Add PchIgnore property.
18442 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18444 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
18445 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
18446 constraint on constants to permit them being loaded into
18447 GENERAL_REGS or BASE_REGS.
18449 2014-03-03 Nick Clifton <nickc@redhat.com>
18451 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
18452 anti-cacnonical alternatives.
18453 (negandhi3_real): New pattern.
18454 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
18456 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18458 * config/avr/avr-mcus.def: Remove atxmega16x1.
18459 * config/avr/avr-tables.opt: Regenerate.
18460 * config/avr/t-multilib: Regenerate.
18461 * doc/avr-mmcu.texi: Regenerate.
18463 2014-03-03 Tobias Grosser <tobias@grosser.es>
18464 Mircea Namolaru <mircea.namolaru@inria.fr>
18466 PR tree-optimization/58028
18467 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
18470 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18472 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
18473 not handled by recognizers.
18475 2014-03-03 Jakub Jelinek <jakub@redhat.com>
18477 PR middle-end/60175
18478 * function.c (expand_function_end): Don't emit
18479 clobber_return_register sequence if clobber_after is a BARRIER.
18480 * cfgexpand.c (construct_exit_block): Append instructions before
18481 return_label to prev_bb.
18483 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18485 * config/rs6000/constraints.md: Document reserved use of "wc".
18487 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18490 * ipa.c (function_and_variable_visibility): When dissolving comdat
18491 group, also set all symbols to local.
18493 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18498 2013-12-14 Jan Hubicka <jh@suse.cz>
18499 PR middle-end/58477
18500 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
18502 2014-03-02 Jon Beniston <jon@beniston.com>
18508 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
18509 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
18510 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
18511 (simple_return, *simple_return): New patterns
18512 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
18513 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
18515 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
18517 * dwarf2out.c (gen_subprogram_die): Tidy.
18519 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
18522 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
18523 (*mov_t_msb_neg_negc): ... this new insn.
18525 2014-02-28 Jason Merrill <jason@redhat.com>
18528 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
18531 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
18534 * dwarf2out.c (decltype_auto_die): New static.
18535 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
18536 (gen_type_die_with_usage): Handle 'decltype(auto)'.
18537 (is_cxx_auto): Likewise.
18539 2014-02-28 Ian Bolton <ian.bolton@arm.com>
18541 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
18542 we are not using general regs only.
18544 2014-02-28 Richard Biener <rguenther@suse.de>
18547 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
18548 previous fix and only allow to remove trivial pre-headers
18549 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
18550 (remove_forwarder_block): Properly update the latch of a loop.
18552 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18555 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
18556 (cselib_preserved_hash_table): New.
18557 (preserve_constants_and_equivs): Move preserved vals to it.
18558 (cselib_find_slot): Look it up first.
18559 (cselib_init): Initialize it.
18560 (cselib_finish): Release it.
18561 (dump_cselib_table): Dump it.
18563 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18566 * cselib.c (remove_useless_values): Skip to avoid quadratic
18567 behavior if the condition moved from...
18568 (cselib_process_insn): ... here holds.
18570 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18573 * var-tracking.c (vt_initialize): Apply the same condition to
18574 preserve the CFA base value.
18576 2014-02-28 Joey Ye <joey.ye@arm.com>
18579 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
18580 if reload in progress or completed.
18582 2014-02-28 Tobias Burnus <burnus@net-b.de>
18584 PR middle-end/60147
18585 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
18588 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
18590 * doc/tm.texi.in (Condition Code Status): Update documention for
18591 relative locations of cc0-setter and cc0-user.
18593 2014-02-27 Jeff Law <law@redhat.com>
18595 PR rtl-optimization/52714
18596 * combine.c (try_combine): When splitting an unrecognized PARALLEL
18597 into two independent simple sets, if I3 is a jump, ensure the
18598 pattern we place into I3 is a (set (pc) ...).
18600 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
18601 Jeff Law <law@redhat.com>
18603 PR rtl-optimization/49847
18604 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
18605 are in different blocks.
18606 * doc/tm.texi (Condition Code Status): Update documention for
18607 relative locations of cc0-setter and cc0-user.
18609 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
18612 * lra.c (lra_emit_add): Check SUBREG too.
18614 2014-02-27 Andreas Schwab <schwab@suse.de>
18616 * config/m68k/m68k.c (m68k_option_override): Disable
18617 -flive-range-shrinkage for classic m68k.
18618 (m68k_override_options_after_change): Likewise.
18620 2014-02-27 Marek Polacek <polacek@redhat.com>
18622 PR middle-end/59223
18623 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
18624 -Wmaybe-uninitialized.
18626 2014-02-27 Alan Modra <amodra@gmail.com>
18629 * reload1.c (emit_input_reload_insns): When reload_override_in,
18630 set old to rl->in_reg when rl->in_reg is a subreg.
18632 2014-02-26 Richard Biener <rguenther@suse.de>
18635 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
18637 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18639 * common/config/i386/predicates.md (const1256_operand): Remove.
18640 (const2356_operand): New.
18641 (const_1_to_2_operand): Remove.
18642 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18643 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18644 (*avx512pf_gatherpf<mode>sf): Ditto.
18645 (avx512pf_gatherpf<mode>df): Ditto.
18646 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18647 (*avx512pf_gatherpf<mode>df): Ditto.
18648 (avx512pf_scatterpf<mode>sf): Ditto.
18649 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18650 (*avx512pf_scatterpf<mode>sf): Ditto.
18651 (avx512pf_scatterpf<mode>df): Ditto.
18652 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18653 (*avx512pf_scatterpf<mode>df): Ditto.
18654 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
18656 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
18658 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
18659 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
18660 (_mm512_mask_testn_epi64_mask): Move to ...
18661 * config/i386/avx512cdintrin.h: Here.
18662 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
18663 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
18664 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
18665 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
18666 TARGET_AVX512F from TARGET_AVX512CD.
18668 2014-02-26 Richard Biener <rguenther@suse.de>
18671 * ipa.c (walk_polymorphic_call_targets): Properly guard
18672 call to inline_update_overall_summary.
18674 2014-02-26 Bin Cheng <bin.cheng@arm.com>
18677 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
18678 and latches only if requested. Fix latch if it is removed.
18679 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
18680 LOOPS_HAVE_PREHEADERS.
18682 2014-02-25 Andrew Pinski <apinski@cavium.com>
18684 * builtins.c (expand_builtin_thread_pointer): Create a new target
18685 when the target is NULL.
18687 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
18689 PR rtl-optimization/60317
18690 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18691 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18692 * lra-assigns.c: Include params.h.
18693 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
18694 other reload pseudos considerations.
18696 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18698 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
18699 to use canonical form for nor<mode>3.
18701 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18704 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
18707 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18709 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
18710 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
18711 (ix86_handle_option): Handle OPT_mprefetchwt1.
18712 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
18713 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18715 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18716 OPTION_MASK_ISA_PREFETCHWT1.
18717 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
18718 (PTA_PREFETCHWT1): New.
18719 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
18720 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18721 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18722 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18723 (*prefetch_avx512pf_<mode>_: Change into ...
18724 (*prefetch_prefetchwt1_<mode>: This.
18725 * config/i386/i386.opt (mprefetchwt1): New.
18726 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18727 (_mm_prefetch): Handle intent to write.
18728 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18730 2014-02-25 Richard Biener <rguenther@suse.de>
18732 PR middle-end/60291
18733 * emit-rtl.c (mem_attrs_htab): Remove.
18734 (mem_attrs_htab_hash): Likewise.
18735 (mem_attrs_htab_eq): Likewise.
18736 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18737 (init_emit_once): Do not allocate mem_attrs_htab.
18739 2014-02-25 Richard Biener <rguenther@suse.de>
18742 * lto-opts.c (lto_write_options): Output non-explicit conservative
18743 -fwrapv, -fno-trapv and -fno-strict-overflow.
18744 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18745 (run_gcc): And pass them through.
18747 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18749 * sel-sched.c (calculate_new_fences): New parameter ptime.
18750 Calculate it as a maximum over all fence cycles.
18751 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18752 Print the final schedule timing when sched_verbose.
18754 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18756 PR rtl-optimization/60292
18757 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18758 bit fot the fence instruction.
18760 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18762 * calls.h: Fix typo in comment.
18764 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18766 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18767 adjusting offsetable addresses.
18769 2014-02-24 Guozhi Wei <carrot@google.com>
18771 * sparseset.h (sparseset_pop): Fix the wrong index.
18773 2014-02-24 Walter Lee <walt@tilera.com>
18775 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18776 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18778 * common/config/tilegx/tilegx-common.c
18779 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18780 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18781 (LINK_SPEC): Ditto.
18782 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18783 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18784 (tilegx_gimplify_va_arg_expr): Handle big endian.
18785 (tilegx_expand_unaligned_load): Ditto.
18786 (tilegx_expand_unaligned_store): Ditto.
18787 (TARGET_RETURN_IN_MSB): New.
18788 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18789 (TARGET_ENDIAN_DEFAULT): New.
18790 (TARGET_BIG_ENDIAN): Handle big endian.
18791 (BYTES_BIG_ENDIAN): Ditto.
18792 (WORDS_BIG_ENDIAN): Ditto.
18793 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18794 (ENDIAN_SPEC): New.
18795 (EXTRA_SPECS): New.
18796 * config/tilegx/tilegx.md (extv): Handle big endian.
18798 (insn_st<n>): Ditto.
18799 (insn_st<n>_add<bitsuffix>): Ditto.
18800 (insn_stnt<n>): Ditto.
18801 (insn_stnt<n>_add<bitsuffix>):Ditto.
18802 (vec_interleave_highv8qi): Handle big endian.
18803 (vec_interleave_highv8qi_be): New.
18804 (vec_interleave_highv8qi_le): New.
18805 (insn_v1int_h): Handle big endian.
18806 (vec_interleave_lowv8qi): Handle big endian.
18807 (vec_interleave_lowv8qi_be): New.
18808 (vec_interleave_lowv8qi_le): New.
18809 (insn_v1int_l): Handle big endian.
18810 (vec_interleave_highv4hi): Handle big endian.
18811 (vec_interleave_highv4hi_be): New.
18812 (vec_interleave_highv4hi_le): New.
18813 (insn_v2int_h): Handle big endian.
18814 (vec_interleave_lowv4hi): Handle big endian.
18815 (vec_interleave_lowv4hi_be): New.
18816 (vec_interleave_lowv4hi_le): New.
18817 (insn_v2int_l): Handle big endian.
18818 (vec_interleave_highv2si): Handle big endian.
18819 (vec_interleave_highv2si_be): New.
18820 (vec_interleave_highv2si_le): New.
18821 (insn_v4int_h): Handle big endian.
18822 (vec_interleave_lowv2si): Handle big endian.
18823 (vec_interleave_lowv2si_be): New.
18824 (vec_interleave_lowv2si_le): New.
18825 (insn_v4int_l): Handle big endian.
18826 * config/tilegx/tilegx.opt (mbig-endian): New option.
18827 (mlittle-endian): New option.
18828 * doc/install.texi: Document tilegxbe-linux.
18829 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18831 2014-02-24 Martin Jambor <mjambor@suse.cz>
18834 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18835 there are no parameter descriptors.
18837 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18839 PR rtl-optimization/60268
18840 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18841 initialization to ...
18842 (sched_rgn_init): ... here.
18843 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18845 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18847 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18850 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18852 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18855 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18857 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18858 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18860 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18862 * config/microblaze/predicates.md: Add cmp_op predicate.
18863 * config/microblaze/microblaze.md: Add branch_compare instruction
18864 which uses cmp_op predicate and emits cmp insn before branch.
18865 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18866 to microblaze_expand_conditional_branch and consolidate logic.
18867 (microblaze_expand_conditional_branch): emit branch_compare
18868 insn instead of handling cmp op separate from branch insn.
18870 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18872 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18875 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18877 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18878 define_insn with define_expand and new define_insn
18879 *altivec_lve<VI_char>x_internal.
18880 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18881 and new define_insn *altivec_stve<VI_char>x_internal.
18882 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18884 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18886 (altivec_expand_stvex_be): New function.
18888 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18890 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18891 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18892 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18893 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18895 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18898 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18899 instead of emit_move_insn.
18901 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18903 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18904 vspltw with vsldoi.
18905 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18906 gen_altivec_vsumsws.
18908 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18910 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18911 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18912 (altivec_lvxl_<mode>): New define_expand incorporating
18913 -maltivec=be semantics where needed.
18914 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18915 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18916 semantics where needed.
18917 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18918 (altivec_stvx_<mode>): New define_expand incorporating
18919 -maltivec=be semantics where needed.
18920 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18921 VM2 iterator instead of V4SI.
18922 (altivec_stvxl_<mode>): New define_expand incorporating
18923 -maltivec=be semantics where needed.
18924 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18925 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18926 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18927 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18928 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18929 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18930 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18931 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18932 ALTIVEC_BUILTIN_STVXL.
18933 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18934 (altivec_expand_stvx_be): Likewise.
18935 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18936 (altivec_expand_lvx_be): Likewise.
18937 (altivec_expand_stvx_be): Likewise.
18938 (altivec_expand_builtin): Add cases for
18939 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18940 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18941 (altivec_init_builtins): Add definitions for
18942 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18943 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18945 2014-02-21 Catherine Moore <clm@codesourcery.com>
18947 * doc/invoke.texi (mvirt, mno-virt): Document.
18948 * config/mips/mips.opt (mvirt): New option.
18949 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18951 2014-02-21 Richard Biener <rguenther@suse.de>
18953 PR tree-optimization/60276
18954 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18955 (STMT_VINFO_MIN_NEG_DIST): New macro.
18956 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18957 STMT_VINFO_MIN_NEG_DIST.
18958 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18959 made for negative dependence distances still hold.
18961 2014-02-21 Richard Biener <rguenther@suse.de>
18963 PR middle-end/60291
18964 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18965 DECL_INITIAL for globals not in the current function context.
18967 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18969 PR tree-optimization/56490
18970 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18971 * tree-ssa-uninit.c: Include params.h.
18972 (compute_control_dep_chain): Add num_calls argument, return false
18973 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18974 num_calls to recursive call.
18975 (find_predicates): Change dep_chain into normal array,
18976 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18977 variable and adjust compute_control_dep_chain caller.
18978 (find_def_preds): Likewise.
18980 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18982 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18983 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18985 2014-02-21 Nick Clifton <nickc@redhat.com>
18987 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18988 (pushhi1): Likewise.
18989 (popqi1): Add mode to pre_dec.
18990 (pophi1): Likewise.
18992 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18994 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18995 mode for mask of V8SFmode permutation.
18997 2014-02-20 Richard Henderson <rth@redhat.com>
19000 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
19001 a new pseudo for OLDVAL.
19003 2014-02-20 Jakub Jelinek <jakub@redhat.com>
19006 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
19007 gen_reg_rtx if d->testing_p.
19008 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
19009 if d->testing_p and we will certainly return true.
19010 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
19013 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
19015 * emit-rtl.c (gen_reg_rtx): Assert that
19016 crtl->emit.regno_pointer_align_length is non-zero.
19018 2014-02-20 Richard Henderson <rth@redhat.com>
19021 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
19022 on failure the store back into EXPECT.
19024 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
19025 Sandra Loosemore <sandra@codesourcery.com>
19027 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
19028 * config/nios2/nios2.c (nios2_function_profiler): Add
19029 -fPIC (flag_pic == 2) support.
19030 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
19031 (nios2_large_offset_p): New function.
19032 (nios2_unspec_reloc_p): Move up position, update to use
19033 nios2_large_offset_p.
19034 (nios2_unspec_address): Remove function.
19035 (nios2_unspec_offset): New function.
19036 (nios2_large_got_address): New function.
19037 (nios2_got_address): Add large offset support.
19038 (nios2_legitimize_tls_address): Update usage of removed and new
19040 (nios2_symbol_binds_local_p): New function.
19041 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
19042 (nios2_legitimize_address): Update to use nios2_large_offset_p.
19043 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
19044 (nios2_print_operand): Merge H/L processing, add hiadj/lo
19045 processing for (const (unspec ...)).
19046 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
19048 2014-02-20 Richard Biener <rguenther@suse.de>
19050 * tree-cfg.c (replace_uses_by): Mark altered BBs before
19051 doing the substitution.
19052 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
19054 2014-02-20 Martin Jambor <mjambor@suse.cz>
19057 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
19058 info when checking whether lattices are bottom.
19060 2014-02-20 Richard Biener <rguenther@suse.de>
19062 PR middle-end/60221
19063 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
19066 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
19069 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
19070 parameter specifying the scaling.
19071 (inline_call): Update.
19072 (want_inline_recursively): Guard division by zero.
19073 (recursive_inlining): Update.
19074 * ipa-inline.h (clone_inlined_nodes): Update.
19076 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
19079 * config/i386/i386.c (classify_argument): Pass structures of size
19080 64 bytes or less in register.
19082 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
19083 Kirill Yukhin <kirill.yukhin@intel.com>
19085 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
19086 (_mm_rcp28_round_ss): Ditto.
19087 (_mm_rsqrt28_round_sd): Ditto.
19088 (_mm_rsqrt28_round_ss): Ditto.
19089 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
19090 (_mm_rcp14_round_ss): Ditto.
19091 (_mm_rsqrt14_round_sd): Ditto.
19092 (_mm_rsqrt14_round_ss): Ditto.
19093 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
19094 the first input operand, get rid of match_dup.
19095 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
19097 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
19099 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
19100 operand as the first input operand, set type attribute.
19101 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
19102 Set type attribute.
19103 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
19104 operand as the first input operand, set type attribute.
19106 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19108 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
19111 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
19114 * config/i386/i386.c (construct_container): Remove TFmode check
19115 for X86_64_INTEGER_CLASS.
19117 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
19120 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
19121 only when -Wpsabi is enabled.
19123 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
19126 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
19127 passing arrays in registers are the same as for structs, so remove the
19128 special case for them.
19130 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
19132 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
19133 destination type, extract only the valid bits if the source type is not
19134 integral and has a different mode.
19136 2014-02-19 Richard Biener <rguenther@suse.de>
19139 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
19142 2014-02-19 Richard Biener <rguenther@suse.de>
19145 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
19146 (ipa_modify_call_arguments): Emit an argument load explicitely and
19147 preserve virtual SSA form there and for the replacement call.
19148 Do not update SSA form nor free dominance info.
19150 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19152 * ipa.c (function_and_variable_visibility): Also clear WEAK
19153 flag when disolving COMDAT_GROUP.
19155 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19157 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
19158 * ipa-prop.c (ipa_set_jf_known_type): Return early when
19159 not devirtualizing.
19160 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
19161 do more sanity checks.
19162 (detect_type_change): Return true when giving up early.
19163 (compute_complex_assign_jump_func): Fix type parameter of
19164 ipa_set_ancestor_jf.
19165 (compute_complex_ancestor_jump_func): Likewise.
19166 (update_jump_functions_after_inlining): Fix updating of
19168 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
19170 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19172 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
19173 inline clones when edge disappears.
19175 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19178 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
19179 Split 64-bit moves into 2 patterns. Do not allow the use of
19180 direct move for TDmode in little endian, since the decimal value
19181 has little endian bytes within a word, but the 64-bit pieces are
19182 ordered in a big endian fashion, and normal subreg's of TDmode are
19184 (mov<mode>_64bit_dm): Likewise.
19185 (movtd_64bit_nodm): Likewise.
19187 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19189 PR tree-optimization/60174
19190 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
19191 statement of an SSA_NAME that occurs in an abnormal PHI node.
19193 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19196 * final.c (SEEN_BB): Remove.
19197 (SEEN_NOTE, SEEN_EMITTED): Renumber.
19198 (final_scan_insn): Don't force_source_line on second
19199 NOTE_INSN_BASIC_BLOCK.
19201 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
19204 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
19205 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
19206 (type_natural_mode): Warn ABI change when %zmm register is not
19207 available for AVX512F vector value passing.
19209 2014-02-18 Kai Tietz <ktietz@redhat.com>
19212 * config/i386/i386.c (ix86_expand_prologue): Use value in
19213 rax register as displacement when restoring %r10 or %rax.
19214 Fix wrong offset when restoring both registers.
19216 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19218 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
19219 assertion with conditional return.
19221 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19222 Uros Bizjak <ubizjak@gmail.com>
19225 * config/i386/driver-i386.c (host_detect_local_cpu): If
19226 YMM state is not saved by the OS, also clear has_f16c. Move
19227 CPUID 0x80000001 handling before YMM state saving checking.
19229 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
19231 PR rtl-optimization/58960
19232 * haifa-sched.c (alloc_global_sched_pressure_data): New,
19233 factored out from ...
19234 (sched_init): ... here.
19235 (free_global_sched_pressure_data): New, factored out from ...
19236 (sched_finish): ... here.
19237 * sched-int.h (free_global_sched_pressure_data): Declare.
19238 * sched-rgn.c (nr_regions_initial): New static global.
19239 (haifa_find_rgns): Initialize it.
19240 (schedule_region): Disable sched-pressure for the newly
19243 2014-02-17 Richard Biener <rguenther@suse.de>
19245 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
19246 release SSA defs of pattern stmts.
19248 2014-02-17 Richard Biener <rguenther@suse.de>
19250 * tree-inline.c (expand_call_inline): Release the virtual
19251 operand defined by the call we are about to inline.
19253 2014-02-17 Richard Biener <rguenther@suse.de>
19255 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
19257 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
19258 Ilya Tocar <ilya.tocar@intel.com>
19260 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
19261 arguments order in builtin.
19262 (_mm512_permutexvar_epi64): Ditto.
19263 (_mm512_mask_permutexvar_epi64): Ditto
19264 (_mm512_maskz_permutexvar_epi32): Ditto
19265 (_mm512_permutexvar_epi32): Ditto
19266 (_mm512_mask_permutexvar_epi32): Ditto
19268 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19270 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
19271 (p8_vmrgow): Likewise.
19273 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19275 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
19278 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19281 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
19282 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
19283 into 64-bit and 32-bit moves. On 64-bit moves, add support for
19284 using direct move instructions on ISA 2.07. Also adjust
19285 instruction length for 64-bit.
19286 (mov<mode>_64bit, TFmode/TDmode): Likewise.
19287 (mov<mode>_32bit, TFmode/TDmode): Likewise.
19289 2014-02-15 Alan Modra <amodra@gmail.com>
19293 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
19294 find_replacement on parts of insn rtl that might be reloaded.
19296 2014-02-15 Richard Biener <rguenther@suse.de>
19298 PR tree-optimization/60183
19299 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
19300 (tree_ssa_phiprop): Calculate and free post-dominators.
19302 2014-02-14 Jeff Law <law@redhat.com>
19304 PR rtl-optimization/60131
19305 * ree.c (get_extended_src_reg): New function.
19306 (combine_reaching_defs): Use it rather than assuming location of REG.
19307 (find_and_remove_re): Verify first operand of extension is
19308 a REG before adding the insns to the copy list.
19310 2014-02-14 Roland McGrath <mcgrathr@google.com>
19312 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
19313 * configure: Regenerated.
19314 * config.in: Regenerated.
19315 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
19316 instead of ASM_SHORT.
19318 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
19319 Richard Earnshaw <rearnsha@arm.com>
19321 PR rtl-optimization/59535
19322 * lra-constraints.c (process_alt_operands): Encourage alternative
19323 when unassigned pseudo class is superset of the alternative class.
19324 (inherit_reload_reg): Don't inherit when optimizing for code size.
19325 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
19326 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
19327 modes not less than 4 for Thumb1.
19329 2014-02-14 Kyle McMartin <kyle@redhat.com>
19332 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
19334 2014-02-14 Richard Biener <rguenther@suse.de>
19336 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
19337 (get_frame_arg): Drop the assert with langhook types_compatible_p.
19338 Do not strip INDIRECT_REFs.
19340 2014-02-14 Richard Biener <rguenther@suse.de>
19343 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
19344 DECL_FUNCTION_SPECIFIC_TARGET.
19345 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
19346 * tree-streamer-out.c (pack_ts_target_option): Remove.
19347 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
19348 (write_ts_function_decl_tree_pointers): Do not stream
19349 DECL_FUNCTION_SPECIFIC_TARGET.
19350 * tree-streamer-in.c (unpack_ts_target_option): Remove.
19351 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
19352 (lto_input_ts_function_decl_tree_pointers): Do not stream
19353 DECL_FUNCTION_SPECIFIC_TARGET.
19355 2014-02-14 Jakub Jelinek <jakub@redhat.com>
19357 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
19358 (get_initial_def_for_induction, vectorizable_induction): Ignore
19359 debug stmts when looking for exit_phi.
19360 (vectorizable_live_operation): Fix up condition.
19362 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19364 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
19365 nreverse() because it changes the content of original tree list.
19367 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19369 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
19370 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
19372 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19374 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
19375 GNU coding standards.
19377 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19380 * dwarf2out.c (gen_subprogram_die): Don't call
19381 add_calling_convention_attribute if subr_die is old_die.
19383 2014-02-13 Sharad Singhai <singhai@google.com>
19385 * doc/optinfo.texi: Fix order of nodes.
19387 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
19389 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
19390 operands[2], not operands[3].
19392 2014-02-13 Richard Biener <rguenther@suse.de>
19395 * doc/install.texi (ISL): Update recommended version to 0.12.2,
19396 mention the possibility of an in-tree build.
19397 (CLooG): Update recommended version to 0.18.1, mention the
19398 possibility of an in-tree build and clarify that the ISL
19399 bundled with CLooG does not work.
19401 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19404 * expr.c (compress_float_constant): If x is a hard register,
19405 extend into a pseudo and then move to x.
19407 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
19409 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
19410 caused by bad second argument to warning_at() with -mhotpatch and
19411 nested functions (e.g. with gfortran).
19413 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
19415 * opts.c (option_name): Remove "enabled by default" rider.
19417 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
19419 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
19421 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
19422 Uros Bizjak <ubizjak@gmail.com>
19425 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
19426 * configure: Regenerated.
19428 2014-02-12 Richard Biener <rguenther@suse.de>
19430 * vec.c (vec_prefix::calculate_allocation): Move as
19431 inline variant to vec.h.
19432 (vec_prefix::calculate_allocation_1): New out-of-line version.
19433 * vec.h (vec_prefix::calculate_allocation_1): Declare.
19434 (vec_prefix::m_has_auto_buf): Rename to ...
19435 (vec_prefix::m_using_auto_storage): ... this.
19436 (vec_prefix::calculate_allocation): Inline the easy cases
19437 and dispatch to calculate_allocation_1 which doesn't need the
19439 (va_heap::reserve): Use gcc_checking_assert.
19440 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
19441 m_using_auto_storage.
19442 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
19444 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
19445 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
19446 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
19448 2014-02-12 Richard Biener <rguenther@suse.de>
19450 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
19451 when we found a dependence.
19453 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
19455 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
19457 (maybe_fold_stmt): ... into this new function.
19458 * omp-low.c (lower_omp): Update comment.
19460 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
19463 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
19466 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
19468 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
19469 identifiers in comments.
19470 (cortexa53_extra_costs): Likewise.
19471 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
19472 (cortexa7_extra_costs): Likewise.
19473 (cortexa12_extra_costs): Likewise.
19474 (cortexa15_extra_costs): Likewise.
19475 (v7m_extra_costs): Likewise.
19477 2014-02-12 Richard Biener <rguenther@suse.de>
19479 PR middle-end/60092
19480 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
19481 of posix_memalign being successful.
19482 (lower_stmt): Restrict lowering of posix_memalign to when
19483 -ftree-bit-ccp is enabled.
19485 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19487 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
19489 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19491 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
19493 PR rtl-optimization/60116
19494 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
19495 other_insn once the combination has been validated.
19497 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
19500 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
19502 * ipa-devirt.c: Include demangle.h
19503 (odr_violation_reported): New static variable.
19504 (add_type_duplicate): Update odr_violations.
19505 (maybe_record_node): Add completep parameter; update it.
19506 (record_target_from_binfo): Add COMPLETEP parameter;
19507 update it as needed.
19508 (possible_polymorphic_call_targets_1): Likewise.
19509 (struct polymorphic_call_target_d): Add nonconstruction_targets;
19510 rename FINAL to COMPLETE.
19511 (record_targets_from_bases): Sanity check we found the binfo;
19512 fix COMPLETEP updating.
19513 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
19514 parameter, fix computing of COMPLETEP.
19515 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
19516 at LTO time do demangling.
19517 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
19518 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
19520 (gimple_get_virt_method_for_binfo): Likewise.
19521 * gimple-fold.h (gimple_get_virt_method_for_binfo,
19522 gimple_get_virt_method_for_vtable): Update prototypes.
19524 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
19527 * genautomata.c (add_presence_absence): Fix typo with
19528 {final_}presence_list.
19530 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19533 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
19534 for VSX/Altivec vectors that land in GPR registers.
19536 2014-02-11 Richard Henderson <rth@redhat.com>
19537 Jakub Jelinek <jakub@redhat.com>
19540 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
19541 around drhs if type conversion to lacc->type is not useless.
19543 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19545 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
19547 (cortex-a57.cortex-a53): Likewise.
19548 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
19550 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19552 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
19555 2014-02-11 Renlin Li <Renlin.Li@arm.com>
19557 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
19558 add_options_for_arm_vfp3.
19560 2014-02-11 Jeff Law <law@redhat.com>
19562 PR middle-end/54041
19563 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
19564 object with an undesirable mode.
19566 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19569 * config/i386/sol2-9.h: New file.
19570 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
19571 *-*-solaris2.9*): Use it.
19573 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19575 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
19576 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
19578 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19580 * config/microblaze/microblaze.c: Extend mcpu version format
19582 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
19584 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
19586 2014-02-10 Richard Henderson <rth@redhat.com>
19589 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
19590 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
19591 ms-abi vs -mno-accumulate-outgoing-args.
19592 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
19593 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
19596 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19598 PR middle-end/60080
19599 * cfgexpand.c (expand_asm_operands): Attach source location to
19600 ASM_INPUT rtx objects.
19601 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
19603 2014-02-10 Nick Clifton <nickc@redhat.com>
19605 * config/mn10300/mn10300.c (popcount): New function.
19606 (mn10300_expand_prologue): Include saved registers in stack usage
19609 2014-02-10 Jeff Law <law@redhat.com>
19611 PR middle-end/52306
19612 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
19613 when changing the SET_DEST of a prior insn to avoid an input reload.
19615 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19617 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
19618 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
19619 -mcall-openbsd, or -mcall-linux.
19620 (CC1_ENDIAN_BIG_SPEC): Remove.
19621 (CC1_ENDIAN_LITTLE_SPEC): Remove.
19622 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19623 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
19624 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
19625 and %cc1_endian_default.
19626 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19628 2014-02-10 Richard Biener <rguenther@suse.de>
19630 PR tree-optimization/60115
19631 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
19632 MEM_REF handling. Properly verify that the accesses are not
19633 out of the objects bound.
19635 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19637 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
19640 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
19642 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
19643 proper constants and fix formatting.
19644 (possible_polymorphic_call_targets): Fix formatting.
19646 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
19647 Ilya Tocar <ilya.tocar@intel.com>
19649 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
19650 (_mm512_loadu_epi32): Renamed into...
19651 (_mm512_loadu_si512): This.
19652 (_mm512_storeu_epi32): Renamed into...
19653 (_mm512_storeu_si512): This.
19654 (_mm512_maskz_ceil_ps): Removed.
19655 (_mm512_maskz_ceil_pd): Ditto.
19656 (_mm512_maskz_floor_ps): Ditto.
19657 (_mm512_maskz_floor_pd): Ditto.
19658 (_mm512_floor_round_ps): Ditto.
19659 (_mm512_floor_round_pd): Ditto.
19660 (_mm512_ceil_round_ps): Ditto.
19661 (_mm512_ceil_round_pd): Ditto.
19662 (_mm512_mask_floor_round_ps): Ditto.
19663 (_mm512_mask_floor_round_pd): Ditto.
19664 (_mm512_mask_ceil_round_ps): Ditto.
19665 (_mm512_mask_ceil_round_pd): Ditto.
19666 (_mm512_maskz_floor_round_ps): Ditto.
19667 (_mm512_maskz_floor_round_pd): Ditto.
19668 (_mm512_maskz_ceil_round_ps): Ditto.
19669 (_mm512_maskz_ceil_round_pd): Ditto.
19670 (_mm512_expand_pd): Ditto.
19671 (_mm512_expand_ps): Ditto.
19672 * config/i386/i386.c (ix86_builtins): Remove
19673 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
19674 (bdesc_args): Ditto.
19675 * config/i386/predicates.md (const1256_operand): New.
19676 (const_1_to_2_operand): Ditto.
19677 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19678 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19679 (*avx512pf_gatherpf<mode>sf): Ditto.
19680 (avx512pf_gatherpf<mode>df): Ditto.
19681 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19682 (*avx512pf_gatherpf<mode>df): Ditto.
19683 (avx512pf_scatterpf<mode>sf): Ditto.
19684 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19685 (*avx512pf_scatterpf<mode>sf): Ditto.
19686 (avx512pf_scatterpf<mode>df): Ditto.
19687 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19688 (*avx512pf_scatterpf<mode>df): Ditto.
19689 (avx512f_expand<mode>): Removed.
19690 (<shift_insn><mode>3<mask_name>): Change predicate type.
19692 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19694 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
19695 not at the end of datarefs vector use ordered_remove to avoid
19696 reordering datarefs vector.
19699 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
19700 mark local addressable non-static vars as GOVD_PRIVATE
19701 instead of GOVD_LOCAL.
19702 * omp-low.c (lower_omp_for): Move gimple_bind_vars
19703 and BLOCK_VARS of gimple_bind_block to new_stmt rather
19706 PR middle-end/60092
19707 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
19708 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
19709 assume_aligned or alloc_align attributes.
19710 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
19711 arguments. Handle also assume_aligned and alloc_align attributes.
19712 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
19713 calls to functions with assume_aligned or alloc_align attributes.
19714 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
19716 2014-02-08 Terry Guo <terry.guo@arm.com>
19718 * doc/invoke.texi: Document ARM -march=armv7e-m.
19720 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19722 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19723 flag on __cilkrts_rethrow builtin.
19726 * ipa-cp.c (determine_versionability): Fail at -O0
19727 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19728 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19731 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19734 * tree-inline.c (copy_forbidden): Fail for
19735 __attribute__((optimize (0))) functions.
19737 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19739 * varpool.c: Include pointer-set.h.
19740 (varpool_remove_unreferenced_decls): Variables in other partitions
19741 will not be output; be however careful to not lose information
19742 about partitioning.
19744 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19746 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19747 lookup in the vtable constructor.
19749 2014-02-07 Jeff Law <law@redhat.com>
19752 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19753 define_insn_and_split.
19755 * ipa-inline.c (inline_small_functions): Fix typos.
19757 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19759 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19760 (s390_can_use_return_insn): Declare.
19761 * config/s390/s390.h (EPILOGUE_USES): Define.
19762 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19764 (s390_chunkify_start): Handle return JUMP_LABELs.
19765 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19766 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19767 (s390_can_use_return_insn): New functions.
19768 (s390_fix_long_loop_prediction): Handle conditional returns.
19769 (TARGET_SET_UP_BY_PROLOGUE): Define.
19770 * config/s390/s390.md (ANY_RETURN): New code iterator.
19771 (*creturn, *csimple_return, return, simple_return): New patterns.
19773 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19775 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19776 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19777 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19778 REG_CFA_RESTORE list when deciding not to restore a register.
19780 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19782 * config/s390/s390.c: Include tree-pass.h and context.h.
19783 (s390_early_mach): New function, split out from...
19784 (s390_emit_prologue): ...here.
19785 (pass_data_s390_early_mach): New pass structure.
19786 (pass_s390_early_mach): New class.
19787 (s390_option_override): Create and register early_mach pass.
19788 Move to end of file.
19790 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19792 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19793 to match for the exit block.
19795 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19797 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19798 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19799 Reject misaligned operands.
19801 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19803 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19805 2014-02-07 Richard Biener <rguenther@suse.de>
19807 PR middle-end/60092
19808 * gimple-low.c (lower_builtin_posix_memalign): New function.
19809 (lower_stmt): Call it to lower posix_memalign in a way
19810 to make alignment info accessible.
19812 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19815 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19816 __builtin_setjmp_receiver.
19818 2014-02-07 Richard Biener <rguenther@suse.de>
19820 PR middle-end/60092
19821 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19822 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19823 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19824 Handle BUILT_IN_POSIX_MEMALIGN.
19825 (find_func_clobbers): Likewise.
19826 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19827 (call_may_clobber_ref_p_1): Likewise.
19829 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19832 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19835 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19838 * lto-cgraph.c (lto_output_node): Use
19839 symtab_get_symbol_partitioning_class.
19840 (lto_output_varpool_node): likewise.
19841 (symtab_get_symbol_partitioning_class): Move here from
19842 lto/lto-partition.c
19843 * cgraph.h (symbol_partitioning_class): Likewise.
19844 (symtab_get_symbol_partitioning_class): Declare.
19846 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19848 * ggc.h (ggc_internal_cleared_alloc): New macro.
19849 * vec.h (vec_safe_copy): Handle memory stats.
19850 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19851 * target-globals.c (save_target_globals): Likewise.
19853 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19856 * expr.c (emit_move_resolve_push): Export; be bit more selective
19857 on when to clear alias set.
19858 * expr.h (emit_move_resolve_push): Declare.
19859 * function.h (struct function): Add tail_call_marked.
19860 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19861 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19862 * config/i386/i386.md (TImode move expander): De not call
19864 (FP push expanders): Preserve memory attributes.
19865 * config/i386/sse.md (push<mode>1): Remove.
19866 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19867 (ix86_expand_push): Remove.
19868 * config/i386/mmx.md (push<mode>1): Remove.
19870 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19872 PR rtl-optimization/60030
19873 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19874 lopart with paradoxical subreg before shifting it up by hprec.
19876 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19878 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19879 Remove extra newline at end of file.
19880 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19881 (arm_issue_rate): Handle cortexa57.
19882 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19883 (cortex-a57.cortex-a53): Likewise.
19885 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19888 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19889 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19891 (arm_expand_prologue): Adjust all callers.
19892 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19893 info, registers also at the lowest numbered registers side. Use
19894 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19898 * var-tracking.c (adjust_mems): Before adding a SET to
19899 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19901 2014-02-06 Alan Modra <amodra@gmail.com>
19904 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19905 change SDmode to DDmode when lra_in_progress.
19907 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19909 PR middle-end/59150
19910 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19911 free_data_ref on the dr first, and before goto again also set dr
19912 to the next dr. For simd_lane_access, free old datarefs[i] before
19913 overwriting it. For get_vectype_for_scalar_type failure, don't
19914 free_data_ref if simd_lane_access.
19916 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19919 * tree.h (opts_for_fn): New inline function.
19920 (opt_for_fn): Define.
19921 * config/i386/i386.c (ix86_function_regparm): Use
19922 opt_for_fn (decl, optimize) instead of optimize.
19924 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19926 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19927 for SYMBOL_REF in large memory model.
19929 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19931 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19932 and crypto support.
19933 (cortex-a57): Likewise.
19934 (cortex-a57.cortex-a53): Likewise.
19936 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19937 Kugan Vivekanandarajah <kuganv@linaro.org>
19939 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19941 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19943 2014-02-06 Richard Biener <rguenther@suse.de>
19945 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19946 set_loop_copy and initialize_original_copy_tables.
19948 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19950 * config/aarch64/aarch64-simd.md
19951 (aarch64_ashr_simddi): Change QI to SI.
19953 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19954 Jakub Jelinek <jakub@redhat.com>
19956 PR middle-end/60013
19957 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19960 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19962 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19963 CODE_FOR_altivec_vpku[hw]um to
19964 CODE_FOR_altivec_vpku[hw]um_direct.
19965 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19966 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19967 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19968 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19970 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19972 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19973 generation for -maltivec=be.
19974 (altivec_vsumsws): Simplify redundant test.
19976 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19978 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19979 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19980 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19981 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19982 gen_altivec_vpkuwum.
19983 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19985 (altivec_vpks<VI_char>ss): Likewise.
19986 (altivec_vpks<VI_char>us): Likewise.
19987 (altivec_vpku<VI_char>us): Likewise.
19988 (altivec_vpku<VI_char>um): Likewise.
19989 (altivec_vpku<VI_char>um_direct): New (copy of
19990 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19992 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19993 target is little endian and -maltivec=be is not specified.
19994 (*altivec_vupkhs<VU_char>_direct): New (copy of
19995 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19996 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19997 target is little endian and -maltivec=be is not specified.
19998 (*altivec_vupkls<VU_char>_direct): New (copy of
19999 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
20000 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
20001 little endian and -maltivec=be is not specified.
20002 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
20003 little endian and -maltivec=be is not specified.
20005 2014-02-05 Richard Henderson <rth@redhat.com>
20008 * combine-stack-adj.c: Revert r206943.
20009 * sched-int.h (struct deps_desc): Add last_args_size.
20010 * sched-deps.c (init_deps): Initialize it.
20011 (sched_analyze_insn): Add OUTPUT dependencies between insns that
20012 contain REG_ARGS_SIZE notes.
20014 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
20016 * lto-cgraph.c (asm_nodes_output): Make global.
20017 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
20018 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
20019 (driver_handle_option): Handle OPT_fwpa.
20021 2014-02-05 Jakub Jelinek <jakub@redhat.com>
20024 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
20025 a comment typo and formatting issue. If odr_hash hasn't been
20026 created, return vNULL and set *completep to false.
20028 PR middle-end/57499
20029 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
20030 bb with no successors.
20032 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
20035 * doc/invoke.texi (-march): Clarify documentation for ARM.
20036 (-mtune): Likewise.
20039 2014-02-05 Richard Biener <rguenther@suse.de>
20041 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
20042 when not vectorizing because of too many alias checks.
20043 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20044 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
20046 2014-02-05 Nick Clifton <nickc@redhat.com>
20048 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
20049 accept extended registers in any mode when compiling for the MN10300.
20051 2014-02-05 Yury Gribov <y.gribov@samsung.com>
20053 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
20054 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
20055 sanitization attributes.
20056 (can_inline_edge_p): Likewise.
20057 (sanitize_attrs_match_for_inline_p): New function.
20059 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20061 * ipa-prop.c (detect_type_change): Shor circuit testing of
20062 type changes on THIS pointer.
20064 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
20067 * config/pa/pa.c (legitimize_tls_address): Return original address
20068 if not passed a SYMBOL_REF rtx.
20069 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
20071 (pa_emit_move_sequence): Simplify TLS source operands.
20072 (pa_legitimate_constant_p): Reject all TLS constants.
20073 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
20074 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
20076 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20078 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
20079 groups when we know they are controlled by LTO.
20080 * varasm.c (default_binds_local_p_1): If object is in other partition,
20081 it will be resolved locally.
20083 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20085 * config/host-linux.c (linux_gt_pch_use_address): Don't
20086 use SSIZE_MAX because it is not always defined.
20088 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
20091 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
20092 threshold for pseudo splitting.
20093 (update_ebb_live_info): Process call argument hard registers and
20094 hard registers from insn definition too.
20095 (max_small_class_regs_num): New constant.
20096 (inherit_in_ebb): Update live hard regs through EBBs. Update
20097 reloads_num only for small register classes. Don't split for
20100 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
20103 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
20106 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20108 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
20109 visibility is safe.
20111 2014-02-04 Marek Polacek <polacek@redhat.com>
20113 * gdbinit.in (pel): Define.
20115 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20117 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
20120 2014-02-04 Richard Biener <rguenther@suse.de>
20123 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
20124 in function context local.
20125 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
20126 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
20127 similar to LTO_imported_decl_ref.
20129 2014-02-04 Jakub Jelinek <jakub@redhat.com>
20131 PR tree-optimization/60002
20132 * cgraphclones.c (build_function_decl_skip_args): Clear
20133 DECL_LANG_SPECIFIC.
20135 PR tree-optimization/60023
20136 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
20137 false to gsi_replace.
20138 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
20139 has been in some EH region and vec_stmt could throw, add
20140 vec_stmt into the same EH region.
20141 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
20142 has no lhs, ignore it.
20143 * internal-fn.c (expand_MASK_LOAD): Likewise.
20146 * tree-inline.c (copy_forbidden): Fail for
20147 __attribute__((optimize (0))) functions.
20150 * omp-low.c (simd_clone_struct_copy): If from->inbranch
20151 is set, copy one less argument.
20152 (expand_simd_clones): Don't subtract clone_info->inbranch
20153 from simd_clone_struct_alloc argument.
20155 PR rtl-optimization/57915
20156 * recog.c (simplify_while_replacing): If all unary/binary/relational
20157 operation arguments are constant, attempt to simplify those.
20159 PR middle-end/59261
20160 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
20161 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
20163 2014-02-04 Richard Biener <rguenther@suse.de>
20165 PR tree-optimization/60012
20166 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
20167 TBAA disambiguation to all DDRs.
20169 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20172 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
20173 (LINK_SPEC): Use it for -shared, -shared-libgcc.
20175 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20178 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
20180 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20182 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
20183 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
20185 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20188 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
20189 to figure out targets of polymorphic calls with known decl.
20190 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20191 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
20192 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
20193 (get_polymorphic_call_info): ... here.
20194 (get_polymorphic_call_info_from_invariant): New function.
20196 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20198 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
20199 lookup via vtable pointer; check for type consistency
20200 and turn inconsitent facts into UNREACHABLE.
20201 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20202 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
20203 type inconsistent querries; return UNREACHABLE instead.
20205 2014-02-03 Richard Henderson <rth@twiddle.net>
20208 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
20209 already processed this node.
20210 (normalize_one_pred_1): Pass along mark_set.
20211 (normalize_one_pred): Create and destroy a pointer_set_t.
20212 (normalize_one_pred_chain): Likewise.
20214 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
20216 PR gcov-profile/58602
20217 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
20219 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20222 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
20223 -fno-devirtualize; try to devirtualize by the knowledge of
20224 virtual table pointer given by aggregate propagation.
20225 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20226 (ipa_print_node_jump_functions): Dump also offset that
20227 is relevant for polymorphic calls.
20228 (determine_known_aggregate_parts): Add arg_type parameter; use it
20229 instead of determining the type from pointer type.
20230 (ipa_compute_jump_functions_for_edge): Update call of
20231 determine_known_aggregate_parts.
20232 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
20233 (gimple_get_virt_method_for_binfo): ... here; simplify using
20234 vtable_pointer_value_to_vtable.
20235 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
20236 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
20237 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
20238 (vtable_pointer_value_to_vtable): Break out from ...; handle also
20240 (vtable_pointer_value_to_binfo): ... here.
20241 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
20243 2014-02-03 Teresa Johnson <tejohnson@google.com>
20245 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
20246 redef of outer loop index variable.
20248 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
20252 * doc/extend.texi (Function Attributes): Typo.
20254 2014-02-03 Cong Hou <congh@google.com>
20256 PR tree-optimization/60000
20257 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
20258 if the vectorized statement is a store. A store statement can only
20259 appear at the end of pattern statements.
20261 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20263 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
20264 (ix86_option_override_internal): Default long double to 64-bit for
20265 32-bit Bionic and to 128-bit for 64-bit Bionic.
20267 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
20268 TARGET_LONG_DOUBLE_128 is true.
20269 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
20271 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
20272 (mlong-double-64): Negate -mlong-double-128.
20273 (mlong-double-128): New option.
20275 * config/i386/i386-c.c (ix86_target_macros): Define
20276 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
20278 * doc/invoke.texi: Document -mlong-double-128.
20280 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20282 PR rtl-optimization/60024
20283 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
20285 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
20287 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
20289 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20291 PR rtl-optimization/57662
20292 * sel-sched.c (code_motion_path_driver): Do not mark already not
20293 existing blocks in the visiting bitmap.
20295 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20297 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
20298 on the insn being emitted.
20300 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
20301 Will Deacon <will.deacon@arm.com>
20303 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
20305 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20307 * config/arm/arm-tables.opt: Regenerate.
20309 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20311 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
20312 for vector types other than V16QImode.
20313 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
20314 define_expand, and call altivec_expand_vec_perm_le when producing
20315 code with little endian element order.
20316 (*altivec_vperm_<mode>_internal): New insn having previous
20317 behavior of altivec_vperm_<mode>.
20318 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
20319 altivec_expand_vec_perm_le when producing code with little endian
20321 (*altivec_vperm_<mode>_uns_internal): New insn having previous
20322 behavior of altivec_vperm_<mode>_uns.
20324 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20326 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
20327 (altivec_vsumsws): Add handling for -maltivec=be with a little
20329 (altivec_vsumsws_direct): New.
20330 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
20331 gen_altivec_vsumsws.
20333 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20335 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
20336 vtable_pointer_value_to_binfo): New functions.
20337 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
20338 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
20340 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
20342 * config/nios2/nios2.md (load_got_register): Initialize GOT
20343 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
20344 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
20346 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20348 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
20349 preserverd by passthrough, do not propagate the type.
20351 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20353 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
20354 (mips_atomic_assign_expand_fenv): New function.
20355 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
20357 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20359 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
20360 (__builtin_mips_set_fcsr): Likewise.
20361 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
20362 MIPS_USI_FTYPE_VOID.
20363 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
20364 (mips16_expand_set_fcsr): Likewise.
20365 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
20366 (mips16_set_fcsr_stub): Likewise.
20367 (mips16_get_fcsr_one_only_stub): New class.
20368 (mips16_set_fcsr_one_only_stub): Likewise.
20369 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
20370 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
20371 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
20372 (hard_float): New availability predicate.
20373 (mips_builtins): Add get_fcsr and set_fcsr.
20374 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
20375 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
20376 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
20377 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
20378 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
20381 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20383 * config/mips/mips.c (mips_one_only_stub): New class.
20384 (mips_need_mips16_rdhwr_p): Replace with...
20385 (mips16_rdhwr_stub): ...this new variable.
20386 (mips16_stub_call_address): New function.
20387 (mips16_rdhwr_one_only_stub): New class.
20388 (mips_expand_thread_pointer): Use mips16_stub_call_address.
20389 (mips_output_mips16_rdhwr): Delete.
20390 (mips_finish_stub): New function.
20391 (mips_code_end): Use it to handle rdhwr stubs.
20393 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
20396 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
20397 when calculating size of integer atomic types.
20399 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
20401 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
20403 2014-02-01 Jakub Jelinek <jakub@redhat.com>
20405 PR tree-optimization/60003
20406 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
20407 * profile.c (branch_prob): Use gimple_call_builtin_p
20408 to check for BUILT_IN_SETJMP_RECEIVER.
20409 * tree-inline.c (copy_bb): Call notice_special_calls.
20411 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
20414 * lra-constraints.c (process_alt_operands): Update reload_sum only
20417 2014-01-31 Richard Henderson <rth@redhat.com>
20419 PR middle-end/60004
20420 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
20421 until after else_eh is processed.
20423 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20425 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
20426 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
20427 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
20428 in smmintrin.h, remove them.
20429 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
20430 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
20431 * config/i386/i386.md (ROUND_SAE): Fix value.
20432 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
20433 (const48_operand): New.
20434 * config/i386/subst.md (round), (round_expand): Use
20435 const_4_or_8_to_11_operand.
20436 (round_saeonly), (round_saeonly_expand): Use const48_operand.
20438 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20440 * config/i386/constraints.md (Yk): Swap meaning with k.
20441 * config/i386/i386.md (movhi_internal): Change Yk to k.
20442 (movqi_internal): Ditto.
20443 (*k<logic><mode>): Ditto.
20446 (kandn<mode>): Ditto.
20447 (*<code>hi_1): Ditto.
20448 (*<code>qi_1): Ditto.
20449 (kxnor<mode>): Ditto.
20450 (kortestzhi): Ditto.
20451 (kortestchi): Ditto.
20453 (*one_cmplhi2_1): Ditto.
20454 (*one_cmplqi2_1): Ditto.
20455 * config/i386/sse.md (): Change k to Yk.
20456 (avx512f_load<mode>_mask): Ditto.
20457 (avx512f_blendm<mode>): Ditto.
20458 (avx512f_store<mode>_mask): Ditto.
20459 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
20460 (avx512f_storedqu<mode>_mask): Ditto.
20461 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
20463 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
20464 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
20465 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
20466 (avx512f_maskcmp<mode>3): Ditto.
20467 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
20468 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
20469 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
20470 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
20471 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
20472 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
20473 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
20474 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
20475 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
20476 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
20477 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
20478 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
20479 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
20480 (vec_extract_lo_<mode>_maskm): Ditto.
20481 (vec_extract_hi_<mode>_maskm): Ditto.
20482 (avx512f_vternlog<mode>_mask): Ditto.
20483 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
20484 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
20485 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
20486 (avx512f_<code>v8div16qi2_mask): Ditto.
20487 (avx512f_<code>v8div16qi2_mask_store): Ditto.
20488 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
20489 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
20490 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
20491 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
20492 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20493 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20494 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20495 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20496 (avx512cd_maskb_vec_dupv8di): Ditto.
20497 (avx512cd_maskw_vec_dupv16si): Ditto.
20498 (avx512f_vpermi2var<mode>3_maskz): Ditto.
20499 (avx512f_vpermi2var<mode>3_mask): Ditto.
20500 (avx512f_vpermi2var<mode>3_mask): Ditto.
20501 (avx512f_vpermt2var<mode>3_maskz): Ditto.
20502 (*avx512f_gathersi<mode>): Ditto.
20503 (*avx512f_gathersi<mode>_2): Ditto.
20504 (*avx512f_gatherdi<mode>): Ditto.
20505 (*avx512f_gatherdi<mode>_2): Ditto.
20506 (*avx512f_scattersi<mode>): Ditto.
20507 (*avx512f_scatterdi<mode>): Ditto.
20508 (avx512f_compress<mode>_mask): Ditto.
20509 (avx512f_compressstore<mode>_mask): Ditto.
20510 (avx512f_expand<mode>_mask): Ditto.
20511 * config/i386/subst.md (mask): Change k to Yk.
20512 (mask_scalar_merge): Ditto.
20515 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
20517 * doc/extend.texi (Vector Extensions): Document ?: in C++.
20519 2014-01-31 Richard Biener <rguenther@suse.de>
20521 PR middle-end/59990
20522 * builtins.c (fold_builtin_memory_op): Make sure to not
20523 use a floating-point mode or a boolean or enumeral type for
20524 the copy operation.
20526 2014-01-30 DJ Delorie <dj@redhat.com>
20528 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
20529 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
20530 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
20531 whenever main() has an epilogue.
20533 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20535 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
20536 unused variable "field".
20537 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
20538 (vsx_mergeh_<mode>): Likewise.
20539 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
20540 (altivec_vmrghh): Likewise.
20541 (altivec_vmrghw): Likewise.
20542 (altivec_vmrglb): Likewise.
20543 (altivec_vmrglh): Likewise.
20544 (altivec_vmrglw): Likewise.
20545 (altivec_vspltb): Add missing uses.
20546 (altivec_vsplth): Likewise.
20547 (altivec_vspltw): Likewise.
20548 (altivec_vspltsf): Likewise.
20550 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20553 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
20554 frame related instructions.
20556 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
20558 PR rtl-optimization/59959
20559 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
20560 any reload of register whose subreg is invalid.
20562 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20564 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
20565 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
20566 Add missing return type - void.
20568 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20570 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
20571 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
20572 remove element index adjustment for endian (now handled in vsx.md
20574 (altivec_expand_vec_perm_const): Use
20575 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
20576 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
20577 (vsx_xxspltw_<mode>): Adjust element index for little endian.
20578 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
20579 define_expand and a new define_insn *altivec_vspltb_internal;
20580 adjust for -maltivec=be on a little endian target.
20581 (altivec_vspltb_direct): New.
20582 (altivec_vsplth): Divide into a define_expand and a new
20583 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
20584 little endian target.
20585 (altivec_vsplth_direct): New.
20586 (altivec_vspltw): Divide into a define_expand and a new
20587 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
20588 little endian target.
20589 (altivec_vspltw_direct): New.
20590 (altivec_vspltsf): Divide into a define_expand and a new
20591 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
20592 a little endian target.
20594 2014-01-30 Richard Biener <rguenther@suse.de>
20596 PR tree-optimization/59993
20597 * tree-ssa-forwprop.c (associate_pointerplus): Check we
20598 can propagate form the earlier stmt and avoid the transform
20599 when the intermediate result is needed.
20601 2014-01-30 Alangi Derick <alangiderick@gmail.com>
20603 * README.Portability: Fix typo.
20605 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
20607 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
20608 comparison_operator with ordered_comparison_operator.
20610 2014-01-30 Nick Clifton <nickc@redhat.com>
20612 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
20613 Rename to mn10300_store_multiple_regs.
20614 * config/mn10300/mn10300.c: Likewise.
20615 * config/mn10300/mn10300.md (store_movm): Fix typo: call
20616 store_multiple_regs.
20617 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
20618 Call mn10300_store_multiple_regs.
20620 2014-01-30 Nick Clifton <nickc@redhat.com>
20621 DJ Delorie <dj@redhat.com>
20623 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
20624 %fp 2 to keep registers after it properly word-aligned.
20625 (rl78_alloc_physical_registers_umul): Handle the case where both
20626 input operands are the same.
20628 2014-01-30 Richard Biener <rguenther@suse.de>
20630 PR tree-optimization/59903
20631 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
20634 2014-01-30 Jason Merrill <jason@redhat.com>
20637 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
20640 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
20642 2014-01-30 Richard Biener <rguenther@suse.de>
20644 PR tree-optimization/59951
20645 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
20647 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
20650 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
20651 SFmode to DFmode case.
20653 2014-01-29 DJ Delorie <dj@redhat.com>
20655 * config/msp430/msp430.opt (-minrt): New.
20656 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
20658 (ENDFILE_SPEC): Likewise.
20660 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
20662 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
20663 (estimate_function_body_sizes): Use it.
20665 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
20668 * dwarf2out.c (is_cxx_auto): New.
20669 (is_base_type): Use it.
20670 (gen_type_die_with_usage): Likewise.
20672 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20674 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
20675 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
20676 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
20677 -maltivec=be with LE targets.
20678 (vsx_mergeh_<mode>): Likewise.
20679 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
20680 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
20681 (altivec_vmrghb): Replace with define_expand and new
20682 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
20683 (altivec_vmrghb_direct): New define_insn.
20684 (altivec_vmrghh): Replace with define_expand and new
20685 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
20686 (altivec_vmrghh_direct): New define_insn.
20687 (altivec_vmrghw): Replace with define_expand and new
20688 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
20689 (altivec_vmrghw_direct): New define_insn.
20690 (*altivec_vmrghsf): Adjust for endianness.
20691 (altivec_vmrglb): Replace with define_expand and new
20692 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
20693 (altivec_vmrglb_direct): New define_insn.
20694 (altivec_vmrglh): Replace with define_expand and new
20695 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
20696 (altivec_vmrglh_direct): New define_insn.
20697 (altivec_vmrglw): Replace with define_expand and new
20698 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
20699 (altivec_vmrglw_direct): New define_insn.
20700 (*altivec_vmrglsf): Adjust for endianness.
20701 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20702 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20703 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20704 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20705 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20706 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20707 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20708 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20710 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
20712 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
20713 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
20716 2014-01-29 Richard Biener <rguenther@suse.de>
20718 PR tree-optimization/58742
20719 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
20720 associate_pointerplus_align.
20721 (associate_pointerplus_diff): New function.
20722 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20723 and associate_pointerplus_diff.
20725 2014-01-29 Richard Biener <rguenther@suse.de>
20727 * lto-streamer.h (LTO_major_version): Bump to 3.
20728 (LTO_minor_version): Reset to 0.
20730 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20732 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20733 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20734 (arm_file_start): Generate correct asm header for armv7ve.
20735 * config/arm/bpabi.h: Add multilib support for armv7ve.
20736 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20737 and cortex-a15 to armv7ve.
20738 * config/arm/t-aprofile: Add multilib support for armv7ve.
20739 * doc/invoke.texi: Document -march=armv7ve.
20741 2014-01-29 Richard Biener <rguenther@suse.de>
20743 PR tree-optimization/58742
20744 * tree-ssa-forwprop.c (associate_plusminus): Return true
20745 if we changed sth, defer EH cleanup to ...
20746 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20747 (simplify_mult): New function.
20749 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20751 PR middle-end/59917
20752 PR tree-optimization/59920
20753 * tree.c (build_common_builtin_nodes): Remove
20754 __builtin_setjmp_dispatcher initialization.
20755 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20756 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20757 instead of gsi_after_labels + manually skipping debug stmts.
20758 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20759 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20760 * tree-inline.c (copy_edges_for_bb): Remove
20761 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20762 argument. Ignore computed_goto_p stmts. Don't call
20763 make_abnormal_goto_edges. If a call might need abnormal edges
20764 for non-local gotos, see if it already has an edge to
20765 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20766 with true argument, don't do anything then, otherwise add
20767 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20768 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20770 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20771 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20772 (lower_stmt): Don't set data->calls_builtin_setjmp.
20773 (lower_builtin_setjmp): Adjust comment.
20774 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20775 * tree-cfg.c (found_computed_goto): Remove.
20776 (factor_computed_gotos): Remove.
20777 (make_goto_expr_edges): Return bool, true for computed gotos.
20778 Don't call make_abnormal_goto_edges.
20779 (build_gimple_cfg): Don't set found_computed_goto, don't call
20780 factor_computed_gotos.
20781 (computed_goto_p): No longer static.
20782 (make_blocks): Don't set found_computed_goto.
20783 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20784 (make_edges): If make_goto_expr_edges returns true, push bb
20785 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20786 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20787 vector. Record mapping between bbs and OpenMP regions if there
20788 are any, adjust make_gimple_omp_edges caller. Call
20789 handle_abnormal_edges.
20790 (make_abnormal_goto_edges): Remove.
20791 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20792 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20793 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20794 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20795 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20796 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20797 filling *region also set *region_idx to (*region)->entry->index.
20800 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20801 For REGs set ORIGINAL_REGNO.
20803 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20805 * doc/md.texi: Mention that a target shouldn't implement
20806 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20809 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20811 PR tree-optimization/59594
20812 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20813 a copy of the datarefs vector rather than the vector itself.
20815 2014-01-28 Jason Merrill <jason@redhat.com>
20818 * dwarf2out.c (auto_die): New static.
20819 (gen_type_die_with_usage): Handle C++1y 'auto'.
20820 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20823 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20826 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20827 (SPEC_X32): Likewise.
20828 (SPEC_64): Likewise.
20829 * config/i386/i386.c (ix86_option_override_internal): Turn off
20830 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20832 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20833 * config/i386/i386.h (TARGET_16BIT): New macro.
20834 (TARGET_16BIT_P): Likewise.
20835 * config/i386/i386.opt: Add m16.
20836 * doc/invoke.texi: Document -m16.
20838 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20840 PR preprocessor/59935
20841 * input.c (location_get_source_line): Bail out on when line number
20842 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20844 2014-01-28 Richard Biener <rguenther@suse.de>
20846 PR tree-optimization/58742
20847 * tree-ssa-forwprop.c (associate_plusminus): Handle
20848 pointer subtraction of the form (T)(P + A) - (T)P.
20850 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20852 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20855 2014-01-28 Richard Biener <rguenther@suse.de>
20858 2014-01-28 Richard Biener <rguenther@suse.de>
20860 PR rtl-optimization/45364
20861 PR rtl-optimization/59890
20862 * var-tracking.c (local_get_addr_clear_given_value): Handle
20863 already cleared slot.
20864 (val_reset): Handle not allocated local_get_addr_cache.
20865 (vt_find_locations): Use post-order on the inverted CFG.
20867 2014-01-28 Richard Biener <rguenther@suse.de>
20869 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20871 2014-01-28 Richard Biener <rguenther@suse.de>
20873 PR rtl-optimization/45364
20874 PR rtl-optimization/59890
20875 * var-tracking.c (local_get_addr_clear_given_value): Handle
20876 already cleared slot.
20877 (val_reset): Handle not allocated local_get_addr_cache.
20878 (vt_find_locations): Use post-order on the inverted CFG.
20880 2014-01-28 Alan Modra <amodra@gmail.com>
20882 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20883 * configure.ac <recursive call for build != host>: Define
20884 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20885 and LD_FOR_BUILD too.
20886 * configure: Regenerate.
20888 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20890 * config/i386/i386.c (get_builtin_code_for_version): Separate
20891 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20892 Broadwell from Haswell.
20894 2014-01-27 Steve Ellcey <sellcey@mips.com>
20896 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20897 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20898 * config/mips/mips.c (mips_option_override): Change setting
20900 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20901 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20902 Change from Mask to Var.
20904 2014-01-27 Jeff Law <law@redhat.com>
20906 * ipa-inline.c (inline_small_functions): Fix typo.
20908 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20910 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20911 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20912 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20913 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20914 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20915 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20916 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20917 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20918 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20919 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20920 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20921 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20922 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20923 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20924 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20925 (_mm512_storeu_epi64): Ditto.
20926 (_mm512_cmpge_epi32_mask): Ditto.
20927 (_mm512_cmpge_epu32_mask): Ditto.
20928 (_mm512_cmpge_epi64_mask): Ditto.
20929 (_mm512_cmpge_epu64_mask): Ditto.
20930 (_mm512_cmple_epi32_mask): Ditto.
20931 (_mm512_cmple_epu32_mask): Ditto.
20932 (_mm512_cmple_epi64_mask): Ditto.
20933 (_mm512_cmple_epu64_mask): Ditto.
20934 (_mm512_cmplt_epi32_mask): Ditto.
20935 (_mm512_cmplt_epu32_mask): Ditto.
20936 (_mm512_cmplt_epi64_mask): Ditto.
20937 (_mm512_cmplt_epu64_mask): Ditto.
20938 (_mm512_cmpneq_epi32_mask): Ditto.
20939 (_mm512_cmpneq_epu32_mask): Ditto.
20940 (_mm512_cmpneq_epi64_mask): Ditto.
20941 (_mm512_cmpneq_epu64_mask): Ditto.
20942 (_mm512_expand_pd): Ditto.
20943 (_mm512_expand_ps): Ditto.
20944 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20945 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20946 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20947 * config/i386/i386.c (ix86_builtins): Add
20948 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20949 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20950 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20951 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20952 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20953 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20954 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20955 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20956 IX86_BUILTIN_PMOVUSQW512_MEM.
20957 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20958 __builtin_ia32_pmovsqd512mem_mask,
20959 __builtin_ia32_pmovqd512mem_mask,
20960 __builtin_ia32_pmovusqw512mem_mask,
20961 __builtin_ia32_pmovsqw512mem_mask,
20962 __builtin_ia32_pmovqw512mem_mask,
20963 __builtin_ia32_pmovusdw512mem_mask,
20964 __builtin_ia32_pmovsdw512mem_mask,
20965 __builtin_ia32_pmovdw512mem_mask,
20966 __builtin_ia32_pmovqb512mem_mask,
20967 __builtin_ia32_pmovusqb512mem_mask,
20968 __builtin_ia32_pmovsqb512mem_mask,
20969 __builtin_ia32_pmovusdb512mem_mask,
20970 __builtin_ia32_pmovsdb512mem_mask,
20971 __builtin_ia32_pmovdb512mem_mask.
20972 (bdesc_args): Add __builtin_ia32_expanddf512,
20973 __builtin_ia32_expandsf512.
20974 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20975 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20976 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20977 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20978 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20979 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20980 (avx512f_<code>v8div16qi2_mask_store): This.
20981 (avx512f_expand<mode>): New.
20983 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20985 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20987 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20988 (_mm512_prefetch_i32scatter_pd): Ditto.
20989 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20990 (_mm512_prefetch_i64scatter_pd): Ditto.
20991 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20992 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20993 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20994 (_mm512_prefetch_i32scatter_ps): Ditto.
20995 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20996 (_mm512_prefetch_i64scatter_ps): Ditto.
20997 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20998 * config/i386/i386-builtin-types.def: Define
20999 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
21000 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
21001 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
21002 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
21003 IX86_BUILTIN_SCATTERPFQPD.
21004 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
21005 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
21006 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
21007 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
21008 __builtin_ia32_scatterpfqps.
21009 (ix86_expand_builtin): Expand new built-ins.
21010 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
21011 fix memory access data type.
21012 (*avx512pf_gatherpf<mode>_mask): Ditto.
21013 (*avx512pf_gatherpf<mode>): Ditto.
21014 (avx512pf_scatterpf<mode>): Ditto.
21015 (*avx512pf_scatterpf<mode>_mask): Ditto.
21016 (*avx512pf_scatterpf<mode>): Ditto.
21017 (GATHER_SCATTER_SF_MEM_MODE): New.
21018 (avx512pf_gatherpf<mode>df): Ditto.
21019 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21020 (*avx512pf_scatterpf<mode>df): Ditto.
21022 2014-01-27 Jakub Jelinek <jakub@redhat.com>
21025 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
21026 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
21029 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
21031 * common/config/arm/arm-common.c
21032 (arm_rewrite_mcpu): Handle multiple names.
21034 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21036 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
21038 * gimple-builder.h (create_gimple_tmp): Delete.
21040 2014-01-27 Christian Bruel <christian.bruel@st.com>
21042 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
21045 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
21047 * config/pa/pa.md (call): Generate indirect long calls to non-local
21048 functions when outputing 32-bit code.
21049 (call_value): Likewise except for special call to buggy powf function.
21051 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
21052 portable runtime and PIC indirect calls.
21053 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
21054 and PIC call sequences. Use ldo instead of blr to set return register
21055 in PIC call sequence.
21057 2014-01-25 Walter Lee <walt@tilera.com>
21059 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
21060 avoid clobbering a live register.
21062 2014-01-25 Walter Lee <walt@tilera.com>
21064 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
21065 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
21066 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
21067 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
21069 2014-01-25 Walter Lee <walt@tilera.com>
21071 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
21072 arguments on even registers.
21073 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
21075 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
21076 (BIGGEST_ALIGNMENT): Ditto.
21077 (BIGGEST_FIELD_ALIGNMENT): Ditto.
21079 2014-01-25 Walter Lee <walt@tilera.com>
21081 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
21082 insns before bundling.
21083 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
21085 2014-01-25 Walter Lee <walt@tilera.com>
21087 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
21088 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
21089 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
21091 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
21093 * config/mips/constraints.md (kl): Delete.
21094 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
21095 define expands, using...
21096 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
21097 instructions for MIPS16.
21098 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
21099 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
21101 2014-01-25 Walter Lee <walt@tilera.com>
21103 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
21107 2014-01-25 Walter Lee <walt@tilera.com>
21109 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
21110 (TARGET_EXPAND_TO_RTL_HOOK): Define.
21112 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
21114 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
21117 2014-01-25 Jakub Jelinek <jakub@redhat.com>
21119 * print-rtl.c (in_call_function_usage): New var.
21120 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
21121 EXPR_LIST mode as mode and not as reg note name.
21123 PR middle-end/59561
21124 * cfgloopmanip.c (copy_loop_info): If
21125 loop->warned_aggressive_loop_optimizations, make sure
21126 the flag is set in target loop too.
21128 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
21130 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
21132 * builtins.def: Likewise.
21133 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
21134 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
21135 * ira.c (ira_setup_eliminable_regset): Likewise.
21136 * omp-low.c (gate_expand_omp): Likewise.
21137 (execute_lower_omp): Likewise.
21138 (diagnose_sb_0): Likewise.
21139 (gate_diagnose_omp_blocks): Likewise.
21140 (simd_clone_clauses_extract): Likewise.
21143 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21145 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
21146 correction for little endian...
21147 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
21150 2014-01-24 Jeff Law <law@redhat.com>
21152 PR tree-optimization/59919
21153 * tree-vrp.c (find_assert_locations_1): Do not register asserts
21154 for non-returning calls.
21156 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
21158 * common/config/aarch64/aarch64-common.c
21159 (aarch64_rewrite_mcpu): Handle multiple names.
21160 * config/aarch64/aarch64.h
21161 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21163 2014-01-24 Dodji Seketeli <dodji@redhat.com>
21165 * input.c (add_file_to_cache_tab): Handle the case where fopen
21168 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
21171 * config/i386/i386.md (pushsf splitter): Get stack adjustment
21172 from push operand if code of push isn't PRE_DEC.
21174 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21177 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
21178 -mquad-memory-atomic. Update -mquad-memory documentation to say
21179 it is only used for non-atomic loads/stores.
21181 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
21182 -mquad-memory or -mquad-memory-atomic switches.
21184 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
21185 -mquad-memory-atomic to ISA 2.07 support.
21187 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
21188 to separate support of normal quad word memory operations (ldq, stq)
21189 from the atomic quad word memory operations.
21191 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21192 support to separate non-atomic quad word operations from atomic
21193 quad word operations. Disable non-atomic quad word operations in
21194 little endian mode so that we don't have to swap words after the
21195 load and before the store.
21196 (quad_load_store_p): Add comment about atomic quad word support.
21197 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
21198 options printed with -mdebug=reg.
21200 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
21201 -mquad-memory-atomic as the test for whether we have quad word
21202 atomic instructions.
21203 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
21204 or -mp8-vector are used, allow byte/half-word atomic operations.
21206 * config/rs6000/sync.md (load_lockedti): Insure that the address
21207 is a proper indexed or indirect address for the lqarx instruction.
21208 On little endian systems, swap the hi/lo registers after the lqarx
21210 (load_lockedpti): Use indexed_or_indirect_operand predicate to
21211 insure the address is valid for the lqarx instruction.
21212 (store_conditionalti): Insure that the address is a proper indexed
21213 or indirect address for the stqcrx. instruction. On little endian
21214 systems, swap the hi/lo registers before doing the stqcrx.
21216 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
21217 insure the address is valid for the stqcrx. instruction.
21219 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21220 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
21221 type of quad memory support is available.
21223 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
21225 PR regression/59915
21226 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
21227 there is a danger of looping.
21229 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
21231 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21232 force flag_ira_loop_pressure if set via command line.
21234 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21236 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
21237 (ashr_simd): New builtin handling DI mode.
21238 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
21239 (aarch64_sshr_simddi): New match pattern.
21240 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
21241 (vshrd_n_s64): Likewise.
21242 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
21244 2014-01-23 Nick Clifton <nickc@redhat.com>
21246 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
21247 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
21248 favour of mcu specific scripts.
21249 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
21252 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21253 Alex Velenko <Alex.Velenko@arm.com>
21255 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
21256 (vaddv_s16): Likewise.
21257 (vaddv_s32): Likewise.
21258 (vaddv_u8): Likewise.
21259 (vaddv_u16): Likewise.
21260 (vaddv_u32): Likewise.
21261 (vaddvq_s8): Likewise.
21262 (vaddvq_s16): Likewise.
21263 (vaddvq_s32): Likewise.
21264 (vaddvq_s64): Likewise.
21265 (vaddvq_u8): Likewise.
21266 (vaddvq_u16): Likewise.
21267 (vaddvq_u32): Likewise.
21268 (vaddvq_u64): Likewise.
21269 (vaddv_f32): Likewise.
21270 (vaddvq_f32): Likewise.
21271 (vaddvq_f64): Likewise.
21272 (vmaxv_f32): Likewise.
21273 (vmaxv_s8): Likewise.
21274 (vmaxv_s16): Likewise.
21275 (vmaxv_s32): Likewise.
21276 (vmaxv_u8): Likewise.
21277 (vmaxv_u16): Likewise.
21278 (vmaxv_u32): Likewise.
21279 (vmaxvq_f32): Likewise.
21280 (vmaxvq_f64): Likewise.
21281 (vmaxvq_s8): Likewise.
21282 (vmaxvq_s16): Likewise.
21283 (vmaxvq_s32): Likewise.
21284 (vmaxvq_u8): Likewise.
21285 (vmaxvq_u16): Likewise.
21286 (vmaxvq_u32): Likewise.
21287 (vmaxnmv_f32): Likewise.
21288 (vmaxnmvq_f32): Likewise.
21289 (vmaxnmvq_f64): Likewise.
21290 (vminv_f32): Likewise.
21291 (vminv_s8): Likewise.
21292 (vminv_s16): Likewise.
21293 (vminv_s32): Likewise.
21294 (vminv_u8): Likewise.
21295 (vminv_u16): Likewise.
21296 (vminv_u32): Likewise.
21297 (vminvq_f32): Likewise.
21298 (vminvq_f64): Likewise.
21299 (vminvq_s8): Likewise.
21300 (vminvq_s16): Likewise.
21301 (vminvq_s32): Likewise.
21302 (vminvq_u8): Likewise.
21303 (vminvq_u16): Likewise.
21304 (vminvq_u32): Likewise.
21305 (vminnmv_f32): Likewise.
21306 (vminnmvq_f32): Likewise.
21307 (vminnmvq_f64): Likewise.
21309 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21311 * config/aarch64/aarch64-simd.md
21312 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
21313 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
21314 (*aarch64_mul3_elt<mode>): Likewise.
21315 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
21316 (*aarch64_mul3_elt_to_64v2df): Likewise.
21317 (*aarch64_mla_elt<mode>): Likewise.
21318 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
21319 (*aarch64_mls_elt<mode>): Likewise.
21320 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
21321 (*aarch64_fma4_elt<mode>): Likewise.
21322 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
21323 (*aarch64_fma4_elt_to_64v2df): Likewise.
21324 (*aarch64_fnma4_elt<mode>): Likewise.
21325 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
21326 (*aarch64_fnma4_elt_to_64v2df): Likewise.
21327 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
21328 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
21329 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21330 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21331 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21332 (aarch64_sqdmull_lane<mode>_internal): Likewise.
21333 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21335 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
21337 * config/aarch64/aarch64-simd.md
21338 (aarch64_be_checked_get_lane<mode>): New define_expand.
21339 * config/aarch64/aarch64-simd-builtins.def
21340 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
21341 New builtin definition.
21342 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
21343 Use new safe be builtin.
21345 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21347 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
21349 (aarch64_be_st1<mode>): Likewise.
21350 (aarch_ld1<VALL:mode>): Define_expand modified.
21351 (aarch_st1<VALL:mode>): Likewise.
21352 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
21353 (UNSPEC_ST1): Likewise.
21355 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
21357 * config/microblaze/microblaze.md: Add trap insn and attribute
21359 2014-01-23 Dodji Seketeli <dodji@redhat.com>
21361 PR preprocessor/58580
21362 * input.h (location_get_source_line): Take an additional line_size
21364 (void diagnostics_file_cache_fini): Declare new function.
21365 * input.c (struct fcache): New type.
21366 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
21367 New static constants.
21368 (diagnostic_file_cache_init, total_lines_num)
21369 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
21370 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
21371 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
21372 (get_next_line, read_next_line, goto_next_line, read_line_num):
21373 New static function definitions.
21374 (diagnostic_file_cache_fini): New function.
21375 (location_get_source_line): Take an additional output line_len
21376 parameter. Re-write using lookup_or_add_file_to_cache_tab and
21378 * diagnostic.c (diagnostic_finish): Call
21379 diagnostic_file_cache_fini.
21380 (adjust_line): Take an additional input parameter for the length
21381 of the line, rather than calculating it with strlen.
21382 (diagnostic_show_locus): Adjust the use of
21383 location_get_source_line and adjust_line with respect to their new
21384 signature. While displaying a line now, do not stop at the first
21385 null byte. Rather, display the zero byte as a space and keep
21386 going until we reach the size of the line.
21387 * Makefile.in: Add vec.o to OBJS-libcommon
21389 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21390 Ilya Tocar <ilya.tocar@intel.com>
21392 * config/i386/avx512fintrin.h (_mm512_kmov): New.
21393 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
21394 (__builtin_ia32_kmov16): Ditto.
21395 * config/i386/i386.md (UNSPEC_KMOV): New.
21398 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21400 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
21401 (_mm512_storeu_si512): Ditto.
21403 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
21406 * rtl.h (get_referenced_operands): Declare.
21407 * recog.c (get_referenced_operands): New function.
21408 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
21409 operands have been referenced when recording LO_SUM references.
21411 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
21413 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
21415 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21417 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
21418 Enable for generic and recent AMD targets.
21420 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21422 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
21423 ARG_SIZE note when adjustment was eliminated.
21425 2014-01-22 Jeff Law <law@redhat.com>
21427 PR tree-optimization/59597
21428 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
21429 in file. Accept new argument REGISTERING and use it to modify
21430 dump output appropriately.
21431 (register_jump_thread): Corresponding changes.
21432 (mark_threaded_blocks): Reinstate code to cancel unprofitable
21433 thread paths involving joiner blocks. Add code to dump cancelled
21434 jump threading paths.
21436 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
21438 PR rtl-optimization/59477
21439 * lra-constraints.c (inherit_in_ebb): Process call for living hard
21440 regs. Update reloads_num and potential_reload_hard_regs for all insns.
21442 2014-01-22 Tom Tromey <tromey@redhat.com>
21444 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
21446 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
21448 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21450 PR rtl-optimization/59896
21451 * lra-constraints.c (process_alt_operands): Check unused note for
21452 matched operands of insn with no output reloads.
21454 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
21456 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
21457 (mips_move_from_gpr_cost): Likewise.
21459 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21461 PR rtl-optimization/59858
21462 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
21463 ira_class_hard_regs_num.
21464 (process_alt_operands): Increase reject for dying matched operand.
21466 2014-01-21 Jakub Jelinek <jakub@redhat.com>
21469 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
21470 smaller than size, perform several stores or loads and stores
21471 at dst + count - size to store or copy all of size bytes, rather
21472 than just last modesize bytes.
21474 2014-01-20 DJ Delorie <dj@redhat.com>
21476 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
21477 that CLOBBERs are REGs before propogating their values.
21479 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
21481 PR middle-end/59789
21482 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
21483 (cgraph_inline_failed_type): New function.
21484 * cgraph.h (DEFCIFCODE): Add type.
21485 (cgraph_inline_failed_type_t): New enum.
21486 (cgraph_inline_failed_type): New prototype.
21487 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
21488 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21489 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
21490 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
21491 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
21492 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
21493 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
21494 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
21495 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
21496 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
21497 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
21498 OPTIMIZATION_MISMATCH.
21499 * tree-inline.c (expand_call_inline): Emit errors during
21500 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
21502 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21505 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
21506 mode attribute in insn output.
21508 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
21510 * output.h (output_constant): Delete.
21511 * varasm.c (output_constant): Make private.
21513 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
21515 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
21517 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21519 PR middle-end/59860
21520 * tree.h (fold_builtin_strcat): New prototype.
21521 * builtins.c (fold_builtin_strcat): No longer static. Add len
21522 argument, if non-NULL, don't call c_strlen. Optimize
21523 directly into __builtin_memcpy instead of __builtin_strcpy.
21524 (fold_builtin_2): Adjust fold_builtin_strcat caller.
21525 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
21527 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21529 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21530 for SImode_address_operand operands, having only a REG argument.
21532 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
21534 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
21535 loader name using mbig-endian.
21536 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
21538 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21540 * doc/invoke.texi (-march): Clarify documentation for AArch64.
21541 (-mtune): Likewise.
21544 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
21546 * config/aarch64/aarch64-protos.h
21547 (aarch64_cannot_change_mode_class_ptr): Declare.
21548 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
21549 aarch64_cannot_change_mode_class_ptr): New.
21550 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
21551 backend hook aarch64_cannot_change_mode_class.
21553 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21555 * common/config/aarch64/aarch64-common.c
21556 (aarch64_handle_option): Don't handle any option order logic here.
21557 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
21558 selected_cpu, warn on architecture version mismatch.
21559 (aarch64_override_options): Fix parsing order for option strings.
21561 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21562 Iain Sandoe <iain@codesourcery.com>
21565 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
21566 warning. Amend comment to reflect current functionality.
21568 2014-01-20 Richard Biener <rguenther@suse.de>
21570 PR middle-end/59860
21571 * builtins.c (fold_builtin_strcat): Remove case better handled
21572 by tree-ssa-strlen.c.
21574 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
21576 * config/aarch64/aarch64.opt
21577 (mcpu, march, mtune): Make case-insensitive.
21579 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21582 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21583 if operands[1] is a REG or ZERO_EXTEND of a REG.
21585 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
21587 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
21589 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
21591 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
21592 long non-pic millicode calls.
21594 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21596 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
21598 2014-01-19 Kito Cheng <kito@0xlab.org>
21600 * builtins.c (expand_movstr): Check movstr expand done or fail.
21602 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21603 H.J. Lu <hongjiu.lu@intel.com>
21606 * config/i386/i386.md (*lea<mode>): Zero-extend return register
21607 to DImode for zero-extended addresses.
21609 2014-01-19 Jakub Jelinek <jakub@redhat.com>
21611 PR rtl-optimization/57763
21612 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
21613 on the new indirect jump_insn and increment LABEL_NUSES (label).
21615 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
21619 * config.gcc (x86_archs): New variable.
21620 (x86_64_archs): Likewise.
21621 (x86_cpus): Likewise.
21622 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
21623 --with-arch/--with-cpu= options.
21624 Support --with-arch=/--with-cpu={nehalem,westmere,
21625 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
21627 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21629 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
21630 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
21632 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21634 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
21636 2014-01-18 Jakub Jelinek <jakub@redhat.com>
21639 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
21640 clear cpp_get_options (parse_in)->warn_unused_macros for
21641 ix86_target_macros_internal with cpp_define.
21643 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
21645 * jump.c (delete_related_insns): Keep (use (insn))s.
21646 * reorg.c (redundant_insn): Check for barriers too.
21648 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21650 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
21652 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
21654 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
21655 call to $$dyncall when TARGET_LONG_CALLS is true.
21657 2014-01-17 Jeff Law <law@redhat.com>
21659 * ree.c (combine_set_extension): Temporarily disable test for
21660 changing number of hard registers.
21662 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21664 PR middle-end/58125
21665 * ipa-inline-analysis.c (inline_free_summary):
21666 Do not free summary of aliases.
21668 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21670 PR middle-end/59706
21671 * gimplify.c (gimplify_expr): Use create_tmp_var
21672 instead of create_tmp_var_raw. If cond doesn't have
21673 integral type, don't add the IFN_ANNOTATE builtin at all.
21675 2014-01-17 Martin Jambor <mjambor@suse.cz>
21678 * ipa-cp.c (prev_edge_clone): New variable.
21679 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
21680 Also resize prev_edge_clone vector.
21681 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
21682 (ipcp_edge_removal_hook): New function.
21683 (ipcp_driver): Register ipcp_edge_removal_hook.
21685 2014-01-17 Andrew Pinski <apinski@cavium.com>
21686 Steve Ellcey <sellcey@mips.com>
21689 * config/mips/mips.c (mips_print_operand): Check operand mode instead
21692 2014-01-17 Jeff Law <law@redhat.com>
21694 PR middle-end/57904
21695 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
21696 so that pass_ccp runs first.
21698 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21700 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
21701 (ix86_adjust_cost): Use !TARGET_XXX.
21702 (do_reorder_for_imul): Likewise.
21703 (swap_top_of_ready_list): Likewise.
21704 (ix86_sched_reorder): Likewise.
21706 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21708 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21709 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
21710 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
21711 (intel_memset): New. Duplicate slm_memset.
21712 (intel_cost): New. Duplicate slm_cost.
21713 (m_INTEL): New macro.
21714 (processor_target_table): Add "intel".
21715 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
21716 with PROCESSOR_INTEL for "intel".
21717 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
21718 PROCESSOR_SILVERMONT.
21719 (ix86_issue_rate): Likewise.
21720 (ix86_adjust_cost): Likewise.
21721 (ia32_multipass_dfa_lookahead): Likewise.
21722 (swap_top_of_ready_list): Likewise.
21723 (ix86_sched_reorder): Likewise.
21724 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21725 instead of TARGET_OPT_AGU.
21726 * config/i386/i386.h (TARGET_INTEL): New.
21727 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21728 (processor_type): Add PROCESSOR_INTEL.
21729 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21730 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21732 2014-01-17 Marek Polacek <polacek@redhat.com>
21735 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21738 2014-01-17 Richard Biener <rguenther@suse.de>
21740 PR tree-optimization/46590
21741 * opts.c (default_options_table): Add entries for
21742 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21743 all enabled at -O1 but not for -Og.
21744 * common.opt (fbranch-count-reg): Remove Init(1).
21745 (fmove-loop-invariants): Likewise.
21746 (ftree-pta): Likewise.
21748 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21750 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21751 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21752 decls to at least the GCC 4.8 used alignments.
21755 * tree-nested.c (convert_nonlocal_reference_stmt,
21756 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21757 of GIMPLE_BIND stmts, adjust associated decls.
21759 2014-01-17 Richard Biener <rguenther@suse.de>
21761 PR tree-optimization/46590
21762 * vec.h (vec<>::bseach): New member function implementing
21763 binary search according to C89 bsearch.
21764 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21765 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21766 bitmap pointer again. Make accesses_in_loop a flat array.
21767 (mem_ref_obstack): New global.
21768 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21769 (mark_ref_stored): Likewise.
21770 (ref_indep_loop_p_2): Likewise.
21771 (set_ref_stored_in_loop): New helper function.
21772 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21773 (memref_free): Adjust.
21774 (record_mem_ref_loc): Simplify.
21775 (gather_mem_refs_stmt): Adjust.
21776 (sort_locs_in_loop_postorder_cmp): New function.
21777 (analyze_memory_references): Sort accesses_in_loop after
21778 loop postorder number.
21779 (find_ref_loc_in_loop_cmp): New function.
21780 (for_all_locs_in_loop): Find relevant cluster of locs in
21781 accesses_in_loop and iterate without recursion.
21782 (execute_sm): Avoid uninit warning.
21783 (struct ref_always_accessed): Simplify.
21784 (ref_always_accessed::operator ()): Likewise.
21785 (ref_always_accessed_p): Likewise.
21786 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21787 loop postorder numbers here.
21788 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21791 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21794 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21795 on decls for which assemble_alias has been called.
21797 2014-01-17 Nick Clifton <nickc@redhat.com>
21799 * config/msp430/msp430.opt: (mcpu): New option.
21800 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21801 (msp430_option_override): Parse target_cpu. If the MCU name
21802 matches a generic string, clear target_mcu.
21803 (msp430_attr): Allow numeric interrupt values up to 63.
21804 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21805 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21807 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21809 * config/msp430/msp430.md (popm): Use %J rather than %I.
21810 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21811 (addhi_cy_i): Use immediate_operand for operand 2.
21812 * doc/invoke.texi: Document -mcpu option.
21814 2014-01-17 Richard Biener <rguenther@suse.de>
21816 PR rtl-optimization/38518
21817 * df.h (df_analyze_loop): Declare.
21818 * df-core.c: Include cfgloop.h.
21819 (df_analyze_1): Split out main part of df_analyze.
21820 (df_analyze): Adjust.
21821 (loop_inverted_post_order_compute): New function.
21822 (loop_post_order_compute): Likewise.
21823 (df_analyze_loop): New function avoiding whole-function
21824 postorder computes.
21825 * loop-invariant.c (find_defs): Use df_analyze_loop.
21826 (find_invariants): Adjust.
21827 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21829 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21831 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21832 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21834 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21836 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21837 traversal when removing references.
21839 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21842 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21844 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21846 PR middle-end/56791
21847 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21848 pushing a reload for an autoinc when we had previously reloaded an
21849 inner part of the address.
21851 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21853 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21855 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21856 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21857 when not giving up or versioning for alias only because of
21859 (vect_analyze_data_ref_dependences): Set to true.
21860 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21862 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21863 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21866 PR middle-end/58344
21867 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21870 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21871 operand 0 predicate for gathers, use a new pseudo as subtarget.
21873 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21875 PR middle-end/59609
21876 * lra-constraints.c (process_alt_operands): Add printing debug info.
21877 Check absence of input/output reloads for matched operands too.
21879 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21881 PR rtl-optimization/59835
21882 * ira.c (ira_init_register_move_cost): Increase cost for
21885 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21887 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21889 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21892 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21893 non-register objects. Use gen_(high/low)part more consistently.
21896 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21899 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21900 endian support, remove tests for WORDS_BIG_ENDIAN.
21901 (p8_mfvsrd_3_<mode>): Likewise.
21902 (reload_gpr_from_vsx<mode>): Likewise.
21903 (reload_gpr_from_vsxsf): Likewise.
21904 (p8_mfvsrd_4_disf): Likewise.
21906 2014-01-16 Richard Biener <rguenther@suse.de>
21908 PR rtl-optimization/46590
21909 * lcm.c (compute_antinout_edge): Use postorder iteration.
21910 (compute_laterin): Use inverted postorder iteration.
21912 2014-01-16 Nick Clifton <nickc@redhat.com>
21914 PR middle-end/28865
21915 * varasm.c (output_constant): Return the number of bytes actually
21917 (output_constructor_array_range): Update the field size with the
21918 number of bytes emitted by output_constant.
21919 (output_constructor_regular_field): Likewise. Also do not
21920 complain if the total number of bytes emitted is now greater
21921 than the expected fieldpos.
21922 * output.h (output_constant): Update prototype and descriptive comment.
21924 2014-01-16 Marek Polacek <polacek@redhat.com>
21926 PR middle-end/59827
21927 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21928 it is error_mark_node.
21930 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21932 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21933 VALID_AVX256_REG_OR_OI_MODE.
21935 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21937 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21938 current procedure should be profiled.
21940 2014-01-15 Andrew Pinski <apinski@cavium.com>
21942 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21943 of moving from/to the STACK_REG register class.
21945 2014-01-15 Richard Henderson <rth@redhat.com>
21948 * reginfo.c (global_regs_decl): Globalize.
21949 * rtl.h (global_regs_decl): Declare.
21950 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21951 reserved via global_regs.
21953 2014-01-15 Teresa Johnson <tejohnson@google.com>
21955 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21957 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21959 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21960 and vmulosh rather than call gen_vec_widen_smult_*.
21961 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21962 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21963 (vec_widen_smult_even_v16qi): Likewise.
21964 (vec_widen_umult_even_v8hi): Likewise.
21965 (vec_widen_smult_even_v8hi): Likewise.
21966 (vec_widen_umult_odd_v16qi): Likewise.
21967 (vec_widen_smult_odd_v16qi): Likewise.
21968 (vec_widen_umult_odd_v8hi): Likewise.
21969 (vec_widen_smult_odd_v8hi): Likewise.
21970 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21971 vmuloub rather than call gen_vec_widen_umult_*.
21972 (vec_widen_umult_lo_v16qi): Likewise.
21973 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21974 vmulosb rather than call gen_vec_widen_smult_*.
21975 (vec_widen_smult_lo_v16qi): Likewise.
21976 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21977 rather than call gen_vec_widen_umult_*.
21978 (vec_widen_umult_lo_v8hi): Likewise.
21979 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21980 rather than call gen_vec_widen_smult_*.
21981 (vec_widen_smult_lo_v8hi): Likewise.
21983 2014-01-15 Jeff Law <law@redhat.com>
21985 PR tree-optimization/59747
21986 * ree.c (find_and_remove_re): Properly handle case where a second
21987 eliminated extension requires widening a copy created for elimination
21988 of a prior extension.
21989 (combine_set_extension): Ensure that the number of hard regs needed
21990 for a destination register does not change when we widen it.
21992 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21994 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21995 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21996 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21997 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21998 (avr-*-rtems*): Likewise.
21999 (bfin*-rtems*): Likewise.
22000 (moxie-*-rtems*): Likewise.
22001 (h8300-*-rtems*): Likewise.
22002 (i[34567]86-*-rtems*): Likewise.
22003 (lm32-*-rtems*): Likewise.
22004 (m32r-*-rtems*): Likewise.
22005 (m68k-*-rtems*): Likewise.
22006 (microblaze*-*-rtems*): Likewise.
22007 (mips*-*-rtems*): Likewise.
22008 (powerpc-*-rtems*): Likewise.
22009 (sh-*-rtems*): Likewise.
22010 (sparc-*-rtems*): Likewise.
22011 (sparc64-*-rtems*): Likewise.
22012 (v850-*-rtems*): Likewise.
22013 (m32c-*-rtems*): Likewise.
22015 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
22017 PR rtl-optimization/59511
22018 * ira.c (ira_init_register_move_cost): Use memory costs for some
22019 cases of register move cost calculations.
22020 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
22021 instead of BB frequency.
22022 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
22023 * lra-assigns.c (find_hard_regno_for): Ditto.
22025 2014-01-15 Richard Biener <rguenther@suse.de>
22027 PR tree-optimization/59822
22028 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
22029 (vectorizable_load): Use it to hoist defs of uses of invariant
22030 loads out of the loop.
22032 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22033 Kugan Vivekanandarajah <kuganv@linaro.org>
22036 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
22039 2014-01-15 Richard Biener <rguenther@suse.de>
22041 PR rtl-optimization/59802
22042 * lcm.c (compute_available): Use inverted postorder to seed
22043 the initial worklist.
22045 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22048 * config/s390/s390.c (s390_preferred_reload_class): Don't return
22049 ADDR_REGS for invalid symrefs in non-PIC code.
22051 2014-01-15 Jakub Jelinek <jakub@redhat.com>
22054 * builtins.c (determine_block_size): Initialize *probable_max_size
22055 even if len_rtx is CONST_INT.
22057 2014-01-14 Andrew Pinski <apinski@cavium.com>
22059 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
22060 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
22061 (cortexa53_tunings): Likewise.
22062 (aarch64_sched_issue_rate): New function.
22063 (TARGET_SCHED_ISSUE_RATE): Define.
22065 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
22067 * ira-costs.c (find_costs_and_classes): Add missed
22068 ira_init_register_move_cost_if_necessary.
22070 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
22073 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
22075 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
22078 * config/i386/i386.c (type_natural_mode): Add a bool parameter
22079 to indicate if type is used for function return value. Warn ABI
22080 change if the vector mode isn't available for function return value.
22081 (ix86_function_arg_advance): Pass false to type_natural_mode.
22082 (ix86_function_arg): Likewise.
22083 (ix86_gimplify_va_arg): Likewise.
22084 (function_arg_32): Don't warn ABI change.
22085 (ix86_function_value): Pass true to type_natural_mode.
22086 (ix86_return_in_memory): Likewise.
22087 (ix86_struct_value_rtx): Removed.
22088 (TARGET_STRUCT_VALUE_RTX): Likewise.
22090 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22092 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
22093 converting a conditional jump into a conditional return.
22095 2014-01-14 Richard Biener <rguenther@suse.de>
22097 PR tree-optimization/58921
22098 PR tree-optimization/59006
22099 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
22100 hoisting invariant stmts.
22101 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
22102 invariant loads on the preheader edge if possible.
22104 2014-01-14 Joey Ye <joey.ye@arm.com>
22106 * doc/plugin.texi (Building GCC plugins): Update to C++.
22108 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
22110 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
22111 (_mm_rcp28_round_ss): Ditto.
22112 (_mm_rsqrt28_round_sd): Ditto.
22113 (_mm_rsqrt28_round_ss): Ditto.
22114 (_mm_rcp28_sd): Ditto.
22115 (_mm_rcp28_ss): Ditto.
22116 (_mm_rsqrt28_sd): Ditto.
22117 (_mm_rsqrt28_ss): Ditto.
22118 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
22119 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
22120 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
22121 (IX86_BUILTIN_RCP28SD): Ditto.
22122 (IX86_BUILTIN_RCP28SS): Ditto.
22123 (IX86_BUILTIN_RSQRT28SD): Ditto.
22124 (IX86_BUILTIN_RSQRT28SS): Ditto.
22125 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
22126 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
22127 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
22128 (ix86_expand_special_args_builtin): Expand new FTYPE.
22129 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
22130 (srcp14<mode>): Make insn unary.
22131 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
22132 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
22133 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
22134 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
22135 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
22136 Fix rounding: make it SAE only.
22137 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22139 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22141 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
22142 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
22143 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
22144 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
22145 (round_saeonly_mask_scalar_operand4): Ditto.
22146 (round_saeonly_mask_scalar_op3): Ditto.
22147 (round_saeonly_mask_scalar_op4): Ditto.
22149 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22151 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22152 Implement -maltivec=be for vec_insert and vec_extract.
22154 2014-01-10 DJ Delorie <dj@redhat.com>
22156 * config/msp430/msp430.md (call_internal): Don't allow memory
22157 references with SP as the base register.
22158 (call_value_internal): Likewise.
22159 * config/msp430/constraints.md (Yc): New. For memory references
22160 that don't use SP as a base register.
22162 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
22163 "an integer without a # prefix"
22164 * config/msp430/msp430.md (epilogue_helper): Use it.
22166 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22169 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
22170 AVX512F gather builtins.
22171 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
22172 on gather decls with INTEGER_TYPE masktype.
22173 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
22174 directly into the builtin rather than hoisting it before loop.
22176 PR tree-optimization/59387
22177 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
22178 (scev_const_prop): If folded_casts and type has undefined overflow,
22179 use force_gimple_operand instead of force_gimple_operand_gsi and
22180 for each added stmt if it is assign with
22181 arith_code_with_undefined_signed_overflow, call
22182 rewrite_to_defined_overflow.
22183 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
22184 gimple-fold.h instead.
22185 (arith_code_with_undefined_signed_overflow,
22186 rewrite_to_defined_overflow): Moved to ...
22187 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
22188 rewrite_to_defined_overflow): ... here. No longer static.
22189 Include gimplify-me.h.
22190 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
22191 rewrite_to_defined_overflow): New prototypes.
22193 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22195 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
22197 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
22199 * builtins.c (get_object_alignment_2): Minor tweak.
22200 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
22202 2014-01-13 Christian Bruel <christian.bruel@st.com>
22204 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
22205 optimized non constant lengths.
22207 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22210 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
22211 load as __atomic_load_N if possible.
22213 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22215 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
22217 (rs6000_expand_builtin): Adjust call.
22219 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22222 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
22223 * config/rs6000/rs6000.c: Include target-globals.h.
22224 (rs6000_set_current_function): Instead of doing target_reinit
22225 unconditionally, use save_target_globals_default_opts and
22226 restore_target_globals.
22228 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
22230 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
22231 (rs6000_expand_builtin): Handle mffs and mtfsf.
22232 (rs6000_init_builtins): Define mffs and mtfsf.
22233 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
22234 (rs6000_mffs): New pattern.
22235 (rs6000_mtfsf): New pattern.
22237 2014-01-11 Bin Cheng <bin.cheng@arm.com>
22239 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
22240 Start narrowing with START. Apply candidate-use pair
22241 and check overall cost in narrowing.
22242 (iv_ca_prune): Pass new argument.
22244 2014-01-10 Jeff Law <law@redhat.com>
22246 PR middle-end/59743
22247 * ree.c (combine_reaching_defs): Ensure the defining statement
22248 occurs before the extension when optimizing extensions with
22249 different source and destination hard registers.
22251 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22254 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
22255 vtables into the type inheritance graph.
22257 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22259 PR rtl-optimization/59754
22260 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
22261 modes in the REGNO != REGNO case.
22263 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22265 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
22267 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22269 PR tree-optimization/59745
22270 * tree-predcom.c (tree_predictive_commoning_loop): Call
22271 free_affine_expand_cache if giving up because components is NULL.
22273 * target-globals.c (save_target_globals): Allocate < 4KB structs using
22274 GC in payload of target_globals struct instead of allocating them on
22275 the heap and the larger structs separately using GC.
22276 * target-globals.h (struct target_globals): Make regs, hard_regs,
22277 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
22278 of GTY((skip)) and change type to void *.
22279 (reset_target_globals): Cast loads from those fields to corresponding
22282 2014-01-10 Steve Ellcey <sellcey@mips.com>
22285 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
22286 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
22287 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
22289 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
22292 * aarch64-modes.def (CC_Zmode): New flags mode.
22293 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
22294 represents an equality.
22295 (aarch64_get_condition_code): Handle CC_Zmode.
22296 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
22298 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22300 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
22301 extraction in good case.
22303 2014-01-10 Richard Biener <rguenther@suse.de>
22305 PR tree-optimization/59374
22306 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
22307 checking after SLP discovery. Mark stmts not participating
22308 in any SLP instance properly.
22310 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22312 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
22313 when handling a SET rtx.
22315 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22317 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
22318 (cortex-a57): Likewise.
22319 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
22321 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22323 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
22324 non-iwmmxt builtins.
22326 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22330 * ipa-devirt.c record_target_from_binfo): Take as argument
22331 stack of binfos and lookup matching one for virtual inheritance.
22332 (possible_polymorphic_call_targets_1): Update.
22334 2014-01-10 Huacai Chen <chenhc@lemote.com>
22336 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
22337 kernel strings for Loongson-2E/2F/3A.
22339 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22341 PR middle-end/59670
22342 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
22343 is_gimple_call before calling gimple_call_internal_p.
22345 2014-01-09 Steve Ellcey <sellcey@mips.com>
22347 * Makefile.in (TREE_FLOW_H): Remove.
22348 (TREE_SSA_H): Add file names from tree-flow.h.
22349 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
22350 * tree.h: Remove tree-flow.h reference.
22351 * hash-table.h: Remove tree-flow.h reference.
22352 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
22353 reference with tree-ssa-loop.h.
22355 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22357 * doc/invoke.texi: Add -maltivec={be,le} options, and document
22358 default element-order behavior for -maltivec.
22359 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
22360 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
22361 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
22362 when targeting big endian, at least for now.
22363 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
22365 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22367 PR middle-end/47735
22368 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
22369 var satisfies use_register_for_decl, just take into account type
22370 alignment, rather than decl alignment.
22372 PR tree-optimization/59622
22373 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
22374 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
22375 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
22376 Don't devirtualize for inplace at all. For targets.length () == 1,
22377 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
22379 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22381 * config/i386/i386.md (cpu): Remove the unused btver1.
22383 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22385 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22387 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22390 * tree-core.h (struct target_globals): New forward declaration.
22391 (struct tree_target_option): Add globals field.
22392 * tree.h (TREE_TARGET_GLOBALS): Define.
22393 (prepare_target_option_nodes_for_pch): New prototype.
22394 * target-globals.h (struct target_globals): Define even if
22395 !SWITCHABLE_TARGET.
22396 * tree.c (prepare_target_option_node_for_pch,
22397 prepare_target_option_nodes_for_pch): New functions.
22398 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
22399 * config/i386/i386.c: Include target-globals.h.
22400 (ix86_set_current_function): Instead of doing target_reinit
22401 unconditionally, use save_target_globals_default_opts and
22402 restore_target_globals.
22404 2014-01-09 Richard Biener <rguenther@suse.de>
22406 PR tree-optimization/59715
22407 * tree-cfg.h (split_critical_edges): Declare.
22408 * tree-cfg.c (split_critical_edges): Export.
22409 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
22411 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
22413 * cfgexpand.c (expand_stack_vars): Optionally disable
22414 asan stack protection.
22415 (expand_used_vars): Likewise.
22416 (partition_stack_vars): Likewise.
22417 * asan.c (asan_emit_stack_protection): Optionally disable
22418 after return stack usage.
22419 (instrument_derefs): Optionally disable memory access instrumentation.
22420 (instrument_builtin_call): Likewise.
22421 (instrument_strlen_call): Likewise.
22422 (asan_protect_global): Optionally disable global variables protection.
22423 * doc/invoke.texi: Added doc for new options.
22424 * params.def: Added new options.
22425 * params.h: Likewise.
22427 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22429 PR rtl-optimization/59724
22430 * ifcvt.c (cond_exec_process_if_block): Don't call
22431 flow_find_head_matching_sequence with 0 longest_match.
22432 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
22433 non-active insns if !stop_after.
22434 (try_head_merge_bb): Revert 2014-01-07 changes.
22436 2014-01-08 Jeff Law <law@redhat.com>
22438 * ree.c (get_sub_rtx): New function, extracted from...
22439 (merge_def_and_ext): Here.
22440 (combine_reaching_defs): Use get_sub_rtx.
22442 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
22444 * cgraph.h (varpool_variable_node): Do not choke on null node.
22446 2014-01-08 Catherine Moore <clm@codesourcery.com>
22448 * config/mips/mips.md (simple_return): Attempt to use JRC
22450 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
22452 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22454 PR rtl-optimization/59137
22455 * reorg.c (steal_delay_list_from_target): Call update_block for
22457 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
22459 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22461 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22462 two duplicate entries.
22464 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22467 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
22469 * config/mips/mips.c (mips_truncated_op_cost): New function.
22470 (mips_rtx_costs): Adjust test for BADDU.
22471 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
22473 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
22475 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
22476 (*baddu_si): ...this new pattern.
22478 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22481 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
22483 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22485 PR middle-end/57748
22486 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
22488 (expand_expr, expand_normal): Adjust.
22489 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
22490 inner_reference_p. Use inner_reference_p to expand inner references.
22491 (store_expr): Adjust.
22492 * cfgexpand.c (expand_call_stmt): Adjust.
22494 2014-01-08 Rong Xu <xur@google.com>
22496 * gcov-io.c (gcov_var): Move from gcov-io.h.
22497 (gcov_position): Ditto.
22498 (gcov_is_error): Ditto.
22499 (gcov_rewrite): Ditto.
22500 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
22501 only part to libgcc/libgcov.h.
22503 2014-01-08 Marek Polacek <polacek@redhat.com>
22505 PR middle-end/59669
22506 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
22508 2014-01-08 Marek Polacek <polacek@redhat.com>
22511 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
22513 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22515 PR rtl-optimization/59649
22516 * stor-layout.c (get_mode_bounds): For BImode return
22517 0 and STORE_FLAG_VALUE.
22519 2014-01-08 Richard Biener <rguenther@suse.de>
22521 PR middle-end/59630
22522 * gimple.h (is_gimple_builtin_call): Remove.
22523 (gimple_builtin_call_types_compatible_p): New.
22524 (gimple_call_builtin_p): New overload.
22525 * gimple.c (is_gimple_builtin_call): Remove.
22526 (validate_call): Rename to ...
22527 (gimple_builtin_call_types_compatible_p): ... this and export. Also
22528 check return types.
22529 (validate_type): New static function.
22530 (gimple_call_builtin_p): New overload and adjust.
22531 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
22532 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
22533 (gimple_fold_stmt_to_constant_1): Likewise.
22534 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
22536 2014-01-08 Richard Biener <rguenther@suse.de>
22538 PR middle-end/59471
22539 * gimplify.c (gimplify_expr): Gimplify register-register type
22540 VIEW_CONVERT_EXPRs to separate stmts.
22542 2014-01-07 Jeff Law <law@redhat.com>
22544 PR middle-end/53623
22545 * ree.c (combine_set_extension): Handle case where source
22546 and destination registers in an extension insn are different.
22547 (combine_reaching_defs): Allow source and destination registers
22548 in extension to be different under limited circumstances.
22549 (add_removable_extension): Remove restriction that the
22550 source and destination registers in the extension are the same.
22551 (find_and_remove_re): Emit a copy from the extension's
22552 destination to its source after the defining insn if
22553 the source and destination registers are different.
22555 PR middle-end/59285
22556 * ifcvt.c (merge_if_block): If we are merging a block with more than
22557 one successor with a block with no successors, remove any BARRIER
22558 after the second block.
22560 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
22562 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
22564 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
22567 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
22568 for 14-bit register offsets when INT14_OK_STRICT is false.
22570 2014-01-07 Roland Stigge <stigge@antcom.de>
22571 Michael Meissner <meissner@linux.vnet.ibm.com>
22574 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22575 Only check TFmode for SPE constants. Don't check TImode or TDmode.
22577 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
22579 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
22582 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
22584 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
22585 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
22586 rtx is const0_rtx or not.
22588 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
22591 * target-globals.c (save_target_globals): Remove this_fn_optab
22593 * toplev.c: Include optabs.h.
22594 (target_reinit): Temporarily restore the global options if another
22595 set of options are in force.
22597 2014-01-07 Jakub Jelinek <jakub@redhat.com>
22599 PR rtl-optimization/58668
22600 * cfgcleanup.c (flow_find_cross_jump): Don't count
22601 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
22602 to determine what is counted.
22603 (flow_find_head_matching_sequence): Use active_insn_p to determine
22605 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
22607 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
22608 determine what is counted.
22610 PR tree-optimization/59643
22611 * tree-predcom.c (split_data_refs_to_components): If one dr is
22612 read and one write, determine_offset fails and the write isn't
22613 in the bad component, just put the read into the bad component.
22615 2014-01-07 Mike Stump <mikestump@comcast.net>
22616 Jakub Jelinek <jakub@redhat.com>
22619 * tree-core.h (struct tree_optimization_option): Change optabs
22620 type from unsigned char * to void *.
22621 * optabs.c (init_tree_optimization_optabs): Adjust
22622 TREE_OPTIMIZATION_OPTABS initialization.
22624 2014-01-06 Jakub Jelinek <jakub@redhat.com>
22627 * config/i386/i386.h (struct machine_function): Add
22628 no_drap_save_restore field.
22629 * config/i386/i386.c (ix86_save_reg): Use
22630 !cfun->machine->no_drap_save_restore instead of
22631 crtl->stack_realign_needed.
22632 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
22633 this function clears frame_pointer_needed. Set
22634 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
22635 and DRAP reg is needed.
22637 2014-01-06 Marek Polacek <polacek@redhat.com>
22640 * doc/implement-c.texi: Mention that other integer types are
22641 permitted as bit-field types in strictly conforming mode.
22643 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
22645 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
22646 is newly allocated.
22648 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
22650 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
22652 2014-01-06 Martin Jambor <mjambor@suse.cz>
22655 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
22657 * ipa-prop.c (ipa_print_node_params): Fix indentation.
22659 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
22663 * var-tracking.c (add_stores): Preserve the value of the source even if
22664 we don't record the store.
22666 2014-01-06 Terry Guo <terry.guo@arm.com>
22668 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
22670 2014-01-05 Iain Sandoe <iain@codesourcery.com>
22673 * config/darwin.c (darwin_function_section): Adjust return values to
22674 correspond to optimisation changes made in r206070.
22676 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
22678 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
22679 from prefetch_block tune setting.
22680 (nocona_cost): Correct size of prefetch block to 64.
22682 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
22684 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
22685 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
22686 used to save the static chain register in the computation of the offset
22687 from which the FP registers need to be restored.
22689 2014-01-04 Jakub Jelinek <jakub@redhat.com>
22691 PR tree-optimization/59519
22692 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
22693 ICE if get_current_def (current_new_name) is already non-NULL, as long
22694 as it is a phi result of some other phi in *new_exit_bb that has
22697 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
22698 or vmovdqu* for misaligned_operand.
22699 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
22700 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
22701 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
22702 aligned_mem for AVX512F masked aligned load and store builtins and for
22703 non-temporal moves.
22705 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
22707 PR tree-optimization/59651
22708 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22709 Address range for negative step should be added by TYPE_SIZE_UNIT.
22711 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
22713 * config/m68k/m68k.c (handle_move_double): Handle pushes with
22714 overlapping registers also for registers other than the stack pointer.
22716 2014-01-03 Marek Polacek <polacek@redhat.com>
22719 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22722 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22725 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22728 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22729 (push splitter): Use <P:MODE_SIZE> instead of
22730 GET_MODE_SIZE (<P:MODE>mode).
22731 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22732 (mov -1, reg peephole2): Likewise.
22733 * config/i386/sse.md (*mov<mode>_internal,
22734 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22735 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22736 *<code><mode>3, *andnot<mode>3<mask_name>,
22737 <mask_codefor><code><mode>3<mask_name>): Likewise.
22738 * config/i386/subst.md (mask_mode512bit_condition,
22739 sd_mask_mode512bit_condition): Likewise.
22741 2014-01-02 Xinliang David Li <davidxl@google.com>
22743 PR tree-optimization/59303
22744 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22745 (dump_predicates): Better output format.
22746 (pred_equal_p): New function.
22747 (is_neq_relop_p): Ditto.
22748 (is_neq_zero_form_p): Ditto.
22749 (pred_expr_equal_p): Ditto.
22750 (pred_neg_p): Ditto.
22751 (simplify_pred): Ditto.
22752 (simplify_preds_2): Ditto.
22753 (simplify_preds_3): Ditto.
22754 (simplify_preds_4): Ditto.
22755 (simplify_preds): Ditto.
22756 (push_pred): Ditto.
22757 (push_to_worklist): Ditto.
22758 (get_pred_info_from_cmp): Ditto.
22759 (is_degenerated_phi): Ditto.
22760 (normalize_one_pred_1): Ditto.
22761 (normalize_one_pred): Ditto.
22762 (normalize_one_pred_chain): Ditto.
22763 (normalize_preds): Ditto.
22764 (normalize_cond_1): Remove function.
22765 (normalize_cond): Ditto.
22766 (is_gcond_subset_of): Ditto.
22767 (is_subset_of_any): Ditto.
22768 (is_or_set_subset_of): Ditto.
22769 (is_and_set_subset_of): Ditto.
22770 (is_norm_cond_subset_of): Ditto.
22771 (pred_chain_length_cmp): Ditto.
22772 (convert_control_dep_chain_into_preds): Type change.
22773 (find_predicates): Ditto.
22774 (find_def_preds): Ditto.
22775 (destroy_predicates_vecs): Ditto.
22776 (find_matching_predicates_in_rest_chains): Ditto.
22777 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22778 (is_pred_expr_subset): Ditto.
22779 (is_pred_chain_subset_of): Ditto.
22780 (is_included_in): Ditto.
22781 (is_superset_of): Ditto.
22783 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22785 Update copyright years.
22787 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22789 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22790 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22791 config/arc/arc.md, config/arc/arc.opt,
22792 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22793 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22794 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22795 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22796 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22797 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22798 vtable-verify.c, vtable-verify.h: Use the standard form for the
22801 2014-01-02 Tobias Burnus <burnus@net-b.de>
22803 * gcc.c (process_command): Update copyright notice dates.
22804 * gcov-dump.c: Ditto.
22806 * doc/cpp.texi: Bump @copying's copyright year.
22807 * doc/cppinternals.texi: Ditto.
22808 * doc/gcc.texi: Ditto.
22809 * doc/gccint.texi: Ditto.
22810 * doc/gcov.texi: Ditto.
22811 * doc/install.texi: Ditto.
22812 * doc/invoke.texi: Ditto.
22814 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22816 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22818 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22820 * config/i386/sse.md (*mov<mode>_internal): Guard
22821 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22823 PR rtl-optimization/59647
22824 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22825 new_rtx into UNSIGNED_FLOAT rtxes.
22827 Copyright (C) 2014 Free Software Foundation, Inc.
22829 Copying and distribution of this file, with or without modification,
22830 are permitted in any medium without royalty provided the copyright
22831 notice and this notice are preserved.