1 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Anna Tikhonova <anna.tikhonova@intel.com>
4 Ilya Tocar <ilya.tocar@intel.com>
5 Andrey Turetskiy <andrey.turetskiy@intel.com>
6 Ilya Verbin <ilya.verbin@intel.com>
7 Kirill Yukhin <kirill.yukhin@intel.com>
8 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11 (define_mode_iterator VI8_AVX512VL): New.
12 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
14 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
16 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
17 (define_mode_iterator V48_AVX512VL): New.
18 (define_mode_iterator V12_AVX512VL): Ditto.
19 (define_insn <avx512>_load<mode>_mask): Split into two similar
20 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
21 Refactor output template.
22 (define_insn "<avx512>_store<mode>_mask"): Ditto.
24 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26 * cprop.c (struct occr): Strengthen field "insn" from rtx to
28 (reg_available_p): Likewise for param "insn".
29 (insert_set_in_table): Likewise.
30 (hash_scan_set): Likewise.
31 (hash_scan_insn): Likewise.
32 (make_set_regs_unavailable): Likewise.
33 (compute_hash_table_work): Likewise for local "insn".
34 (reg_not_set_p): Strengthen param "insn" from const_rtx to
36 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
37 (try_replace_reg): Likewise.
38 (find_avail_set): Likewise.
39 (cprop_jump): Likewise for params "setcc", "jump".
40 (constprop_register): Likewise for param "insn".
41 (cprop_insn): Likewise.
42 (do_local_cprop): Likewise.
43 (local_cprop_pass): Likewise for local "insn".
44 (bypass_block): Likewise for params "setcc" and "jump".
45 (bypass_conditional_jumps): Likewise for locals "setcc" and
47 (one_cprop_pass): Likewise for local "insn".
49 2014-08-22 David Malcolm <dmalcolm@redhat.com>
51 * compare-elim.c (struct comparison_use): Strengthen field "insn"
52 from rtx to rtx_insn *.
53 (struct comparison): Likewise, also for field "prev_clobber".
54 (conforming_compare): Likewise for param "insn".
55 (arithmetic_flags_clobber_p): Likewise.
56 (find_flags_uses_in_insn): Likewise.
57 (find_comparison_dom_walker::before_dom_children): Likewise for
58 locals "insn", "next", "last_clobber".
59 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
61 2014-08-22 David Malcolm <dmalcolm@redhat.com>
63 * combine-stack-adj.c (struct csa_reflist): Strengthen field
64 "insn" from rtx to rtx_insn *.
65 (single_set_for_csa): Likewise for param "insn".
66 (record_one_stack_ref): Likewise.
67 (try_apply_stack_adjustment): Likewise.
68 (struct record_stack_refs_data): Likewise for field "insn".
69 (maybe_move_args_size_note): Likewise for params "last" and "insn".
70 (prev_active_insn_bb): Likewise for return type and param "insn".
71 (next_active_insn_bb): Likewise.
72 (force_move_args_size_note): Likewise for params "prev" and "last"
73 and locals "test", "next_candidate", "prev_candidate".
74 (combine_stack_adjustments_for_block): Strengthen locals
75 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
78 2014-08-21 David Malcolm <dmalcolm@redhat.com>
80 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
81 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
82 (subst_insn): Likewise for this variable.
83 (added_links_insn): Likewise.
84 (struct insn_link): Likewise for field "insn".
85 (alloc_insn_link): Likewise for param "insn".
86 (struct undobuf): Likewise for field "other_insn".
87 (find_single_use): Likewise for param "insn" and local "next".
88 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
89 (delete_noop_moves): Likewise for locals "insn", "next".
90 (create_log_links): Likewise for locals "insn", "use_insn".
91 Strengthen local "next_use" from rtx * to rtx_insn **.
92 (insn_a_feeds_b): Likewise for params "a", "b".
93 (combine_instructions): Likewise for param "f" and locals "insn",
94 "next", "prev", "first", "last_combined_insn", "link", "link1",
95 "temp". Replace use of NULL_RTX with NULL when referring to
97 (setup_incoming_promotions): Likewise for param "first"
98 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
99 (can_combine_p): Likewise for params "insn", "i3", "pred",
100 "pred2", "succ", "succ2" and for local "p".
101 (combinable_i3pat): Likewise for param "i3".
102 (cant_combine_insn_p): Likewise for param "insn".
103 (likely_spilled_retval_p): Likewise.
104 (adjust_for_new_dest): Likewise.
105 (update_cfg_for_uncondjump): Likewise, also for local "insn".
106 (try_combine): Likewise for return type and for params "i3", "i2",
107 "i1", "i0", "last_combined_insn", and for locals "insn",
108 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
109 "i0_insn". Eliminate local "tem" in favor of new locals
110 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
111 checked cast for now to rtx_insn * on the return type of
112 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
114 (find_split_point): Strengthen param "insn" from rtx to
116 (simplify_set): Likewise for local "other_insn".
117 (recog_for_combine): Likewise for param "insn".
118 (record_value_for_reg): Likewise.
119 (record_dead_and_set_regs_1): Likewise for local
121 (record_dead_and_set_regs): Likewise for param "insn".
122 (record_promoted_value): Likewise.
123 (check_promoted_subreg): Likewise.
124 (get_last_value_validate): Likewise.
125 (reg_dead_at_p): Likewise.
126 (move_deaths): Likewise for param "to_insn".
127 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
128 and locals "place", "place2", "cc0_setter". Eliminate local "tem
129 in favor of new locals "tem_note" and "tem_insn", the latter being
131 (distribute_links): Strengthen locals "place", "insn" from rtx to
134 2014-08-21 David Malcolm <dmalcolm@redhat.com>
136 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
138 (can_delete_label_p): Require a const rtx_code_label * rather than
140 (delete_insn): Add checked cast to rtx_code_label * when we know
141 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
143 (delete_insn_chain): Strengthen locals "prev" and "current" from
144 rtx to rtx_insn *. Add a checked cast when assigning from
145 "finish" (strengthening the params will come later). Add a
146 checked cast to rtx_note * in region where we know
148 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
150 (compute_bb_for_insn): Likewise.
151 (free_bb_for_insn): Likewise for local "insn".
152 (compute_bb_for_insn): Likewise.
153 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
154 local "insn" from rtx to rtx_insn *
155 (flow_active_insn_p): Require a const rtx_insn * rather than a
157 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
159 (can_fallthru): Likewise for locals "insn" and "insn2".
160 (bb_note): Likewise for local "note".
161 (first_insn_after_basic_block_note): Likewise for local "note" and
163 (rtl_split_block): Likewise for locals "insn" and "next".
164 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
166 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
167 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
169 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
170 them), "kill_from", "barrier", "new_insn".
171 (patch_jump_insn): Likewise for params "insn", "old_label".
172 (redirect_branch_edge): Likewise for locals "old_label", "insn".
173 (force_nonfallthru_and_redirect): Likewise for locals "insn",
174 "old_label", "new_label".
175 (rtl_tidy_fallthru_edge): Likewise for local "q".
176 (rtl_split_edge): Likewise for locals "before", "last".
177 (commit_one_edge_insertion): Likewise for locals "before",
178 "after", "insns", "tmp", "last", adding a checked cast where
180 (commit_edge_insertions): Likewise.
181 (rtl_dump_bb): Likewise for locals "insn", "last".
182 (print_rtl_with_bb): Likewise for local "x".
183 (rtl_verify_bb_insns): Likewise for local "x".
184 (rtl_verify_bb_pointers): Likewise for local "insn".
185 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
187 (rtl_verify_fallthru): Likewise for local "insn".
188 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
189 (purge_dead_edges): Likewise for local "insn".
190 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
191 (skip_insns_after_block): Likewise for return type and for locals
192 "insn", "last_insn", "next_head", "prev".
193 (record_effective_endpoints): Likewise for locals "next_insn",
195 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
196 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
197 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
198 (duplicate_insn_chain): For now, add checked cast from rtx to
199 rtx_insn * when returning insn.
200 (cfg_layout_duplicate_bb): Likewise for local "insn".
201 (cfg_layout_delete_block): Likewise for locals "insn", "next",
203 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
204 (rtl_block_empty_p): Likewise.
205 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
206 "split_point", "last".
207 (rtl_block_ends_with_call_p): Likewise for local "insn".
208 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
210 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
211 "split_at_insn" from rtx to rtx_insn *.
212 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
213 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
215 (rtl_account_profile_record): Likewise.
217 2014-08-21 David Malcolm <dmalcolm@redhat.com>
219 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
221 (average_num_loop_insns): Likewise.
222 (init_set_costs): Likewise for local "seq".
223 (seq_cost): Likewise for param "seq", from const_rtx to const
226 2014-08-21 David Malcolm <dmalcolm@redhat.com>
228 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
231 2014-08-21 David Malcolm <dmalcolm@redhat.com>
233 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
234 "f1" and "f2" from rtx * to rtx_insn **.
235 (flow_find_head_matching_sequence): Likewise.
237 * cfgcleanup.c (try_simplify_condjump): Strengthen local
238 "cbranch_insn" from rtx to rtx_insn *.
239 (thread_jump): Likewise for local "insn".
240 (try_forward_edges): Likewise for local "last".
241 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
242 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
244 (can_replace_by): Likewise for params "i1", "i2".
245 (old_insns_match_p): Likewise.
246 (merge_notes): Likewise.
247 (walk_to_nondebug_insn): Likewise for param "i1".
248 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
249 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
250 "afterlast1", "afterlast2" from rtx to rtx_insn *.
251 (flow_find_head_matching_sequence): Strengthen params "f1" and
252 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
253 "last1", "last2", "beforelast1", "beforelast2" from rtx to
255 (outgoing_edges_match): Likewise for locals "last1", "last2".
256 (try_crossjump_to_edge): Likewise for local "insn".
257 Replace call to for_each_rtx with for_each_rtx_in_insn.
259 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
260 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
261 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
262 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
263 (try_optimize_cfg): Strengthen local "last" from rtx to
265 (delete_dead_jumptables): Likewise for locals "insn", "next",
268 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
269 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
270 "rtx else_first_tail", to reflect the basic-block.h changes above.
272 2014-08-21 David Malcolm <dmalcolm@redhat.com>
274 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
276 (purge_dead_tablejump_edges): Likewise.
277 (find_bb_boundaries): Likewise for locals "insn", "end",
278 "flow_transfer_insn".
280 2014-08-21 David Malcolm <dmalcolm@redhat.com>
282 * caller-save.c (save_call_clobbered_regs): Strengthen locals
283 "ins" and "prev" from rtx to rtx_insn *.
285 2014-08-21 David Malcolm <dmalcolm@redhat.com>
287 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
289 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
290 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
292 (load_register_parameters): Likewise for local "before_arg".
293 (check_sibcall_argument_overlap): Likewise for param "insn".
294 (expand_call): Likewise for locals "normal_call_insns",
295 "tail_call_insns", "insns", "before_call", "after_args",
296 "before_arg", "last", "prev". Strengthen one of the "last" from
297 rtx to rtx_call_insn *.
298 (fixup_tail_calls): Strengthen local "insn" from rtx to
300 (emit_library_call_value_1): Likewise for locals "before_call" and
303 2014-08-21 David Malcolm <dmalcolm@redhat.com>
305 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
306 and "last" from rtx to rtx_insn *.
307 (expand_builtin_nonlocal_goto): Likewise for local "insn".
308 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
310 (expand_errno_check): Strengthen local "lab" from rtx to
312 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
314 (expand_builtin_mathfn_2): Likewise.
315 (expand_builtin_mathfn_ternary): Likewise.
316 (expand_builtin_mathfn_3): Likewise.
317 (expand_builtin_interclass_mathfn): Likewise for local "last".
318 (expand_builtin_int_roundingfn): Likewise for local "insns".
319 (expand_builtin_int_roundingfn_2): Likewise.
320 (expand_builtin_strlen): Likewise for local "before_strlen".
321 (expand_builtin_strncmp): Likewise for local "seq".
322 (expand_builtin_signbit): Likewise for local "last".
323 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
324 from rtx to rtx_code_label *.
325 (expand_stack_restore): Strengthen local "prev" from rtx to
328 2014-08-21 David Malcolm <dmalcolm@redhat.com>
330 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
332 (struct btr_def_s): Likewise.
333 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
335 (add_btr_def): Likewise.
336 (new_btr_user): Likewise.
337 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
339 (link_btr_uses): Likewise.
340 (move_btr_def): Likewise for locals "insp", "old_insn",
341 "new_insn". Add checked cast to rtx_insn * for now on result of
343 (can_move_up): Strengthen param "insn" from const_rtx to
346 2014-08-21 David Malcolm <dmalcolm@redhat.com>
348 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
350 (get_uncond_jump_length): Likewise for locals "label", "jump".
351 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
353 (add_labels_and_missing_jumps): Likewise for local "new_jump".
354 (fix_up_fall_thru_edges): Likewise for local "old_jump".
355 (find_jump_block): Likewise for local "insn".
356 (fix_crossing_conditional_branches): Likewise for locals
357 "old_jump", "new_jump".
358 (fix_crossing_unconditional_branches): Likewise for locals
359 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
360 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
362 2014-08-21 David Malcolm <dmalcolm@redhat.com>
364 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
366 (struct mem_insn): Likewise for field "insn".
367 (reg_next_use): Strengthen from rtx * to rtx_insn **.
368 (reg_next_inc_use): Likewise.
369 (reg_next_def): Likewise.
370 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
371 from rtx to rtx_insn *.
372 (move_insn_before): Likewise for param "next_insn" and local "insns".
373 (attempt_change): Likewise for local "mov_insn".
374 (try_merge): Likewise for param "last_insn".
375 (get_next_ref): Likewise for return type and local "insn".
376 Strengthen param "next_array" from rtx * to rtx_insn **.
377 (parse_add_or_inc): Strengthen param "insn" from rtx to
379 (find_inc): Likewise for locals "insn" and "other_insn" (three of
381 (merge_in_block): Likewise for locals "insn", "curr",
383 (pass_inc_dec::execute): Update allocations of the arrays to
384 reflect the stronger types.
386 2014-08-21 David Malcolm <dmalcolm@redhat.com>
388 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
389 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
390 from rtx to rtx_code_label *.
392 2014-08-21 David Malcolm <dmalcolm@redhat.com>
394 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
397 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
399 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
400 generated a warning and prevented bootstrapping the compiler.
402 2014-08-21 David Malcolm <dmalcolm@redhat.com>
404 * rtl.h (delete_related_insns): Strengthen return type from rtx to
407 * jump.c (delete_related_insns): Likewise, also for locals "next"
410 2014-08-21 David Malcolm <dmalcolm@redhat.com>
412 * genautomata.c (output_internal_insn_latency_func): When writing
413 the function "internal_insn_latency" to insn-automata.c,
414 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
415 allowing the optional guard function of (define_bypass) clauses to
416 expect a pair of rtx_insn *, rather than a pair of rtx.
417 (output_insn_latency_func): When writing the function
418 "insn_latency", add an "uncast_" prefix to params "insn" and
419 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
420 using checked casts from the params, thus enabling the above
421 change to the generated "internal_insn_latency" function.
423 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
425 PR tree-optimization/62091
426 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
427 handle correctly arrays.
428 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
430 (record_known_type): Walk into inner type.
431 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
432 condition on no type changes.
434 2014-08-21 David Malcolm <dmalcolm@redhat.com>
436 * genattrtab.c (write_attr_get): Within the generated get_attr_
437 functions, rename param "insn" to "uncast_insn" and reintroduce
438 "insn" as an local rtx_insn * using a checked cast, so that "insn"
439 is an rtx_insn * within insn-attrtab.c
441 2014-08-21 David Malcolm <dmalcolm@redhat.com>
443 * output.h (peephole): Strengthen return type from rtx to
445 * rtl.h (delete_for_peephole): Likewise for both params.
446 * genpeep.c (main): In generated "peephole" function, strengthen
447 return type and local "insn" from rtx to rtx_insn *. For now,
448 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
449 rtx_insn *, with a checked cast.
450 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
451 locals "insn", "next", "prev" from rtx to rtx_insn *.
453 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
455 PR tree-optimization/62112
456 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
457 * gimple-iterator.h (gsi_replace): Return bool.
458 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
459 moved from ref_may_alias_global_p.
460 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
462 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
463 (stmt_kills_ref_p_1): Rename...
464 (stmt_kills_ref_p): ... to this.
465 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
466 stmt_kills_ref_p): Declare.
467 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
468 Move the self-assignment case...
469 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
471 2014-08-21 David Malcolm <dmalcolm@redhat.com>
473 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
475 * emit-rtl.c (try_split): Likewise, also for locals "before" and
476 "after". For now, don't strengthen param "trial", which requires
477 adding checked casts when returning it.
479 2014-08-21 David Malcolm <dmalcolm@redhat.com>
481 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
482 "label" from rtx to rtx_code_label *. Strengthen param 1 of
483 "var_location" hook from rtx to rtx_insn *.
484 (debug_nothing_rtx): Delete in favor of...
485 (debug_nothing_rtx_code_label): New prototype.
486 (debug_nothing_rtx_rtx): Delete unused prototype.
487 (debug_nothing_rtx_insn): New prototype.
489 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
490 invoking debug_hooks->var_location (in two places, one in a NOTE
491 case of a switch statement, the other guarded by a CALL_P
492 conditional. Add checked cast to rtx_code_label * when invoking
493 debug_hooks->label (within CODE_LABEL case of switch statement).
495 * dbxout.c (dbx_debug_hooks): Update "label" hook from
496 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
497 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
498 (xcoff_debug_hooks): Likewise.
499 * debug.c (do_nothing_debug_hooks): Likewise.
500 (debug_nothing_rtx): Delete in favor of...
501 (debug_nothing_rtx_insn): New function.
502 (debug_nothing_rtx_rtx): Delete unused function.
503 (debug_nothing_rtx_code_label): New function.
504 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
505 debug_nothing_rtx to debug_nothing_rtx_code_label.
506 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
508 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
509 debug_nothing_rtx to debug_nothing_rtx_insn.
510 (sdbout_label): Strengthen param "insn" from rtx to
512 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
513 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
514 "var_location" hook from debug_nothing_rtx to
515 debug_nothing_rtx_insn.
517 2014-08-21 David Malcolm <dmalcolm@redhat.com>
519 * recog.h (insn_output_fn): Update this function typedef to match
520 the changes below to the generated output functions, strengthening
521 the 2nd param from rtx to rtx_insn *.
523 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
524 insn when invoking an output function, to match the new signature
525 of insn_output_fn with a stronger second param.
527 * genconditions.c (write_header): In the generated code for
528 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
529 to match the other changes in this patch.
531 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
532 the generated "gen_" functions from rtx to rtx_insn * within their
535 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
536 the subfunctions within the generated "recog_", "split", "peephole2"
537 function trees from rtx to rtx_insn *. For now, the top-level
538 generated functions ("recog", "split", "peephole2") continue to
539 take a plain rtx for "insn", to avoid introducing dependencies on
540 other patches. Rename this 2nd param from "insn" to
541 "uncast_insn", and reintroduce "insn" as a local variable of type
542 rtx_insn *, initialized at the top of the generated function with
543 a checked cast on "uncast_insn".
544 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
545 the generated "gen_" functions from rtx to rtx_insn * within their
548 * genoutput.c (process_template): Strengthen the 2nd param within
549 the generated "output_" functions "insn" from rtx to rtx_insn *.
551 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
553 * tree-profile.c (tree_profiling): Skip external functions
554 when doing coverage instrumentation.
555 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
557 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
559 * config/rs6000/altivec.h (vec_cpsgn): New #define.
560 (vec_mergee): Likewise.
561 (vec_mergeo): Likewise.
562 (vec_cntlz): Likewise.
563 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
564 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
565 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
567 * doc/extend.texi: Document various forms of vec_cpsgn,
568 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
569 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
570 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
571 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
572 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
574 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
576 * config/rs6000/rs6000.c (context.h): New include.
577 (tree-pass.h): Likewise.
578 (make_pass_analyze_swaps): New decl.
579 (rs6000_option_override): Register pass_analyze_swaps.
580 (swap_web_entry): New subsclass of web_entry_base (df.h).
581 (special_handling_values): New enum.
582 (union_defs): New function.
583 (union_uses): Likewise.
584 (insn_is_load_p): Likewise.
585 (insn_is_store_p): Likewise.
586 (insn_is_swap_p): Likewise.
587 (rtx_is_swappable_p): Likewise.
588 (insn_is_swappable_p): Likewise.
589 (chain_purpose): New enum.
590 (chain_contains_only_swaps): New function.
591 (mark_swaps_for_removal): Likewise.
592 (swap_const_vector_halves): Likewise.
593 (adjust_subreg_index): Likewise.
594 (permute_load): Likewise.
595 (permute_store): Likewise.
596 (handle_special_swappables): Likewise.
597 (replace_swap_with_copy): Likewise.
598 (dump_swap_insn_table): Likewise.
599 (rs6000_analyze_swaps): Likewise.
600 (pass_data_analyze_swaps): New pass_data.
601 (pass_analyze_swaps): New rtl_opt_pass.
602 (make_pass_analyze_swaps): New function.
603 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
605 2014-08-21 David Malcolm <dmalcolm@redhat.com>
607 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
608 type from rtx to rtx_insn *.
609 (create_copy_of_insn_rtx): Likewise.
610 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
611 (create_copy_of_insn_rtx): Likewise, also for local "res".
613 2014-08-21 David Malcolm <dmalcolm@redhat.com>
615 * rtl.h (find_first_parameter_load): Strengthen return type from
617 * rtlanal.c (find_first_parameter_load): Strengthen return type
618 from rtx to rtx_insn *. Add checked cast for now, to postpone
619 strengthening the params.
621 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
624 * diagnostic.c: Set default caret.
625 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
627 * diagnostic.h (struct diagnostic_context):
629 2014-08-21 David Malcolm <dmalcolm@redhat.com>
631 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
632 (sel_bb_head): Strengthen return type insn_t (currently just an
634 (sel_bb_end): Likewise.
636 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
637 (sel_bb_head): Strengthen return type and local "head" from
638 insn_t (currently just an rtx) to rtx_insn *.
639 (sel_bb_end): Likewise for return type.
640 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
643 2014-08-21 David Malcolm <dmalcolm@redhat.com>
645 * basic-block.h (get_last_bb_insn): Strengthen return type from
647 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
650 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
653 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
655 (diagnostic_report_diagnostic): ... from here.
656 * toplev.c (general_init): Move code to c-family.
658 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
660 * df.h (web_entry_base): Replace existing struct web_entry with a
661 new class web_entry_base with only the predecessor member.
662 (unionfind_root): Remove declaration and move to class member.
663 (unionfind_union): Remove declaration and move to friend
665 (union_defs): Remove declaration.
666 * web.c (web_entry_base::unionfind_root): Modify to be member
667 function and adjust accessors.
668 (unionfind_union): Modify to be friend function and adjust
670 (web_entry): New subclass of web_entry_base containing the reg
672 (union_match_dups): Modify for struct -> class changes.
673 (union_defs): Likewise.
674 (entry_register): Likewise.
675 (pass_web::execute): Likewise.
677 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
679 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
680 builtin define __VEC_ELEMENT_REG_ORDER__.
682 2014-08-20 Martin Jambor <mjambor@suse.cz>
683 Wei Mi <wmi@google.com>
687 * tree-ssa-operands.c (update_stmt_operands): Remove
688 MODIFIED_NORETURN_CALLS.
689 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
690 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
691 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
692 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
693 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
694 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
695 (gimple_call_set_ctrl_altering): New func.
696 (gimple_call_ctrl_altering_p): Ditto.
697 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
698 (make_blocks): Use gimple_call_initialize_ctrl_altering.
699 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
700 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
701 remove MODIFIED_NORETURN_CALLS.
703 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
705 * coverage.c (coverage_compute_profile_id): Return non-0;
706 also handle symbols with unique name.
707 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
709 2014-08-20 Steve Ellcey <sellcey@mips.com>
712 * doc/sourcebuild.texi (non_strict_align): New.
714 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
716 * cgraphunit.c (ipa_passes, compile): Reshedule
717 symtab_remove_unreachable_nodes passes; update comments.
718 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
719 TODO_remove_functions before the pass; the functions ought to be
721 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
722 TODO_remove_functions.
723 * passes.c (pass_data_early_local_passes): Do not schedule function
725 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
727 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
730 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
731 before setting the option.
732 * diagnostic.c (diagnostic_classify_diagnostic): Record
735 2014-08-20 Richard Biener <rguenther@suse.de>
738 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
739 to build uint{16,32,64}_type_node.
741 2014-08-20 Terry Guo <terry.guo@arm.com>
743 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
744 with immediate_operand.
746 2014-08-20 David Malcolm <dmalcolm@redhat.com>
748 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
749 "insn" from an as_a to a safe_as_a, for the case when "insn" is
752 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
754 PR preprocessor/51303
755 * incpath.c (remove_duplicates): Use cpp_warning.
757 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
761 * doc/options.texi (CPP): Document it.
762 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
763 * optc-gen.awk: Handle CPP.
764 * opth-gen.awk: Likewise.
766 2014-08-19 David Malcolm <dmalcolm@redhat.com>
768 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
770 (duplicate_insn_chain): Likewise.
771 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
772 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
773 checked cast for now (until we can strengthen the params in the
775 (duplicate_insn_chain): Likewise.
777 2014-08-19 David Malcolm <dmalcolm@redhat.com>
779 * rtl.h (next_cc0_user): Strengthen return type from rtx to
781 (prev_cc0_setter): Likewise.
783 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
784 rtx_insn *, adding checked casts for now as necessary.
785 (prev_cc0_setter): Likewise.
787 2014-08-19 David Malcolm <dmalcolm@redhat.com>
789 * expr.h (emit_move_insn): Strengthen return type from rtx to
791 (emit_move_insn_1): Likewise.
792 (emit_move_complex_push): Likewise.
793 (emit_move_complex_parts): Likewise.
795 * expr.c (emit_move_via_integer): Strengthen return type from rtx
796 to rtx_insn *. Replace use of NULL_RTX with NULL when working
798 (emit_move_complex_push): Strengthen return type from rtx to
800 (emit_move_complex): Likewise, also for local "ret".
801 (emit_move_ccmode): Likewise.
802 (emit_move_multi_word): Likewise for return type and locals
804 (emit_move_insn_1): Likewise for return type and locals "result",
806 (emit_move_insn): Likewise for return type and local "last_insn".
807 (compress_float_constant): Likewise.
809 2014-08-19 David Malcolm <dmalcolm@redhat.com>
811 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
812 from rtx to rtx_insn *.
814 * rtl.h (emit_insn_before): Likewise.
815 (emit_insn_before_noloc): Likewise.
816 (emit_insn_before_setloc): Likewise.
817 (emit_jump_insn_before): Likewise.
818 (emit_jump_insn_before_noloc): Likewise.
819 (emit_jump_insn_before_setloc): Likewise.
820 (emit_call_insn_before): Likewise.
821 (emit_call_insn_before_noloc): Likewise.
822 (emit_call_insn_before_setloc): Likewise.
823 (emit_debug_insn_before): Likewise.
824 (emit_debug_insn_before_noloc): Likewise.
825 (emit_debug_insn_before_setloc): Likewise.
826 (emit_label_before): Likewise.
827 (emit_insn_after): Likewise.
828 (emit_insn_after_noloc): Likewise.
829 (emit_insn_after_setloc): Likewise.
830 (emit_jump_insn_after): Likewise.
831 (emit_jump_insn_after_noloc): Likewise.
832 (emit_jump_insn_after_setloc): Likewise.
833 (emit_call_insn_after): Likewise.
834 (emit_call_insn_after_noloc): Likewise.
835 (emit_call_insn_after_setloc): Likewise.
836 (emit_debug_insn_after): Likewise.
837 (emit_debug_insn_after_noloc): Likewise.
838 (emit_debug_insn_after_setloc): Likewise.
839 (emit_label_after): Likewise.
840 (emit_insn): Likewise.
841 (emit_debug_insn): Likewise.
842 (emit_jump_insn): Likewise.
843 (emit_call_insn): Likewise.
844 (emit_label): Likewise.
845 (gen_clobber): Likewise.
846 (emit_clobber): Likewise.
848 (emit_use): Likewise.
851 (emit_barrier_before): Strengthen return type from rtx to
853 (emit_barrier_after): Likewise.
854 (emit_barrier): Likewise.
856 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
857 from rtx to rtx_insn *. Add checked casts for now when converting
858 "last" from rtx to rtx_insn *.
859 (emit_insn_before_noloc): Likewise for return type.
860 (emit_jump_insn_before_noloc): Likewise.
861 (emit_call_insn_before_noloc): Likewise.
862 (emit_debug_insn_before_noloc): Likewise.
863 (emit_barrier_before): Strengthen return type and local "insn"
864 from rtx to rtx_barrier *.
865 (emit_label_before): Strengthen return type from rtx to
866 rtx_insn *. Add checked cast for now when returning param
867 (emit_pattern_after_noloc): Strengthen return type from rtx to
868 rtx_insn *. Add checked casts for now when converting "last" from
870 (emit_insn_after_noloc): Strengthen return type from rtx to
872 (emit_jump_insn_after_noloc): Likewise.
873 (emit_call_insn_after_noloc): Likewise.
874 (emit_debug_insn_after_noloc): Likewise.
875 (emit_barrier_after): Strengthen return type from rtx to
877 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
878 Add checked cast for now when converting "label" from rtx to
880 (emit_pattern_after_setloc): Strengthen return type from rtx to
881 rtx_insn *. Add checked casts for now when converting "last" from
883 (emit_pattern_after): Strengthen return type from rtx to
885 (emit_insn_after_setloc): Likewise.
886 (emit_insn_after): Likewise.
887 (emit_jump_insn_after_setloc): Likewise.
888 (emit_jump_insn_after): Likewise.
889 (emit_call_insn_after_setloc): Likewise.
890 (emit_call_insn_after): Likewise.
891 (emit_debug_insn_after_setloc): Likewise.
892 (emit_debug_insn_after): Likewise.
893 (emit_pattern_before_setloc): Likewise. Add checked casts for now
894 when converting "last" from rtx to rtx_insn *.
895 (emit_pattern_before): Strengthen return type from rtx to
897 (emit_insn_before_setloc): Likewise.
898 (emit_insn_before): Likewise.
899 (emit_jump_insn_before_setloc): Likewise.
900 (emit_jump_insn_before): Likewise.
901 (emit_call_insn_before_setloc): Likewise.
902 (emit_call_insn_before): Likewise.
903 (emit_debug_insn_before_setloc): Likewise.
904 (emit_debug_insn_before): Likewise.
905 (emit_insn): Strengthen return type and locals "last", "insn",
906 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
907 within cases where we know we have an insn.
908 (emit_debug_insn): Likewise.
909 (emit_jump_insn): Likewise.
910 (emit_call_insn): Strengthen return type and local "insn" from rtx
912 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
913 a checked cast to rtx_insn * for now on "label".
914 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
915 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
916 (emit_use): Likewise.
917 (gen_use): Likewise, also for local "seq".
918 (emit): Likewise for return type and local "insn".
919 (rtx_insn): Likewise for return type and local "new_rtx".
921 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
922 from rtx to rtx_barrier *.
924 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
925 changed return type from rtx to rtx_insn *, we must update
926 "emit_fn" type, and this in turn means updating...
927 (frame_insn): ...this. Strengthen return type from rtx to
928 rtx_insn *. Introduce a new local "insn" of the appropriate type.
930 2014-08-19 David Malcolm <dmalcolm@redhat.com>
932 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
933 rtx to rtx_jump_table_data *. Also for local.
934 * rtl.h (emit_jump_table_data): Likewise.
936 2014-08-19 David Malcolm <dmalcolm@redhat.com>
938 * basic-block.h (create_basic_block_structure): Strengthen third
939 param "bb_note" from rtx to rtx_note *.
940 * rtl.h (emit_note_before): Strengthen return type from rtx to
942 (emit_note_after): Likewise.
943 (emit_note): Likewise.
944 (emit_note_copy): Likewise. Also, strengthen param similarly.
945 * function.h (struct rtl_data): Strengthen field
946 "x_stack_check_probe_note" from rtx to rtx_note *.
948 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
949 from rtx to rtx_note *.
950 * cfgrtl.c (create_basic_block_structure): Strengthen third param
951 "bb_note" from rtx to rtx_note *.
952 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
953 when calling emit_note_copy.
954 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
956 (emit_note_after): Likewise.
957 (emit_note_before): Likewise.
958 (emit_note_copy): Likewise. Also, strengthen param similarly.
959 (emit_note): Likewise.
960 * except.c (emit_note_eh_region_end): Likewise for return type.
961 Strengthen local "next" from rtx to rtx_insn *.
962 (convert_to_eh_region_ranges): Strengthen local "note"
963 from rtx to rtx_note *.
964 * final.c (change_scope): Likewise.
965 (reemit_insn_block_notes): Likewise, for both locals named "note".
966 Also, strengthen local "insn" from rtx to rtx_insn *.
967 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
969 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
970 strengthen local "seq" from rtx to rtx_insn *.
971 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
973 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
975 (get_bb_note_from_pool): Strengthen return type from rtx to
977 (sel_create_basic_block): Strengthen local "new_bb_note" from
978 insn_t to rtx_note *.
979 * var-tracking.c (emit_note_insn_var_location): Strengthen local
980 "note" from rtx to rtx_note *.
981 (emit_notes_in_bb): Likewise.
983 2014-08-19 David Malcolm <dmalcolm@redhat.com>
985 * function.h (struct rtl_data): Strengthen field
986 "x_parm_birth_insn" from rtx to rtx_insn *.
987 * function.c (struct assign_parm_data_all): Strengthen fields
988 "first_conversion_insn" and "last_conversion_insn" from rtx to
991 2014-08-19 David Malcolm <dmalcolm@redhat.com>
993 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
994 to rtx_insn *; also for local "var_end_seq".
995 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
996 (maybe_cleanup_end_of_block): Likewise for param "last" and local
998 (expand_gimple_cond): Likewise for locals "last2" and "last".
999 (mark_transaction_restart_calls): Likewise for local "insn".
1000 (expand_gimple_stmt): Likewise for return type and locals "last"
1002 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
1003 (avoid_complex_debug_insns): Likewise for param "insn".
1004 (expand_debug_locations): Likewise for locals "insn", "last",
1005 "prev_insn" and "insn2".
1006 (expand_gimple_basic_block): Likewise for local "last".
1007 (construct_exit_block): Likewise for locals "head", "end",
1009 (pass_expand::execute): Likewise for locals "var_seq",
1010 "var_ret_seq", "next".
1012 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1014 * asan.h (asan_emit_stack_protection): Strengthen return type from
1016 * asan.c (asan_emit_stack_protection): Likewise. Add local
1017 "insns" to hold the return value.
1019 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1021 * basic-block.h (bb_note): Strengthen return type from rtx to
1023 * sched-int.h (bb_note): Likewise.
1024 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
1026 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1028 * rtl.h (make_insn_raw): Strengthen return type from rtx to
1031 * emit-rtl.c (make_insn_raw): Strengthen return type and local
1032 "insn" from rtx to rtx_insn *.
1033 (make_debug_insn_raw): Strengthen return type from rtx to
1034 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
1035 (make_jump_insn_raw): Strengthen return type from rtx to
1036 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
1037 (make_call_insn_raw): Strengthen return type from rtx to
1038 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
1039 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
1040 callback from rtx to rtx_insn *; likewise for local "insn" and
1041 "next", adding a checked cast to rtx_insn in the relevant cases of
1042 the switch statement.
1043 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
1044 callback from rtx to rtx_insn *.
1045 (emit_pattern_after_setloc): Likewise.
1046 (emit_pattern_after): Likewise.
1047 (emit_pattern_before_setloc): Likewise.
1048 (emit_pattern_before): Likewise.
1050 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1052 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
1054 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
1055 accepting an rtx_insn *.
1056 (last_call_insn): Strengthen return type from rtx to
1059 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1061 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
1062 "insns" from rtx to rtx_insn *.
1063 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
1064 locals "insn" and "prev".
1066 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1068 * rtl.h (tablejump_p): Strengthen third param from rtx * to
1069 rtx_jump_table_data **.
1071 * cfgbuild.c (make_edges): Introduce local "table", using it in
1072 place of "tmp" for jump table data.
1073 (find_bb_boundaries): Strengthen local "table" from rtx to
1074 rtx_jump_table_data *.
1075 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1076 (outgoing_edges_match): Likewise for locals "table1" and "table2".
1077 (try_crossjump_to_edge): Likewise.
1078 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
1080 (patch_jump_insn): Introduce local "table", using it in place of
1081 "tmp" for jump table data.
1082 (force_nonfallthru_and_redirect): Introduce local "table", so that
1083 call to tablejump_p can receive an rtx_jump_table_data **. Update
1084 logic around the call to overwrite "note" appropriately if
1085 tablejump_p returns non-zero.
1086 (get_last_bb_insn): Introduce local "table", using it in place of
1087 "tmp" for jump table data.
1088 * dwarf2cfi.c (create_trace_edges): Likewise.
1090 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
1091 from rtx to rtx_jump_table_data *.
1092 (create_fix_barrier): Strengthen local "tmp" from rtx to
1093 rtx_jump_table_data *.
1094 (arm_reorg): Likewise for local "table".
1096 * config/s390/s390.c (s390_chunkify_start): Likewise.
1098 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1100 * jump.c (delete_related_insns): Strengthen local "lab_next" from
1101 rtx to rtx_jump_table_data *.
1103 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
1104 rtx_jump_table_data **. Add a checked cast when writing through
1105 the pointer: we know there that local "table" is non-NULL and that
1106 JUMP_TABLE_DATA_P (table) holds.
1107 (label_is_jump_target_p): Introduce local "table", using it in
1108 place of "tmp" for jump table data.
1110 2014-08-19 Marek Polacek <polacek@redhat.com>
1113 * doc/invoke.texi: Document -Wbool-compare.
1115 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1117 * rtl.h (entry_of_function): Strengthen return type from rtx to
1119 * cfgrtl.c (entry_of_function): Likewise.
1121 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1123 * emit-rtl.h (get_insns): Strengthen return type from rtx to
1124 rtx_insn *, adding a checked cast for now.
1125 (get_last_insn): Likewise.
1127 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1129 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
1132 * emit-rtl.c (gen_label_rtx): Likewise.
1134 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1136 * rtl.h (previous_insn): Strengthen return type from rtx to
1138 (next_insn): Likewise.
1139 (prev_nonnote_insn): Likewise.
1140 (prev_nonnote_insn_bb): Likewise.
1141 (next_nonnote_insn): Likewise.
1142 (next_nonnote_insn_bb): Likewise.
1143 (prev_nondebug_insn): Likewise.
1144 (next_nondebug_insn): Likewise.
1145 (prev_nonnote_nondebug_insn): Likewise.
1146 (next_nonnote_nondebug_insn): Likewise.
1147 (prev_real_insn): Likewise.
1148 (next_real_insn): Likewise.
1149 (prev_active_insn): Likewise.
1150 (next_active_insn): Likewise.
1152 * emit-rtl.c (next_insn): Strengthen return type from rtx to
1153 rtx_insn *, adding a checked cast.
1154 (previous_insn): Likewise.
1155 (next_nonnote_insn): Likewise.
1156 (next_nonnote_insn_bb): Likewise.
1157 (prev_nonnote_insn): Likewise.
1158 (prev_nonnote_insn_bb): Likewise.
1159 (next_nondebug_insn): Likewise.
1160 (prev_nondebug_insn): Likewise.
1161 (next_nonnote_nondebug_insn): Likewise.
1162 (prev_nonnote_nondebug_insn): Likewise.
1163 (next_real_insn): Likewise.
1164 (prev_real_insn): Likewise.
1165 (next_active_insn): Likewise.
1166 (prev_active_insn): Likewise.
1168 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
1169 param "stepfunc" so that it returns an rtx_insn * rather than an
1170 rtx, to track the change to prev_nonnote_insn_bb, which is the
1171 only function this is called with.
1172 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
1174 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
1176 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
1179 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1181 * coretypes.h (class rtx_debug_insn): Add forward declaration.
1182 (class rtx_nonjump_insn): Likewise.
1183 (class rtx_jump_insn): Likewise.
1184 (class rtx_call_insn): Likewise.
1185 (class rtx_jump_table_data): Likewise.
1186 (class rtx_barrier): Likewise.
1187 (class rtx_code_label): Likewise.
1188 (class rtx_note): Likewise.
1190 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
1191 adding the invariant DEBUG_INSN_P (X).
1192 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
1193 the invariant NONJUMP_INSN_P (X).
1194 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
1195 the invariant JUMP_P (X).
1196 (class rtx_call_insn): New, a subclass of rtx_insn, adding
1197 the invariant CALL_P (X).
1198 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
1199 invariant JUMP_TABLE_DATA_P (X).
1200 (class rtx_barrier): New, a subclass of rtx_insn, adding the
1201 invariant BARRIER_P (X).
1202 (class rtx_code_label): New, a subclass of rtx_insn, adding
1203 the invariant LABEL_P (X).
1204 (class rtx_note): New, a subclass of rtx_insn, adding
1205 the invariant NOTE_P(X).
1206 (is_a_helper <rtx_debug_insn *>::test): New.
1207 (is_a_helper <rtx_nonjump_insn *>::test): New.
1208 (is_a_helper <rtx_jump_insn *>::test): New.
1209 (is_a_helper <rtx_call_insn *>::test): New.
1210 (is_a_helper <rtx_jump_table_data *>::test): New functions,
1211 overloaded for both rtx and rtx_insn *.
1212 (is_a_helper <rtx_barrier *>::test): New.
1213 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
1214 for both rtx and rtx_insn *.
1215 (is_a_helper <rtx_note *>::test): New.
1217 2014-08-19 Marek Polacek <polacek@redhat.com>
1219 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
1220 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1221 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
1222 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1224 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1226 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
1227 rtx_insn *. To help with transition, for now, convert from an
1228 access macro into a pair of functions: BND_TO, returning an
1230 (SET_BND_TO): New function, for use where BND_TO is used as an
1233 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
1235 (BND_TO): New function, adding a checked cast.
1236 (SET_BND_TO): New function.
1238 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
1240 (compute_av_set_on_boundaries): Likewise.
1242 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1244 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
1245 destination if it is used in source.
1246 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
1247 (*popcount<mode>2_falsedep_1): Likewise.
1249 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1252 * configure.ac: Set install_gold_as_default to no first.
1253 * configure: Regenerated.
1255 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1257 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
1258 "note_list" field will eventually be an rtx_insn *. To help with
1259 transition, for now, convert from an access macro into a pair of
1260 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
1261 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
1264 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
1265 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
1267 * sel-sched-ir.c (init_bb): Likewise.
1268 (sel_restore_notes): Likewise.
1269 (move_bb_info): Likewise.
1270 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
1271 (SET_BB_NOTE_LIST): New function.
1273 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1275 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
1276 field will eventually be an rtx_insn *. To help with transition,
1277 for now, convert from an access macro into a pair of functions:
1278 VINSN_INSN_RTX, returning an rtx_insn *, and...
1279 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
1280 is used as an lvalue.
1282 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
1283 SET_VINSN_INSN_RTX where it's used as an lvalue.
1284 (VINSN_INSN_RTX): New function.
1285 (SET_VINSN_INSN_RTX): New function.
1287 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1289 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
1290 eventually be rtx_insn *, but to help with transition, for now,
1291 convert from an access macro into a pair of functions: DEP_PRO
1292 returning an rtx_insn * and...
1293 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
1294 lvalue, returning an rtx&.
1295 (DEP_CON): Analogous changes to DEP_PRO above.
1296 (SET_DEP_CON): Likewise.
1298 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
1299 an lvalue to SET_DEP_CON.
1300 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
1301 (sd_copy_back_deps): Likewise for DEP_CON.
1302 (DEP_PRO): New function, adding a checked cast for now.
1303 (DEP_CON): Likewise.
1304 (SET_DEP_PRO): New function.
1305 (SET_DEP_CON): Likewise.
1307 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1309 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
1310 (extra_options): Add i386/cygwin.opt.
1311 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
1312 (CPP_SPEC): Accept -pthread.
1314 (GOMP_SELF_SPECS): Update comment.
1315 * config/i386/cygwin.opt: New file for -pthread flag.
1317 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1319 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
1320 * df.h (DF_REF_INSN): Convert from a macro to a function, so
1321 that we can return an rtx_insn *.
1323 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1325 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
1326 when building executables, not DLLs. Add --large-address-aware
1327 under the same conditions.
1328 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
1329 when building executables, not DLLs. Add --large-address-aware
1330 under the same conditions when using -m32.
1332 * config/i386/cygwin-stdint.h: Throughout, make type
1333 definitions dependent on target architecture, not host.
1335 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1337 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
1338 the return type from rtx to rtx_insn *, which will enable various
1339 conversions in followup patches. For now this is is done by a
1341 (NEXT_INSN): Likewise.
1342 (SET_PREV_INSN): Convert to an inline function. This is intended
1343 for use as an lvalue, and so returns an rtx& to allow in-place
1345 (SET_NEXT_INSN): Likewise.
1347 2014-07-08 Mark Wielaard <mjw@redhat.com>
1350 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
1352 2014-08-19 Marek Polacek <polacek@redhat.com>
1355 * cgraphunit.c (handle_alias_pairs): Fix condition.
1357 2014-08-19 Richard Biener <rguenther@suse.de>
1359 * gimple-fold.c (fold_gimple_assign): Properly build a
1360 null-pointer constant when devirtualizing addresses.
1362 2014-07-07 Mark Wielaard <mjw@redhat.com>
1364 * dwarf2out.c (decl_quals): New function.
1365 (modified_type_die): Take one cv_quals argument instead of two,
1366 one for const and one for volatile.
1367 (add_type_attribute): Likewise.
1368 (generic_parameter_die): Call add_type_attribute with one modifier
1370 (base_type_for_mode): Likewise.
1371 (add_bounds_info): Likewise.
1372 (add_subscript_info): Likewise.
1373 (gen_array_type_die): Likewise.
1374 (gen_descr_array_type_die): Likewise.
1375 (gen_entry_point_die): Likewise.
1376 (gen_enumeration_type_die): Likewise.
1377 (gen_formal_parameter_die): Likewise.
1378 (gen_subprogram_die): Likewise.
1379 (gen_variable_die): Likewise.
1380 (gen_const_die): Likewise.
1381 (gen_field_die): Likewise.
1382 (gen_pointer_type_die): Likewise.
1383 (gen_reference_type_die): Likewise.
1384 (gen_ptr_to_mbr_type_die): Likewise.
1385 (gen_inheritance_die): Likewise.
1386 (gen_subroutine_type_die): Likewise.
1387 (gen_typedef_die): Likewise.
1388 (force_type_die): Likewise.
1390 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1392 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1394 * configure: Regenerate.
1396 2014-08-19 Richard Biener <rguenther@suse.de>
1398 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1399 DECL_EXTERNALs in BLOCKs as non-references.
1400 * tree-streamer-out.c (streamer_write_chain): Likewise.
1402 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1404 Anna Tikhonova <anna.tikhonova@intel.com>
1405 Ilya Tocar <ilya.tocar@intel.com>
1406 Andrey Turetskiy <andrey.turetskiy@intel.com>
1407 Ilya Verbin <ilya.verbin@intel.com>
1408 Kirill Yukhin <kirill.yukhin@intel.com>
1409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1411 * config/i386/sse.md
1412 (define_mode_iterator VI48_AVX512F): Delete.
1413 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1414 (define_mode_iterator VI2_AVX512VL): Ditto.
1415 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1418 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1420 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1421 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1422 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1423 with VI48_AVX512F_AVX512VL): New.
1424 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1425 with VI2_AVX512VL): Ditto.
1427 2014-08-19 Marek Polacek <polacek@redhat.com>
1429 * doc/invoke.texi: Document -Wc99-c11-compat.
1431 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1433 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1435 (SET_PREV_INSN): New macro, for use as an lvalue.
1436 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1438 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1439 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1440 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1441 (fixup_abnormal_edges): Likewise.
1442 (unlink_insn_chain): Likewise.
1443 (fixup_reorder_chain): Likewise.
1444 (cfg_layout_delete_block): Likewise.
1445 (cfg_layout_merge_blocks): Likewise.
1446 * combine.c (update_cfg_for_uncondjump): Likewise.
1447 * emit-rtl.c (link_insn_into_chain): Likewise.
1448 (remove_insn): Likewise.
1449 (delete_insns_since): Likewise.
1450 (reorder_insns_nobb): Likewise.
1451 (emit_insn_after_1): Likewise.
1452 * final.c (rest_of_clean_state): Likewise.
1453 (final_scan_insn): Likewise.
1454 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1455 * haifa-sched.c (concat_note_lists): Likewise.
1456 (remove_notes): Likewise.
1457 (restore_other_notes): Likewise.
1458 (move_insn): Likewise.
1459 (unlink_bb_notes): Likewise.
1460 (restore_bb_notes): Likewise.
1461 * jump.c (delete_for_peephole): Likewise.
1462 * optabs.c (emit_libcall_block_1): Likewise.
1463 * reorg.c (emit_delay_sequence): Likewise.
1464 (fill_simple_delay_slots): Likewise.
1465 * sel-sched-ir.c (sel_move_insn): Likewise.
1466 (sel_remove_insn): Likewise.
1467 (get_bb_note_from_pool): Likewise.
1468 * sel-sched.c (move_nop_to_previous_block): Likewise.
1470 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1471 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1472 (c6x_gen_bundles): Likewise.
1473 (hwloop_optimize): Likewise.
1474 * config/frv/frv.c (frv_function_prologue): Likewise.
1475 (frv_register_nop): Likewise.
1476 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1477 (ia64_reorg): Likewise.
1478 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1479 (mep_make_bundle): Likewise.
1480 (mep_bundle_insns): Likewise.
1481 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1482 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1483 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1485 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1487 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1488 return type from rtx to rtx_insn *.
1490 (BB_HEADER): Likewise.
1491 (BB_FOOTER): Likewise.
1492 (SET_BB_HEAD): Convert to a function.
1493 (SET_BB_END): Likewise.
1494 (SET_BB_HEADER): Likewise.
1495 (SET_BB_FOOTER): Likewise.
1497 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1498 Strengthen the return type from rtx to rtx_insn *. For now, this
1499 is done by adding a checked cast, but this will eventually
1500 become a field lookup.
1502 (BB_HEADER): Likewise.
1503 (BB_FOOTER): Likewise.
1504 (SET_BB_HEAD): New function, from macro of same name. This is
1505 intended for use as an lvalue, and so returns an rtx& to allow
1506 in-place modification.
1507 (SET_BB_END): Likewise.
1508 (SET_BB_HEADER): Likewise.
1509 (SET_BB_FOOTER): Likewise.
1511 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1513 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1515 (SET_BB_HEAD): New macro, for use as a lvalue.
1516 (BB_END, SET_BB_END): Likewise.
1517 (BB_HEADER, SET_BB_HEADER): Likewise.
1518 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1520 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1521 of BB_* macros into SET_BB_* macros.
1522 (fix_crossing_unconditional_branches): Likewise.
1523 * caller-save.c (save_call_clobbered_regs): Likewise.
1524 (insert_one_insn): Likewise.
1525 * cfgbuild.c (find_bb_boundaries): Likewise.
1526 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1527 (outgoing_edges_match): Likewise.
1528 (try_optimize_cfg): Likewise.
1529 * cfgexpand.c (expand_gimple_cond): Likewise.
1530 (expand_gimple_tailcall): Likewise.
1531 (expand_gimple_basic_block): Likewise.
1532 (construct_exit_block): Likewise.
1533 * cfgrtl.c (delete_insn): Likewise.
1534 (create_basic_block_structure): Likewise.
1535 (rtl_delete_block): Likewise.
1536 (rtl_split_block): Likewise.
1537 (emit_nop_for_unique_locus_between): Likewise.
1538 (rtl_merge_blocks): Likewise.
1539 (block_label): Likewise.
1540 (try_redirect_by_replacing_jump): Likewise.
1541 (emit_barrier_after_bb): Likewise.
1542 (fixup_abnormal_edges): Likewise.
1543 (record_effective_endpoints): Likewise.
1544 (relink_block_chain): Likewise.
1545 (fixup_reorder_chain): Likewise.
1546 (fixup_fallthru_exit_predecessor): Likewise.
1547 (cfg_layout_duplicate_bb): Likewise.
1548 (cfg_layout_split_block): Likewise.
1549 (cfg_layout_delete_block): Likewise.
1550 (cfg_layout_merge_blocks): Likewise.
1551 * combine.c (update_cfg_for_uncondjump): Likewise.
1552 * emit-rtl.c (add_insn_after): Likewise.
1553 (remove_insn): Likewise.
1554 (reorder_insns): Likewise.
1555 (emit_insn_after_1): Likewise.
1556 * haifa-sched.c (get_ebb_head_tail): Likewise.
1557 (restore_other_notes): Likewise.
1558 (move_insn): Likewise.
1559 (sched_extend_bb): Likewise.
1560 (fix_jump_move): Likewise.
1561 * ifcvt.c (noce_process_if_block): Likewise.
1562 (dead_or_predicable): Likewise.
1563 * ira.c (update_equiv_regs): Likewise.
1564 * reg-stack.c (change_stack): Likewise.
1565 * sel-sched-ir.c (sel_move_insn): Likewise.
1566 * sel-sched.c (move_nop_to_previous_block): Likewise.
1568 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1569 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1571 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1573 * rtl.h (for_each_rtx_in_insn): New function.
1574 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1576 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1578 * coretypes.h (class rtx_insn): Add forward declaration.
1580 * rtl.h: Include is-a.h.
1581 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1582 workaround to ensure gengtype knows inheritance is occurring,
1583 whilst continuing to use the pre-existing special-casing for
1585 (class rtx_insn): New subclass of rtx_def, adding the
1586 invariant that we're dealing with something we can sanely use
1587 INSN_UID, NEXT_INSN, PREV_INSN on.
1588 (is_a_helper <rtx_insn *>::test): New.
1589 (is_a_helper <const rtx_insn *>::test): New.
1591 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1593 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1595 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1597 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1600 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1602 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1603 to BUILT_IN_UNREACHABLE.
1605 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1608 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1610 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1611 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1612 (ffs<mode>2): Do not expand with tzcnt for
1613 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1614 (ffssi2_no_cmove): Ditto.
1615 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1616 (ctz<mode>2): New expander.
1617 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1618 (*ctz<mode>2_falsedep): New insn.
1619 (*ctz<mode>2): Rename from ctz<mode>2.
1620 (clz<mode>2_lzcnt): New expander.
1621 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1622 (*clz<mode>2_lzcnt_falsedep): New insn.
1623 (*clz<mode>2): Rename from ctz<mode>2.
1624 (popcount<mode>2): New expander.
1625 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1626 (*popcount<mode>2_falsedep): New insn.
1627 (*popcount<mode>2): Rename from ctz<mode>2.
1628 (*popcount<mode>2_cmp): Remove.
1629 (*popcountsi2_cmp_zext): Ditto.
1631 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1633 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1634 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1635 * config/microblaze/microblaze.h
1636 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1638 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1641 * configure.ac: Set install_gold_as_default to no for
1643 * configure: Regenerated.
1645 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1647 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1648 * config.in: Add undef of HAVE_isl.
1649 * configure: Regenerate.
1650 * configure.ac: Add definition of HAVE_isl.
1651 * graphite-blocking.c: Add checking of HAVE_isl.
1652 * graphite-dependences.c: Likewise.
1653 * graphite-interchange.c: Likewise.
1654 * graphite-isl-ast-to-gimple.c: Likewise.
1655 * graphite-optimize-isl.c: Likewise.
1656 * graphite-poly.c: Likewise.
1657 * graphite-scop-detection.c: Likewise.
1658 * graphite-sese-to-poly.c: Likewise.
1659 * graphite.c: Likewise.
1660 * toplev.c: Replace the checking of HAVE_cloog with the checking
1663 2014-08-18 Richard Biener <rguenther@suse.de>
1665 PR tree-optimization/62090
1666 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1667 (fold_builtin_3): Do not fold snprintf.
1668 (fold_builtin_4): Likewise.
1669 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1670 moved from builtins.c.
1671 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1672 (gimple_fold_builtin): Do not fold sprintf here.
1674 2014-08-18 Richard Biener <rguenther@suse.de>
1676 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1678 (maybe_canonicalize_mem_ref_addr): ... this function.
1679 (fold_stmt_1): Apply it here before all simplification.
1681 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1684 * cgraph.h (cgraph_node::create_indirect_edge): Add
1685 compute_indirect_info param.
1686 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1687 indirect_info only when it is required.
1688 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1689 indirect_info fore cloned indirect edge.
1691 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1692 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1693 Anna Tikhonova <anna.tikhonova@intel.com>
1694 Ilya Tocar <ilya.tocar@intel.com>
1695 Andrey Turetskiy <andrey.turetskiy@intel.com>
1696 Ilya Verbin <ilya.verbin@intel.com>
1697 Kirill Yukhin <kirill.yukhin@intel.com>
1698 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1700 * config/i386/sse.md
1701 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1702 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1704 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1706 Anna Tikhonova <anna.tikhonova@intel.com>
1707 Ilya Tocar <ilya.tocar@intel.com>
1708 Andrey Turetskiy <andrey.turetskiy@intel.com>
1709 Ilya Verbin <ilya.verbin@intel.com>
1710 Kirill Yukhin <kirill.yukhin@intel.com>
1711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1713 * config/i386/sse.md
1714 (define_mode_iterator VF1_AVX512VL): New.
1715 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1716 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1719 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1720 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1721 Anna Tikhonova <anna.tikhonova@intel.com>
1722 Ilya Tocar <ilya.tocar@intel.com>
1723 Andrey Turetskiy <andrey.turetskiy@intel.com>
1724 Ilya Verbin <ilya.verbin@intel.com>
1725 Kirill Yukhin <kirill.yukhin@intel.com>
1726 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1728 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1729 * config/i386/i386.md
1730 (define_code_iterator any_float): New.
1731 (define_code_attr floatsuffix): New.
1732 * config/i386/sse.md
1733 (define_mode_iterator VF1_128_256VL): New.
1734 (define_mode_iterator VF2_512_256VL): New.
1735 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1737 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1738 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1740 (define_mode_attr qq2pssuff): New.
1741 (define_mode_attr sselongvecmode): New.
1742 (define_mode_attr sselongvecmodelower): New.
1743 (define_mode_attr sseintvecmode3): New.
1744 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1746 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1747 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1748 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1749 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1751 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1752 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1753 Anna Tikhonova <anna.tikhonova@intel.com>
1754 Ilya Tocar <ilya.tocar@intel.com>
1755 Andrey Turetskiy <andrey.turetskiy@intel.com>
1756 Ilya Verbin <ilya.verbin@intel.com>
1757 Kirill Yukhin <kirill.yukhin@intel.com>
1758 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1760 * config/i386/sse.md
1761 (define_mode_iterator VF2_AVX512VL): New.
1762 (define_mode_attr sseintvecmode2): New.
1763 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1764 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1765 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1767 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1769 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1771 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1774 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1776 Anna Tikhonova <anna.tikhonova@intel.com>
1777 Ilya Tocar <ilya.tocar@intel.com>
1778 Andrey Turetskiy <andrey.turetskiy@intel.com>
1779 Ilya Verbin <ilya.verbin@intel.com>
1780 Kirill Yukhin <kirill.yukhin@intel.com>
1781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1783 * config/i386/i386.md
1784 (define_insn "*movoi_internal_avx"): Add evex version.
1785 (define_insn "*movti_internal"): Ditto.
1787 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1788 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1789 Anna Tikhonova <anna.tikhonova@intel.com>
1790 Ilya Tocar <ilya.tocar@intel.com>
1791 Andrey Turetskiy <andrey.turetskiy@intel.com>
1792 Ilya Verbin <ilya.verbin@intel.com>
1793 Kirill Yukhin <kirill.yukhin@intel.com>
1794 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1796 * config/i386/i386.md
1797 (define_attr "isa"): Add avx512dq, noavx512dq.
1798 (define_attr "enabled"): Ditto.
1799 * config/i386/sse.md
1800 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1802 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1803 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1804 Anna Tikhonova <anna.tikhonova@intel.com>
1805 Ilya Tocar <ilya.tocar@intel.com>
1806 Andrey Turetskiy <andrey.turetskiy@intel.com>
1807 Ilya Verbin <ilya.verbin@intel.com>
1808 Kirill Yukhin <kirill.yukhin@intel.com>
1809 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1811 * config/i386/i386.c
1812 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1813 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1814 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1815 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1816 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1817 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1818 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1819 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1820 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1821 * config/i386/sse.md
1822 (define_mode_iterator VMOVE): Allow V4TI mode.
1823 (define_mode_iterator V_AVX512VL): New.
1824 (define_mode_iterator V): New handling for AVX512VL.
1825 (define_insn "avx512f_load<mode>_mask"): Delete.
1826 (define_insn "<avx512>_load<mode>_mask"): New.
1827 (define_insn "avx512f_store<mode>_mask"): Delete.
1828 (define_insn "<avx512>_store<mode>_mask"): New.
1831 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1834 * asan.c (instrument_derefs): Fix bitfield check.
1836 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1838 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1839 * config/rs6000/htm.md (ttest): Remove clobber.
1840 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1841 (and_operand): Reformat.
1842 (and_2rld_operand): New predicate.
1843 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1845 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1846 parameter. Handle AND directly.
1847 (rs6000_split_logical_di): Remove last parameter.
1848 (rs6000_split_logical): Remove last parameter. Remove obsolete
1850 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1851 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1852 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1853 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1854 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1855 and 5 anonymous splitters): Delete.
1856 (and<mode>3): New expander.
1857 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1858 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1859 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1860 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1861 (floatdisf2_internal1): Remove clobbers.
1862 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1863 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1864 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1865 (and<mode>3 for BOOL_128): Remove clobber.
1866 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1867 rs6000_split_logical.
1868 (*bool<mode>3_internal for BOOL_128): Adjust call of
1869 rs6000_split_logical.
1870 (*boolc<mode>3_internal1 for BOOL_128,
1871 *boolc<mode>3_internal2 for BOOL_128,
1872 *boolcc<mode>3_internal1 for BOOL_128,
1873 *boolcc<mode>3_internal2 for BOOL_128,
1874 *eqv<mode>3_internal1 for BOOL_128,
1875 *eqv<mode>3_internal2 for BOOL_128,
1876 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1877 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1879 (*vec_reload_and_reg_<mptrsize>): Delete.
1881 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1883 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1884 and split, *boolccsi3_internal3 and split): Delete.
1885 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1886 *boolccdi3_internal3 and split): Delete.
1887 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1888 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1890 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1892 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1893 and split, *boolcsi3_internal3 and split): Delete.
1894 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1895 *boolcdi3_internal3 and split): Delete.
1896 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1898 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1900 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1901 <'u'>: Also support printing the low-order 16 bits.
1902 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1903 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1904 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1905 *booldi3_internal3 and split): Delete.
1906 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1907 *bool<mode>3_dot2): New.
1908 (two anonymous define_splits for non_logical_cint_operand): Merge.
1910 2014-08-17 Marek Polacek <polacek@redhat.com>
1911 Manuel López-Ibáñez <manu@gcc.gnu.org>
1914 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1915 (diagnostic_show_locus): Don't print caret diagnostic
1916 if a column is larger than the line_width.
1918 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1920 * common.opt: Make the ISL AST generator to be the main code generator
1923 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1925 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1927 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1930 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1932 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1933 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1934 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1936 * config/pa/pa.md (begin_brtab): Delete insn.
1937 (end_brtab): Likewise.
1939 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1941 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1943 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1945 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1946 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1947 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1948 (get_dynamic_type): Remove.
1949 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1950 (clear_speculation): Bring to ipa-deivrt.h
1951 (get_class_context): Rename to ...
1952 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1953 (contains_type_p): Update.
1954 (get_dynamic_type): Rename to ...
1955 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1956 (possible_polymorphic_call_targets): UPdate.
1957 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1958 * ipa-prop.c (ipa_analyze_call_uses): Update.
1960 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1962 * doc/invoke.texi (SH options): Document missing processor variant
1963 options. Remove references to Hitachi. Undocument deprecated mspace
1966 2014-08-15 Jason Merrill <jason@redhat.com>
1968 * tree.c (type_hash_canon): Uncomment assert.
1970 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1972 * input.h (in_system_header_at): Add comment.
1974 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1977 * diagnostic.c (build_message_string): Make it extern.
1978 * diagnostic.h (build_message_string): Make it extern.
1980 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1982 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1983 load/store from/to non-floating class pseudo.
1985 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1987 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1989 2014-08-15 Richard Biener <rguenther@suse.de>
1991 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1992 (get_constraint_for_ssa_var): Remove dead code.
1993 (get_constraint_for_1): Adjust.
1994 (find_what_var_points_to): Likewise.
1995 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1997 2014-08-15 Ilya Tocar <tocarip@gmail.com>
2000 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
2001 (_mm512_mask_cmpge_epu32_mask): Ditto.
2002 (_mm512_cmpge_epu32_mask): Ditto.
2003 (_mm512_mask_cmpge_epi64_mask): Ditto.
2004 (_mm512_cmpge_epi64_mask): Ditto.
2005 (_mm512_mask_cmpge_epu64_mask): Ditto.
2006 (_mm512_cmpge_epu64_mask): Ditto.
2007 (_mm512_mask_cmple_epi32_mask): Ditto.
2008 (_mm512_cmple_epi32_mask): Ditto.
2009 (_mm512_mask_cmple_epu32_mask): Ditto.
2010 (_mm512_cmple_epu32_mask): Ditto.
2011 (_mm512_mask_cmple_epi64_mask): Ditto.
2012 (_mm512_cmple_epi64_mask): Ditto.
2013 (_mm512_mask_cmple_epu64_mask): Ditto.
2014 (_mm512_cmple_epu64_mask): Ditto.
2015 (_mm512_mask_cmplt_epi32_mask): Ditto.
2016 (_mm512_cmplt_epi32_mask): Ditto.
2017 (_mm512_mask_cmplt_epu32_mask): Ditto.
2018 (_mm512_cmplt_epu32_mask): Ditto.
2019 (_mm512_mask_cmplt_epi64_mask): Ditto.
2020 (_mm512_cmplt_epi64_mask): Ditto.
2021 (_mm512_mask_cmplt_epu64_mask): Ditto.
2022 (_mm512_cmplt_epu64_mask): Ditto.
2023 (_mm512_mask_cmpneq_epi32_mask): Ditto.
2024 (_mm512_mask_cmpneq_epu32_mask): Ditto.
2025 (_mm512_cmpneq_epu32_mask): Ditto.
2026 (_mm512_mask_cmpneq_epi64_mask): Ditto.
2027 (_mm512_cmpneq_epi64_mask): Ditto.
2028 (_mm512_mask_cmpneq_epu64_mask): Ditto.
2029 (_mm512_cmpneq_epu64_mask): Ditto.
2030 (_mm512_castpd_ps): Ditto.
2031 (_mm512_castpd_si512): Ditto.
2032 (_mm512_castps_pd): Ditto.
2033 (_mm512_castps_si512): Ditto.
2034 (_mm512_castsi512_ps): Ditto.
2035 (_mm512_castsi512_pd): Ditto.
2036 (_mm512_castpd512_pd128): Ditto.
2037 (_mm512_castps512_ps128): Ditto.
2038 (_mm512_castsi512_si128): Ditto.
2039 (_mm512_castpd512_pd256): Ditto.
2040 (_mm512_castps512_ps256): Ditto.
2041 (_mm512_castsi512_si256): Ditto.
2042 (_mm512_castpd128_pd512): Ditto.
2043 (_mm512_castps128_ps512): Ditto.
2044 (_mm512_castsi128_si512): Ditto.
2045 (_mm512_castpd256_pd512): Ditto.
2046 (_mm512_castps256_ps512): Ditto.
2047 (_mm512_castsi256_si512): Ditto.
2048 (_mm512_cmpeq_epu32_mask): Ditto.
2049 (_mm512_mask_cmpeq_epu32_mask): Ditto.
2050 (_mm512_mask_cmpeq_epu64_mask): Ditto.
2051 (_mm512_cmpeq_epu64_mask): Ditto.
2052 (_mm512_cmpgt_epu32_mask): Ditto.
2053 (_mm512_mask_cmpgt_epu32_mask): Ditto.
2054 (_mm512_mask_cmpgt_epu64_mask): Ditto.
2055 (_mm512_cmpgt_epu64_mask): Ditto.
2056 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
2057 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
2058 * config/i386/i386.c (enum ix86_builtins): Add
2059 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
2060 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
2061 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
2062 (bdesc_args): Add __builtin_ia32_si512_256si,
2063 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
2064 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
2065 __builtin_ia32_pd512_pd.
2066 (ix86_expand_args_builtin): Handle new FTYPEs.
2067 * config/i386/sse.md (castmode): Add 512-bit modes.
2068 (AVX512MODE2P): New.
2069 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
2070 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
2072 2014-08-15 Richard Biener <rguenther@suse.de>
2074 * fold-const.c (tree_swap_operands_p): Put all constants
2075 last, also strip sign-changing NOPs when considering further
2076 canonicalization. Canonicalize also when optimizing for size.
2078 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2080 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
2081 one_match > zero_match case to just before simple_sequence.
2083 2014-08-15 Richard Biener <rguenther@suse.de>
2085 * data-streamer.h (streamer_string_index, string_for_index):
2087 * data-streamer-out.c (streamer_string_index): Make static.
2088 * data-streamer-in.c (string_for_index): Likewise.
2089 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
2090 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
2092 2014-08-15 Richard Biener <rguenther@suse.de>
2094 PR tree-optimization/62031
2095 * tree-data-ref.c (dr_analyze_indices): Do not set
2096 DR_UNCONSTRAINED_BASE.
2097 (dr_may_alias_p): All indirect accesses have to go the
2098 formerly DR_UNCONSTRAINED_BASE path.
2099 * tree-data-ref.h (struct indices): Remove
2100 unconstrained_base member.
2101 (DR_UNCONSTRAINED_BASE): Remove.
2103 2014-08-15 Jakub Jelinek <jakub@redhat.com>
2106 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
2107 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
2108 in OMP_CLAUSE_MAP in some outer target region.
2110 2014-08-15 Bin Cheng <bin.cheng@arm.com>
2112 * tree-ssa-loop-ivopts.c (ivopts_data): New field
2113 name_expansion_cache.
2114 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
2115 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
2116 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
2117 (difference_cannot_overflow_p): New parameter. Use affine
2118 expansion for equality check.
2119 (iv_elimination_compare_lt): Pass new argument.
2121 2014-08-14 DJ Delorie <dj@redhat.com>
2123 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
2124 variables to the accumulator.
2126 * config/rl78/predicates.md (rl78_near_mem_operand): New.
2127 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
2128 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
2131 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
2132 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
2133 (umulqihi3_virt): Likewise.
2134 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
2135 (umulqihi3_real): Likewise.
2137 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
2139 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2141 PR tree-optimization/62091
2142 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
2143 function_entry_reached.
2144 (walk_aliased_vdefs): Clear it here.
2145 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
2147 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2149 * ipa-utils.h (compare_virtual_tables): Declare.
2150 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
2152 2014-08-14 Marek Polacek <polacek@redhat.com>
2155 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
2156 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
2158 2014-08-14 Tom de Vries <tom@codesourcery.com>
2160 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
2162 2014-08-14 Tom de Vries <tom@codesourcery.com>
2164 PR rtl-optimization/62004
2165 PR rtl-optimization/62030
2166 * ifcvt.c (rtx_interchangeable_p): New function.
2167 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
2168 * emit-rtl.h (mem_attrs_eq_p): Declare.
2170 2014-08-14 Roman Gareev <gareevroman@gmail.com>
2172 * graphite-scop-detection.c:
2173 Add inclusion of cp-tree.h.
2174 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
2175 in case they are pointers to object types
2177 2014-08-14 Richard Biener <rguenther@suse.de>
2179 * BASE-VER: Change to 5.0.0
2181 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2182 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2183 Anna Tikhonova <anna.tikhonova@intel.com>
2184 Ilya Tocar <ilya.tocar@intel.com>
2185 Andrey Turetskiy <andrey.turetskiy@intel.com>
2186 Ilya Verbin <ilya.verbin@intel.com>
2187 Kirill Yukhin <kirill.yukhin@intel.com>
2188 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2190 * config/i386/sse.md (define_mode_attr avx512): New.
2191 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
2193 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
2194 (define_mode_attr ssse3_avx2): Ditto.
2195 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
2196 (define_mode_attr avx2_avx512bw): New.
2197 (define_mode_attr ssedoublemodelower): New.
2198 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
2200 (define_mode_attr ssebytemode): Allow V8DI modes.
2201 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
2202 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
2203 (define_mode_attr ssePSmode2): New.
2204 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
2206 (define_mode_attr dbpsadbwmode): New.
2207 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
2208 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
2209 (vi8_sse4_1_avx2_avx512): New.
2210 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
2212 (define_mode_attr blendbits): Move before its immediate use.
2214 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2215 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2216 Anna Tikhonova <anna.tikhonova@intel.com>
2217 Ilya Tocar <ilya.tocar@intel.com>
2218 Andrey Turetskiy <andrey.turetskiy@intel.com>
2219 Ilya Verbin <ilya.verbin@intel.com>
2220 Kirill Yukhin <kirill.yukhin@intel.com>
2221 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2223 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
2224 * config/i386/subst.md
2225 (define_mode_iterator SUBST_V): Update.
2226 (define_mode_iterator SUBST_A): Ditto.
2227 (define_subst_attr "mask_operand7"): New.
2228 (define_subst_attr "mask_operand10"): New.
2229 (define_subst_attr "mask_operand_arg34") : New.
2230 (define_subst_attr "mask_expand_op3"): New.
2231 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
2232 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
2233 (define_subst_attr "mask_avx512vl_condition"): New.
2234 (define_subst_attr "round_mask_operand4"): Ditto.
2235 (define_subst_attr "round_mask_scalar_op3"): Delete.
2236 (define_subst_attr "round_mask_op4"): New.
2237 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
2239 (define_subst_attr "round_modev8sf_condition"): New.
2240 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
2242 (define_subst_attr "round_saeonly_mask_operand4"): New.
2243 (define_subst_attr "round_saeonly_mask_op4"): New.
2244 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
2245 V8DImode, V16SImode.
2246 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
2247 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
2248 (define_subst_attr "mask_expand4_args"): New.
2249 (define_subst "mask_expand4"): New.
2251 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2252 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2253 Anna Tikhonova <anna.tikhonova@intel.com>
2254 Ilya Tocar <ilya.tocar@intel.com>
2255 Andrey Turetskiy <andrey.turetskiy@intel.com>
2256 Ilya Verbin <ilya.verbin@intel.com>
2257 Kirill Yukhin <kirill.yukhin@intel.com>
2258 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2260 * config/i386/i386.md
2261 (define_attr "isa"): Add avx512bw,noavx512bw.
2262 (define_attr "enabled"): Ditto.
2263 (define_split): Add 32/64-bit mask logic.
2264 (define_insn "*k<logic>qi"): New.
2265 (define_insn "*k<logic>hi"): New.
2266 (define_insn "*anddi_1"): Add mask version.
2267 (define_insn "*andsi_1"): Ditto.
2268 (define_insn "*<code><mode>_1"): Ditto.
2269 (define_insn "*<code>hi_1"): Ditto.
2270 (define_insn "kxnor<mode>"): New.
2271 (define_insn "kunpcksi"): New.
2272 (define_insn "kunpckdi"): New.
2273 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
2274 (define_insn "*one_cmplhi2_1"): Ditto.
2276 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2278 Anna Tikhonova <anna.tikhonova@intel.com>
2279 Ilya Tocar <ilya.tocar@intel.com>
2280 Andrey Turetskiy <andrey.turetskiy@intel.com>
2281 Ilya Verbin <ilya.verbin@intel.com>
2282 Kirill Yukhin <kirill.yukhin@intel.com>
2283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2285 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
2288 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2290 Anna Tikhonova <anna.tikhonova@intel.com>
2291 Ilya Tocar <ilya.tocar@intel.com>
2292 Andrey Turetskiy <andrey.turetskiy@intel.com>
2293 Ilya Verbin <ilya.verbin@intel.com>
2294 Kirill Yukhin <kirill.yukhin@intel.com>
2295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2297 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
2299 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
2300 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
2301 xmm/ymm16+ when availble.
2302 * config/i386/i386.h
2303 (HARD_REGNO_NREGS): Add mask regs.
2304 (VALID_AVX512F_REG_MODE): Ditto.
2305 (VALID_AVX512F_REG_MODE) : Define.
2306 (VALID_MASK_AVX512BW_MODE): Ditto.
2307 (reg_class) (MASK_REG_P(X)): Define.
2308 * config/i386/i386.md: Do not split long moves with mask register,
2309 use kmovb if avx512bw is availible.
2310 (movdi_internal): Handle mask registers.
2312 2014-08-14 Richard Biener <rguenther@suse.de>
2314 PR tree-optimization/62081
2315 * tree-ssa-loop.c (pass_fix_loops): New pass.
2316 (pass_tree_loop::gate): Do not fixup loops here.
2317 * tree-pass.h (make_pass_fix_loops): Declare.
2318 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
2320 2014-08-14 Richard Biener <rguenther@suse.de>
2322 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
2323 (type_hash_canon): ... this and avoid 2nd lookup for the add.
2325 2014-08-14 Richard Biener <rguenther@suse.de>
2327 PR tree-optimization/62090
2328 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
2329 (fold_builtin_2): Do not fold sprintf.
2330 (fold_builtin_3): Likewise.
2331 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
2332 moved from builtins.c.
2333 (gimple_fold_builtin): Fold sprintf.
2335 2014-08-14 Richard Biener <rguenther@suse.de>
2337 PR rtl-optimization/62079
2338 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
2341 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2343 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
2344 current_function_decl.
2346 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2348 * cgraph.c (cgraph_node::function_symbol): Fix wrong
2349 cgraph_function_node to cgraph_node::function_symbol
2352 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
2354 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
2355 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
2357 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
2359 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2362 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2364 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2367 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2370 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2371 any registers that are used in mem_insn.
2373 2014-08-12 Steve Ellcey <sellcey@mips.com>
2375 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2377 2014-08-12 Steve Ellcey <sellcey@mips.com>
2379 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2380 (MULTILIB_DIRNAMES): Ditto.
2381 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2382 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2383 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2384 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2385 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2386 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2388 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2391 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2392 of __ARM_SIZEOF_WCHAR_T.
2394 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2397 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2398 Remove unnecessary attributes.
2400 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2402 * internal-fn.c (init_internal_fns): Fix off-by-one.
2404 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2405 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2406 Anna Tikhonova <anna.tikhonova@intel.com>
2407 Ilya Tocar <ilya.tocar@intel.com>
2408 Andrey Turetskiy <andrey.turetskiy@intel.com>
2409 Ilya Verbin <ilya.verbin@intel.com>
2410 Kirill Yukhin <kirill.yukhin@intel.com>
2411 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2413 * config/i386/i386.c (standard_sse_constant_opcode): Use
2414 vpxord/vpternlog if avx512 is availible.
2416 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2419 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2420 bitfields, that is when size doesn't match the size of type or the
2421 size of the constructor.
2423 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2425 * config/rs6000/constraints.md (wh constraint): New constraint,
2426 for FP registers if direct move is available.
2427 (wi constraint): New constraint, for VSX/FP registers that can
2428 handle 64-bit integers.
2429 (wj constraint): New constraint for VSX/FP registers that can
2430 handle 64-bit integers for direct moves.
2431 (wk constraint): New constraint for VSX/FP registers that can
2432 handle 64-bit doubles for direct moves.
2433 (wy constraint): Make documentation match implementation.
2435 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2436 scalar_in_vmx_p field to simplify tests of whether SFmode or
2437 DFmode can go in the Altivec registers.
2438 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2439 (rs6000_setup_reg_addr_masks): Likewise.
2440 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2441 field, and wh/wi/wj/wk constraints.
2442 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2443 the wh/wi/wj/wk constraints.
2444 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2445 upper registers, prefer VSX registers unless the operation is a
2446 memory operation with REG+OFFSET addressing.
2448 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2449 DImode. Change SFmode to use ww constraint instead of d to allow
2450 SF registers in the upper registers.
2453 (VSr5): Fix thinko in comment.
2454 (VSa): New mode attribute that is an alternative to wa, that
2455 returns the VSX register class that a mode can go in, but may not
2456 be the preferred register class.
2457 (VS_64dm): New mode attribute for appropriate register classes for
2458 referencing 64-bit elements of vectors for direct moves and normal
2460 (VS_64reg): Likewise.
2461 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2462 register allocator to only registers the data type can handle.
2463 (vsx_le_perm_load_<mode>): Likewise.
2464 (vsx_le_perm_store_<mode>): Likewise.
2465 (vsx_xxpermdi2_le_<mode>): Likewise.
2466 (vsx_xxpermdi4_le_<mode>): Likewise.
2467 (vsx_lxvd2x2_le_<mode>): Likewise.
2468 (vsx_lxvd2x4_le_<mode>): Likewise.
2469 (vsx_stxvd2x2_le_<mode>): Likewise.
2470 (vsx_add<mode>3): Likewise.
2471 (vsx_sub<mode>3): Likewise.
2472 (vsx_mul<mode>3): Likewise.
2473 (vsx_div<mode>3): Likewise.
2474 (vsx_tdiv<mode>3_internal): Likewise.
2475 (vsx_fre<mode>2): Likewise.
2476 (vsx_neg<mode>2): Likewise.
2477 (vsx_abs<mode>2): Likewise.
2478 (vsx_nabs<mode>2): Likewise.
2479 (vsx_smax<mode>3): Likewise.
2480 (vsx_smin<mode>3): Likewise.
2481 (vsx_sqrt<mode>2): Likewise.
2482 (vsx_rsqrte<mode>2): Likewise.
2483 (vsx_tsqrt<mode>2_internal): Likewise.
2484 (vsx_fms<mode>4): Likewise.
2485 (vsx_nfma<mode>4): Likewise.
2486 (vsx_eq<mode>): Likewise.
2487 (vsx_gt<mode>): Likewise.
2488 (vsx_ge<mode>): Likewise.
2489 (vsx_eq<mode>_p): Likewise.
2490 (vsx_gt<mode>_p): Likewise.
2491 (vsx_ge<mode>_p): Likewise.
2492 (vsx_xxsel<mode>): Likewise.
2493 (vsx_xxsel<mode>_uns): Likewise.
2494 (vsx_copysign<mode>3): Likewise.
2495 (vsx_float<VSi><mode>2): Likewise.
2496 (vsx_floatuns<VSi><mode>2): Likewise.
2497 (vsx_fix_trunc<mode><VSi>2): Likewise.
2498 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2499 (vsx_x<VSv>r<VSs>i): Likewise.
2500 (vsx_x<VSv>r<VSs>ic): Likewise.
2501 (vsx_btrunc<mode>2): Likewise.
2502 (vsx_b2trunc<mode>2): Likewise.
2503 (vsx_floor<mode>2): Likewise.
2504 (vsx_ceil<mode>2): Likewise.
2505 (vsx_<VS_spdp_insn>): Likewise.
2506 (vsx_xscvspdp): Likewise.
2507 (vsx_xvcvspuxds): Likewise.
2508 (vsx_float_fix_<mode>2): Likewise.
2509 (vsx_set_<mode>): Likewise.
2510 (vsx_extract_<mode>_internal1): Likewise.
2511 (vsx_extract_<mode>_internal2): Likewise.
2512 (vsx_extract_<mode>_load): Likewise.
2513 (vsx_extract_<mode>_store): Likewise.
2514 (vsx_splat_<mode>): Likewise.
2515 (vsx_xxspltw_<mode>): Likewise.
2516 (vsx_xxspltw_<mode>_direct): Likewise.
2517 (vsx_xxmrghw_<mode>): Likewise.
2518 (vsx_xxmrglw_<mode>): Likewise.
2519 (vsx_xxsldwi_<mode>): Likewise.
2520 (vsx_xscvdpspn): Tighten constraints to only use register classes
2522 (vsx_xscvspdpn): Likewise.
2523 (vsx_xscvdpspn_scalar): Likewise.
2525 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2526 wj, and wk constraints.
2527 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2528 general purpose registers.
2530 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2532 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2533 DImode instead of wm. Use wk constraint for direct move of DFmode
2535 (extendsidi2_lfiwax): Likewise.
2538 (movdi_internal64): Likewise.
2540 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2541 wk constraints. Make the wy constraint documentation match them
2544 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2546 Replacement of isl_int by isl_val
2547 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2548 (compute_bounds_for_param): use isl_val instead of isl_int
2549 (compute_bounds_for_loop): likewise
2550 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2551 (build_linearized_memory_access): use isl_val instead of isl_int
2552 (pdr_stride_in_loop): likewise
2553 * graphite-optimize-isl.c:
2554 (getPrevectorMap): use isl_val instead of isl_int
2556 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2557 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2558 (extern the_isl_ctx): declare
2559 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2560 (extract_affine_gmp): likewise
2562 (build_loop_iteration_domains): likewise
2563 (add_param_constraints): likewise
2565 2014-08-11 Richard Biener <rguenther@suse.de>
2567 PR tree-optimization/62075
2568 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2569 handle uses in patterns.
2571 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2572 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2573 Anna Tikhonova <anna.tikhonova@intel.com>
2574 Ilya Tocar <ilya.tocar@intel.com>
2575 Andrey Turetskiy <andrey.turetskiy@intel.com>
2576 Ilya Verbin <ilya.verbin@intel.com>
2577 Kirill Yukhin <kirill.yukhin@intel.com>
2578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2580 * common/config/i386/i386-common.c
2581 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2582 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2583 (ix86_handle_option): Handle OPT_mavx512vl.
2584 * config/i386/cpuid.h (bit_AVX512VL): Define.
2585 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2586 set -mavx512vl accordingly.
2587 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2588 OPTION_MASK_ISA_AVX512VL.
2589 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2590 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2591 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2592 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2593 * config/i386/i386.h (TARGET_AVX512VL): Define.
2594 (TARGET_AVX512VL_P(x)): Ditto.
2595 * config/i386/i386.opt: Add mavx512vl.
2597 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2599 PR tree-optimization/62073
2600 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2603 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2604 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2605 Anna Tikhonova <anna.tikhonova@intel.com>
2606 Ilya Tocar <ilya.tocar@intel.com>
2607 Andrey Turetskiy <andrey.turetskiy@intel.com>
2608 Ilya Verbin <ilya.verbin@intel.com>
2609 Kirill Yukhin <kirill.yukhin@intel.com>
2610 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2612 * common/config/i386/i386-common.c
2613 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2614 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2615 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2616 (ix86_handle_option): Handle OPT_mavx512bw.
2617 * config/i386/cpuid.h (bit_AVX512BW): Define.
2618 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2619 set -mavx512bw accordingly.
2620 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2621 OPTION_MASK_ISA_AVX512BW.
2622 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2623 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2624 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2625 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2626 * config/i386/i386.h (TARGET_AVX512BW): Define.
2627 (TARGET_AVX512BW_P(x)): Ditto.
2628 * config/i386/i386.opt: Add mavx512bw.
2630 2014-08-11 Richard Biener <rguenther@suse.de>
2632 PR tree-optimization/62070
2633 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2634 Remove SSA checking.
2636 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2638 * asan.c (asan_check_flags): New enum.
2639 (build_check_stmt_with_calls): Removed function.
2640 (build_check_stmt): Split inlining logic to
2641 asan_expand_check_ifn.
2642 (instrument_derefs): Rename parameter.
2643 (instrument_mem_region_access): Rename parameter.
2644 (instrument_strlen_call): Likewise.
2645 (asan_expand_check_ifn): New function.
2646 (asan_instrument): Remove old code.
2647 (pass_sanopt::execute): Change handling of
2648 asan-instrumentation-with-call-threshold.
2649 (asan_clear_shadow): Fix formatting.
2650 (asan_function_start): Likewise.
2651 (asan_emit_stack_protection): Likewise.
2652 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2654 * internal-fn.c (expand_ASAN_CHECK): New function.
2655 * internal-fn.def (ASAN_CHECK): New internal function.
2656 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2658 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2659 * tree.c: Small comment fix.
2661 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2663 * gimple.c (gimple_call_fnspec): Support internal functions.
2664 (gimple_call_return_flags): Use const.
2665 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2666 * internal-fn.def: Add fnspec information.
2667 * internal-fn.h (internal_fn_fnspec): New function.
2668 (init_internal_fns): Declare new function.
2669 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2670 (init_internal_fns): New function.
2671 * tree-core.h: Update macro call.
2672 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2674 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2676 * lto-streamer.h (struct output_block::symbol): Change from
2677 struct symtab_node to plain symtab_node.
2678 (referenced_from_this_partition_p): Change first parameter
2679 from struct symtab_node to plain symtab_node.
2681 2014-08-10 Marek Polacek <polacek@redhat.com>
2684 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2686 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2688 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2689 DECL correctly; do not give up on types in static storage.
2691 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2693 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2695 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2697 * graphite-isl-ast-to-gimple.c:
2698 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2700 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2702 2014-08-08 Guozhi Wei <carrot@google.com>
2704 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2706 2014-08-08 Cary Coutant <ccoutant@google.com>
2708 * dwarf2out.c (get_skeleton_type_unit): Remove.
2709 (output_skeleton_debug_sections): Remove skeleton type units.
2710 (output_comdat_type_unit): Likewise.
2711 (dwarf2out_finish): Likewise.
2713 2014-08-07 Yi Yang <ahyangyi@google.com>
2715 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2717 2014-08-08 Richard Biener <rguenther@suse.de>
2719 * lto-streamer.h (struct lto_input_block): Make it a class
2721 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2722 (struct lto_function_header, struct lto_simple_header,
2723 struct lto_simple_header_with_strings,
2724 struct lto_decl_header, struct lto_function_header): Make
2725 a simple inheritance hieararchy. Remove unused fields.
2726 (struct lto_asm_header): Remove.
2727 * lto-streamer-out.c (produce_asm): Adjust.
2728 (lto_output_toplevel_asms): Likewise.
2729 (produce_asm_for_decls): Likewise.
2730 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2731 * data-streamer-in.c (string_for_index): Likewise.
2732 * ipa-inline-analysis.c (inline_read_section): Likewise.
2733 * ipa-prop.c (ipa_prop_read_section): Likewise.
2734 (read_replacements_section): Likewise.
2735 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2736 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2737 (lto_destroy_simple_input_block): Likewise.
2738 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2739 (lto_input_toplevel_asms): Likewise.
2741 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2743 Anna Tikhonova <anna.tikhonova@intel.com>
2744 Ilya Tocar <ilya.tocar@intel.com>
2745 Andrey Turetskiy <andrey.turetskiy@intel.com>
2746 Ilya Verbin <ilya.verbin@intel.com>
2747 Kirill Yukhin <kirill.yukhin@intel.com>
2748 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2750 * common/config/i386/i386-common.c
2751 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2752 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2753 (ix86_handle_option): Handle OPT_mavx512dq.
2754 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2755 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2756 set -mavx512dq accordingly.
2757 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2758 OPTION_MASK_ISA_AVX512DQ.
2759 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2760 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2761 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2762 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2763 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2764 (TARGET_AVX512DQ_P(x)): Ditto.
2765 * config/i386/i386.opt: Add mavx512dq.
2767 2014-08-08 Richard Biener <rguenther@suse.de>
2769 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2770 target_percent, target_percent_s): Export.
2771 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2772 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2773 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2774 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2775 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2776 Move to gimple-fold.c.
2777 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2779 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2780 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2781 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2782 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2783 (rewrite_call_expr_array): Remove.
2784 (fold_builtin_sprintf_chk): Likewise.
2785 (fold_builtin_snprintf_chk): Likewise.
2786 (fold_builtin_varargs): Remove handling of sprintf_chk,
2787 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2788 (gimple_fold_builtin_sprintf_chk): Remove.
2789 (gimple_fold_builtin_snprintf_chk): Likewise.
2790 (gimple_fold_builtin_varargs): Likewise.
2791 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2792 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2793 * gimple.c (gimple_seq_add_seq_without_update): New function.
2794 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2795 * gimple-fold.c: Include output.h.
2796 (gsi_replace_with_seq_vops): New function, split out from ...
2797 (gimplify_and_update_call_from_tree): ... here.
2798 (replace_call_with_value): New function.
2799 (replace_call_with_call_and_fold): Likewise.
2800 (var_decl_component_p): Moved from builtins.c.
2801 (gimple_fold_builtin_memory_op): Moved from builtins.c
2802 fold_builtin_memory_op and rewritten to GIMPLE.
2803 (gimple_fold_builtin_memset): Likewise.
2804 (gimple_fold_builtin_strcpy): Likewise.
2805 (gimple_fold_builtin_strncpy): Likewise.
2806 (gimple_fold_builtin_strcat): Likewise.
2807 (gimple_fold_builtin_fputs): Likewise.
2808 (gimple_fold_builtin_memory_chk): Likewise.
2809 (gimple_fold_builtin_stxcpy_chk): Likewise.
2810 (gimple_fold_builtin_stxncpy_chk): Likewise.
2811 (gimple_fold_builtin_snprintf_chk): Likewise.
2812 (gimple_fold_builtin_sprintf_chk): Likewise.
2813 (gimple_fold_builtin_strlen): New function.
2814 (gimple_fold_builtin_with_strlen): New function split out from
2815 gimple_fold_builtin.
2816 (gimple_fold_builtin): Change signature and handle
2817 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2818 here. Call gimple_fold_builtin_with_strlen.
2819 (gimple_fold_call): Adjust.
2821 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2823 * calls.c (precompute_arguments): Check
2824 promoted_for_signed_and_unsigned_p and set the promoted mode.
2825 (promoted_for_signed_and_unsigned_p): New function.
2826 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2827 and set the promoted mode.
2828 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2829 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2830 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2833 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2835 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2836 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2837 (expand_call): Likewise.
2838 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2839 to get promoted mode.
2840 * combine.c (record_promoted_value): Skip > 0 comparison with
2841 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2842 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2843 of SUBREG_PROMOTED_UNSIGNED_P.
2844 (convert_modes): Likewise.
2845 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2846 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2847 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2848 SUBREG_PROMOTED_UNSIGNED_SET.
2849 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2850 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2851 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2852 SUBREG_PROMOTED_SET.
2853 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2854 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2855 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2856 of SUBREG_PROMOTED_UNSIGNED_P.
2857 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2858 (SUBREG_PROMOTED_SET): New define.
2859 (SUBREG_PROMOTED_GET): Likewise.
2860 (SUBREG_PROMOTED_SIGN): Likewise.
2861 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2862 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2863 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2864 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2865 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2866 (nonzero_bits1): Skip > 0 comparison with the results as
2867 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2868 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2869 of !SUBREG_PROMOTED_UNSIGNED_P.
2870 * simplify-rtx.c (simplify_unary_operation_1): Use new
2871 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2872 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2873 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2874 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2876 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2878 * ipa-devirt.c: Include gimple-pretty-print.h
2879 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2881 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2882 (get_polymorphic_call_info): Fix return value
2883 (type_change_info): New sturcture based on ipa-prop
2885 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2886 based on ipa-prop variant.
2887 (extr_type_from_vtbl_ptr_store): New function
2888 based on ipa-prop variant.
2889 (record_known_type): New function.
2890 (check_stmt_for_type_change): New function.
2891 (get_dynamic_type): New function.
2892 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2893 * tree-ssa-pre.c: ipa-utils.h
2894 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2895 machinery; sanity check with ipa-prop devirtualization.
2896 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2899 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2901 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2902 * alias.c, cfgexpand.c, cgraphbuild.c,
2903 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2904 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2905 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2906 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2907 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2908 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2909 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2910 dse.c, except.c, gengtype.c, gimple-expr.c,
2911 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2912 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2913 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2914 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2915 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2916 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2918 * pointer-set.c: Remove file.
2919 * pointer-set.h: Remove file.
2921 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2923 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2924 * config/arm/types.md (f_sels, f_seld): Delete.
2926 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2928 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2929 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2930 (aarch64_movdi_<mode>high): Likewise.
2931 (aarch64_mov<mode>high_di): Likewise.
2932 (aarch64_movdi_<mode>low): Likewise.
2933 (aarch64_mov<mode>low_di): Likewise.
2934 (aarch64_movtilow_tilow): Likewise.
2935 Add comment explaining usage of fp,simd attributes and of
2936 TARGET_FLOAT and TARGET_SIMD.
2938 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2939 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2941 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2942 Use MOVN when one of the half-words is 0xffff.
2944 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2946 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2948 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2950 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2951 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2952 (rfs_str): String corresponding to RFS_* constants.
2953 (rank_for_schedule_stats_t): New typedef.
2954 (rank_for_schedule_stats): New static variable.
2955 (rfs_result): New static function.
2956 (rank_for_schedule): Track statistics for deciding heuristics.
2957 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2959 (ready_sort): Use them for debug printouts.
2960 (schedule_block): Init statistics state. Print statistics on
2961 rank_for_schedule decisions.
2963 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2965 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2967 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2969 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2972 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2974 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2975 function to not conflict.
2976 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2977 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2978 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2979 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2980 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2983 2014-08-07 Marek Polacek <polacek@redhat.com>
2985 * fold-const.c (fold_binary_loc): Add folding of
2986 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2988 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2990 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2991 instead of type size.
2992 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2994 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2996 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2997 (*thumb1_movqi_insn): Likewise.
2998 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
3000 2014-08-07 Tom de Vries <tom@codesourcery.com>
3002 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3003 (glibc_2_11_or_earlier): Remove effective-target keywords.
3005 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3007 * config/arm/arm.c (bdesc_2arg): Fix typo.
3008 (arm_atomic_assign_expand_fenv): Remove The default implementation.
3010 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
3012 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
3014 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
3017 * haifa-sched.c (advance_one_cycle): Fix dump.
3018 (schedule_block): Don't advance cycle if we are already at the
3019 beginning of the cycle.
3021 2014-08-06 Martin Jambor <mjambor@suse.cz>
3024 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3026 2014-08-06 Richard Biener <rguenther@suse.de>
3029 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
3031 (lto_input_tree): Pop SCCs here.
3033 2014-08-06 Richard Biener <rguenther@suse.de>
3035 PR tree-optimization/61320
3036 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
3037 handle misaligned loads.
3039 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
3041 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
3042 (aarch64_expand_vec_perm_const): Check for dup before zip.
3044 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3046 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
3047 CONST_INT_P instead of GET_CODE and compare.
3048 (aarch64_select_cc_mode): Likewise.
3049 (aarch64_print_operand): Likewise.
3050 (aarch64_rtx_costs): Likewise.
3051 (aarch64_simd_valid_immediate): Likewise.
3052 (aarch64_simd_check_vect_par_cnst_half): Likewise.
3053 (aarch64_simd_emit_pair_result_insn): Likewise.
3055 2014-08-05 David Malcolm <dmalcolm@redhat.com>
3057 * gdbhooks.py (find_gcc_source_dir): New helper function.
3058 (class PassNames): New class, locating and parsing passes.def.
3059 (class BreakOnPass): New command "break-on-pass".
3061 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
3063 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
3066 2014-08-05 Richard Biener <rguenther@suse.de>
3068 PR rtl-optimization/61672
3069 * emit-rtl.h (mem_attrs_eq_p): Declare.
3070 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
3071 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
3072 * cfgcleanup.c (merge_memattrs): Likewise.
3075 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3077 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
3078 rather than singleton vectors.
3079 (vqdmlsls_lane_s32): Likewise.
3081 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3083 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
3084 Use VSDQ_HSI mode iterator.
3085 (aarch64_sqrdmulh_laneq<mode>): Likewise.
3086 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
3087 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
3088 Use BUILTIN_VDQHS macro.
3089 (sqrdmulh_laneq): Likewise.
3090 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
3091 (vqdmlals_laneq_s32): Likewise.
3092 (vqdmlslh_laneq_s16): Likewise.
3093 (vqdmlsls_laneq_s32): Likewise.
3094 (vqdmulhh_laneq_s16): Likewise.
3095 (vqdmulhs_laneq_s32): Likewise.
3096 (vqrdmulhh_laneq_s16): Likewise.
3097 (vqrdmulhs_laneq_s32): Likewise.
3099 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3101 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
3102 (vmuld_laneq_f64): Likewise.
3103 (vmuls_laneq_f32): Likewise.
3104 (vmul_n_f64): Likewise.
3105 (vmuld_lane_f64): Reimplement in C.
3106 (vmuls_lane_f32): Likewise.
3108 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3110 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
3112 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3114 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3116 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
3117 (rbitsi2): Likewise.
3118 (*arm_rev): Set predicable and predicable_short_it attributes.
3120 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3122 * convert.c (convert_to_integer): Guard transformation to lrint by
3125 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
3127 * config/aarch64/aarch64-builtins.c
3128 (aarch64_simd_builtin_type_mode): Delete.
3129 (v8qi_UP): Remap to V8QImode.
3130 (v4hi_UP): Remap to V4HImode.
3131 (v2si_UP): Remap to V2SImode.
3132 (v2sf_UP): Remap to V2SFmode.
3133 (v1df_UP): Remap to V1DFmode.
3134 (di_UP): Remap to DImode.
3135 (df_UP): Remap to DFmode.
3136 (v16qi_UP):V16QImode.
3137 (v8hi_UP): Remap to V8HImode.
3138 (v4si_UP): Remap to V4SImode.
3139 (v4sf_UP): Remap to V4SFmode.
3140 (v2di_UP): Remap to V2DImode.
3141 (v2df_UP): Remap to V2DFmode.
3142 (ti_UP): Remap to TImode.
3143 (ei_UP): Remap to EImode.
3144 (oi_UP): Remap to OImode.
3145 (ci_UP): Map to CImode.
3146 (xi_UP): Remap to XImode.
3147 (si_UP): Remap to SImode.
3148 (sf_UP): Remap to SFmode.
3149 (hi_UP): Remap to HImode.
3150 (qi_UP): Remap to QImode.
3151 (aarch64_simd_builtin_datum): Make mode a machine_mode.
3152 (VAR1): Build builtin name.
3153 (aarch64_init_simd_builtins): Remove dead code.
3155 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3157 * graphite-isl-ast-to-gimple.c:
3158 (set_options): New function.
3159 (scop_to_isl_ast): Add calling of set_options.
3161 2014-08-05 Jakub Jelinek <jakub@redhat.com>
3163 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
3164 (analyze_iv_to_split_insn): Don't initialize them.
3165 (get_ivts_expr): Removed.
3166 (allocate_basic_variable, insert_base_initialization): Use
3167 SET_SRC instead of *get_ivts_expr.
3168 (split_iv): Use &SET_SRC instead of get_ivts_expr.
3170 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3172 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
3173 (translate_isl_ast_for_loop): Add checking of the
3174 flag_loop_parallelize_all.
3175 (ast_build_before_for): New function.
3176 (scop_to_isl_ast): Add checking of the
3177 flag_loop_parallelize_all.
3178 * graphite-dependences.c: Move the defenition of the
3179 scop_get_dependences from graphite-optimize-isl.c to this file.
3180 (apply_schedule_on_deps): Add checking of the ux's emptiness.
3181 (carries_deps): Add checking of the x's value.
3182 * graphite-optimize-isl.c: Move the defenition of the
3183 scop_get_dependences to graphite-dependences.c.
3184 * graphite-poly.h: Add declarations of scop_get_dependences
3187 2014-08-04 Rohit <rohitarulraj@freescale.com>
3190 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
3192 (alt_reg_names): Likewise.
3193 (rs6000_dwarf_register_span): For SPE high registers, replace
3194 dwarf register numbers with GCC hard register numbers.
3195 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
3196 (rs6000_dbx_register_number): For SPE high registers, return dwarf
3197 register number for the corresponding GCC hard register number.
3198 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
3199 newly added GCC hard register numbers for SPE high registers.
3200 (DWARF_FRAME_REGISTERS): Likewise.
3201 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
3202 (DWARF_FRAME_REGNUM): Likewise.
3203 (FIXED_REGISTERS): Likewise.
3204 (CALL_USED_REGISTERS): Likewise.
3205 (CALL_REALLY_USED_REGISTERS): Likewise.
3206 (REG_ALLOC_ORDER): Likewise.
3207 (enum reg_class): Likewise.
3208 (REG_CLASS_NAMES): Likewise.
3209 (REG_CLASS_CONTENTS): Likewise.
3210 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
3212 2014-08-04 Richard Biener <rguenther@suse.de>
3214 * gimple-fold.h (gimple_fold_builtin): Remove.
3215 * gimple-fold.c (gimple_fold_builtin): Make static.
3216 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
3217 fold_stmt, not gimple_fold_builtin.
3219 2014-08-04 Martin Liska <mliska@suse.cz>
3221 * cgraph.h (csi_end_p): Removed.
3222 (csi_next): Likewise.
3223 (csi_node): Likewise.
3224 (csi_start): Likewise.
3225 (cgraph_node_in_set_p): Likewise.
3226 (cgraph_node_set_size): Likewise.
3227 (vsi_end_p): Likewise.
3228 (vsi_next): Likewise.
3229 (vsi_node): Likewise.
3230 (vsi_start): Likewise.
3231 (varpool_node_set_size): Likewise.
3232 (cgraph_node_set_nonempty_p): Likewise.
3233 (varpool_node_set_nonempty_p): Likewise.
3234 * cgraphunit.c (cgraph_process_new_functions): vec replaces
3236 * ipa-inline-transform.c: Likewise.
3237 * ipa-utils.c (cgraph_node_set_new): Removed.
3238 (cgraph_node_set_add): Likewise.
3239 (cgraph_node_set_remove): Likewise.
3240 (cgraph_node_set_find): Likewise.
3241 (dump_cgraph_node_set): Likewise.
3242 (debug_cgraph_node_set): Likewise.
3243 (free_cgraph_node_set): Likewise.
3244 (varpool_node_set_new): Likewise.
3245 (varpool_node_set_add): Likewise.
3246 (varpool_node_set_remove): Likewise.
3247 (varpool_node_set_find): Likewise.
3248 (dump_varpool_node_set): Likewise.
3249 (free_varpool_node_set): Likewise.
3250 (debug_varpool_node_set): Likewise.
3251 * tree-emutls.c (struct tls_var_data):
3252 (emutls_index): Removed.
3253 (emutls_decl): Likewise.
3254 (gen_emutls_addr): Function implementation uses newly added
3255 hash_map<varpool_node *, tls_var_data>.
3256 (clear_access_vars): Likewise.
3257 (create_emultls_var): Likewise.
3258 (ipa_lower_emutls): Likewise.
3259 (reset_access): New function.
3261 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3263 * config/i386/i386.c (ix86_option_override_internal): Add
3264 PTA_RDRND and PTA_MOVBE for bdver4.
3266 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3267 James Greenhalgh <james.greenhalgh@arm.com>
3269 * doc/md.texi (clrsb): Document.
3270 (clz): Change reference to x into operand 1.
3272 (popcount): Likewise.
3274 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3277 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
3278 move to subtarget in serial version if result is ignored.
3280 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3281 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3283 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
3284 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
3285 (sched_analyze_insn): Update use of try_group_insn to
3286 sched_macro_fuse_insns.
3287 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
3288 arguments that are not conditional jumps.
3290 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3292 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
3293 family information. Handle BTVER2 cpu with cpuid family value.
3295 2014-08-04 Tom de Vries <tom@codesourcery.com>
3297 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3298 (glibc_2_11_or_earlier): Document effective-target keywords.
3300 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3302 * ipa-devirt.c (odr_type_warn_count): Add type.
3303 (possible_polymorphic_call_targets): Set it.
3304 (ipa_devirt): Use it.
3306 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3308 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
3310 * ipa-devirt.c: Include hash-map.h
3311 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
3312 (clear_speculation): Break out of ...
3313 (get_class_context): ... here; speed up handling obviously useless
3315 (odr_type_warn_count, decl_warn_count): New structures.
3316 (final_warning_record): New structure.
3317 (final_warning_records): New static variable.
3318 (possible_polymorphic_call_targets): Cleanup handling of
3319 speculative info; do not build speculation when user do not care;
3320 record info about warnings when asked for.
3321 (add_decl_warning): New function.
3322 (type_warning_cmp): New function.
3323 (decl_warning_cmp): New function.
3324 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
3325 (gate): Enable pass when warnings are requested.
3326 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
3329 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3331 * hash-map.h (default_hashmap_traits::mark_key_deleted):
3333 (hash_map::remove): New method.
3334 (hash_map::traverse): New method.
3335 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
3336 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
3337 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
3338 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
3339 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
3340 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
3343 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3345 * hash-set.h: new File.
3346 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
3347 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
3348 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
3349 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
3350 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
3351 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
3352 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
3353 varpool.c: Use hash_set instead of pointer_set.
3355 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
3357 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
3359 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3361 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3362 for frame access when strict_p is false.
3364 2014-08-01 Renlin Li <renlin.li@arm.com>
3365 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3367 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3368 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3369 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3371 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3373 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3374 aarch64_mem_pair_offset.
3376 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3378 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3380 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3381 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3383 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3385 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3387 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3390 * cgraphunit.c (analyze_functions): Use get_create rather than get
3391 for decls which are clones of abstract functions.
3393 2014-08-01 Martin Liska <mliska@suse.cz>
3395 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3396 * ipa-prop.h (count_formal_params): Global function created from static.
3397 * ipa-prop.c (count_formal_params): Likewise.
3398 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3399 profiles for semantically equivalent functions.
3400 * passes.c (do_per_function): If we load body of a function
3401 during WPA, this condition should behave same.
3402 * varpool.c (ctor_for_folding): More tolerant assert for variable
3403 aliases created during WPA.
3405 2014-08-01 Martin Liska <mliska@suse.cz>
3407 * doc/invoke.texi (Options That Control Optimization): Documentation
3408 for -foptimize-strlen introduced. Optimization levels default options
3411 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3413 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3414 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3415 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3417 * stor-layout.h (min_align_of_type): New prototype.
3418 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3419 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3421 * ubsan.c: Include builtins.h.
3422 (ubsan_expand_bounds_ifn): Change return type to bool,
3424 (ubsan_expand_null_ifn): Change return type to bool, change
3425 argument to gimple_stmt_iterator *. Handle both null and alignment
3426 sanitization, take type from ckind argument's type rather than
3428 (instrument_member_call): Removed.
3429 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3430 Handle both null and alignment sanitization, don't say whole
3431 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3432 call instead of 2 argument.
3433 (instrument_null): Adjust instrument_mem_ref caller. Don't
3434 instrument calls here.
3435 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3437 * stor-layout.c (min_align_of_type): New function.
3438 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3439 Or it into SANITIZE_UNDEFINED.
3440 * doc/invoke.texi (-fsanitize=alignment): Document.
3442 2014-07-31 Andi Kleen <ak@linux.intel.com>
3444 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3446 2014-07-31 Andi Kleen <ak@linux.intel.com>
3448 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3450 (vn_reference_compute_hash): Dito.
3451 (vn_nary_op_compute_hash): Dito.
3452 (vn_phi_compute_hash): Dito.
3453 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3455 2014-07-31 Andi Kleen <ak@linux.intel.com>
3457 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3458 Rename to inchash:add_expr_commutative. Convert to inchash.
3459 (iterative_hash_hashable_expr): Rename to
3460 inchash:add_hashable_expr. Convert to inchash.
3461 (avail_expr_hash): Dito.
3463 2014-07-31 Andi Kleen <ak@linux.intel.com>
3465 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3468 2014-07-31 Andi Kleen <ak@linux.intel.com>
3470 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3472 2014-07-31 Andi Kleen <ak@linux.intel.com>
3474 * Makefile.in (OBJS): Add rtlhash.o
3475 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3476 (loc_checksum): Dito.
3477 (loc_checksum_ordered): Dito.
3478 (hash_loc_operands): Dito.
3480 (hash_loc_list): Dito.
3481 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3482 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3483 * rtlhash.c: New file.
3484 * rtlhash.h: New file.
3486 2014-07-31 Andi Kleen <ak@linux.intel.com>
3488 * inchash.h (inchash): Change inchash class to namespace.
3489 (class hash): ... Rename from inchash.
3490 (add_object): Move from macro to class template.
3491 * lto-streamer-out.c (hash_tree): Change inchash
3493 * tree.c (build_type_attribute_qual_variant): Dito.
3494 (type_hash_list): Dito.
3495 (attribute_hash_list): Dito.
3496 (iterative_hstate_expr): Rename to inchash::add_expr
3497 (build_range_type_1): Change inchash to inchash::hash
3498 and use hash::add_expr.
3499 (build_array_type_1): Dito.
3500 (build_function_type): Dito
3501 (build_method_type_directly): Dito.
3502 (build_offset_type): Dito.
3503 (build_complex_type): Dito.
3504 (make_vector_type): Dito.
3505 * tree.h (iterative_hash_expr): Dito.
3507 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3509 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3511 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3513 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3514 correct alphabetical position.
3515 (vpaddd_f64): Rewrite using builtins.
3516 (vpaddd_s64): Move to correct alphabetical position.
3519 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3522 * config/sh/sh.c (sh_legitimate_address_p,
3523 sh_legitimize_reload_address): Handle reg+reg address modes when
3524 ALLOW_INDEXED_ADDRESS is false.
3525 * config/sh/predicates.md (general_movsrc_operand,
3526 general_movdst_operand): Likewise.
3528 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3530 * config/aarch64/aarch64-builtins.c
3531 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3534 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3536 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3537 the generated mask based on BYTES_BIG_ENDIAN.
3538 (aarch64_simd_check_vect_par_cnst_half): New.
3539 * config/aarch64/aarch64-protos.h
3540 (aarch64_simd_check_vect_par_cnst_half): New.
3541 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3542 the check out to aarch64_simd_check_vect_par_cnst_half.
3543 (vect_par_cnst_lo_half): Likewise.
3544 * config/aarch64/aarch64-simd.md
3545 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3546 (move_hi_quad_<mode>): Always generate a low mask.
3548 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3550 * doc/invoke.texi (AVR Options): Add documentation about
3551 __AVR_DEVICE_NAME__ built-in macro.
3553 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3556 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3557 constraints are satisfied.
3558 (<shift>di3_neon): Likewise.
3560 2014-07-31 Richard Biener <rguenther@suse.de>
3562 PR tree-optimization/61964
3563 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3564 by structural equality.
3566 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3568 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3569 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3570 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3572 * gcc.c (sanitize_spec_function): Support new option.
3573 (SANITIZER_SPEC): Remove now redundant check.
3574 * opts.c (common_handle_option): Support new option.
3575 (finish_options): Check for incompatibilities.
3576 * toplev.c (process_options): Split userspace-specific checks.
3578 2014-07-31 Richard Biener <rguenther@suse.de>
3580 * lto-streamer.h (struct output_block): Remove global.
3581 (struct data_in): Remove labels, num_named_labels and
3583 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3584 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3586 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3589 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3590 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3591 (isolate_path): New argument to avoid inserting a trap.
3592 (find_implicit_erroneous_behaviour): Handle returning the address
3593 of a local variable.
3594 (find_explicit_erroneous_behaviour): Likewise.
3596 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3599 * toplev.c (init_random_seed): Move piece of code never called to
3601 (set_random_seed): see above.
3603 2014-07-31 Tom de Vries <tom@codesourcery.com>
3605 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3607 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3609 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3610 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3612 2014-07-31 Richard Biener <rguenther@suse.de>
3614 * data-streamer.h (streamer_write_data_stream): Declare here,
3616 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3617 * lto-cgraph.c (lto_output_node): Adjust.
3618 (lto_output_varpool_node): Likewise.
3619 * data-streamer-out.c (streamer_string_index): Likewise.
3620 (streamer_write_data_stream, lto_append_block): Move from ...
3621 * lto-section-out.c (lto_output_data_stream,
3622 lto_append_block): ... here.
3624 2014-07-30 Mike Stump <mikestump@comcast.net>
3626 * configure.ac: Also check for popen.
3627 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3628 * configure: Regenerate.
3629 * config.in: Regenerate.
3631 2014-07-30 Martin Jambor <mjambor@suse.cz>
3633 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3634 parameter to gimple.
3636 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3638 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3639 address as second parameter to __tpf_eh_return routine.
3641 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3643 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3646 2014-07-30 Tom Tromey <tromey@redhat.com>
3649 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3650 * doc/extend.texi (Type Attributes): Document designated_init
3653 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3655 * graphite-isl-ast-to-gimple.c:
3656 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3657 (gcc_expression_from_isl_expression): Pass type to
3658 gcc_expression_from_isl_ast_expr_id.
3660 2014-07-30 Richard Biener <rguenther@suse.de>
3662 * lto-streamer.h (lto_write_data): New function.
3663 * langhooks.c (lhd_append_data): Do not free block.
3664 * lto-section-out.c (lto_write_data): New function writing
3665 raw data to the current section.
3666 (lto_write_stream): Adjust for langhook semantic change.
3667 (lto_destroy_simple_output_block): Write header directly.
3668 * lto-opts.c (lto_write_options): Write options directly.
3669 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3670 (lto_output_toplevel_asms): Likewise.
3671 (copy_function_or_variable): Copy data directly.
3672 (write_global_references): Output index table directly.
3673 (lto_output_decl_state_refs): Likewise.
3674 (write_symbol): Write data directly.
3675 (produce_symtab): Adjust.
3676 (produce_asm_for_decls): Output header and refs directly.
3678 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3680 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3681 to speculative_targets
3682 (get_class_context): Fix handling of contextes without outer type;
3683 avoid matching non-polymorphic types in LTO.
3684 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3685 parameter to speculative_targetsp; handle speculation.
3686 (dump_possible_polymorphic_call_targets): Update dumping.
3688 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3690 * common.opt (Wodr): Enable by default.
3692 2014-07-29 Olivier Hainque <hainque@adacore.com>
3694 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3696 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3699 * gengtype.c (strtoken): New function.
3700 (create_user_defined_type): Replace strtok with strtoken.
3702 2014-07-29 Nathan Sidwell <nathan@acm.org>
3704 * gcov-io.c (gcov_var): Make hidden.
3705 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3706 (gcov_do_dump): Declare.
3707 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3709 2014-07-29 Martin Jambor <mjambor@suse.cz>
3711 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3712 parameter to gimple.
3713 (sra_modify_assign): Likewise.
3715 2014-07-29 Richard Biener <rguenther@suse.de>
3718 * expr.c (expand_expr_real_2): Revert last change.
3720 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3722 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3723 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3724 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3726 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3727 (contains_type_p): Forward declare.
3728 (polymorphic_call_target_hasher::hash): Hash speculative info.
3729 (polymorphic_call_target_hasher::equal): Compare speculative info.
3730 (get_class_context): Handle speuclation.
3731 (contains_type_p): Update.
3732 (get_polymorphic_call_info_for_decl): Update.
3733 (walk_ssa_copies): Break out from ...
3734 (get_polymorphic_call_info): ... here; set speculative context
3736 * ipa-prop.c (ipa_write_indirect_edge_info,
3737 ipa_read_indirect_edge_info): Stream speculative context.
3738 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3739 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3740 SPECULATIVE_MAYBE_DERIVED_TYPE).
3741 (possible_polymorphic_call_targets overriders): Update.
3742 (dump_possible_polymorphic_call_targets overriders): Update.
3743 (dump_possible_polymorphic_call_target_p overriders): Update.
3745 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3747 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3748 ipa-devirt path; fix thinko there.
3750 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3752 * config/i386/i386.c (ix86_return_in_memory): Replace one
3753 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3755 2014-07-28 Marek Polacek <polacek@redhat.com>
3757 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3759 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3761 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3762 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3763 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3764 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3765 (USE_LD_AS_NEEDED): Likewise.
3766 (ASM_APP_ON): Likewise.
3767 (ASM_APP_OFF): Likewise.
3768 (TARGET_POSIX_IO): Likewise.
3769 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3770 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3771 (USE_LD_AS_NEEDED): Likewise.
3772 (ASM_APP_ON): Likewise.
3773 (ASM_APP_OFF): Likewise.
3774 (TARGET_POSIX_IO): Likewise.
3776 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3779 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3780 operators other than the equality operators.
3782 2014-07-28 Richard Biener <rguenther@suse.de>
3785 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3786 sure to register SImode ones, not only >= word_mode ones.
3787 * expr.c (expand_expr_real_2): When expanding -ftrapv
3788 binops do not use OPTAB_LIB_WIDEN.
3790 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3793 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3794 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3795 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3796 inserting them in the insn stream.
3798 2014-07-28 Marek Polacek <polacek@redhat.com>
3801 * common.opt (Wodr): Add Var.
3803 2014-07-28 Richard Biener <rguenther@suse.de>
3805 PR tree-optimization/61921
3806 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3807 if there is a varpool node before dereferencing it.
3809 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3811 * graphite-sese-to-poly.c:
3812 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3813 id of the pbb), which contains pointer to the pbb1.
3815 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3817 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3819 * graphite-isl-ast-to-gimple.c:
3820 (graphite_create_new_guard): New function.
3821 (translate_isl_ast_node_if): New function.
3822 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3824 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3826 2014-07-27 Anthony Green <green@moxielogic.com>
3828 * config.gcc: Add moxie-*-moxiebox* configuration.
3829 * config/moxie/moxiebox.h: New file.
3831 2014-07-26 Andrew Pinski <apinski@cavium.com>
3833 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3834 from the read only register.
3836 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3838 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3839 as the allocation class if it isn't likely to be spilled.
3841 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3843 * rtl.h (tls_referenced_p): Declare.
3844 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3845 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3846 (mips_cannot_force_const_mem): Use tls_referenced_p.
3847 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3848 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3849 instead of pa_tls_referenced_p.
3850 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3851 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3852 (pa_legitimate_constant_p): Likewise.
3853 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3854 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3855 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3856 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3857 rs6000_tls_referenced_p.
3858 (rs6000_tls_symbol_ref_1): Delete.
3860 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3863 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3864 Optimize inverse of a VEC_CONCAT.
3866 2014-07-25 Xinliang David Li <davidxl@google.com>
3868 * params.def: New parameter.
3869 * coverage.c (get_coverage_counts): Check new flag.
3870 (coverage_compute_profile_id): Check new flag.
3871 (coverage_begin_function): Check new flag.
3872 (coverage_end_function): Check new flag.
3873 * value-prof.c (coverage_node_map_initialized_p): New function.
3874 (init_node_map): Populate map with all functions.
3875 * doc/invoke.texi: Document new parameter.
3877 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3878 Richard Biener <rguenther@suse.de>
3880 * lto-streamer-out.c (struct sccs): Turn to ...
3881 (class DFS): ... this one; refactor the DFS walk so it can
3882 be re-done on per-SCC basis.
3883 (DFS::DFS): New constructor.
3884 (DFS::~DFS): New destructor.
3885 (hash_tree): Add new MAP argument holding in-SCC hash values;
3886 remove POINTER_TYPE hashing hack.
3887 (scc_entry_compare): Rename to ...
3888 (DFS::scc_entry_compare): ... this one.
3889 (hash_scc): Rename to ...
3890 (DFS::hash_scc): ... this one; pass output_block instead
3891 of streamer_cache; work harder to get unique and stable SCC
3893 (DFS_write_tree): Rename to ...
3894 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3895 (lto_output_tree): Update.
3897 2014-07-25 Andi Kleen <ak@linux.intel.com>
3899 * lto-streamer-out.c (hash_tree): Convert to inchash.
3901 2014-07-25 Andi Kleen <ak@linux.intel.com>
3903 * tree.c (build_type_attribute_qual_variant): Use inchash.
3904 (type_hash_list): Dito.
3905 (attribute_hash_list): Dito
3906 (iterative_hstate_expr): Dito.
3907 (iterative_hash_expr): Dito.
3908 (build_range_type_1): Dito.
3909 (build_array_type_1): Dito.
3910 (build_function_type): Dito.
3911 (build_method_type_directly): Dito.
3912 (build_offset_type): Dito.
3913 (build_complex_type): Dito.
3914 (make_vector_type): Dito.
3915 * tree.h (iterative_hash_expr): Add compat wrapper.
3916 (iterative_hstate_expr): Add.
3918 2014-07-25 Andi Kleen <ak@linux.intel.com>
3920 * Makefile.in (OBJS): Add inchash.o.
3921 (PLUGIN_HEADERS): Add inchash.h.
3922 * ipa-devirt.c: Include inchash.h.
3923 * lto-streamer-out.c: Dito.
3924 * tree-ssa-dom.c: Dito.
3925 * tree-ssa-pre.c: Dito.
3926 * tree-ssa-sccvn.c: Dito.
3927 * tree-ssa-tail-merge.c: Dito.
3929 * tree.c (iterative_hash_hashval_t): Move to ...
3930 (iterative_hash_host_wide_int): Move to ...
3931 * inchash.c: Here. New file.
3932 * tree.h (iterative_hash_hashval_t): Move to ...
3933 (iterative_hash_host_wide_int): Move to ...
3934 * inchash.h: Here. New file.
3936 2014-07-25 Richard Biener <rguenther@suse.de>
3940 * fold-const.c (native_encode_int): Add and handle offset
3941 parameter to do partial encodings of expr.
3942 (native_encode_fixed): Likewise.
3943 (native_encode_real): Likewise.
3944 (native_encode_complex): Likewise.
3945 (native_encode_vector): Likewise.
3946 (native_encode_string): Likewise.
3947 (native_encode_expr): Likewise.
3948 * fold-const.c (native_encode_expr): Add offset parameter
3950 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3951 (fold_ctor_reference): Handle all reads from tcc_constant
3954 2014-07-25 Richard Biener <rguenther@suse.de>
3956 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3959 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3961 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3963 2014-07-24 Kyle McMartin <kyle@redhat.com>
3965 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3967 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3969 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3971 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3973 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3974 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3975 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3977 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3979 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3980 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3981 aggregate types. Instead, *all* aggregate types, except for single-
3982 element or homogeneous float/vector aggregates, are quadword-aligned
3983 if required by their type alignment. Issue -Wpsabi note when a type
3984 is now treated differently than before.
3986 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3988 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3989 does not fit fully into floating-point registers, and there is still
3990 space in the register parameter area, use GPRs to pass those parts
3991 of the argument. Issue -Wpsabi note if any parameter is now treated
3992 differently than before.
3993 (rs6000_arg_partial_bytes): Update.
3995 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3997 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3999 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4001 * rtl.h (target_rtl): Remove lang_dependent_initialized.
4002 * toplev.c (initialize_rtl): Don't use it. Move previously
4003 "language-dependent" calls to...
4004 (backend_init): ...here.
4005 (lang_dependent_init_target): Don't set lang_dependent_initialized.
4006 Assert that RTL initialization hasn't happend yet.
4008 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4010 PR rtl-optimization/61629
4011 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
4012 they have already been initialized.
4014 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4017 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
4018 DECL_INCOMING_RTL and entry_parm.
4019 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
4020 * calls.c (load_register_parameters): Likewise argument values.
4021 (emit_library_call_value_1, store_one_arg): Likewise argument
4023 * config/i386/i386.c (assign_386_stack_local): Likewise the local
4025 * explow.c (validize_mem): Modify the argument in-place.
4027 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4029 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
4030 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
4032 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4034 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
4035 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
4037 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4039 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
4040 (aarch64_save_callee_saves): New parameter "skip_wb".
4041 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
4043 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4045 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
4047 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
4049 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4051 * graphite-isl-ast-to-gimple.c:
4052 (graphite_create_new_loop): Add calling of isl_id_free to properly
4053 decrement reference counts.
4055 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
4057 2014-07-24 Martin Liska <mliska@suse.cz>
4058 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
4060 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
4061 (rs6000_code_end): Likewise.
4063 2014-07-24 Martin Liska <mliska@suse.cz>
4065 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
4066 symtab_node funtion used.
4067 (rs6000_xcoff_declare_object_name): Likewise.
4069 2014-07-24 Martin Liska <mliska@suse.cz>
4071 * cgraphunit.c (compile): Correct function used.
4073 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4075 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
4078 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4081 * varasm.c (bss_initializer_p): Handle offlined ctors.
4082 (align_variable, get_variable_align): Likewise.
4083 (make_decl_one_only): Likewise.
4084 (default_binds_local_p_1): Likewise.
4085 (decl_binds_to_current_def_p): Likewise.
4086 (get_variable_section): Get constructor if it is offlined.
4087 (assemble_variable_contents): Sanity check that the caller
4088 streamed in the ctor in LTO.
4090 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4092 * graphite-isl-ast-to-gimple.c:
4093 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
4094 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
4095 isl_ast_op_pdiv_r to the different case.
4097 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
4099 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4102 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
4103 when flag_errno_math is on.
4105 2014-07-24 Martin Liska <mliska@suse.cz>
4107 * cgraph.h (varpool_node):
4108 (availability get_availability (void)):
4109 created from cgraph_variable_initializer_availability
4110 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
4111 created from: cgraph_variable_initializer_availability
4112 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
4113 (void finalize_named_section_flags (void)):
4114 created from varpool_finalize_named_section_flags
4115 (bool assemble_decl (void)): created from varpool_assemble_decl
4116 (void analyze (void)): created from varpool_analyze_node
4117 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
4118 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
4119 (void remove_initializer (void)): created from varpool_remove_initializer
4120 (tree get_constructor (void)): created from varpool_get_constructor
4121 (bool externally_visible_p (void)): created from varpool_externally_visible_p
4122 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
4123 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
4124 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
4125 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
4126 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
4127 (static bool output_variables (void)): created from varpool_output_variables
4128 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
4129 created from varpool_extra_name_alias
4130 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
4131 (static void dump_varpool (FILE *f)): created from dump_varpool
4132 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
4133 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
4134 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
4135 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
4136 (void assemble_aliases (void)): created from assemble_aliases
4138 2014-07-24 Martin Liska <mliska@suse.cz>
4140 * cgraph.h (symtab_node):
4141 (void register_symbol (void)): created from symtab_register_node
4142 (void remove (void)): created from symtab_remove_node
4143 (void dump (FILE *f)): created from dump_symtab_node
4144 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
4145 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
4146 (struct ipa_ref *add_reference (symtab_node *referred_node,
4147 enum ipa_ref_use use_type)): created from add_reference
4148 (struct ipa_ref *add_reference (symtab_node *referred_node,
4149 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
4150 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
4151 gimple stmt)): created from maybe_add_reference
4152 (bool semantically_equivalent_p (symtab_node *target)): created from
4153 symtab_semantically_equivalent_p
4154 (void remove_from_same_comdat_group (void)): created from
4155 remove_from_same_comdat_group
4156 (void add_to_same_comdat_group (symtab_node *old_node)): created from
4157 symtab_add_to_same_comdat_group
4158 (void dissolve_same_comdat_group_list (void)): created from
4159 symtab_dissolve_same_comdat_group_list
4160 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
4161 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
4162 created from symtab_alias_ultimate_target
4163 (inline symtab_node *next_defined_symbol (void)): created from
4164 symtab_next_defined_symbol
4165 (bool resolve_alias (symtab_node *target)): created from
4166 symtab_resolve_alias
4167 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
4168 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
4169 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
4170 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
4171 (void set_section (const char *section)): created from set_section_1
4172 (enum availability get_availability (void)): created from symtab_node_availability
4173 (void make_decl_local (void)): created from symtab_make_decl_local
4174 (bool real_symbol_p (void)): created from symtab_read_node
4175 (can_be_discarded_p (void)): created from symtab_can_be_discarded
4176 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
4177 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
4178 symtab_in_same_comdat_p;
4179 (bool address_taken_from_non_vtable_p (void)): created from
4180 address_taken_from_non_vtable_p
4181 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
4182 (static void dump_table (FILE *)): created from dump_symtab
4183 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
4184 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
4185 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
4186 symtab_used_from_object_file_p
4187 (void dump_base (FILE *)): created from dump_symtab_base
4188 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
4189 (void unregister (void)): created from symtab_unregister_node
4190 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
4191 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
4192 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
4193 symtab_nonoverwritable_alias_1
4194 * cgraph.h (cgraph_node):
4195 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
4196 created from cgraph_remove_node_and_inline_clones
4197 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
4198 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
4199 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
4200 (cgraph_node *function_symbol (enum availability *avail = NULL)):
4201 created from cgraph_function_node
4202 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
4203 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
4204 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
4205 created from cgraph_create_clone
4206 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
4207 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
4208 created from cgraph_create_virtual_clone
4209 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
4210 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
4211 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
4212 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
4213 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
4214 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
4215 created from cgraph_function_version_info
4216 (struct cgraph_function_version_info *insert_new_function_version (void)):
4217 created from insert_new_cgraph_node_version
4218 (struct cgraph_function_version_info *function_version (void)): created from
4219 get_cgraph_node_version
4220 (void analyze (void)): created from analyze_function
4221 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
4222 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
4223 tree real_alias) cgraph_add_thunk
4224 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
4225 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
4226 created from cgraph_function_or_thunk_node
4227 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
4228 created from expand_thunk
4229 (void reset (void)): created from cgraph_reset_node
4230 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
4231 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
4232 (void remove (void)): created from cgraph_remove_node
4233 (void dump (FILE *f)): created from dump_cgraph_node
4234 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
4235 (bool get_body (void)): created from cgraph_get_body
4236 (void release_body (void)): created from cgraph_release_function_body
4237 (void unnest (void)): created from cgraph_unnest_node
4238 (void make_local (void)): created from cgraph_make_node_local
4239 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
4240 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
4241 gcov_type count, int freq)): created from cgraph_create_edge
4242 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
4243 gcov_type count, int freq)): created from cgraph_create_indirect_edge
4244 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
4245 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
4246 created from cgraph_create_edge_including_clones
4247 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
4248 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
4249 (void remove_callers (void)): created from cgraph_node_remove_callers
4250 (void remove_callees (void)): created from cgraph_node_remove_callees
4251 (enum availability get_availability (void)): created from cgraph_function_body_availability
4252 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
4253 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
4254 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
4255 (void call_duplication_hooks (cgraph_node *node2)): created from
4256 cgraph_call_node_duplication_hooks
4257 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
4258 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
4259 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
4260 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
4261 (void call_function_insertion_hooks (void)):
4262 created from cgraph_call_function_insertion_hooks
4263 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
4264 (bool local_p (void)): created from cgraph_local_node
4265 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
4266 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
4267 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
4268 (inline bool only_called_directly_or_aliased_p (void)):
4269 created from cgraph_only_called_directly_or_aliased_p
4270 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
4271 created from cgraph_will_be_removed_from_program_if_no_direct_calls
4272 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
4273 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
4274 (bool can_remove_if_no_direct_calls_p (void)):
4275 created from cgraph_can_remove_if_no_direct_calls_p
4276 (inline bool has_gimple_body_p (void)):
4277 created from cgraph_function_with_gimple_body_p
4278 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
4279 (static void dump_cgraph (FILE *f)): created from dump_cgraph
4280 (static inline void debug_cgraph (void)): created from debug_cgraph
4281 (static void record_function_versions (tree decl1, tree decl2)):
4282 created from record_function_versions
4283 (static void delete_function_version (tree decl)):
4284 created from delete_function_version
4285 (static void add_new_function (tree fndecl, bool lowered)):
4286 created from cgraph_add_new_function
4287 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
4288 (static cgraph_node * create (tree decl)): created from cgraph_create_node
4289 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
4290 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
4291 (static cgraph_node *get_for_asmname (tree asmname)):
4292 created from cgraph_node_for_asm
4293 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
4294 created from cgraph_same_body_alias
4295 (static bool used_from_object_file_p_worker (cgraph_node *node,
4296 void *): new function
4297 (static bool non_local_p (cgraph_node *node, void *)):
4298 created from cgraph_non_local_node_p_1
4299 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
4300 created from verify_cgraph
4301 (static bool make_local (cgraph_node *node, void *)):
4302 created from cgraph_make_node_local
4303 (static cgraph_node *create_alias (tree alias, tree target)):
4304 created from cgraph_create_function_alias
4305 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
4306 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
4307 created from cgraph_create_edge_1
4308 * cgraph.h (varpool_node):
4309 (void remove (void)): created from varpool_remove_node
4310 (void dump (FILE *f)): created from dump_varpool_node
4312 2014-07-24 Richard Biener <rguenther@suse.de>
4315 * tree-ssa-structalias.c (create_variable_info_for_1):
4316 Use varpool_get_constructor.
4317 (create_variable_info_for): Likewise.
4319 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4321 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
4322 subtract outgoing area size when restoring stack_pointer_rtx.
4324 2014-07-24 Nick Clifton <nickc@redhat.com>
4326 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
4327 that operations are taking place in parallel.
4328 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
4330 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
4332 * omp-low.c (extract_omp_for_data): Add missing break statement.
4334 2014-07-24 Richard Biener <rguenther@suse.de>
4336 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
4337 * tree-inline.c (estimate_move_cost): Add speed_p parameter
4338 and adjust MOVE_RATIO query accordingly.
4339 (estimate_num_insns): Adjust callers.
4340 * ipa-prop.c (ipa_populate_param_decls): Likewise.
4341 * ipa-cp.c (gather_context_independent_values,
4342 estimate_local_effects): Likewise.
4343 * ipa-split.c (consider_split): Likewise.
4345 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
4347 * config/i386/driver-i386.c: Remove names of unused arguments and
4348 unnecessary unused attributes.
4349 * config/i386/host-mingw32.c: Likewise.
4350 * config/i386/i386.c: Likewise.
4351 * config/i386/winnt-stubs.c: Likewise.
4352 * config/i386/winnt.c: Likewise.
4354 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4356 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
4357 (aarch64_gen_loadwb_pair): New helper function.
4358 (aarch64_expand_epilogue): Simplify code using new helper functions.
4359 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4361 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4363 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4364 (aarch64_gen_storewb_pair): New helper function.
4365 (aarch64_expand_prologue): Simplify code using new helper functions.
4366 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4368 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4370 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4371 Rename to aarch64_save_callee_saves, remove restore code.
4372 (aarch64_restore_callee_saves): New function.
4374 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4376 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4377 (aarch64_save_callee_saves): New function to handle reg save
4378 for both core and vectore regs.
4380 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4382 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4383 (aarch64_gen_store_pair): New helper function.
4384 (aarch64_save_or_restore_callee_save_registers)
4385 (aarch64_save_or_restore_fprs): Use new helper functions.
4387 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4389 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4390 (aarch64_save_or_restore_callee_save_registers)
4391 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4393 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4395 * config/aarch64/aarch64.c
4396 (aarch64_save_or_restore_callee_save_registers)
4397 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4399 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4401 * config/aarch64/aarch64.c
4402 (aarch64_save_or_restore_callee_save_registers)
4403 (aarch64_save_or_restore_fprs): Remove 'increment'.
4405 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4407 * config/aarch64/aarch64.c
4408 (aarch64_save_or_restore_callee_save_registers)
4409 (aarch64_save_or_restore_fprs): Use register offset in
4410 cfun->machine->frame.reg_offset.
4412 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4414 * config/aarch64/aarch64.c
4415 (aarch64_save_or_restore_callee_save_registers)
4416 (aarch64_save_or_restore_fprs): Remove base_rtx.
4418 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4420 * config/aarch64/aarch64.c
4421 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4422 to 'start_offset'. Remove local variable 'start_offset'.
4424 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4426 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4427 type to HOST_WIDE_INT.
4429 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4431 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4432 (aarch64_save_or_restore_fprs)
4433 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4435 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4437 * config/arm/t-rtems-eabi: Add
4438 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4439 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4440 mbig-endian/mthumb/march=armv7-r, and
4441 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4444 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4445 Chris Johns <chrisj@rtems.org>
4446 Joel Sherrill <joel.sherrill@oarcorp.com>
4448 * config.gcc: Add nios2-*-rtems*.
4449 * config/nios2/rtems.h: New file.
4450 * gcc/config/nios2/t-rtems: New file.
4452 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4455 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4456 constant numbers, not general constants.
4457 (rs6000_expand_vector_init): Ditto.
4459 2014-07-23 Nathan Sidwell <nathan@acm.org>
4461 * gcov-tool.c (gcov_list): Declare here.
4462 (set_gcov_list): Remove.
4463 (gcov_output_files): Set gcov_list directly.
4465 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4467 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4469 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4471 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4472 callee-saved registers are available for padding purpose
4473 and r3 is not mandatory, then prefer use those callee-saved
4476 2014-07-23 Richard Biener <rguenther@suse.de>
4478 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4479 * combine.c: Include statistics.h and params.h.
4480 (combine_instructions): Guard three and four insn combines
4481 with max-combine-insns value. Record statistics for combines
4483 * doc/invoke.texi (max-combine-insns): Document new param.
4485 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4487 * graphite-isl-ast-to-gimple.c:
4488 (translate_isl_ast_node_block): New function.
4489 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4491 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4492 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4494 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4496 * graphite-isl-ast-to-gimple.c:
4497 (get_max_schedule_dimensions): New function.
4498 (extend_schedule): Likewise.
4499 (generate_isl_schedule): Add calling of extend_schedule and
4500 get_max_schedule_dimensions.
4502 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4504 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4505 (case UNSPEC): Handle UNSPEC_RBIT.
4507 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4509 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4510 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4512 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4514 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4516 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4518 * graphite-isl-ast-to-gimple.c:
4519 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4521 (build_iv_mapping): New function.
4522 (translate_isl_ast_node_user): Likewise.
4523 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4525 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4526 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4527 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4529 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4532 * config/arm/arm.md (setmem): New pattern.
4533 * config/arm/arm-protos.h (struct tune_params): New fields.
4534 (arm_gen_setmem): New prototype.
4535 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4536 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4537 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4538 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4539 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4540 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4541 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4542 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4543 (arm_const_inline_cost): New function.
4544 (arm_block_set_max_insns): New function.
4545 (arm_block_set_non_vect_profit_p): New function.
4546 (arm_block_set_vect_profit_p): New function.
4547 (arm_block_set_unaligned_vect): New function.
4548 (arm_block_set_aligned_vect): New function.
4549 (arm_block_set_unaligned_non_vect): New function.
4550 (arm_block_set_aligned_non_vect): New function.
4551 (arm_block_set_vect, arm_gen_setmem): New functions.
4553 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4555 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4557 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4560 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4561 out of #ifdef __OPTIMIZE__.
4563 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4565 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4566 different trapping status if -fnon-call-exceptions is enabled.
4568 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4570 * expr.c (store_field): Handle VOIDmode for calls that return values
4571 in multiple locations.
4573 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4575 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4576 (altivec_vsldoi_<mode>): Likewise.
4578 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4580 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4581 to the number of characters in the line.
4583 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4585 * graphite-isl-ast-to-gimple.c: Add using of
4586 build_nonstandard_integer_type instead of int128_integer_type_node.
4588 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4590 * toplev.c (output_stack_usage): Adjust the location of the warning.
4592 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4594 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4595 (*membar_storeload): Disable for LEON3.
4597 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4599 PR rtl-optimization/61461
4600 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4602 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4605 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4606 Fix instruction constraint.
4607 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4609 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4611 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4613 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4615 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4616 GNU coding standards.
4617 (nds32_register_move_cost): Likewise.
4618 (nds32_memory_move_cost): Likewise.
4619 (nds32_address_cost): Likewise.
4621 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4623 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4625 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4627 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4628 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4629 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4630 (HAVE_sync_compare_and_swapqi): Define.
4631 (HAVE_sync_compare_and_swaphi): Likewise.
4632 (HAVE_sync_compare_and_swapsi): Likewise.
4634 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4636 * config/mips/p5600.md: Add missing cpu tests.
4638 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4640 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4641 (vmla_f64): Likewise.
4642 (vfms_f64): Likewise.
4643 (vmls_f64): Likewise.
4645 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4647 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4648 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4650 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4652 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4653 (vmlal_high_lane_s32): Likewise.
4654 (vmlal_high_lane_u16): Likewise.
4655 (vmlal_high_lane_u32): Likewise.
4656 (vmlsl_high_lane_s16): Likewise.
4657 (vmlsl_high_lane_s32): Likewise.
4658 (vmlsl_high_lane_u16): Likewise.
4659 (vmlsl_high_lane_u32): Likewise.
4661 2014-07-17 Terry Guo <terry.guo@arm.com>
4663 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4664 (alus_reg): Renamed to alus_sreg.
4665 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4666 from alu_reg to alu_sreg. Change type of dsp instructions from
4667 alu_reg to alu_dsp_reg.
4668 * config/arm/thumb1.md: Likewise.
4669 * config/arm/thumb2.md: Likewise.
4670 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4671 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4672 with alu_sreg and alus_sreg.
4673 * config/arm/arm1026ejs.md (alu_op): Likewise.
4674 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4675 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4676 * config/arm/fa526.md (526_alu_op): Likewise.
4677 * config/arm/fa606te.md (606te_alu_op): Likewise.
4678 * config/arm/fa626te.md (626te_alu_op): Likewise.
4679 * config/arm/fa726te.md (726te_alu_op): Likewise.
4680 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4681 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4682 alu_sreg, alu_dsp_reg and alus_sreg.
4683 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4684 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4685 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4686 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4687 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4688 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4689 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4690 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4691 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4692 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4693 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4694 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4695 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4696 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4697 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4698 alus_reg to alus_sreg.
4700 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4702 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4705 2014-07-17 Richard Biener <rguenther@suse.de>
4707 PR rtl-optimization/61801
4708 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4709 don't set reg_pending_barrier if it appears in a debug-insn.
4711 2014-07-16 DJ Delorie <dj@redhat.com>
4713 * config/rx/rx.c (rx_option_override): Fix alignment values.
4714 (rx_align_for_label): Likewise.
4716 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4719 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4720 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4721 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4723 (cris_print_index, cris_print_operand, cris_constant_index_p)
4724 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4725 (cris_address_cost): Ditto last CONSTANT_P.
4726 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4727 callers changed. Yield cris_offsettable_symbol for non-PIC
4728 constant symbolic expressions including labels. Yield cris_unspec
4730 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4731 target to pic_offset_table_rtx for calls that will likely go
4732 through PLT, const0_rtx when they can't. All callers changed.
4733 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4734 symbolic expressions to be PICified. Remove second, redundant,
4735 assert on can_create_pseudo_p returning non-zero. Use
4736 replace_equiv_address_nv, not replace_equiv_address, for final
4738 * config/cris/cris.md ("movsi"): Move variable t to pattern
4739 toplevel. Adjust assert for new cris_symbol_type member. Use
4740 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4741 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4743 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4744 ("call", "call_value"): Use second incoming operand as a marker
4745 for pic-offset-table-register being used.
4746 ("*expanded_call_non_v32", "*expanded_call_v32")
4747 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4748 second incoming operand to CALL, match cris_call_type_marker.
4749 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4750 ("*expanded_call_side"): Ditto. Fix typo in comment.
4751 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4753 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4754 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4755 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4756 users changed. Add members cris_offsettable_symbol and cris_unspec.
4757 (cris_symbol_type): Rename from cris_pic_symbol_type.
4758 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4760 * config/cris/cris-protos.h (cris_symbol_type_of,
4761 cris_expand_pic_call_address): Adjust prototypes.
4762 (cris_legitimate_constant_p): New prototype.
4764 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4765 an existing tmake_file. Don't add t-slibgcc and t-linux.
4767 2014-07-17 Jason Merrill <jason@redhat.com>
4770 * symtab.c (symtab_remove_from_same_comdat_group): Also
4771 set_comdat_group to NULL_TREE.
4772 (verify_symtab): Fix diagnostic.
4774 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4777 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4779 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4781 Support location tracking for built-in macro tokens
4782 * input.h (is_location_from_builtin_token): New function declaration.
4783 * input.c (is_location_from_builtin_token): New function definition.
4784 * toplev.c (general_init): Tell libcpp what the pre-defined
4785 spelling location for built-in tokens is.
4787 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4789 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4790 on the FUNCTION_DECL.
4792 2014-07-16 Richard Biener <rguenther@suse.de>
4795 * doc/extend.texi (always_inline): Clarify.
4797 2014-07-15 Eric Christopher <echristo@gmail.com>
4799 * doc/invoke.texi (Link Options): Document -z option.
4801 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4803 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4804 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4806 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4808 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4810 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4812 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4813 varpool_assemble_decl.
4814 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4817 2014-07-15 Michael Matz <matz@suse.de>
4819 PR rtl-optimization/61772
4820 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4822 2014-07-15 Richard Biener <rguenther@suse.de>
4824 * opts.c (default_options_table): Disable bit-ccp at -Og.
4826 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4828 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4830 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4832 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4833 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4834 call langhook for unknown declaration.
4835 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4836 * tree.h (DECL_ARGUMENTS): Update.
4837 * print-tree.c (print_node): Update.
4838 * tree-core.h (tree_decl_non_common): Remove arguments.
4839 (tree_function_decl): Add arguments.
4841 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4843 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4845 2014-07-14 Richard Biener <rguenther@suse.de>
4847 PR tree-optimization/61779
4848 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4849 simplifying a condition.
4851 2014-07-14 Richard Biener <rguenther@suse.de>
4853 * builtins.c (c_strlen): Make only_value == 2 really only
4854 affect warning generation.
4856 2014-07-14 Richard Biener <rguenther@suse.de>
4858 PR tree-optimization/61757
4859 PR tree-optimization/61783
4860 PR tree-optimization/61787
4861 * tree-ssa-dom.c (record_equality): Revert canonicalization
4862 change and add comment.
4863 (propagate_rhs_into_lhs): Revert previous fix, removing
4864 loop depth restriction again.
4866 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4868 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4869 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4870 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4871 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4872 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4873 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4874 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4876 2014-07-14 Richard Biener <rguenther@suse.de>
4878 * cgraph.h (decl_in_symtab_p): Make inline.
4880 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4883 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4886 * config/i386/i386.c (classify_argument): Don't merge classes above
4889 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4891 * cgraph.h (symtab_node): Add nonzero_address.
4892 (decl_in_symtab_p): Break out from ...
4893 (symtab_get_node): ... here.
4894 * fold-const.c: Include cgraph.h
4895 (tree_single_nonzero_warnv_p): Use symtab to determine
4896 if symbol is non-zero.
4897 * symtab.c (symtab_node::nonzero_address): New method.
4899 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4901 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4902 forgotten in previous commit.
4904 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4906 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4908 * ipa-devirt.c: Include stor-layout.h and intl.h
4909 (odr_subtypes_equivalent_p): New function.
4910 (warn_odr): New function.
4911 (warn_type_mismatch): New function.
4912 (odr_types_equivalent_p): New function.
4913 (add_type_duplicate): Use it.
4914 * common.opt (Wodr): New flag.
4915 * doc/invoke.texi (Wodr): Document new warning.
4917 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4919 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4920 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4921 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4922 (varpool_get_constructor): Push CTORS_IN timevar.
4923 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4925 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4927 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4928 Remove VOID_FTYPE_PUSHORT.
4929 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4930 Change code to USHORT_FTYPE_VOID.
4931 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4932 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4933 (ix86_atomic_assign_expand_fenv): Update for
4934 __builtin_ia32_fnstsw changes.
4935 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4936 (fnstsw): Change operand 0 to nonimmediate operand.
4938 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4940 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4941 (varpool_get_constructor): New function.
4942 (varpool_ctor_useable_for_folding_p): Break out from ...
4943 (ctor_for_folding): ... here; use varpool_get_constructor.
4944 (varpool_assemble_decl): Likewise.
4945 * lto-streamer.h (struct output_block): Turn cgraph_node
4947 (lto_input_variable_constructor): Declare.
4948 * ipa-visibility.c (function_and_variable_visibility): Use
4949 varpool_get_constructor.
4950 * cgraph.h (varpool_get_constructor): Declare.
4951 (varpool_ctor_useable_for_folding_p): New function.
4952 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4953 parameter; return error_mark_node for non-trivial constructors.
4954 (lto_write_tree_1, DFS_write_tree): Update use of
4955 get_symbol_initial_value.
4956 (output_function): Update initialization of symbol.
4957 (output_constructor): New function.
4958 (copy_function): Rename to ..
4959 (copy_function_or_variable): ... this one; handle vars too.
4960 (lto_output): Output variable sections.
4961 * lto-streamer-in.c (input_constructor): New function.
4962 (lto_read_body): Rename from ...
4963 (lto_read_body_or_constructor): ... this one; handle vars too.
4964 (lto_input_variable_constructor): New function.
4965 * ipa-prop.c (ipa_prop_write_jump_functions,
4966 ipa_prop_write_all_agg_replacement): Update.
4967 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4968 (output_cgraph_opt_summary): Set symbol to NULL.
4970 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4972 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4973 non-polymorphic types.
4974 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4975 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4976 of types is not polymorphic.
4978 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4980 * lra-constraints.c (remove_inheritance_pseudos): Process
4981 destination pseudo too.
4983 2014-07-11 Rong Xu <xur@google.com>
4985 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4988 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4990 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4991 * config/avr/avr-devices.c (AVR_MCU): Same.
4992 (avr_mcu_types): add text start value to end of device list.
4993 * config/avr/avr-mcus.def: Add text section start for all devices.
4994 (ata5782): Add new avr5 device.
4996 * config/avr/avr-tables.opt: Regenerate.
4997 * config/avr/avr.h: Add declaration for text section start handler.
4998 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
5000 (LINK_SPEC): Include text section start handler to linker spec.
5001 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
5002 pass -Ttext option to linker if the text section start for the device
5004 * config/avr/t-multilib: Regenerate.
5005 * doc/avr-mmcu.texi: Regenerate.
5007 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
5009 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
5010 * config/rs6000/aix52.h (LINK_SPEC): Same.
5011 * config/rs6000/aix53.h (LINK_SPEC): Same.
5012 * config/rs6000/aix61.h (LINK_SPEC): Same.
5013 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
5015 2014-07-11 Roman Gareev <gareevroman@gmail.com>
5017 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
5018 (graphite_verify): New function.
5019 (ivs_params_clear): New function.
5020 (gcc_expression_from_isl_ast_expr_id): New function.
5021 (gcc_expression_from_isl_expr_int): New function.
5022 (binary_op_to_tree): New function.
5023 (ternary_op_to_tree): New function.
5024 (unary_op_to_tree): New function.
5025 (nary_op_to_tree): New function.
5026 (gcc_expression_from_isl_expr_op): New function.
5027 (gcc_expression_from_isl_expression): New function.
5028 (graphite_create_new_loop): New function.
5029 (translate_isl_ast_for_loop): New function.
5030 (get_upper_bound): New function.
5031 (graphite_create_new_loop_guard): New function.
5032 (translate_isl_ast_node_for): New function.
5033 (translate_isl_ast): New function.
5034 (add_parameters_to_ivs_params): New function.
5035 (scop_to_isl_ast): New parameter ip.
5036 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
5038 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5040 * config/xtensa/predicates.md (call expander): Update for
5041 DECL_SECTION_NAME being string.
5043 2014-07-11 Richard Biener <rguenther@suse.de>
5046 * builtins.c (fold_builtin_memory_op): Inline memory moves that
5047 can be implemented with a single load followed by a single store.
5048 (c_strlen): Only warn when only_value is not 2.
5050 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
5052 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
5054 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
5057 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
5058 (*movhi_bytes): Likewise.
5059 (*arm_movqi_insn): Likewise.
5061 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
5064 * config/alpha/alpha.c: Include tree-pass.h, context.h
5066 (pass_data_handle_trap_shadows): New pass.
5067 (pass_handle_trap_shadows::gate): New pass gate function.
5068 (make_pass_handle_trap_shadows): New function.
5069 (rest_of_handle_trap_shadows): Ditto.
5071 (alpha_align_insns_1): Rename from alpha_align_insns.
5072 (pass_data_align_insns): New pass.
5073 (pass_align_insns::gate): New pass gate function.
5074 (make_pass_aling_insns): New function.
5075 (rest_of_align_insns): Ditto.
5076 (alpha_align_insns): Ditto.
5078 (alpha_option_override): Declare handle_trap_shadows info
5079 and align_insns_info. Register handle_trap_shadows and align_insns
5081 (alpha_reorg): Do not call alpha_trap_shadows and
5082 alpha_align_insn from here.
5084 (alpha_pad_function_end): Do not skip BARRIERs.
5086 2014-07-10 Rong Xu <xur@google.com>
5088 Add gcov-tool: an offline gcda profile processing tool support.
5089 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
5090 (gcov_is_error): Ditto.
5091 (gcov_read_string): Ditto.
5092 (gcov_read_sync): Ditto.
5093 * gcov-io.h: Move counter defines to gcov-counter.def.
5094 * gcov-dump.c (tag_counters): Use gcov-counter.def.
5095 * coverage.c: Ditto.
5096 * gcov-tool.c: Offline gcda profile processing tool.
5097 (unlink_gcda_file): Remove one gcda file.
5098 (unlink_profile_dir): Remove gcda files from the profile path.
5099 (gcov_output_files): Output gcda files to an output dir.
5100 (profile_merge): Merge two profiles in directory.
5101 (print_merge_usage_message): Print merge usage.
5102 (merge_usage): Print merge usage and exit.
5103 (do_merge): Driver for profile merge sub-command.
5104 (profile_rewrite): Rewrite profile.
5105 (print_rewrite_usage_message): Print rewrite usage.
5106 (rewrite_usage): Print rewrite usage and exit.
5107 (do_rewrite): Driver for profile rewrite sub-command.
5108 (print_usage): Print gcov-info usage and exit.
5109 (print_version): Print gcov-info version.
5110 (process_args): Process arguments.
5111 (main): Main routine for gcov-tool.
5112 * Makefile.in: Build and install gcov-tool.
5113 * gcov-counter.def: New file split from gcov-io.h.
5114 * doc/gcc.texi: Include gcov-tool.texi.
5115 * doc/gcov-tool.texi: Document for gcov-tool.
5117 2014-07-10 Richard Biener <rguenther@suse.de>
5119 PR tree-optimization/61757
5120 * tree-ssa-dom.c (loop_depth_of_name): Restore.
5121 (propagate_rhs_into_lhs): Revert part of last change.
5123 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
5125 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
5128 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
5131 * function.c (allocate_struct_function): Revert r188667 change.
5133 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
5135 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
5137 * doc/install.texi: Remove links to defunct package providers for
5140 2014-07-09 Tom de Vries <tom@codesourcery.com>
5142 * final.c (get_call_fndecl): Declare.
5143 (self_recursive_call_p): New function.
5144 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
5146 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5148 * ipa-devirt.c (record_node): Walk through aliases.
5150 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5152 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
5154 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5157 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5159 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5161 * ipa-visibility.c (function_and_variable_visibility): Remove
5162 temporary hack disabling local aliases on AIX.
5164 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5166 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
5167 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
5169 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5171 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
5172 * rs6000/rs6000.c: Inline output of .set instruction.
5173 (declare_alias_data): New struct.
5174 (rs6000_declare_alias): New function.
5175 (rs6000_xcoff_declare_function_name): Use it.
5176 (rs6000_xcoff_declare_object_name): New function.
5177 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
5178 (ASM_OUTPUT_DEF): Turn to empty definition.
5180 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5183 * hash-table.h: use hash_table::value_type instead of
5184 Descriptor::value_type in the return types of several methods.
5186 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5188 * tree-pass.h (pass_data): Remove has_execute member.
5189 * passes.c (execute_one_pass): Don't check pass->has_execute.
5190 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
5191 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
5192 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
5193 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
5194 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
5195 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
5196 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
5197 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
5198 gimple-low.c, gimple-ssa-isolate-paths.c,
5199 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
5200 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
5201 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
5202 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
5203 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5204 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
5205 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
5206 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
5207 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
5208 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
5209 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
5210 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5211 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
5212 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5213 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
5214 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
5215 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
5216 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
5217 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
5218 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
5219 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
5220 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
5221 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
5222 web.c: Remove initializer for pass_data::has_execute.
5224 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5226 * graphite-htab.h: Use hash_map instead of hash_table.
5227 * graphite-clast-to-gimple.c: Adjust.
5228 * passes.c: Use hash_map instead of hash_table.
5230 * sese.h: Remove now unused code.
5232 2014-07-08 Sriraman Tallam <tmsriram@google.com>
5235 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
5238 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5240 PR rtl-optimization/61673
5241 * combine.c (simplify_comparison): Test just mode's sign bit
5242 in tmode rather than the sign bit and any bits above it.
5244 2014-07-08 Roman Gareev <gareevroman@gmail.com>
5246 * graphite-isl-ast-to-gimple.c (generate_isl_context):
5247 Add __isl_give to the declaration.
5248 (generate_isl_schedule): Likewise.
5249 (scop_to_isl_ast): Likewise.
5251 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5253 * config/arm/arm.c (cortexa5_extra_costs): New table.
5254 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
5256 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5258 PR tree-optimization/61725
5259 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
5260 range, use range_includes_zerop_p instead of integer_zerop on
5261 vr0->min, only use log2 of max if min is not negative.
5263 2014-07-08 Richard Biener <rguenther@suse.de>
5265 * tree-ssa-dom.h (loop_depth_of_name): Remove.
5266 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
5267 restriction on loop depth difference.
5268 (record_equality): Likewise.
5269 (propagate_rhs_into_lhs): Likewise. Simplify condition.
5270 (loop_depth_of_name): Remove.
5271 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
5272 restriction on loop depth difference.
5273 (init_copy_prop): Likewise.
5275 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5277 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
5279 (walk_aliased_vdefs): Likewise.
5280 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
5281 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
5282 (detect_type_change_from_memory_writes): Check if entry was reached.
5284 2014-07-08 Richard Biener <rguenther@suse.de>
5286 PR tree-optimization/61681
5287 * tree-ssa-structalias.c (find_what_var_points_to): Expand
5288 NONLOCAL inside ESCAPED.
5290 2014-07-08 Richard Biener <rguenther@suse.de>
5292 PR tree-optimization/61680
5293 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5294 Handle properly all read-write dependences with group accesses.
5296 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5298 PR tree-optimization/61576
5299 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
5300 block containing reduction statement is predecessor of phi basi block.
5302 2014-07-08 Marek Polacek <polacek@redhat.com>
5305 * fold-const.c (round_up_loc): Change the parameter type.
5307 * fold-const.h (round_up_loc): Adjust declaration.
5308 * stor-layout.c (finalize_record_size): Check for too large types.
5310 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
5312 * symtab.c: Include calls.h.
5313 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
5315 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
5317 * config/rs6000/rs6000.c (output_vec_const_move): Handle
5318 little-endian code generation.
5319 * config/rs6000/spe.md (spe_evmergehi): Rename to...
5320 (vec_perm00_v2si): ... this. Handle little-endian code generation.
5321 (spe_evmergehilo): Rename to...
5322 (vec_perm01_v2si): ... this. Handle little-endian code generation.
5323 (spe_evmergelo): Rename to...
5324 (vec_perm11_v2si): ... this. Handle little-endian code generation.
5325 (spe_evmergelohi): Rename to...
5326 (vec_perm10_v2si): ... this. Handle little-endian code generation.
5327 (spe_evmergehi, spe_evmergehilo): New expanders.
5328 (spe_evmergelo, spe_evmergelohi): Likewise.
5329 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
5330 (*frob_tf_ti): Likewise.
5331 (*frob_<mode>_di_2): Likewise.
5332 (*frob_tf_di_8_2): Likewise.
5333 (*frob_di_<mode>): Likewise.
5334 (*frob_ti_tf): Likewise.
5335 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
5336 (*frob_ti_<mode>_8_2): Likewise.
5337 (*frob_ti_tf_2): Likewise.
5338 (mov_si<mode>_e500_subreg0): Rename to...
5339 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
5341 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
5342 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
5343 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
5344 the big endianness only.
5345 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
5346 (*mov_si<mode>_e500_subreg0_2): Rename to...
5347 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
5348 big big endianness only.
5349 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
5350 (*mov_si<mode>_e500_subreg4): Rename to...
5351 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
5353 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
5354 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
5355 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
5356 the big endianness only.
5357 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
5359 (*mov_si<mode>_e500_subreg4_2): Rename to...
5360 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5362 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5363 (*mov_sitf_e500_subreg8): Rename to...
5364 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5366 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5367 (*mov_sitf_e500_subreg8_2): Rename to...
5368 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5370 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5371 (*mov_sitf_e500_subreg12): Rename to...
5372 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5374 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5375 (*mov_sitf_e500_subreg12_2): Rename to...
5376 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5378 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5380 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5382 * asan.c (instrument_strlen_call): Do not instrument first byte
5383 in strlen if already instrumented.
5385 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5387 * config/arm/arm.opt (mwords-little-endian): Delete.
5388 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5389 of TARGET_LITTLE_WORDS.
5390 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5391 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5393 * doc/invoke.texi: Remove references to -mwords-little-endian.
5395 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5397 * expmed.c (struct init_expmed_rtl): Change all fields but
5398 pow2 and cint from struct rtx_def to rtx.
5399 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5400 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5403 2014-07-06 Marek Polacek <polacek@redhat.com>
5406 * doc/invoke.texi: Document -Wsizeof-array-argument.
5408 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5410 * wide-int.h (wide_int_storage): Change declaration from struct
5413 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5415 * cgraph.c (cgraph_create_indirect_edge): Update call of
5416 get_polymorphic_call_info.
5417 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5418 (possible_polymorphic_call_targets): Add parameter call.
5419 (decl_maybe_in_construction_p): New predicate.
5420 (get_polymorphic_call_info): Add parameter call;
5421 use decl_maybe_in_construction_p.
5422 * gimple-fold.c (fold_gimple_assign): Update use of
5423 possible_polymorphic_call_targets.
5424 (gimple_fold_call): Likewise.
5425 * ipa-prop.c: Inlcude calls.h
5426 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5427 (param_type_may_change_p): New predicate.
5428 (detect_type_change_from_memory_writes): Break out from ...
5429 (detect_type_change): ... this one; use param_type_may_change_p.
5430 (detect_type_change_ssa): Use param_type_may_change_p.
5431 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5433 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5436 * config/arm/arm-protos.h (arm_legitimate_address_p,
5437 arm_is_constant_pool_ref): Add prototypes.
5438 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5439 (arm_is_constant_pool_ref) New function.
5440 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5441 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5442 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5443 operand. Remove pool_range and neg_pool_range attributes.
5444 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5445 pool_range and neg_pool_range attributes.
5446 * config/arm/constraints.md (Uh): New constraint.
5447 (Uq): Don't allow constant pool references.
5449 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5451 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5452 (move_lo_quad_internal_be_<mode>): Likewise.
5453 (move_lo_quad_<mode>): Convert to define_expand.
5454 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5455 (aarch64_simd_move_hi_quad_be_<mode>): New.
5456 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5457 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5458 (aarch64_combinez_be<mode>): New.
5459 (aarch64_combine<mode>): Convert to define_expand.
5460 (aarch64_combine_internal<mode>): New.
5461 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5463 2014-07-04 Tom de Vries <tom@codesourcery.com>
5465 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5466 combination of earlyclobber and read/write modifiers.
5468 2014-07-04 Tom de Vries <tom@codesourcery.com>
5470 * config/aarch64/aarch64-simd.md
5471 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5473 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5476 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5478 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5481 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5483 PR tree-optimization/61684
5484 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5485 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5487 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5488 Kito Cheng <kito@0xlab.org>
5489 Monk Chiang <sh.chiang04@gmail.com>
5491 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5492 (nds32_symbol_load_store_p): Move to ...
5493 (nds32_fp_as_gp_check_available): Move to ...
5494 * config/nds32/nds32-fp-as-gp.c: ... here.
5495 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5498 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5499 Kito Cheng <kito@0xlab.org>
5500 Monk Chiang <sh.chiang04@gmail.com>
5502 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5503 (nds32_expand_store_multiple): Move to ...
5504 (nds32_expand_movmemqi): Move to ...
5505 * config/nds32/nds32-memory-manipulation.c: ... here.
5507 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5508 Kito Cheng <kito@0xlab.org>
5509 Monk Chiang <sh.chiang04@gmail.com>
5511 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5512 (nds32_output_casesi_pc_relative): Move to ...
5513 (nds32_output_casesi): Move to ...
5514 (nds32_mem_format): Move to ...
5515 (nds32_output_16bit_store): Move to ...
5516 (nds32_output_16bit_load): Move to ...
5517 (nds32_output_32bit_store): Move to ...
5518 (nds32_output_32bit_load): Move to ...
5519 (nds32_output_32bit_load_s): Move to ...
5520 (nds32_output_stack_push): Move to ...
5521 (nds32_output_stack_pop): Move to ...
5522 * config/nds32/nds32-md-auxiliary.c: ... here.
5524 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5525 Ling-Hua Tseng <uranus@tinlans.org>
5527 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5528 the purpose of this file.
5530 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5531 Kito Cheng <kito@0xlab.org>
5532 Monk Chiang <sh.chiang04@gmail.com>
5534 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5535 (nds32_address_cost): Move implementation to ...
5536 * config/nds32/nds32-cost.c: ... here.
5537 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5538 (nds32_address_cost_impl): Declare.
5540 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5541 Kito Cheng <kito@0xlab.org>
5542 Monk Chiang <sh.chiang04@gmail.com>
5544 * config/nds32/nds32.c
5545 (nds32_consecutive_registers_load_store_p): Move to ...
5546 (nds32_valid_multiple_load_store): Move to ...
5547 (nds32_valid_stack_push_pop): Move to ...
5548 (nds32_can_use_bclr_p): Move to ...
5549 (nds32_can_use_bset_p): Move to ...
5550 (nds32_can_use_btgl_p): Move to ...
5551 (nds32_can_use_bitci_p): Move to ...
5552 * config/nds32/nds32-predicates.c: ... here.
5554 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5555 Kito Cheng <kito@0xlab.org>
5556 Monk Chiang <sh.chiang04@gmail.com>
5558 * config/nds32/nds32.c
5559 (nds32_expand_builtin_null_ftype_reg): Move to ...
5560 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5561 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5562 (nds32_init_builtins): Move implementation to ...
5563 (nds32_expand_builtin): Move implementation to ...
5564 * config/nds32/nds32-intrinsic.c: ... here.
5565 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5566 (nds32_expand_builtin_impl): Declare.
5568 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5569 Kito Cheng <kito@0xlab.org>
5570 Monk Chiang <sh.chiang04@gmail.com>
5572 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5573 (nds32_emit_section_tail_template): Move to ...
5574 (nds32_emit_isr_jmptbl_section): Move to ...
5575 (nds32_emit_isr_vector_section): Move to ...
5576 (nds32_emit_isr_reset_conten): Move to ...
5577 (nds32_check_isr_attrs_conflict): Move to ...
5578 (nds32_construct_isr_vectors_information): Move to ...
5579 (nds32_asm_file_start): Move implementation to ...
5580 (nds32_asm_file_end): Move implementation to ...
5581 * config/nds32/nds32-isr.c: ... here.
5582 * config/nds32/nds32-protos.h
5583 (nds32_check_isr_attrs_conflict): Declare.
5584 (nds32_construct_isr_vectors_information): Declare.
5585 (nds32_asm_file_start_for_isr): Declare.
5586 (nds32_asm_file_end_for_isr): Declare.
5588 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5589 Kito Cheng <kito@0xlab.org>
5590 Monk Chiang <sh.chiang04@gmail.com>
5592 * config.gcc (nds32*): Add new modules to extra_objs.
5593 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5594 (nds32be-*-*): Likewise.
5595 * config/nds32/nds32-cost.c: New file.
5596 * config/nds32/nds32-fp-as-gp.c: New file.
5597 * config/nds32/nds32-intrinsic.c: New file.
5598 * config/nds32/nds32-isr.c: New file.
5599 * config/nds32/nds32-md-auxiliary.c: New file.
5600 * config/nds32/nds32-memory-manipulation.c: New file.
5601 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5602 * config/nds32/nds32-predicates.c: New file.
5603 * config/nds32/t-nds32: New file.
5605 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5607 PR tree-optimization/61682
5608 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5609 using cases and when one of the operands is equal to 1.
5611 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5613 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5614 ashr<mode>3): Correct mode of operands[2].
5615 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5616 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5617 Correct mode of operands[2]. Fix split condition.
5619 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5621 * arm.md (arch): Add armv6_or_vfpv3.
5622 (arch_enabled): Add test for the above.
5623 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5625 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5627 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5629 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5630 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5631 HWI 1 and negate the unsigned value.
5632 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5633 use AND instead of shift.
5634 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5636 2014-07-03 Marek Polacek <polacek@redhat.com>
5638 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5639 (-fsanitize=float-divide-by-zero): Move to the table with
5640 -fsanitize=undefined suboptions.
5641 (-fsanitize=float-cast-overflow): Likewise.
5643 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5645 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5646 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5649 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5651 * loop-invariant.c (struct invariant): Add a new member: eqno;
5652 (find_identical_invariants): Update eqno;
5653 (create_new_invariant): Init eqno;
5654 (get_inv_cost): Compute comp_cost with eqno;
5656 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5658 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5659 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5660 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5661 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5662 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5664 2014-07-02 Christian Bruel <christian.bruel@st.com>
5668 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5669 (make_preds_opaque): Delete.
5670 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5671 (commit_mode_sets): New function.
5672 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5673 Process all modes at once.
5674 * basic-block.h (pre_edge_lcm_avs): Declare.
5675 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5676 Call clear_aux_for_edges. Fix comments.
5677 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5678 (pre_edge_rev_lcm): Idem.
5679 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5681 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5682 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5684 * config/i386/i386.c (x96_emit_mode_set): Idem.
5685 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5686 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5687 (fpscr_toggle) Disallow from delay slot.
5688 * target.def (emit_mode_set): Add prev_mode parameter.
5689 * doc/tm.texi: Regenerate.
5691 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5693 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5696 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5698 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5699 vtable_pointer_value_to_vtable): Constify.
5700 (contains_polymorphic_type_p): Declare.
5701 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5702 vtable_pointer_value_to_vtable): Constify.
5703 (contains_polymorphic_type_p): New predicate.
5704 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5706 (ipa_set_ancestor_jf): Likewise.
5707 (detect_type_change): Return false in easy cases.
5708 (compute_complex_assign_jump_func): Require type to contain
5710 (compute_known_type_jump_func): Likewise.
5712 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5714 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5716 (type_in_anonymous_namespace_p): Constify argument.
5717 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5718 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5719 (main_odr_variant): New function.
5720 (hash_type_name): Make static; update assert; do not ICE on
5722 (types_same_for_odr): Bring here from tree.c; simplify and remove
5723 old structural comparing code that doesn't work for templates.
5724 (odr_hasher::equal): Update assert.
5725 (add_type_duplicate): Return true when bases should be computed;
5726 replace incomplete loader by complete; do not output duplicated
5727 warnings; do not ICE on non-records; set odr_violated flag.
5728 (get_odr_type): Be ready to replace incomplete type by complete
5729 one; work on ODR variants instead of main variants; reorder item
5730 in array so bases have still smaller indexes.
5731 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5732 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5734 2014-07-01 Cary Coutant <ccoutant@google.com>
5736 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5738 (resolve_addr_in_expr): When replacing the rtx in a location list
5739 entry, get a new address table entry.
5740 (dwarf2out_finish): Call index_location_lists even if there are no
5741 addr_index_table entries yet.
5743 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5745 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5746 change for not being obvious.
5748 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5750 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5753 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5755 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5756 (vcagt_f64): Likewise.
5757 (vcale_f64): Likewise.
5758 (vcaled_f64): Likewise.
5759 (vcales_f32): Likewise.
5760 (vcalt_f64): Likewise.
5761 (vcaltd_f64): Likewise.
5762 (vcalts_f32): Likewise.
5764 2014-07-01 Marek Polacek <polacek@redhat.com>
5766 * doc/invoke.texi: Document -Wint-conversion.
5768 2014-07-01 Marek Polacek <polacek@redhat.com>
5771 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5773 2014-07-01 Martin Liska <mliska@suse.cz>
5775 IPA REF alias refactoring
5776 * cgraph.h (iterate_direct_aliases): New function.
5777 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5778 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5779 FOR_EACH_ALIAS added.
5780 (cgraph_for_node_and_aliases): Likewise.
5781 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5782 * ipa-inline.c (reset_edge_caches): Likewise.
5783 (update_caller_keys): Likewise.
5784 * trans-mem.c (ipa_tm_execute): Likewise.
5785 *varpool.c (varpool_analyze_node): Likewise.
5786 (varpool_for_node_and_aliases): Likewise.
5787 * ipa-ref.h (first_alias): New function.
5788 (last_alias): Likewise.
5789 (has_aliases_p): Likewise.
5790 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5791 is sensitive to IPA_REF_ALIASes.
5792 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5793 are put at the beginning of the list.
5794 (symtab_node::iterate_direct_aliases): New function.
5796 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5799 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5801 (write_ts_type_common_tree_pointers): Do not stream fields not set
5802 for incomplete types; do not stream duplicated fields for variants;
5803 sanity check that variant and type match.
5804 (write_ts_type_non_common_tree_pointers): Likewise.
5805 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5806 TYPE_SIZE whether type is complete.
5807 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5808 write_ts_type_common_tree_pointers
5809 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5811 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5813 * var-tracking.c (add_stores): Return instead of asserting if old
5814 and new values for conditional store are the same.
5816 2014-06-30 Richard Henderson <rth@redhat.com>
5820 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5821 the cfg if there were any changes.
5822 * passes.def: Revert move of peephole2 after reorder_blocks;
5823 move duplicate_computed_gotos before peephole2.
5825 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5827 * except.c (emit_note_eh_region_end): New helper function.
5828 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5829 emit EH_REGION_END note.
5830 * jump.c (cleanup_barriers): Do not split a call and its
5831 corresponding CALL_ARG_LOCATION note.
5833 2014-06-30 Jeff Law <law@redhat.com>
5835 PR tree-optimization/61607
5836 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5837 deeper into the SSA_NAME_VALUE chain.
5839 2014-06-30 Marek Polacek <polacek@redhat.com>
5841 * convert.c (convert_to_integer): Don't instrument conversions if the
5842 function has no_sanitize_undefined attribute.
5843 * ubsan.c: Don't run the ubsan pass if the function has
5844 no_sanitize_undefined attribute.
5846 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5848 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5849 -fsanitize=undefined suboptions.
5851 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5853 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5854 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5855 against bigendian and adjust indices.
5857 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5859 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5861 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5864 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5865 Add alternative; make early clobber. Adjust both split patterns
5866 to use operand 0 as the working register.
5868 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5870 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5871 as ira_object_id_map might be NULL, or 1.
5873 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5875 * loop-invariant.c (get_inv_cost): Handle register class.
5876 (gain_for_invariant): Check the register pressure of the inv
5877 and its overlapped register class, other than all.
5879 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5881 * doc/invoke.texi (Optimize Options): Fix descriptions of
5882 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5884 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5886 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5889 2014-06-29 Tobias Grosser <tobias@grosser.es>
5892 * graphite-isl-ast-to-gimple.c: Add missing guards.
5894 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5896 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5897 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5898 * flag-types.h: Add new enum fgraphite_generator.
5899 * graphite-isl-ast-to-gimple.c: New.
5900 * graphite-isl-ast-to-gimple.h: New.
5901 * graphite.c (graphite_transform_loops): Add choice of Graphite
5902 code generator, which depends on flag_graphite_code_gen.
5904 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5906 * graphite-dependences.c (subtract_commutative_associative_deps):
5907 Add NULL checking of the following variables: must_raw_no_source,
5908 may_raw_no_source, must_war_no_source, may_war_no_source,
5909 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5910 must_war, may_war, must_waw, may_waw.
5912 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5914 * graphite-clast-to-gimple.c: gloog is renamed to
5915 graphite_regenerate_ast_cloog. gloog_error is renamed to
5916 graphite_regenerate_error.
5917 * graphite-clast-to-gimple.h: The definition of the struct
5918 bb_pbb_def is moved to graphite-htab.h.
5919 Add inclusion of the hash-table.h.
5920 * graphite-htab.h: The declaration of the function gloog is moved
5921 to graphite-clast-to-gimple.h and renamed to
5922 graphite_regenerate_ast_cloog.
5923 * graphite.c (graphite_transform_loops): gloog is renamed
5924 to graphite_regenerate_ast_cloog.
5926 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5928 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5930 (write_ts_type_common_tree_pointers): Do not stream fields not set
5931 for incomplete types; do not stream duplicated fields for variants;
5932 sanity check that variant and type match.
5933 (write_ts_type_non_common_tree_pointers): Likewise.
5934 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5935 TYPE_SIZE whether type is complete.
5936 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5937 write_ts_type_common_tree_pointers
5938 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5940 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5942 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5944 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5946 * tree-inline.c (remap_type_1): Do not duplicate fields
5947 that are shared in between type and its main variant.
5949 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5951 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5953 (ipa_set_ancestor_jf) Likewise.
5954 (check_stmt_for_type_change): Check that we work on main variant.
5955 (detect_type_change): Look into main variant.
5956 (compute_known_type_jump_func): Check that main variant has BINFO.
5958 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5960 * ipa-devirt.c (set_type_binfo): New function.
5961 (add_type_duplicate): Use it.
5962 (get_odr_type): Sanity check that binfos points to main variants.
5963 (get_class_context): Be sure the context's outer_type is main variant.
5964 (contains_type_p): Walk main variant.
5965 (get_polymorphic_call_info_for_decl): Set outer_type to be
5967 (get_polymorphic_call_info): Likewise.
5968 (possible_polymorphic_call_targets): Sanity check that we operate
5971 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5973 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5975 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5977 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5978 accidental change due to wide-int branch merge.
5980 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5982 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5983 compressed debug support.
5984 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5985 * configure: Regenerate.
5986 * config.in: Regenerate.
5987 * common.opt (compressed_debug_sections): New enum.
5988 (gz, gz=): New options.
5989 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5990 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5991 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5992 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5993 LINK_COMPRESS_DEBUG_SPEC.
5994 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5995 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5996 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5997 (Debugging Options): Document -gz[=type].
5999 2014-06-27 Martin Jambor <mjambor@suse.cz>
6002 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
6003 args_to_skip, use those from node instead. Copy args_to_skip and
6004 combined_args_to_skip from node to the new thunk.
6005 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
6006 (cgraph_create_virtual_clone): Moved computation of
6007 combined_args_to_skip...
6008 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
6010 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
6012 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
6013 redundant diagnostic machinary.
6015 2014-06-27 Richard Biener <rguenther@suse.de>
6017 * tree-ssa-math-opts.c (bswap_replace): Fix
6018 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
6020 2014-06-27 Martin Liska <mliska@suse.cz>
6022 * gimple.h (gimple_location_safe): New function introduced.
6023 * cgraphunit.c (walk_polymorphic_call_targets): Usage
6024 of gimple_location_safe replaces gimple_location.
6025 (gimple_fold_call): Likewise.
6026 * ipa-devirt.c (ipa_devirt): Likewise.
6027 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6028 * ipa.c (walk_polymorphic_call_targets): Likewise.
6029 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6031 2014-06-27 Jakub Jelinek <jakub@redhat.com>
6033 PR tree-optimization/57233
6034 PR tree-optimization/61299
6035 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
6037 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
6038 would be lowered to scalar shifts, check if corresponding
6039 shifts and vector BIT_IOR_EXPR are supported and don't lower
6040 or lower just to narrower vector type in that case.
6041 * expmed.c (expand_shift_1): Fix up handling of vector
6044 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
6047 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
6049 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
6051 * doc/invoke.texi (-fsemantic-interposition): Document.
6052 * common.opt (fsemantic-interposition): New flag.
6053 * varasm.c (decl_replaceable_p): Use it.
6055 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6058 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
6059 extraction other than index 3.
6061 2014-06-26 Teresa Johnson <tejohnson@google.com>
6063 * doc/invoke.texi: Fix typo.
6064 * dumpfile.c: Add support for documented -fdump-* options
6065 optimized/missed/note/optall.
6067 2014-06-26 Martin Jambor <mjambor@suse.cz>
6069 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
6070 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
6071 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
6072 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
6073 * opts.c (default_options_optimization): Set
6074 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
6075 * doc/invoke.texi (allow-load-data-races)
6076 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
6077 (allow-store-data-races): Document the new default.
6079 2014-06-26 Martin Jambor <mjambor@suse.cz>
6081 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
6082 renamed to ipa_impossible_devirt_target. Fix typo.
6083 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
6084 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
6085 ipa_impossible_devirt_target.
6087 2014-06-26 Richard Biener <rguenther@suse.de>
6089 PR tree-optimization/61607
6090 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
6091 explaining why we restrict copies on loop depth.
6092 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6094 (record_equivalences_from_phis): Instead add it here.
6096 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
6098 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
6099 (LTO_WRAPPER_OBJS): New variable.
6100 (lto-wrapper$(exeext)): Use it.
6101 * collect2.c: Include "collect-utils.h".
6102 (verbose, debug): Remove variables.
6103 (at_file_supplied): No longer static.
6104 (tool_name): New variable.
6105 (do_wait, fork_execute, maybe_unlink): Don't declare.
6106 (tool_cleanup): No longer static.
6107 (notice): Remove function.
6108 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
6110 (collect_wait, do_wait, collect_execute): Remove functions.
6111 (maybe_unlink): No longer static.
6112 * collect2.h (verbose, debug): Don't declare.
6113 (at_file_supplied): Declare.
6114 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
6116 (collect_execute): Replace with implementation from collect2, plus a
6117 new arg use_atfile. All callers changed.
6118 (collect_wait): Replace with implementation from collect2.
6119 (maybe_unlink_file): Remove function.
6120 (fork_execute): Replace with implementation from collect2, plus a
6121 new arg use_atfile. All callers changed.
6122 (do_wait): Add call to utils_cleanup to the error path.
6123 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
6124 (tool_cleanup): Adjust declarations.
6125 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
6126 * tlink.c: Include "collect-utils.h".
6127 (tlink_execute): New arg use_atfile. All callers changed.
6128 (tlink_init, tlink_execute): Remove declarations.
6130 * collect-utils.c (save_temps): New variable.
6131 (do_wait): Use it instead of debug. Use fatal_error.
6132 * collect-utils.h (save_temps): Declare.
6133 * collect2.c (verbose): Rename from vflag. All uses changed.
6134 (tool_cleanup): New function, copied from collect_atexit.
6135 (collect_atexit, handler): Just call it.
6136 * collect2.h (verbose): Declaration renamed from vflag.
6137 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
6140 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
6141 (lto-wrapper$(exeext)): Link with collect-utils.o.
6142 * collect-utils.c: New file.
6143 * collect-utils.h: New file.
6144 * lto-wrapper.c: Include "collect-utils.h".
6145 (args_name): Delete variable.
6146 (tool_name): New variable.
6147 (tool_cleanup): New function.
6148 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
6149 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
6150 (fork_execute): Remove functions.
6152 2014-06-26 Nick Clifton <nickc@redhat.com>
6154 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
6156 * doc/extend.texi (Function Attributes): Fix typo in description
6157 of RX vector attribute.
6159 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6161 * config.gcc (supported_defaults): Error when passing either
6162 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
6164 2014-06-26 Richard Biener <rguenther@suse.de>
6166 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6167 propagating volatile pointers.
6169 2014-06-26 Richard Biener <rguenther@suse.de>
6171 PR tree-optimization/61607
6172 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
6173 loop if we redirected its latch edge.
6174 (thread_block_1): Do not cancel loops prematurely.
6176 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
6178 * toplev.c (backend_init_target): Move init_emit_regs and
6180 (backend_init) ... here; skip ira_init_once and backend_init_target.
6181 (target_reinit) ... and here; clear
6182 this_target_rtl->lang_dependent_initialized.
6183 (lang_dependent_init_target): Clear
6184 this_target_rtl->lang_dependent_initialized;
6185 break out rtl initialization to ...
6186 (initialize_rtl): ... here; call also backend_init_target
6188 * toplev.h (initialize_rtl): New function.
6189 * function.c: Include toplev.h
6190 (init_function_start): Call initialize_rtl.
6191 * rtl.h (target_rtl): Add target_specific_initialized,
6192 lang_dependent_initialized.
6194 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
6195 Jakub Jelinek <jakub@redhat.com>
6197 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
6199 2014-06-25 Tom de Vries <tom@codesourcery.com>
6201 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
6203 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6205 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
6206 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
6207 Issue a strict overflow warning if appropriate.
6209 2014-06-25 Martin Liska <mliska@suse.cz>
6212 * Makefile.in: Removed header file (ipa-ref-inline.h).
6213 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
6215 (cgraph_speculative_call_info): Likewise.
6216 (cgraph_for_node_thunks_and_aliases): Likewise.
6217 (cgraph_for_node_and_aliases): Likewise.
6218 (verify_cgraph_node): Likewise.
6219 * cgraph.h: Batch of IPA REF functions become member functions of
6220 symtab_node: add_reference, maybe_add_reference, clone_references,
6221 clone_referring, clone_reference, find_reference,
6222 remove_stmt_references, remove_all_references,
6223 remove_all_referring, dump_references, dump_referring,
6224 has_alias_p, iterate_reference, iterate_referring.
6225 * cgraphbuild.c (record_reference): New IPA REF function used.
6226 (record_type_list): Likewise.
6227 (record_eh_tables): Likewise.
6228 (mark_address): Likewise.
6229 (mark_load): Likewise.
6230 (mark_store): Likewise.
6231 (pass_build_cgraph_edges): Likewise.
6232 (rebuild_cgraph_edge): Likewise.
6233 (cgraph_rebuild_references): Likewise.
6234 (pass_remove_cgraph_callee_edges): Likewise.
6235 * cgraphclones.c (cgraph_clone_node): Likewise.
6236 (cgraph_create_virtual_clone): Likewise.
6237 (cgraph_materialize_clone): Likewise.
6238 (cgraph_materialize_all_clones): Likewise.
6239 * cgraphunit.c (cgraph_reset_node): Likewise.
6240 (cgraph_reset_node): Likewise.
6241 (analyze_function): Likewise.
6242 (assemble_thunks_and_aliases): Likewise.
6243 (expand_function): Likewise.
6244 * ipa-comdats.c (propagate_comdat_group): Likewise.
6245 (enqueue_references): Likewise.
6246 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
6247 (create_specialized_node): Likewise.
6248 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
6249 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
6250 * ipa-inline.c (reset_edge_caches): Likewise.
6251 (update_caller_keys): Likewise.
6252 (execute): Likewise.
6253 * ipa-prop.c (remove_described_reference): Likewise.
6254 (propagate_controlled_uses): Likewise.
6255 (ipa_edge_duplication_hook): Likewise.
6256 (ipa_modify_call_arguments): Likewise.
6257 * ipa-pure-const.c (propagate_pure_const): Likewise.
6258 * ipa-ref-inline.h: Header file removed, functions moved
6259 to symtab_node class.
6260 * ipa-ref.c (remove_reference): New class member function.
6261 (cannot_lead_to_return): New class member function.
6262 (referring_ref_list): Likewise.
6263 (referred_ref_list): Likewise.
6264 Rest of functions moved to symtab_node class.
6265 * ipa-ref.h: New member functions remove_reference,
6266 cannot_lead_to_return, referring_ref_list, referred_ref_list added
6268 ipa_ref_list class has new member functions: first_reference,
6269 first_referring, clear, nreferences.
6270 * ipa-reference.c (analyze_function): New IPA REF function used.
6271 (write_node_summary_p): Likewise.
6272 (ipa_reference_write_optimization_summary): Likewise.
6273 * ipa-split.c (split_function): Likewise.
6274 * ipa-utils.c (ipa_reverse_postorder): Likewise.
6275 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
6276 (function_and_variable_visibility): Likewise.
6277 * ipa.c (has_addr_references_p): Likewise.
6278 (process_references): Argument type changed.
6279 (symtab_remove_unreachable_nodes): New IPA REF function used.
6280 (process_references): Likewise.
6281 (set_writeonly_bit): Likewise.
6282 * lto-cgraph.c: Implementation of new symtab_node member functions
6283 that uses new IPA REF functions.
6284 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
6286 * lto-streamer-out.c (output_symbol_p): Likewise.
6287 * lto-streamer.h (referenced_from_this_partition_p): Argument type
6289 * symtab.c: Implementation of new IPA REF API.
6290 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
6291 (ipa_tm_create_version): Likewise.
6292 (ipa_tm_execute): Likewise.
6293 * tree-emutls.c (gen_emutls_addr): Likewise.
6294 * tree-inline.c (copy_bb): Likewise.
6295 (delete_unreachable_blocks_update_callgraph): Likewise.
6296 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
6297 (varpool_for_node_and_aliases): Likewise.
6299 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6301 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
6303 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6306 * fold-const.c (fold_checksum_tree): Use a hash_table of const
6307 tree_node * instead of tree_node *.
6309 (print_fold_checksum): Likewise.
6310 (fold_check_failed): Likewise.
6311 (debug_fold_checksum): Likewise.
6312 (fold_build1_stat_loc): Likewise.
6313 (fold_build2_stat_loc): Likewise.
6314 (fold_build3_stat_loc): Likewise.
6315 (fold_build_call_array_loc): Likewise.
6317 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
6319 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
6320 implementation with call to...
6321 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
6323 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
6326 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
6328 PR tree-optimization/57742
6329 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
6330 after replacing the statement.
6332 2014-06-25 Nick Clifton <nickc@redhat.com>
6334 * config/v850/v850.c (GHS_default_section_names): Change to const
6336 (GHS_current_section_names): Likewise.
6337 (v850_insert_attributes): Do not build strings, just assign the
6338 names directly. Change the type of 'chosen_section' to const
6340 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
6341 directly to the array entry.
6342 * config/v850/v850.h (GHS_default_section_names): Change to const
6344 (GHS_current_section_names): Likewise.
6346 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6348 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
6349 (LANG_HOOKS_DECLS): Add it.
6350 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
6352 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
6353 * langhooks.h (struct lang_hooks_for_decls): Add
6354 omp_clause_linear_ctor hook.
6355 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
6356 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
6357 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
6358 combined simd loop use omp_clause_linear_ctor hook.
6360 2014-06-24 Cong Hou <congh@google.com>
6362 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6363 pattern recognition.
6364 (type_conversion_p): PROMOTION is true if it's a type promotion
6365 conversion, and false otherwise. Return true if the given expression
6366 is a type conversion one.
6367 * tree-vectorizer.h: Adjust the number of patterns.
6368 * tree.def: Add SAD_EXPR.
6369 * optabs.def: Add sad_optab.
6370 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6371 * expr.c (expand_expr_real_2): Likewise.
6372 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6373 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6374 * optabs.c (optab_for_tree_code): Likewise.
6375 * tree-cfg.c (estimate_operator_cost): Likewise.
6376 * tree-ssa-operands.c (get_expr_operands): Likewise.
6377 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6378 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6379 * doc/generic.texi: Add document for SAD_EXPR.
6380 * doc/md.texi: Add document for ssad and usad.
6382 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6384 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6385 qualification in cast.
6387 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6389 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6390 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6391 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6392 (tree_function_decl): ... here.
6393 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6394 streaming of vindex to ...
6395 (write_ts_function_decl_tree_pointers): ... here.
6396 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6397 Do not stream DECL_VINDEX.
6398 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6400 2014-06-24 Catherine Moore <clm@codesourcery.com>
6401 Sandra Loosemore <sandra@codesourcery.com>
6403 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6404 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6405 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6407 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6409 * doc/invoke.texi (Warning Options): Remove duplicated
6410 -Wmaybe-uninitialized.
6412 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6414 PR tree-optimization/57742
6415 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6416 (handle_builtin_malloc, handle_builtin_memset): New functions.
6417 (strlen_optimize_stmt): Call them.
6418 * passes.def: Move strlen after loop+dom but before vrp.
6420 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6423 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6424 model family 6 CPU with has_longmode never use a CPU without
6427 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6430 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6433 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6435 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6436 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6438 * hash-map.h: New file.
6439 * ipa-comdats.c: Use hash_map instead of pointer_map.
6441 * lto-section-out.c: Adjust.
6442 * lto-streamer.h: Replace pointer_map with hash_map.
6443 * symtab.c (verify_symtab): Likewise.
6444 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6445 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6446 * tree-streamer.h: Likewise.
6447 * tree-streamer.c: Adjust.
6448 * pointer-set.h: Remove pointer_map.
6450 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6452 * hash-table.h: Add a template arg to choose between storing values
6453 and storing pointers to values, and then provide partial
6454 specializations for both.
6455 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6456 should store, not the type values should point to.
6457 * tree-into-ssa.c (var_info_hasher): Likewise.
6458 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6459 * tree-complex.c: Adjust.
6460 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6461 table instead of int_tree_map *.
6462 * tree-parloops.c: Adjust.
6463 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6464 type is being stored.
6465 * tree-vectorizer.c: Adjust.
6467 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6469 * hash-table.h: Remove a layer of indirection from hash_table so that
6470 it contains the hash table's data instead of a pointer to the data.
6471 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6472 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6473 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6474 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6475 fold-const.c, gcse.c, ggc-common.c,
6476 gimple-ssa-strength-reduction.c, gimplify.c,
6477 graphite-clast-to-gimple.c, graphite-dependences.c,
6478 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6479 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6480 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6481 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6482 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6483 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6484 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6485 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6486 tree-ssa-live.c, tree-ssa-loop-im.c,
6487 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6488 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6489 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6490 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6491 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6492 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6493 vtable-verify.c, vtable-verify.h: Adjust.
6495 2014-06-24 Richard Biener <rguenther@suse.de>
6497 PR tree-optimization/61572
6498 * tree-ssa-sink.c (statement_sink_location): Do not sink
6499 loads from hard registers.
6501 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6503 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6504 not mentioned in clauses use private clause if the iterator is
6505 declared in #pragma omp for simd, and when adding lastprivate
6506 instead, add it to the outer #pragma omp for too. Diagnose
6507 if the variable is private in outer context. For simd collapse > 1
6508 loops, replace all iterators with temporaries.
6509 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6510 same even in collapse > 1 loops.
6512 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6513 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6515 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6516 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6518 (gimplify_adjust_omp_clauses): Likewise.
6519 * omp-low.c (lower_rec_simd_input_clauses,
6520 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6521 safelen the same as safelen(1).
6522 * tree-nested.c (convert_nonlocal_omp_clauses,
6523 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6524 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6525 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6526 Fixup handling of GIMPLE_OMP_TARGET.
6527 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6530 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6532 PR tree-optimization/61554
6533 * tree-ssa-propagate.c: Include "bitmap.h".
6534 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6535 properly update constructor/destructor.
6536 (substitute_and_fold_dom_walker::before_dom_children):
6537 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6538 need_eh_cleaup instead.
6539 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6542 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6544 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6545 * tree-pass.h (make_pass_ipa_single_use): New pass.
6546 * cgraph.h (used_by_single_function): New flag.
6547 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6549 * passes.def (pass_ipa_single_use): Scedule.
6550 * ipa.c (BOTTOM): New macro.
6551 (meet): New function
6552 (propagate_single_user): New function.
6553 (ipa_single_use): New function.
6554 (pass_data_ipa_single_use): New pass.
6555 (pass_ipa_single_use): New pass.
6556 (pass_ipa_single_use::gate): New gate.
6557 (make_pass_ipa_single_use): New function.
6559 2014-06-23 Kai Tietz <ktietz@redhat.com>
6562 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6563 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6565 2014-06-23 Richard Biener <rguenther@suse.de>
6567 * tree-ssa-loop.c (gate_loop): New function.
6568 (pass_tree_loop::gate): Call it.
6569 (pass_data_tree_no_loop, pass_tree_no_loop,
6570 make_pass_tree_no_loop): New.
6571 * tree-vectorizer.c: Include tree-scalar-evolution.c
6572 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6574 (pass_slp_vectorize::clone): New method.
6575 * timevar.def (TV_TREE_NOLOOP): New.
6576 * tree-pass.h (make_pass_tree_no_loop): Declare.
6577 * passes.def (pass_tree_no_loop): New pass group with
6580 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6583 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6584 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6586 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6588 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6591 2014-06-23 Alan Modra <amodra@gmail.com>
6594 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6595 to zero on debug statements.
6597 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6600 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6601 Ignore third operand if present by marking qualifier_internal.
6603 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6605 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6607 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6608 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6609 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6610 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6611 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6612 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6613 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6614 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6615 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6616 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6617 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6618 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6619 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6620 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6621 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6622 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6623 logic in GCC vector extensions
6625 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6626 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6627 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6628 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6629 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6630 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6631 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6632 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6633 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6634 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6636 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6638 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6641 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6642 (vget_low_s64): Use __GET_LOW macro.
6643 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6644 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6645 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6646 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6647 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6649 (vcombine_s64): Use GCC vector extensions; remove cast.
6650 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6651 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6652 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6653 Fix type signature; remove cast.
6655 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6658 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6660 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6663 (BUILTIN_VD_RE): Remove.
6664 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6665 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6666 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6668 (vreinterpretv1df*, vreinterpret*v1df): New.
6669 (vreinterpretdf*, vreinterpret*df): Remove.
6670 * config/aarch64/aarch64-simd.md (aarch64_create,
6671 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6672 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6674 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6675 (vcreate_f64): Remove cast, use v1df builtin.
6676 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6677 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6678 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6679 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6680 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6681 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6682 add range check using __builtin_aarch64_im_lane_boundsi.
6683 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6684 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6685 type signature, use gcc vector extensions.
6686 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6687 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6688 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6689 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6690 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6691 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6692 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6693 vreinterpret_u64_f64): Use v1df builtin not df.
6695 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6697 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6700 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6702 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6705 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6707 * loop-invariant.c (pre_check_invariant_p): New function.
6708 (find_invariant_insn): Call pre_check_invariant_p.
6710 2014-06-22 Richard Henderson <rth@redhat.com>
6713 * compare-elim.c (struct comparison): Add eh_note.
6714 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6715 a redundant comparison in a different EH region. Purge EH edges if
6718 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6720 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6721 (var_shift): Use it.
6722 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6723 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6724 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6725 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6726 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6727 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6728 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6729 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6730 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6731 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6732 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6733 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6734 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6735 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6736 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6737 *rotldi3_internal15be): Use the new attribute. Merge register and
6738 integer alternatives.
6740 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6742 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6743 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6744 split, *ashrdi3_internal3 and split): Delete, merge into...
6745 (ashr<mode>3): New expander.
6746 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6747 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6749 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6751 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6752 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6753 *rotldi3_internal3 and split): Delete, merge into...
6754 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6755 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6756 Use "rotlw" extended mnemonic.
6758 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6760 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6761 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6762 and split, *ashldi3_internal3 and split): Delete, merge into...
6763 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6764 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6766 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6768 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6769 (lshrsi3, two anonymous define_insns and define_splits,
6770 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6771 *lshrdi3_internal3 and split): Delete, merge into...
6772 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6773 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6775 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6777 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6778 Remove "O" alternative.
6780 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6782 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6783 (mips_move_from_gpr_cost): Likewise.
6784 (mips_register_move_cost): Update accordingly.
6785 (mips_secondary_reload_class): Remove name of in_p.
6787 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6790 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6791 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6793 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6795 * config/nios2/nios2.c: Include "builtins.h".
6797 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6799 * cgraph.h (tls_model_names): New variable.
6800 * print-tree.c (print_node): Simplify.
6801 * varpool.c (tls_model_names): New variable.
6802 (dump_varpool_node): Output tls model.
6804 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6806 * ipa-visibility.c (function_and_variable_visibility): Disable
6807 temporarily local aliases for some targets.
6809 2014-06-20 Marek Polacek <polacek@redhat.com>
6811 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6812 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6813 into SANITIZE_UNDEFINED.
6814 * doc/invoke.texi: Describe -fsanitize=bounds.
6815 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6816 functions created in the FEs.
6817 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6818 (expand_UBSAN_BOUNDS): New function.
6819 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6820 * internal-fn.h: Don't define internal functions here.
6821 * opts.c (common_handle_option): Add -fsanitize=bounds.
6822 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6823 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6824 * tree-core.h: Define internal functions here.
6825 (struct tree_base): Add ifn field.
6826 * tree-pretty-print.c: Include "internal-fn.h".
6827 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6828 * tree.c (get_callee_fndecl): Likewise.
6829 (build_call_expr_internal_loc): New function.
6830 * tree.def (CALL_EXPR): Update description.
6831 * tree.h (CALL_EXPR_IFN): Define.
6832 (build_call_expr_internal_loc): Declare.
6833 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6835 (ubsan_type_descriptor): Change bool parameter to enum
6836 ubsan_print_style. Adjust the code. Add handling of
6838 (ubsan_expand_bounds_ifn): New function.
6839 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6840 (ubsan_build_overflow_builtin): Likewise.
6841 (instrument_bool_enum_load): Likewise.
6842 (ubsan_instrument_float_cast): Likewise.
6843 * ubsan.h (enum ubsan_print_style): New enum.
6844 (ubsan_expand_bounds_ifn): Declare.
6845 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6847 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6849 * config/rs6000/rs6000.md: Append `DONE' to preparation
6850 statements of `bswap' pattern splitters.
6852 2014-06-20 Tom de Vries <tom@codesourcery.com>
6854 * target.def (call_fusage_contains_non_callee_clobbers): Update
6856 * doc/tm.texi: Regenerate.
6858 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6859 Max Ostapenko <m.ostapenko@partner.samsung.com>
6862 * asan.c (instrument_strlen_call): Fixed instrumentation of
6865 2014-06-20 Martin Jambor <mjambor@suse.cz>
6868 * ipa-prop.c (impossible_devirt_target): New function.
6869 (try_make_edge_direct_virtual_call): Use it, also instead of
6872 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6873 Max Ostapenko <m.ostapenko@partner.samsung.com>
6876 * asan.c (build_check_stmt): Add condition.
6878 2014-06-20 Martin Jambor <mjambor@suse.cz>
6881 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6884 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6886 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6888 (VCONQ): Make comment more helpful.
6890 * config/aarch64/aarch64-simd.md
6891 (aarch64_sqdmulh_lane<mode>):
6892 Use VCOND for operands 2. Update lane checking and flipping logic.
6893 (aarch64_sqrdmulh_lane<mode>): Likewise.
6894 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6895 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6896 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6897 attribute of operand 3 to VCOND.
6898 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6899 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6900 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6901 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6902 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6903 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6905 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6906 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6907 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6908 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6909 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6910 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6911 operand to VCOND. Update lane flipping and bounds checking logic.
6912 (aarch64_sqdmlal2_lane<mode>): Likewise.
6913 (aarch64_sqdmlsl_lane<mode>): Likewise.
6914 (aarch64_sqdmull_lane<mode>): Likewise.
6915 (aarch64_sqdmull2_lane<mode>): Likewise.
6916 (aarch64_sqdmlal_laneq<mode>):
6917 Replace VCON usage with VCONQ.
6918 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6919 (aarch64_sqdmlal2_laneq<mode>): Emit
6920 aarch64_sqdmlal2_laneq<mode>_internal insn.
6921 Replace VCON with VCONQ.
6922 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6923 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6924 (aarch64_sqdmull_laneq<mode>): Emit
6925 aarch64_sqdmull_laneq<mode>_internal insn.
6926 Replace VCON with VCONQ.
6927 (aarch64_sqdmull2_laneq<mode>): Emit
6928 aarch64_sqdmull2_laneq<mode>_internal insn.
6929 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6930 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6931 of 3rd argument to int16x4_t.
6932 (vqdmlalh_lane_s16): Likewise.
6933 (vqdmlslh_lane_s16): Likewise.
6934 (vqdmull_high_lane_s16): Likewise.
6935 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6936 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6937 (vqdmlsl_lane_s16): Likewise.
6938 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6939 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6940 (vqdmlals_lane_s32): Likewise.
6941 (vqdmlsls_lane_s32): Likewise.
6942 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6943 (vqdmulls_lane_s32): Likewise.
6944 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6945 (vqdmlsl_lane_s32): Likewise.
6946 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6947 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6948 (vqrdmulhh_lane_s16): Likewise.
6949 (vqdmlsl_high_lane_s16): Likewise.
6950 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6951 (vqdmlsl_high_lane_s32): Likewise.
6952 (vqrdmulhs_lane_s32): Likewise.
6954 2014-06-20 Tom de Vries <tom@codesourcery.com>
6956 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6957 get_call_reg_set_usage.
6959 2014-06-20 Tom de Vries <tom@codesourcery.com>
6961 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6962 it contains all call_used_regs.
6964 2014-06-20 Tom de Vries <tom@codesourcery.com>
6966 * final.c (collect_fn_hard_reg_usage): Add and use variable
6969 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6971 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6972 (set_init_priority, get_init_priority, set_fini_priority,
6973 get_fini_priority): New methods.
6974 * tree.c (init_priority_for_decl): Remove.
6975 (init_ttree): Do not initialize init priority.
6976 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6977 (decl_priority_info): Remove.
6978 (decl_init_priority_insert): Rewrite.
6979 (decl_fini_priority_insert): Rewrite.
6980 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6981 tree_priority_map_marked_p): Remove.
6982 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6983 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6984 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6985 not output priorities.
6986 (pack_ts_function_decl_value_fields): Likewise.
6987 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6988 not input priorities.
6989 (unpack_ts_function_decl_value_fields): Likewise.
6990 * symtab.c (symbol_priority_map): Declare.
6991 (init_priority_hash): Declare.
6992 (symtab_unregister_node): Unregister from priority hash, too.
6993 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6995 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6996 (symbol_priority_info): New function.
6997 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6999 * tree-core.h (tree_priority_map): Remove.
7001 2014-06-20 Jakub Jelinek <jakub@redhat.com>
7003 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
7004 0xff to uint64_t before shifting it up.
7006 2014-06-20 Julian Brown <julian@codesourcery.com>
7007 Chung-Lin Tang <cltang@codesourcery.com>
7009 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
7010 TARGET_THUMB1_ONLY. Add comments.
7012 2014-06-19 Tom de Vries <tom@codesourcery.com>
7014 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
7015 return type to void.
7016 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
7018 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7020 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
7021 as "move", from depends_on.
7023 2014-06-19 Terry Guo <terry.guo@arm.com>
7025 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7028 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7030 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
7032 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
7034 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
7037 * config/sh/sh.c (prepare_move_operands): Don't process TLS
7038 addresses here if reload in progress or completed.
7040 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7042 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
7043 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
7044 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
7045 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
7046 (mips_register_priority): New function that implements the target
7047 hook TARGET_REGISTER_PRIORITY.
7048 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
7049 (mips_lra_p): Likewise for TARGET_LRA_P.
7050 (TARGET_REGISTER_PRIORITY): Define macro.
7051 (TARGET_SPILL_CLASS): Likewise.
7052 (TARGET_LRA_P): Likewise.
7053 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
7055 (REG_CLASS_NAMES): Likewise.
7056 (REG_CLASS_CONTENTS): Likewise.
7057 (BASE_REG_CLASS): Use M16_SP_REGS.
7058 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
7059 New set attribute to enable alternatives depending on the register
7061 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
7062 (*lea64): Disable pattern for MIPS16.
7063 * config/mips/mips.opt (mlra): New option.
7065 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7067 * lra-constraints.c (base_to_reg): New function.
7068 (process_address): Use new function.
7070 2014-06-18 Tom de Vries <tom@codesourcery.com>
7072 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
7073 * config/aarch64/aarch64.c
7074 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
7075 (aarch64_emit_call_insn): New function.
7076 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
7078 * config/aarch64/aarch64.md (define_expand "call_internal")
7079 (define_expand "call_value_internal", define_expand "sibcall_internal")
7080 (define_expand "sibcall_value_internal"): New.
7081 (define_expand "call", define_expand "call_value")
7082 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
7083 expand variant and aarch64_emit_call_insn.
7085 2014-06-18 Radovan Obradovic <robradovic@mips.com>
7086 Tom de Vries <tom@codesourcery.com>
7088 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
7089 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7091 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
7092 clobbers to CALL_INSN_FUNCTION_USAGE.
7093 (define_expand "sibcall_internal")
7094 (define_expand "sibcall_value_internal"): New.
7095 (define_expand "call", define_expand "call_value"): Add argument to
7097 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
7098 (define_expand "sibcall_value"): Use sibcall_value_internal and
7101 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7103 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
7105 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7107 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
7110 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7112 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
7113 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
7114 annotations. Fix DWARF information.
7116 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7118 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
7119 __udivmoddi4, and fixups for negative operands.
7121 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7123 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
7125 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7127 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
7130 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7132 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
7135 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7137 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
7138 describing register usage on function entry and exit.
7140 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7142 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
7143 (__aeabi_ldivmod): Fix whitespace.
7145 2014-06-18 Andreas Schwab <schwab@suse.de>
7147 * doc/md.texi (Standard Names): Use @itemx for grouped items.
7148 Remove blank line after @item.
7150 2014-06-18 Richard Henderson <rth@redhat.com>
7153 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
7155 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7157 * config/arm/arm.c (neon_vector_mem_operand): Allow register
7158 POST_MODIFY for neon loads and stores.
7159 (arm_print_operand): Output post-index register for neon loads and
7162 2014-06-18 Richard Biener <rguenther@suse.de>
7164 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
7166 2014-06-18 Richard Biener <rguenther@suse.de>
7168 * tree-pass.h (make_pass_dce_loop): Remove.
7169 * passes.def: Replace pass_dce_loop with pass_dce.
7170 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
7171 changed free niter estimates and reset the scev cache.
7172 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
7173 make_pass_dce_loop): Remove.
7174 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
7175 (fini_copy_prop): Return whether something changed. Always
7176 let substitute_and_fold perform DCE and free niter estimates
7177 and reset the scev cache if so.
7178 (execute_copy_prop): If sth changed schedule cleanup-cfg.
7179 (pass_data_copy_prop): Do not unconditionally schedule
7180 cleanup-cfg or update-ssa.
7182 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7184 PR tree-optimization/61518
7185 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
7186 reduction var is used in reduction stmt or phi-function only.
7188 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7190 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
7192 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7194 PR tree-optimization/61517
7195 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
7196 whose rhs's first tree is the source expression instead of the
7198 (find_bswap_or_nop): Likewise.
7199 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
7200 gimple stmt whose rhs's first tree is the source. In the memory source
7201 case, move the stmt to be replaced close to one of the original load to
7202 avoid the problem of a store between the load and the stmt's original
7204 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
7207 2014-06-18 Andreas Schwab <schwab@suse.de>
7209 PR rtl-optimization/54555
7210 * postreload.c (move2add_use_add2_insn): Substitute
7211 STRICT_LOW_PART only if it is cheaper.
7213 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
7215 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
7216 Do not use unspec as call operand. Use memory_operand instead of
7217 memory_nox32_operand and add "m" operand constraint. Disable
7218 pattern for TARGET_X32.
7219 (*sibcall_pop_memory): Ditto.
7220 (*sibcall_value_memory): Ditto.
7221 (*sibcall_value_pop_memory): Ditto.
7222 (sibcall peepholes): Merge SImode and DImode patterns using
7223 W mode iterator. Use memory_operand instead of memory_nox32_operand.
7224 Disable pattern for TARGET_X32. Check if eliminated register is
7225 really dead after call insn. Generate call RTX without unspec operand.
7226 (sibcall_value peepholes): Ditto.
7227 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
7228 instead of memory_nox32_operand. Check if eliminated register is
7229 really dead after call insn. Generate call RTX without unspec operand.
7230 (sibcall_value_pop peepholes): Ditto.
7231 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
7233 2014-06-18 Terry Guo <terry.guo@arm.com>
7236 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
7239 2014-06-18 Olivier Hainque <hainque@adacore.com>
7241 * tree-core.h (tree_block): Add an "end_locus" field, allowing
7242 memorization of the end of block source location.
7243 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
7244 * gimplify.c (gimplify_bind_expr): Propagate the block start and
7245 end source location info we have on the block entry/exit code we
7248 2014-06-18 Richard Biener <rguenther@suse.de>
7250 * common.opt (fssa-phiopt): New option.
7251 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
7253 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
7254 * doc/invoke.texi (-fssa-phiopt): Document.
7256 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7258 * genattrtab.c (n_bypassed): New variable.
7259 (process_bypasses): Initialise n_bypassed.
7260 Count number of bypassed reservations.
7261 (make_automaton_attrs): Allocate space for bypassed reservations
7262 rather than number of bypasses.
7264 2014-06-18 Richard Biener <rguenther@suse.de>
7266 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
7267 we propagated anything.
7268 (substitute_and_fold_dom_walker::before_dom_children): Something
7269 changed if we propagated into PHI arguments.
7270 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
7273 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
7275 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
7277 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
7278 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
7279 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
7280 Introduces alternative way of loads group permutaions.
7281 (vect_transform_grouped_load): Try alternative way of permutations.
7283 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7285 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
7286 changed in ORT_TARGET region, don't jump to do_outer.
7287 (struct gimplify_adjust_omp_clauses_data): New type.
7288 (gimplify_adjust_omp_clauses_1): Adjust for data being
7289 a struct gimplify_adjust_omp_clauses_data pointer instead
7290 of tree *. Pass pre_p as a new argument to
7291 lang_hooks.decls.omp_finish_clause hook.
7292 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
7293 splay_tree_foreach to pass both list_p and pre_p.
7294 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
7295 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
7296 gimplify_adjust_omp_clauses callers.
7297 * langhooks.c (lhd_omp_finish_clause): New function.
7298 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
7299 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
7300 * langhooks.h (struct lang_hooks_for_decls): Add a new
7301 gimple_seq * argument to omp_finish_clause hook.
7302 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
7303 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
7304 (scan_omp_parallel, lower_omp_for): When adding
7305 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
7306 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
7307 * tree-nested.c (convert_nonlocal_omp_clauses,
7308 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
7309 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
7311 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
7313 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
7314 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
7316 2014-06-17 Xinliang David Li <davidxl@google.com>
7318 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
7319 * passes.c (pass_init_dump_file): Do not set initialize
7320 flag to false unconditionally.
7322 2014-06-17 Richard Biener <rguenther@suse.de>
7324 * genopinit.c (main): Use vec<>::qsort method.
7325 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7327 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
7329 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
7331 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
7332 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
7333 (mips_move_to_gpr_cost): Remove ST_REGS case.
7334 (mips_move_from_gpr_cost): Likewise.
7335 (mips_register_move_cost): Likewise.
7336 (mips_secondary_reload_class): Likewise.
7338 2014-06-17 Richard Biener <rguenther@suse.de>
7340 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
7341 (pass_all_optimizations): Move 3rd copy-prop pass from after
7342 fre to before ifcombine/phiopt.
7344 2014-06-17 Richard Biener <rguenther@suse.de>
7346 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
7347 and allow all blocks to be forwarders.
7349 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
7352 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
7353 variable 'size'; calculate 'size' right in the front; use
7354 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
7355 pcum->aapcs_stack_words.
7357 2014-06-17 Nick Clifton <nickc@redhat.com>
7359 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
7360 (umulhi3, mulsidi3, umulsidi3): Likewise.
7362 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7365 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7366 check for section name.
7368 2014-06-17 Richard Biener <rguenther@suse.de>
7370 * tree-ssa-propagate.c: Include domwalk.h.
7371 (substitute_and_fold): Outline main worker into a domwalker ...
7372 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7373 Schedule stmts we can fully propagate for removal. Remove
7375 (substitute_and_fold): Apply a dominator walk to perform
7376 substitution. Process stmts scheduled for removal here.
7378 2014-06-17 Richard Biener <rguenther@suse.de>
7380 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7383 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7385 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7386 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7387 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7388 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7389 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7391 (get_fpscr) : Likewise.
7393 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7395 PR rtl-optimization/61325
7396 * lra-constraints.c (valid_address_p): Add forward declaration.
7397 (simplify_operand_subreg): Check address validity before and after
7398 alter_reg of memory subreg.
7400 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7402 * config/i386/i386.c (decide_alg): Correctly handle
7403 maximum size of stringop algorithm.
7405 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7407 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7409 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7411 PR rtl-optimization/61522
7412 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7414 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7417 * symtab.c (symtab_node::reset_section): New method.
7418 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7420 * cgraph.h (reset_section): Declare.
7421 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7422 do not consider comdat locals.
7423 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7425 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7426 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7427 reset sections of symbols dragged out of the comdats.
7428 (function_and_variable_visibility): Reset sections of
7431 2014-06-16 Richard Biener <rguenther@suse.de>
7433 PR tree-optimization/61482
7434 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7435 [-INF(OVF), +INF(OVF)] range.
7437 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7439 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7440 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7441 handling 32-bit multiplication.
7443 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7446 * lra-lives.c (process_bb_lives): Skip creating copy during
7447 insn scan when src/dest has constrained to same regno.
7449 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7451 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7452 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7454 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7456 * asan.c (check_func): New function.
7457 (maybe_create_ssa_name): Likewise.
7458 (build_check_stmt_with_calls): Likewise.
7459 (use_calls_p): Likewise.
7460 (report_error_func): Change interface.
7461 (build_check_stmt): Allow non-integer lengths; add support
7463 (asan_instrument): Likewise.
7464 (instrument_mem_region_access): Moved code to build_check_stmt.
7465 (instrument_derefs): Likewise.
7466 (instrument_strlen_call): Likewise.
7467 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7468 * doc/invoke.texi: Describe new parameter.
7469 * params.def: Define new parameter.
7470 * params.h: Likewise.
7471 * sanitizer.def: Describe new builtins.
7473 2014-06-16 Richard Biener <rguenther@suse.de>
7475 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7476 Make all defs available at the end.
7477 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7479 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7482 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7484 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7487 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7488 initialization. Replace remaining use of uid.
7490 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7492 * c-family/c-common.c (handle_tls_model_attribute): Use
7494 * c-family/c-common.c (handle_tls_model_attribute): Use
7496 * cgraph.h (struct varpool_node): Add tls_model.
7497 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7498 * tree.h (DECL_TLS_MODEL): Update.
7499 (DECL_THREAD_LOCAL_P): Check that variable is static.
7500 (decl_tls_model): Declare.
7501 (set_decl_tls_model): Declare.
7502 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7503 set symbol prorperties.
7504 (get_emutls_init_templ_addr): Cleanup.
7505 (new_emutls_decl): Update.
7506 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7507 (lto_input_varpool_node): Likewise.
7508 * lto-streamer-out.c (hash_tree): Likewise.
7509 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7510 not stream DECL_TLS_MODEL.
7511 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7512 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7514 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7516 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7518 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7520 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7521 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7523 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7524 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7525 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7526 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7527 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7528 (df_get_artificial_defs, df_get_artificial_uses)
7529 (df_single_def, df_single_use): Update accordingly.
7530 (df_refs_chain_dump): Take the first element in a linked list as
7531 parameter, rather than a pointer to an array of pointers.
7532 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7533 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7534 (df_chain_create_bb_process_use): Likewise.
7535 (df_md_bb_local_compute_process_def): Likewise.
7536 * fwprop.c (process_defs, process_uses): Likewise.
7537 (register_active_defs, update_uses): Likewise.
7538 (forward_propagate_asm): Update for new df_ref linking.
7539 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7540 (df_null_ref_rec, df_null_mw_rec): Likewise.
7541 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7543 (df_scan_free_bb_info): Remove check for null artificial_defs.
7544 (df_install_ref_incremental): Adjust for new df_ref linking.
7545 Use a single-element insertion rather than a full sort.
7546 (df_ref_chain_delete_du_chain): Take the first element
7547 in a linked list as parameter, rather than a pointer to an array of
7549 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7550 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7551 (df_insn_info_delete): Remove check for null defs and call to
7552 df_scan_free_mws_vec.
7553 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7554 null rather than df_null_*_rec.
7555 (df_insn_rescan_debug_internal): Likewise, and update null
7556 checks in the same way. Remove check for null defs.
7557 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7558 Move a single element rather doing a full sort.
7559 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7561 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7562 Initialize df_ref and df_mw_hardreg lists to null rather than
7564 (df_ref_compare): Take df_refs as parameter, transferring the
7566 (df_ref_ptr_compare): ...this new function.
7567 (df_sort_and_compress_refs): Update accordingly.
7568 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7570 (df_mw_ptr_compare): ...this new function.
7571 (df_sort_and_compress_mws): Update accordingly.
7572 (df_install_refs, df_install_mws): Return a linked list rather than
7573 an array of pointers.
7574 (df_refs_add_to_chains): Assert that old lists are empty rather
7576 (df_insn_refs_verify): Don't handle null defs speciailly.
7577 * web.c (union_match_dups): Update for new df_ref linking.
7579 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7581 * df.h (df_ref_create, df_ref_remove): Delete.
7582 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7583 (df_ref_remove): Likewise.
7585 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7587 * df.h (df_single_def, df_single_use): New functions.
7588 * ira.c (find_moveable_pseudos): Use them.
7590 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7592 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7593 * df-problems.c (df_note_bb_compute): Use it.
7594 * regstat.c (regstat_bb_compute_ri): Likewise.
7596 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7598 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7599 * cse.c (cse_extended_basic_block): Use them.
7600 * dce.c (mark_artificial_use): Likewise.
7601 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7602 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7603 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7604 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7605 (df_simulate_initialize_backwards): Likewise.
7606 (df_simulate_finalize_backwards): Likewise.
7607 (df_simulate_initialize_forwards): Likewise.
7608 (df_md_simulate_artificial_defs_at_top): Likewise.
7609 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7610 * regrename.c (init_rename_info): Likewise.
7611 * regstat.c (regstat_bb_compute_ri): Likewise.
7612 (regstat_bb_compute_calls_crossed): Likewise.
7614 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7616 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7617 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7618 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7619 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7620 * combine.c (create_log_links): Likewise.
7621 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7622 (try_eliminate_compare): Likewise.
7623 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7624 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7625 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7626 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7627 (word_dce_process_block, dce_process_block): Likewise.
7628 * ddg.c (def_has_ccmode_p): Likewise.
7629 * df-core.c (df_bb_regno_first_def_find): Likewise.
7630 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7631 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7632 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7633 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7634 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7635 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7636 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7637 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7638 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7639 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7640 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7641 * fwprop.c (local_ref_killed_between_p): Likewise.
7642 (all_uses_available_at, free_load_extend): Likewise.
7643 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7644 * hw-doloop.c (scan_loop): Likewise.
7645 * ifcvt.c (dead_or_predicable): Likewise.
7646 * init-regs.c (initialize_uninitialized_regs): Likewise.
7647 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7648 (process_bb_node_lives): Likewise.
7649 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7650 (find_moveable_pseudos): Likewise.
7651 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7652 * recog.c (peep2_find_free_register): Likewise.
7653 * ree.c (get_defs): Likewise.
7654 * regstat.c (regstat_bb_compute_ri): Likewise.
7655 (regstat_bb_compute_calls_crossed): Likewise.
7656 * sched-deps.c (find_inc, find_mem): Likewise.
7657 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7658 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7659 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7660 (prepare_shrink_wrap): Likewise.
7661 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7662 * web.c (union_defs, pass_web::execute): Likewise.
7663 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7664 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7666 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7668 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7669 to inheritance pseudos.
7670 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7672 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7675 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7676 (BU_MISC_2): Rename to ...
7677 (BU_LDBL128_2): ... this.
7678 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7679 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7680 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7682 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7683 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7684 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7685 (unpacktf_1): Likewise.
7686 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7687 (__builtin_longdouble_dw1): Likewise.
7688 * doc/sourcebuild.texi (longdouble128): Document.
7690 2014-06-13 Jeff Law <law@redhat.com>
7692 PR rtl-optimization/61094
7693 PR rtl-optimization/61446
7694 * ree.c (combine_reaching_defs): Get the mode for the copy from
7695 the extension insn rather than the defining insn.
7697 2014-06-13 Dehao Chen <dehao@google.com>
7699 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7701 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7703 * doc/install.texi (--enable-linker-plugin-configure-flags)
7704 (--enable-linker-plugin-flags): Document new flags.
7706 2014-06-13 Martin Jambor <mjambor@suse.cz>
7709 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7710 cache_token if returning early.
7712 2014-06-13 Nick Clifton <nickc@redhat.com>
7714 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7715 requested alignment is active.
7716 (LABEL_ALIGN): Likewise.
7717 (LOOP_ALIGN): Likewise.
7719 2014-06-13 Richard Biener <rguenther@suse.de>
7721 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7722 Rewrite to propagate the VN result into all uses where
7723 possible and to remove stmts becoming dead because of that.
7724 (eliminate): Generalize stmt removal handling, remove in
7725 reverse dominator order to support proper debug stmt
7726 generation. Update stmts before removing stmts.
7727 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7729 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7731 PR tree-optimization/61375
7732 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7733 symbolic number cannot be represented in an uint64_t.
7734 (find_bswap_or_nop_1): Likewise.
7736 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7738 * symtab.c (symtab_node::reset_section): New method.
7739 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7741 * cgraph.h (reset_section): Declare.
7742 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7743 do not consider comdat locals.
7744 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7746 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7747 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7748 reset sections of symbols dragged out of the comdats.
7749 (function_and_variable_visibility): Reset sections of
7752 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7754 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7755 to use symtab and decl_binds_to_current_def_p
7756 * tree-vectorizer.c (increase_alignment): Increase alignment
7757 of alias target, too.
7759 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7762 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7763 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7764 if outer combined construct is distribute.
7765 (gimplify_omp_for): For OMP_DISTRIBUTE set
7766 gimplify_omp_ctxp->distribute.
7767 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7768 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7769 mapping into decl map.
7771 2014-06-12 Jason Merrill <jason@redhat.com>
7773 * common.opt (fabi-version): Change default to 0.
7775 2014-06-12 Jason Merrill <jason@redhat.com>
7777 * toplev.c (process_options): Reject -fabi-version=1.
7779 2014-06-12 Jeff Law <law@redhat.com>
7781 PR tree-optimization/61009
7782 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7783 value when we stop processing a block due to problematic PHIs.
7785 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7787 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7788 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7789 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7790 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7791 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7792 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7793 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7794 are not in the spec.
7796 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7799 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7800 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7803 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7805 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7807 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7810 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7811 loading from address spaces.
7813 2014-06-12 Martin Liska <mliska@suse.cz>
7816 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7817 statement is reachable.
7819 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7821 * symtab.c (section_hash): New hash.
7822 (symtab_unregister_node): Clear section before freeing.
7823 (hash_section_hash_entry): New haser.
7824 (eq_sections): New function.
7825 (symtab_node::set_section_for_node): New method.
7826 (set_section_1): Update.
7827 (symtab_node::set_section): Take string instead of tree as parameter.
7828 (symtab_resolve_alias): Update.
7829 * cgraph.h (section_hash_entry_d): New structure.
7830 (section_hash_entry): New typedef.
7831 (cgraph_node): Change comdat_group_ to x_comdat_group,
7832 change section_ to x_section and turn into section_hash_entry;
7833 update accestors; put set_section_for_node offline.
7834 * tree.c (decl_section_name): Turn into string.
7835 (set_decl_section_name): Change parameter to be string.
7836 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7837 * sdbout.c (sdbout_one_type): Update.
7838 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7839 * varasm.c (IN_NAMED_SECTION, get_named_section,
7840 resolve_unique_section, hot_function_section, get_named_text_section,
7841 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7842 make_decl_rtl, default_unique_section): Update.
7843 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7844 (c6x_elf_unique_section): Update.
7845 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7846 * config/pa/pa.c (pa_function_section): Update.
7847 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7848 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7849 * config/arc/arc.c (arc_in_small_data_p): Update.
7850 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7851 * config/mcore/mcore.c (mcore_unique_section): Update.
7852 * config/mips/mips.c (mips16_build_function_stub): Update.
7853 (mips16_build_call_stub): Update.
7854 (mips_function_rodata_section): Update.
7855 (mips_in_small_data_p): Update.
7856 * config/score/score.c (score_in_small_data_p): Update.
7857 * config/rx/rx.c (rx_in_small_data): Update.
7858 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7859 (rs6000_xcoff_asm_named_section): Update.
7860 (rs6000_xcoff_unique_section): Update.
7861 * config/frv/frv.c (frv_string_begins_with): Update.
7862 (frv_in_small_data_p): Update.
7863 * config/v850/v850.c (v850_encode_data_area): Update.
7864 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7865 (bfin_handle_l1_data_attribute): Update.
7866 (bfin_handle_l2_attribute): Update.
7867 * config/mep/mep.c (mep_unique_section): Update.
7868 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7870 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7871 (h8300_handle_tiny_data_attribute): Update.
7872 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7873 (m32r_in_small_data_p): Update.
7874 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7875 * config/i386/i386.c (ix86_in_large_data_p): Update.
7876 * config/i386/winnt.c (i386_pe_unique_section): Update.
7877 * config/darwin.c (darwin_function_section): Update.
7878 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7879 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7880 (new_emutls_decl): Update.
7881 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7882 input_varpool_node): Update.
7883 (ead_string_cst): Turn to ...
7884 (read_string): ... this one.
7885 * dwarf2out.c (secname_for_decl): Update.
7886 * asan.c (asan_protect_global): Update.
7888 2014-06-11 DJ Delorie <dj@redhat.com>
7890 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7892 * config/rx/rx.c (rx_option_override): Likewise.
7893 (rx_align_for_label): Likewise.
7895 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7897 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7899 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7902 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7904 * common.md: New file.
7905 * doc/md.texi: Update description of generic, machine-independent
7907 * config/s390/constraints.md (e): Delete.
7908 * Makefile.in (md_file): Include common.md.
7909 * config/m32c/t-m32c (md_file): Likewise.
7910 * genpreds.c (general_mem): New array.
7911 (generic_constraint_letters): Remove constraints now defined by
7913 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7914 Allow the first character to be '<' or '>' as well.
7915 * genoutput.c (general_mem): New array.
7916 (indep_constraints): Remove constraints now defined by common.md.
7917 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7918 Remove special handling of 'm'.
7919 * ira-costs.c (record_reg_classes): Remove special handling of
7920 constraints now defined by common.md.
7921 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7922 * ira-lives.c (single_reg_class): Likewise.
7923 (ira_implicitly_set_insn_hard_regs): Likewise.
7924 * lra-constraints.c (reg_class_from_constraints): Likewise.
7925 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7926 * postreload.c (reload_cse_simplify_operands): Likewise.
7927 * reload.c (push_secondary_reload, scratch_reload_class)
7928 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7929 * reload1.c (maybe_fix_stack_asms): Likewise.
7930 * targhooks.c (default_secondary_reload): Likewise.
7931 * stmt.c (parse_output_constraint): Likewise.
7932 * recog.c (preprocess_constraints): Likewise.
7933 (constrain_operands, peep2_find_free_register): Likewise.
7934 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7935 must be handled specially.
7937 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7939 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7940 * genpreds.c (have_const_dbl_constraints): Delete.
7941 (add_constraint): Don't set it.
7942 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7943 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7944 constraints using the lookup_constraint logic.
7945 * ira-lives.c (single_reg_class): Likewise.
7946 * ira.c (ira_setup_alts): Likewise.
7947 * lra-constraints.c (process_alt_operands): Likewise.
7948 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7949 * reload.c (find_reloads): Likewise.
7951 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7953 * genpreds.c (const_int_start, const_int_end): New variables.
7954 (choose_enum_order): Output CONST_INT constraints before memory
7956 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7958 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7959 * ira.c (ira_setup_alts): Likewise.
7960 * lra-constraints.c (process_alt_operands): Likewise.
7961 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7962 * reload.c (find_reloads): Likewise.
7964 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7966 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7967 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7968 * recog.c (preprocess_constraints): Update accordingly.
7970 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7972 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7973 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7974 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7975 * genpreds.c (print_type_tree): New function.
7976 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7977 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7978 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7979 Write out enum constraint_type and get_constraint_type.
7980 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7981 constraint_num rather than a constraint string.
7982 (satisfies_address_constraint_p): Likewise.
7983 (reg_class_from_constraints): Avoid old constraint macros.
7984 (process_alt_operands, process_address_1): Likewise.
7985 (curr_insn_transform): Likewise.
7986 * ira-costs.c (record_reg_classes): Likewise.
7987 (record_operand_costs): Likewise.
7988 * ira-lives.c (single_reg_class): Likewise.
7989 (ira_implicitly_set_insn_hard_regs): Likewise.
7990 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7991 * postreload.c (reload_cse_simplify_operands): Likewise.
7992 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7993 (constrain_operands, peep2_find_free_register): Likewise.
7994 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7995 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7996 * reload1.c (maybe_fix_stack_asms): Likewise.
7997 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7998 * targhooks.c (default_secondary_reload): Likewise.
7999 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
8000 to EXTRA_CONSTRAINT_STR.
8001 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
8003 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8005 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
8006 (write_constraint_satisfied_p_array): ...this new function.
8007 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
8009 (write_insn_preds_c): Update accordingly.
8011 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8013 * genpreds.c (write_lookup_constraint): Rename to...
8014 (write_lookup_constraint_1): ...this.
8015 (write_lookup_constraint_array): New function.
8016 (write_tm_preds_h): Define lookup_constraint as an inline function
8017 that uses write_lookup_constraint_array where possible.
8018 (write_insn_preds_c): Update for the changes above.
8020 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8022 * doc/md.texi (regclass_for_constraint): Rename to...
8023 (reg_class_for_constraint): ...this.
8024 * genpreds.c (num_constraints, enum_order, register_start)
8025 (register_end, satisfied_start, memory_start, memory_end)
8026 (address_start, address_end): New variables.
8027 (add_constraint): Count the number of constraints.
8028 (choose_enum_order): New function.
8029 (write_enum_constraint_num): Iterate over enum_order.
8030 (write_regclass_for_constraint): Rename to...
8031 (write_reg_class_for_constraint_1): ...this and update output
8033 (write_constraint_satisfied_p): Rename to...
8034 (write_constraint_satisfied_p_1): ...this and update output
8035 accordingly. Do nothing if all extra constraints are register
8037 (write_insn_extra_memory_constraint): Delete.
8038 (write_insn_extra_address_constraint): Delete.
8039 (write_range_function): New function.
8040 (write_tm_preds_h): Define constraint_satisfied_p and
8041 reg_class_for_constraint as inline functions that do a range check
8042 before calling the out-of-line function. Use write_range_function
8043 to implement insn_extra_{register,memory,address}_constraint,
8044 the first of which is new.
8045 (write_insn_preds_c): Update after above changes to write_* functions.
8046 (main): Call choose_enum_order.
8048 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
8050 PR tree-optimization/61306
8051 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
8052 expression instead of its size.
8053 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
8054 false to prevent optimization when the result is unpredictable due to
8055 arithmetic right shift of signed type with highest byte is set.
8056 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
8057 (init_symbolic_number): Likewise.
8058 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
8059 when the result is unpredictable due to sign extension.
8061 2014-06-11 Terry Guo <terry.guo@arm.com>
8063 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
8064 (*thumb1_addsi3): Ditto.
8065 (*thumb_subdi3): Ditto.
8066 (thumb1_subsi3_insn): Ditto.
8067 (*thumb_mulsi3): Ditto.
8068 (*thumb_mulsi3_v6): Ditto.
8069 (*thumb1_andsi3_insn): Ditto.
8070 (thumb1_bicsi3): Ditto.
8071 (*thumb1_iorsi3_insn): Ditto.
8072 (*thumb1_xorsi3_insn): Ditto.
8073 (*thumb1_ashlsi3): Ditto.
8074 (*thumb1_ashrsi3): Ditto.
8075 (*thumb1_lshrsi3): Ditto.
8076 (*thumb1_rotrsi3): Ditto.
8077 (*thumb1_negdi2): Ditto.
8078 (*thumb1_negsi2): Ditto.
8079 (*thumb1_abssi2): Ditto.
8080 (*thumb1_neg_abssi2): Ditto.
8081 (*thumb1_one_cmplsi2): Ditto.
8082 (*thumb1_zero_extendhisi2): Ditto.
8083 (*thumb1_zero_extendqisi2): Ditto.
8084 (*thumb1_zero_extendqisi2_v6): Ditto.
8085 (thumb1_extendhisi2): Ditto.
8086 (thumb1_extendqisi2): Ditto.
8087 (*thumb1_movdi_insn): Ditto.
8088 (*thumb1_movsi_insn): Ditto.
8089 (*thumb1_movhi_insn): Ditto.
8090 (thumb_movhi_clobber): Ditto.
8091 (*thumb1_movqi_insn): Ditto.
8092 (*thumb1_movhf): Ditto.
8093 (*thumb1_movsf_insn): Ditto.
8094 (*thumb_movdf_insn): Ditto.
8097 (cbranchqi4): Ditto.
8098 (cbranchsi4_insn): Ditto.
8099 (cbranchsi4_scratch): Ditto.
8100 (*negated_cbranchsi4): Ditto.
8101 (*tbit_cbranch): Ditto.
8102 (*tlobits_cbranch): Ditto.
8103 (*tstsi3_cbranch): Ditto.
8104 (*cbranchne_decr1): Ditto.
8105 (*addsi3_cbranch): Ditto.
8106 (*addsi3_cbranch_scratch): Ditto.
8107 (*thumb_cmpdi_zero): Ditto.
8108 (cstoresi_eq0_thumb1): Ditto.
8109 (cstoresi_ne0_thumb1): Ditto.
8110 (*cstoresi_eq0_thumb1_insn): Ditto.
8111 (*cstoresi_ne0_thumb1_insn): Ditto.
8112 (cstoresi_nltu_thumb1): Ditto.
8113 (cstoresi_ltu_thumb1): Ditto.
8114 (thumb1_addsi3_addgeu): Ditto.
8115 (*thumb_jump): Ditto.
8116 (*call_reg_thumb1_v5): Ditto.
8117 (*call_reg_thumb1): Ditto.
8118 (*call_value_reg_thumb1_v5): Ditto.
8119 (*call_value_reg_thumb1): Ditto.
8120 (*call_insn): Ditto.
8121 (*call_value_insn): Ditto.
8122 (thumb1_casesi_internal_pic): Ditto.
8123 (thumb1_casesi_dispatch): Ditto.
8124 (*thumb1_indirect_jump): Ditto.
8125 (prologue_thumb1_interwork): Ditto.
8126 (*epilogue_insns): Ditto.
8127 (consttable_1): Ditto.
8128 (consttable_2): Ditto.
8130 (*thumb1_tablejump): Ditto.
8131 (thumb_eh_return): Ditto.
8132 (define_peephole2): Two of them are thumb1 only and got moved into
8134 (define_split): Six of them are thumb1 only and got moved into new
8136 * config/arm/thumb1.md: New file comprised of above thumb1 only
8139 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8141 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
8142 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
8144 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
8145 (aarch64_crc_builtin_datum): New struct.
8146 (aarch64_crc_builtin_data): New.
8147 (aarch64_init_crc32_builtins): New function.
8148 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
8149 (aarch64_crc32_expand_builtin): New.
8150 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
8151 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8152 __ARM_FEATURE_CRC32 when appropriate.
8153 (TARGET_CRC32): Define.
8154 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
8155 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
8156 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
8157 (aarch64_<crc_variant>): New pattern.
8158 * config/aarch64/arm_acle.h: New file.
8159 * config/aarch64/iterators.md (CRC): New int iterator.
8160 (crc_variant, crc_mode): New int attributes.
8161 * doc/aarch64-acle-intrinsics.texi: New file.
8162 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
8163 Include aarch64-acle-intrinsics.texi.
8165 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
8167 * tree-vect-data-refs.c (vect_grouped_store_supported): New
8168 check for stores group of length 3.
8169 (vect_permute_store_chain): New permutations for stores group of
8171 * tree-vect-stmts.c (vect_model_store_cost): Change cost
8172 of vec_perm_shuffle for the new permutations.
8174 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8176 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
8177 table rewriting temporarily on targets not supporting ONE_ONLY.
8179 2014-06-11 Richard Biener <rguenther@suse.de>
8183 2014-06-04 Richard Biener <rguenther@suse.de>
8185 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8186 TREE_PUBLIC and DECL_EXTERNAL decls.
8188 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8190 * varasm.c (set_implicit_section): New function.
8191 (resolve_unique_section): Use it to set implicit section
8193 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
8194 (default_function_section): Likewise.
8195 (decl_binds_to_current_def_p): Constify argument.
8196 * varasm.h (decl_binds_to_current_def_p): Update prototype.
8197 * asan.c (asan_protect_global): Use
8198 symtab_get_node (decl)->implicit_section.
8199 * symtab.c (dump_symtab_base): Dump implicit sections.
8200 (verify_symtab_base): Verify sanity of sectoins and comdats.
8201 (symtab_resolve_alias): Alias share the section of its target.
8202 (set_section_1): New function.
8203 (symtab_node::set_section): Move here, recurse to aliases.
8204 (verify_symtab): Check for duplicated symtab lists.
8205 * tree-core.h (implicit_section_name_p): Remove.
8206 * tree-vect-data-refs.c: Include varasm.h.
8207 (vect_can_force_dr_alignment_p): Fix conditional on when
8208 decl bints to current definition; use
8209 symtab_get_node (decl)->implicit_section.
8210 * cgraph.c (cgraph_make_node_local_1): Fix section set.
8211 * cgraph.h (struct symtab_node): Add implicit_section.
8212 (set_section): Rename to ...
8213 (set_section_for_node): ... this one.
8214 (set_section): Declare.
8215 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
8216 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8217 input_overwrite_node, input_varpool_node): Stream implicit_section.
8218 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
8219 removal; it will fail in LTO.
8221 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8223 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
8224 Change second alternative type to f_mcr.
8225 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
8226 and 12th alternatives' types to f_mcr and f_mrc.
8227 (*movdi_aarch64): Same for 12th and 13th alternatives.
8228 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
8229 (aarch64_movtilow_tilow): Change type to fmov.
8231 2014-06-10 Jiong Wang <jiong.wang@arm.com>
8233 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
8234 (aarch64_save_or_restore_callee_save_registers): Fix layout.
8236 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8238 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
8240 (aarch64_sqrdmulh_lane<mode>): Likewise.
8241 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8242 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8243 (aarch64_sqdmulh_laneq<mode>): New expander.
8244 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8245 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
8246 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
8247 (aarch64_sqdmulh_lane<mode>): New expander.
8248 (aarch64_sqrdmulh_lane<mode>): Likewise.
8249 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8250 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8251 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
8252 (aarch64_sqdmlal_laneq<mode>): Likewise.
8253 (aarch64_sqdmlsl_lane<mode>): Likewise.
8254 (aarch64_sqdmlsl_laneq<mode>): Likewise.
8255 (aarch64_sqdmlal2_lane<mode>): Likewise.
8256 (aarch64_sqdmlal2_laneq<mode>): Likewise.
8257 (aarch64_sqdmlsl2_lane<mode>): Likewise.
8258 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8259 (aarch64_sqdmull_lane<mode>): Likewise.
8260 (aarch64_sqdmull_laneq<mode>): Likewise.
8261 (aarch64_sqdmull2_lane<mode>): Likewise.
8262 (aarch64_sqdmull2_laneq<mode>): Likewise.
8264 2014-06-10 Richard Biener <rguenther@suse.de>
8266 PR tree-optimization/61438
8267 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
8268 (eliminate_dom_walker::before_dom_children): Only try to inhibit
8269 insertion of IVs if running PRE.
8270 (eliminate): Adjust.
8271 (pass_pre::execute): Likewise.
8272 (pass_fre::execute): Likewise.
8274 2014-06-10 Richard Biener <rguenther@suse.de>
8277 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8278 Do not use the main variant for the type comparison.
8279 (ncr_compar): Likewise.
8280 (nonoverlapping_component_refs_p): Likewise.
8282 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
8284 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
8285 REG_CFA_RESTORE mode.
8287 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
8289 * config/i386/i386.c (expand_vec_perm_pblendv): New.
8290 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
8291 expand_vec_perm_pblendv.
8293 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8295 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
8297 Simplify description of __crc32d and __crc32cd intrinsics.
8298 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
8301 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
8304 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
8305 * config.in: Regenerate.
8306 * configure: Likewise.
8308 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8310 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
8312 (intersect_static_var_sets): Remove.
8313 (propagate): Do not prune local statics.
8315 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8318 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
8319 Set lastprivate_firstprivate even if omp_private_outer_ref
8320 langhook returns true.
8321 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
8322 langhook, call unshare_expr on new_var and call
8323 build_outer_var_ref to get the last argument.
8325 2014-06-10 Marek Polacek <polacek@redhat.com>
8328 * doc/extend.texi: Add cindex for transparent_union.
8330 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
8332 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
8333 init_symbolic_number ().
8335 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
8338 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
8339 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
8340 (verify_rtl_sharing): Likewise.
8342 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
8345 * tree.c (build_qualified_type): Use a canonical type for
8348 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8350 * config/arm/arm-modes.def: Remove XFmode.
8352 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
8355 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
8356 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
8357 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
8358 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
8359 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
8360 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8361 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8362 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8363 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8365 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8367 * tree-core.h (tree_decl_with_vis): Remove section_name.
8369 2014-06-09 Kito Cheng <kito@0xlab.org>
8371 * ira.c (ira): Don't call init_caller_save if LRA enabled
8372 since LRA use its own infrastructure to handle that.
8374 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8376 * symtab.c (dump_symtab_base): Update dumping.
8377 (symtab_make_decl_local): Clear only DECL_COMDAT.
8378 * tree-vect-data-refs.c (Check that variable is static before
8379 tampering with sections.
8380 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8381 (cgraph_create_virtual_clone): Likewise.
8382 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8383 (decl_section_name, set_decl_section_name): New accessors.
8384 (find_decls_types_r): Do not walk section name
8385 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8386 (decl_comdat_group, decl_comdat_group_id): Constify.
8387 (decl_section_name, set_decl_section_name): Update.
8388 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8389 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8390 (cgraph_make_node_local_1): Clear section and comdat group.
8391 * cgraph.h (set_comdat_group): Sanity check.
8392 (get_section, set_section): New.
8393 * ipa-comdats.c (ipa_comdats): Use get_section.
8394 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8395 * lto-streamer-out.c: Do not follow section names.
8396 * c-family/c-common.c (handle_section_attribute): Update.
8397 * lto-cgraph.c (lto_output_node): Output section.
8398 (lto_output_varpool_node): Likewise.
8399 (read_comdat_group): Rename to ...
8400 (read_identifier): ... this one.
8401 (read_string_cst): New function.
8402 (input_node, input_varpool_node): Input section names.
8403 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8404 (new_emutls_decl): Update.
8405 (secname_for_decl): Check section names only of static vars.
8406 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8407 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8408 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8409 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8410 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8411 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8412 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8413 * config/v850/v850.c (v850_insert_attributes): Likewise.
8414 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8416 (h8300_handle_tiny_data_attribute): Likewise.
8417 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8418 (bfin_handle_l2_attribute): Likewise.
8420 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8422 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8423 remove static initializer.
8425 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8427 * varasm.c (use_blocks_for_decl_p): Check symbol table
8428 instead of alias attribute.
8429 (place_block_symbol): Recurse on aliases.
8431 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8433 * ipa-visibility.c: Include varasm.h
8434 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8436 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8438 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8441 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8443 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8444 from test_insn into GGC space escape via SET_SRC.
8446 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8448 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8449 call statement, if any.
8450 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8451 statements, if any. Tidy up.
8453 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8456 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8457 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8458 handles swapping the two 64-bit double words on little endian
8459 systems. Include V1TImode and optionally TImode in VSX_LE so that
8460 these types are properly swapped. Change all of the insns and
8461 splits that do the 64-bit swaps to use VSX_LE.
8462 (vsx_le_perm_load_<mode>): Likewise.
8463 (vsx_le_perm_store_<mode>): Likewise.
8464 (splitters for little endian memory operations): Likewise.
8465 (vsx_xxpermdi2_le_<mode>): Likewise.
8466 (vsx_lxvd2x2_le_<mode>): Likewise.
8467 (vsx_stxvd2x2_le_<mode>): Likewise.
8469 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8472 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8473 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8474 and corresponding splitters. Zero extend general register
8475 or memory input operand to XMM temporary. Enable for
8476 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8477 (floatunssi<mode>2): Update expander predicate.
8479 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8481 PR rtl-optimization/61325
8482 * lra-constraints.c (process_address_1): Check scale equal to one
8483 to prevent transformation: base + scale * index => base + new_reg.
8485 2014-06-06 Richard Biener <rguenther@suse.de>
8487 PR tree-optimization/59299
8488 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8490 (nearest_common_dominator_of_uses): Likewise.
8491 (statement_sink_location): Adjust. Support sinking loads.
8493 2014-06-06 Martin Jambor <mjambor@suse.cz>
8495 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8496 (build_agg_jump_func_from_list): Likewise.
8497 (determine_known_aggregate_parts): Renamed to
8498 determine_locally_known_aggregate_parts. Moved some functionality
8499 to the two functions above, removed bound checks.
8501 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8503 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8504 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8505 (aarch64_progress_pointer): Likewise.
8506 (aarch64_copy_one_part_and_move_pointers): Likewise.
8507 (aarch64_expand_movmen): Likewise.
8508 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8509 * config/aarch64/aarch64.md (movmem<mode>): New.
8511 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8513 * targhooks.c (default_add_stmt_cost): Call target specific
8514 hook instead of default one.
8516 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8518 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8519 endianness instead of host endianness.
8520 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8523 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8526 * function.c (instantiate_decls): Process the saved static chain.
8527 (expand_function_start): If not optimizing, save the static chain
8529 * tree-nested.c (convert_all_function_calls): Always create the static
8530 chain for nested functions if not optimizing.
8532 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8534 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8536 2014-06-06 Richard Biener <rguenther@suse.de>
8538 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8539 (construct_init_block): Likewise.
8540 (construct_exit_block): Likewise.
8541 (pass_expand::execute): Likewise.
8542 * graphite.c (graphite_transforms): Replace check for current_loops
8543 with a check for > 1 loops.
8544 (pass_graphite_transforms::execute): Adjust.
8545 * ipa-split.c (split_function): Remove check for current_loops.
8546 * omp-low.c (expand_parallel_call): Likewise.
8547 (expand_omp_for_init_counts): Likewise.
8548 (extract_omp_for_update_vars): Likewise.
8549 (expand_omp_for_generic): Likewise.
8550 (expand_omp_sections): Likewise.
8551 (expand_omp_target): Likewise.
8552 * tracer.c (tail_duplicate): Likewise.
8553 (pass_tracer::execute): Likewise.
8554 * trans-mem.c (expand_transaction): Likewise.
8555 * tree-complex.c (expand_complex_div_wide): Likewise.
8556 * tree-eh.c (lower_resx): Likewise.
8557 (cleanup_empty_eh_merge_phis): Likewise.
8558 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8559 current_loops with a check for > 1 loops.
8560 (pass_predcom::execute): Adjust.
8561 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8562 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8563 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8564 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8565 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8566 * tree-switch-conversion.c (process_switch): Likewise.
8567 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8568 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8569 (execute_vrp): Likewise.
8570 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8572 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8574 * rtl.h (insn_location): Declare.
8575 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8576 with UNKNOWN_LOCATION.
8577 * emit-rtl.c (insn_location): New function.
8578 * final.c (notice_source_line): Check that the instruction has a
8579 location before retrieving it and use insn_location.
8580 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8581 * print-rtl.c (print_rtx): Likewise.
8583 2014-06-06 Richard Biener <rguenther@suse.de>
8585 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8587 2014-06-06 Christian Bruel <christian.bruel@st.com>
8589 PR tree-optimization/43934
8590 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8593 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8595 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8596 return NO_REGS for extra address and memory constraints. Handle
8597 operands that match (or are equivalent to something that matches)
8598 extra constant constraints. Ignore other non-register operands.
8600 2014-06-06 Alan Modra <amodra@gmail.com>
8603 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8604 * doc/tm.texi: Regenerate.
8605 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8606 Use throughout in place of REG_PARM_STACK_SPACE.
8607 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8608 "incoming" param. Pass to rs6000_function_parms_need_stack.
8609 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8610 prototype_p when incoming. Use function decl when incoming
8611 to handle K&R style functions.
8612 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8613 (INCOMING_REG_PARM_STACK_SPACE): Define.
8615 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8618 * cfgexpand.c (expand_debug_expr): Use address space of nested
8619 TREE_TYPE for ADDR_EXPR and MEM_REF.
8621 2014-06-05 Jeff Law <law@redhat.com>
8623 PR tree-optimization/61289
8624 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8625 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8626 looking for those which match LHS. All callers changed.
8627 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8628 parameters and code which manipulated them. All callers changed.
8629 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8630 and DST_MAP parameters. Simplify invalidation code by just calling
8631 invalidate_equivalences. All callers changed.
8632 (thread_across_edge): Simplify now that we don't need to maintain
8633 the map of equivalences to invalidate.
8635 2014-06-05 Kai Tietz <ktietz@redhat.com>
8636 Richard Henderson <rth@redhat.com>
8639 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8640 checking for !TARGET_X32.
8641 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8642 (sibcall_intern): New define_insn, plus required peepholes.
8643 (sibcall_pop_intern): Likewise.
8644 (sibcall_value_intern): Likewise.
8645 (sibcall_value_pop_intern): Likewise.
8647 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8649 * tree-inline.c (tree_function_versioning): Check DF info existence
8650 before accessing it.
8652 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8654 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8656 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8657 aarch64_frame hard_fp_offset and frame_size.
8658 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8659 frame_size; remove original_frame_size.
8660 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8661 (aarch64_initial_elimination_offset): Remove frame_size and
8662 offset. Use aarch64_frame frame_size.
8664 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8665 Jiong Wang <jiong.wang@arm.com>
8666 Renlin <renlin.li@arm.com>
8668 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8669 initialization of R30 offset. Update offset. Iterate core
8670 regisers upto X30. Remove X29, X30 specific code.
8672 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8673 Jiong Wang <jiong.wang@arm.com>
8675 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8676 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8677 (aarch64_register_saved_on_entry): Adjust test.
8679 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8681 * config/aarch64/aarch64.h (machine_function): Move
8682 saved_varargs_size from here...
8683 (aarch64_frame): ... to here.
8685 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8686 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8687 (aarch64_initial_elimination_offset)
8688 (aarch64_setup_incoming_varargs): Adjust location of
8691 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8693 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8696 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8697 Prachi Godbole <Prachi.Godbole@imgtec.com>
8699 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8700 mips32r5 entry to use PROCESSOR_P5600.
8701 * config/mips/mips-tables.opt: Regenerate.
8702 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8703 * config/mips/mips.c (mips_fmadd_bypass): New function.
8704 (mips_rtx_cost_data): Add costs for p5600.
8705 (mips_issue_rate): Add support for p5600.
8706 (mips_multipass_dfa_lookahead): Likewise.
8707 * config/mips/mips.h (TUNE_P5600): New define.
8708 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8709 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8710 * config/mips/mips.md: Include p5600.md.
8711 (processor): Add p5600.
8712 * config/mips/p5600.md: New file.
8714 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8716 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8717 * config/i386/predicates.md (palignr_operand): New.
8718 Indicates if permutation is suitable for palignr instruction.
8720 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8722 PR tree-optimization/61319
8723 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8724 stmt belongs to loop.
8726 2014-06-05 Richard Biener <rguenther@suse.de>
8728 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8729 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8730 (lookup_tmp_var): Adjust.
8731 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8733 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8735 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8737 2014-06-05 Marek Polacek <polacek@redhat.com>
8740 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8742 2014-06-04 Tom de Vries <tom@codesourcery.com>
8744 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8747 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8749 PR tree-optimization/61385
8750 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8752 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8754 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8755 changed to use fatal_error.
8756 (main): Ensure lto_wrapper_cleanup is run atexit.
8758 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8760 * lra-constraints.c (valid_address_p): Move earlier in file.
8761 (address_eliminator): New structure.
8762 (satisfies_memory_constraint_p): New function.
8763 (satisfies_address_constraint_p): Likewise.
8764 (process_alt_operands, process_address, curr_insn_transform): Use them.
8766 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8768 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8770 (target_lra_int, default_target_lra_int, this_target_lra_int)
8771 (op_alt_data): Delete.
8772 * lra.h (lra_init): Delete.
8773 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8774 (init_insn_code_data_once): Remove op_alt_data handling.
8775 (finish_insn_code_data_once): Likewise.
8776 (init_op_alt_data): Delete.
8777 (get_static_insn_data): Initialize operand_alternative to null.
8778 (free_insn_recog_data): Cast operand_alternative before freeing it.
8779 (setup_operand_alternative): Take the operand_alternative as
8780 parameter and assume it isn't already cached in the static
8782 (lra_set_insn_recog_data): Update accordingly.
8784 * ira.c (ira_init): Don't call lra_init.
8785 * target-globals.h (this_target_lra_int): Declare.
8786 (target_globals): Remove lra_int.
8787 (restore_target_globals): Update accordingly.
8788 * target-globals.c: Don't include lra-int.h.
8789 (default_target_globals, save_target_globals): Remove lra_int.
8791 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8793 * recog.h (operand_alternative): Convert reg_class, reject,
8794 matched and matches into bitfields.
8795 (preprocess_constraints): New overload.
8796 (preprocess_insn_constraints): New function.
8797 (preprocess_constraints): Take the insn as parameter.
8798 (recog_op_alt): Change into a pointer.
8799 (target_recog): Add x_op_alt.
8800 * recog.c (asm_op_alt): New variable.
8801 (recog_op_alt): Change into a pointer.
8802 (preprocess_constraints): New overload, replacing the old function
8803 definition with one that doesn't use global state.
8804 (preprocess_insn_constraints): New function.
8805 (preprocess_constraints): Use them. Take the insn as parameter.
8806 Use asm_op_alt for asms.
8807 (recog_init): Free existing x_op_alt entries.
8808 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8810 (make_early_clobber_and_input_conflicts): Likewise.
8811 (process_bb_node_lives): Pass the insn to process_constraints.
8812 * reg-stack.c (check_asm_stack_operands): Likewise.
8813 (subst_asm_stack_regs): Likewise.
8814 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8815 * regrename.c (build_def_use): Likewise.
8816 * sched-deps.c (sched_analyze_insn): Likewise.
8817 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8818 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8819 (note_invalid_constants): Likewise.
8820 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8821 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8824 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8826 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8827 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8829 (make_early_clobber_and_input_conflicts): Likewise.
8830 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8832 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8834 * recog.h (alternative_class): New function.
8835 (which_op_alt): Return a const recog_op_alt.
8836 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8837 (subst_asm_stack_regs): Likewise.
8838 * config/arm/arm.c (note_invalid_constants): Likewise.
8839 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8840 the operand_alternative; use alternative class instead.
8841 * sel-sched.c (get_reg_class): Likewise.
8842 * regrename.c (build_def_use): Likewise.
8843 (hide_operands, restore_operands, record_out_operands): Update type
8846 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8848 * recog.h (recog_op_alt): Convert to a flat array.
8849 (which_op_alt): New function.
8850 * recog.c (recog_op_alt): Convert to a flat array.
8851 (preprocess_constraints): Update accordingly, grouping all
8852 operands of the same alternative together, rather than the
8854 * ira-lives.c (check_and_make_def_conflict): Likewise.
8855 (make_early_clobber_and_input_conflicts): Likewise.
8856 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8857 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8858 (subst_asm_stack_regs): Likewise.
8859 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8860 * regrename.c (hide_operands, record_out_operands): Likewise.
8861 (build_def_use): Likewise.
8862 * sel-sched.c (get_reg_class): Likewise.
8863 * config/arm/arm.c (note_invalid_constants): Likewise.
8865 2014-06-04 Jason Merrill <jason@redhat.com>
8869 * gimplify.c (gimplify_arg): Non-static.
8870 * gimplify.h: Declare it.
8872 2014-06-04 Richard Biener <rguenther@suse.de>
8874 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8875 TREE_PUBLIC and DECL_EXTERNAL decls.
8877 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8879 * regcprop.c (copyprop_hardreg_forward_1): Account for
8880 HARD_REGNO_CALL_PART_CLOBBERED.
8882 2014-06-04 Richard Biener <rguenther@suse.de>
8884 * configure.ac: Check whether the underlying type of int64_t
8885 is long or long long.
8886 * configure: Regenerate.
8887 * config.in: Likewise.
8888 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8889 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8891 2014-06-04 Richard Biener <rguenther@suse.de>
8893 PR tree-optimization/60098
8894 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8896 (dse_optimize_stmt): Simplify, now that we found a kill
8899 2014-06-04 Richard Biener <rguenther@suse.de>
8901 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8902 of accesses with non-invariant address.
8904 2014-06-04 Martin Liska <mliska@suse.cz>
8906 * cgraph.h (cgraph_make_wrapper): New function introduced.
8907 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8908 * ipa-inline.h (inline_analyze_function): The function is global.
8909 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8911 2014-06-04 Martin Liska <mliska@suse.cz>
8913 * tree.h (private_lookup_attribute_starting): New function.
8914 (lookup_attribute_starting): Likewise.
8915 * tree.c (private_lookup_attribute_starting): Likewise.
8917 2014-06-04 Martin Liska <mliska@suse.cz>
8919 * cgraph.h (expand_thunk): New argument added.
8920 (address_taken_from_non_vtable_p): New global function.
8921 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8922 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8923 * cgraphunit.c (analyze_function): Likewise.
8924 (assemble_thunks_and_aliases): Argument added to call.
8925 (expand_thunk): New argument forces to produce GIMPLE thunk.
8927 2014-06-04 Martin Liska <mliska@suse.cz>
8929 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8930 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8931 * profile.c (branch_prob): Likewise.
8933 2014-06-04 Martin Jambor <mjambor@suse.cz>
8936 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8937 handler for switch on an ipa_ref_use enum.
8938 * ipa-reference.c (analyze_function): Likewise.
8940 2014-06-04 Kai Tietz <ktietz@redhat.com>
8942 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8943 from old call-instruction.
8945 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8947 * config/aarch64/aarch64.c (aarch64_classify_address)
8948 (aarch64_legitimize_reload_address): Support full addressing modes
8950 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8951 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8953 2014-06-03 Andrew Pinski <apinski@cavium.com>
8955 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8958 2014-06-03 Andrew Pinski <apinski@cavium.com>
8960 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8961 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8963 2014-06-03 Kai Tietz <ktietz@redhat.com>
8965 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8968 2014-06-03 Dehao Chen <dehao@google.com>
8970 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8973 2014-06-03 Marek Polacek <polacek@redhat.com>
8976 * doc/invoke.texi: Document -Wswitch-bool.
8977 * function.c (stack_protect_epilogue): Cast controlling expression of
8979 * gengtype.c (walk_type): Generate switch expression with its
8980 controlling expression cast to int.
8982 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8984 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8986 * config/avr/avr-tables.opt: Regenerate.
8987 * config/avr/t-multilib: Regenerate.
8988 * doc/avr-mmcu.texi: Regenerate.
8990 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8991 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8993 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8994 (ata6617c, ata664251): Add new avr35 devices.
8995 (ata6612c): Add new avr4 device.
8996 (ata6613c, ata6614q): Add new avr5 devices.
8997 * config/avr/avr-tables.opt: Regenerate.
8998 * config/avr/t-multilib: Regenerate.
8999 * doc/avr-mmcu.texi: Regenerate.
9001 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9003 * gcc/config/aarch64/aarch64-builtins.c
9004 (aarch64_types_binop_ssu_qualifiers): New static data.
9005 (TYPES_BINOP_SSU): Define.
9006 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
9007 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
9008 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
9009 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
9010 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
9011 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
9012 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
9013 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
9014 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
9015 suffix to builtin function name, remove cast.
9016 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
9017 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
9018 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
9020 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9022 * gcc/config/aarch64/aarch64-builtins.c
9023 (aarch64_types_binop_uus_qualifiers,
9024 aarch64_types_shift_to_unsigned_qualifiers,
9025 aarch64_types_unsigned_shiftacc_qualifiers): Define.
9026 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9027 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9028 sqshlu_n, uqshl_n): Update qualifiers.
9029 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
9030 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
9031 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
9032 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
9033 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
9034 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
9035 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
9036 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
9037 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
9038 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
9039 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
9040 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
9041 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
9042 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
9043 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
9044 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
9045 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
9046 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
9047 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
9048 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
9049 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
9050 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
9051 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
9052 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
9053 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
9054 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
9055 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
9057 2014-06-03 Teresa Johnson <tejohnson@google.com>
9059 * tree-sra.c (modify_function): Record caller nodes after rebuild.
9061 2014-06-02 Jason Merrill <jason@redhat.com>
9064 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
9066 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9068 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
9071 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9073 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
9075 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
9076 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
9077 * config/aarch64/iterators.md (REVERSE): New iterator.
9078 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
9079 (rev_op): New int_attribute.
9080 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
9081 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
9082 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
9083 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
9084 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
9085 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
9086 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
9087 Replace temporary __asm__ with __builtin_shuffle.
9089 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9091 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
9093 * config/mips/mips-tables.opt: Regenerate.
9094 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
9095 to use mips_isa_rev rather than ISA_MIPS32R2.
9096 * config/mips/mips.h (ISA_MIPS32R3): New define.
9097 (ISA_MIPS32R5): New define.
9098 (ISA_MIPS64R3): New define.
9099 (ISA_MIPS64R5): New define.
9100 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
9101 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
9102 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
9104 (MIPS_ISA_SYNCI_SPEC): Likewise.
9105 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
9106 (LINK_SPEC): Added mips32r3 and mips32r5.
9107 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
9108 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
9109 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
9110 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
9111 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
9112 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
9113 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
9115 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9117 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
9119 * config/mips/mips.opt (mxpa): New option.
9120 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
9123 2014-06-03 Martin Jambor <mjambor@suse.cz>
9126 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
9129 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
9131 PR tree-optimization/61328
9132 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
9133 initialization from find_bswap_or_nop_1.
9134 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
9135 in source_expr2 before using the size value the function sets. Also
9136 make use of init_symbolic_number () in both the old place and
9137 find_bswap_or_nop_load () to avoid reading uninitialized memory when
9138 doing recursion in the GIMPLE_BINARY_RHS case.
9140 2014-06-03 Richard Biener <rguenther@suse.de>
9142 PR tree-optimization/61383
9143 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
9146 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
9148 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
9149 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
9150 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
9151 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
9153 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
9154 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
9155 * system.h: ...here and make it unconditional.
9156 * target.def (conditional_register_usage): Mention
9157 define_register_constraint instead of old-style constraint macros.
9158 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
9159 * doc/tm.texi: Regenerate.
9160 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
9161 protected by !USE_MD_CONSTRAINTS.
9162 * config/frv/frv.md: Remove quote from old version of documentation.
9163 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
9164 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
9165 CONST_DOUBLE_OK_FOR_LETTER.
9166 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
9168 2014-06-02 Andrew Pinski <apinski@cavium.com>
9170 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
9171 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
9172 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
9173 file whose name depends on -mabi= and -mbig-endian.
9174 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
9175 Handle LP64 better and handle ilp32 too.
9176 (MULTILIB_OPTIONS): Delete.
9177 (MULTILIB_DIRNAMES): Delete.
9179 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
9181 * expr.h: Remove prototypes of functions defined in builtins.c.
9182 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
9183 Remove prototypes of functions defined in builtins.c.
9184 * builtins.h: Update prototype list to include all exported functions.
9185 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
9186 no_c99_libc_has_function): Move to targhooks.c
9187 (build_string_literal, build_call_expr_loc_array,
9188 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
9190 (expand_builtin_object_size, fold_builtin_object_size): Make static.
9191 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
9192 no_c99_libc_has_function): Relocate from builtins.c.
9193 * tree.c: Include builtins.h.
9194 (build_call_expr_loc_array, build_call_expr_loc_vec,
9195 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
9197 * fold-const.h (fold_fma): Move prototype to builtins.h.
9198 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
9199 * asan.c: Include builtins.h.
9200 * cfgexpand.c: Likewise.
9201 * convert.c: Likewise.
9202 * emit-rtl.c: Likewise.
9203 * except.c: Likewise.
9205 * fold-const.c: Likewise.
9206 * gimple-fold.c: Likewise.
9207 * gimple-ssa-strength-reduction.c: Likewise.
9208 * gimplify.c: Likewise.
9209 * ipa-inline.c: Likewise.
9210 * ipa-prop.c: Likewise.
9211 * lto-streamer-out.c: Likewise.
9213 * tree-inline.c: Likewise.
9214 * tree-object-size.c: Likewise.
9215 * tree-sra.c: Likewise.
9216 * tree-ssa-ccp.c: Likewise.
9217 * tree-ssa-forwprop.c: Likewise.
9218 * tree-ssa-loop-ivcanon.c: Likewise.
9219 * tree-ssa-loop-ivopts.c: Likewise.
9220 * tree-ssa-math-opts.c: Likewise.
9221 * tree-ssa-reassoc.c: Likewise.
9222 * tree-ssa-threadedge.c: Likewise.
9223 * tree-streamer-in.c: Likewise.
9224 * tree-vect-data-refs.c: Likewise.
9225 * tree-vect-patterns.c: Likewise.
9226 * tree-vect-stmts.c: Likewise.
9227 * config/aarch64/aarch64.c: Likewise.
9228 * config/alpha/alpha.c: Likewise.
9229 * config/arc/arc.c: Likewise.
9230 * config/arm/arm.c: Likewise.
9231 * config/avr/avr.c: Likewise.
9232 * config/bfin/bfin.c: Likewise.
9233 * config/c6x/c6x.c: Likewise.
9234 * config/cr16/cr16.c: Likewise.
9235 * config/cris/cris.c: Likewise.
9236 * config/epiphany/epiphany.c: Likewise.
9237 * config/fr30/fr30.c: Likewise.
9238 * config/frv/frv.c: Likewise.
9239 * config/h8300/h8300.c: Likewise.
9240 * config/i386/i386.c: Likewise.
9241 * config/i386/winnt.c: Likewise.
9242 * config/ia64/ia64.c: Likewise.
9243 * config/iq2000/iq2000.c: Likewise.
9244 * config/lm32/lm32.c: Likewise.
9245 * config/m32c/m32c.c: Likewise.
9246 * config/m32r/m32r.c: Likewise.
9247 * config/m68k/m68k.c: Likewise.
9248 * config/mcore/mcore.c: Likewise.
9249 * config/mep/mep.c: Likewise.
9250 * config/microblaze/microblaze.c: Likewise.
9251 * config/mips/mips.c: Likewise.
9252 * config/mmix/mmix.c: Likewise.
9253 * config/mn10300/mn10300.c: Likewise.
9254 * config/moxie/moxie.c: Likewise.
9255 * config/msp430/msp430.c: Likewise.
9256 * config/nds32/nds32.c: Likewise.
9257 * config/pa/pa.c: Likewise.
9258 * config/pdp11/pdp11.c: Likewise.
9259 * config/picochip/picochip.c: Likewise.
9260 * config/rl78/rl78.c: Likewise.
9261 * config/rs6000/rs6000.c: Likewise.
9262 * config/rx/rx.c: Likewise.
9263 * config/s390/s390.c: Likewise.
9264 * config/score/score.c: Likewise.
9265 * config/sh/sh.c: Likewise.
9266 * config/sparc/sparc.c: Likewise.
9267 * config/spu/spu.c: Likewise.
9268 * config/stormy16/stormy16.c: Likewise.
9269 * config/tilegx/tilegx.c: Likewise.
9270 * config/tilepro/tilepro.c: Likewise.
9271 * config/v850/v850.c: Likewise.
9272 * config/vax/vax.c: Likewise.
9273 * config/xtensa/xtensa.c: Likewise.
9275 2014-06-02 Jeff Law <law@redhat.com>
9277 PR rtl-optimization/61094
9278 * ree.c (combine_reaching_defs): Do not reextend an insn if it
9279 was marked as do_no_reextend. If a copy is needed to eliminate
9280 an extension, then mark it as do_not_reextend.
9282 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
9284 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
9286 2014-06-02 Richard Henderson <rth@redhat.com>
9289 * config/alpha/alpha.c (print_operand_address): Allow symbolic
9290 addresses inside asms. Use output_operand_lossage instead of
9293 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
9296 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
9297 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
9299 2014-06-02 Tom de Vries <tom@codesourcery.com>
9301 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
9302 case that x has VOIDmode.
9304 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
9306 * varasm.c (copy_constant): Delete function.
9307 (build_constant_desc): Don't call it.
9309 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9312 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
9313 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
9314 with immediate_operand.
9316 2014-06-02 Andreas Schwab <schwab@suse.de>
9318 * config/ia64/ia64.c
9319 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
9320 pending_data_specs first.
9322 2014-06-02 Richard Biener <rguenther@suse.de>
9324 PR tree-optimization/61378
9325 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
9328 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
9330 * config/i386/constraints.md (Bw): Rename from 'w'.
9331 (Bz): Rename from 'z'.
9332 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
9334 2014-06-01 Kai Tietz <ktietz@redhat.com>
9337 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
9338 * config/i386/i386.md (sibcall_insn_operand): Use Bs
9339 instead of m constraint.
9341 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
9343 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
9344 a separate alternative where the scratch operand 2 is marked as
9347 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9349 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9350 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
9351 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
9352 and __builtins_arm_get_fpscr.
9353 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9354 __builtins_arm_get_fpscr.
9355 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
9356 __builtins_arm_ldfpscr.
9357 (arm_atomic_assign_expand_fenv): New function.
9358 * config/arm/vfp.md (set_fpscr): New pattern.
9359 (get_fpscr) : Likewise.
9360 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9362 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9363 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9365 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9367 * asan.c (report_error_func): Add SLOW_P argument, use
9368 BUILT_IN_ASAN_*_N if set.
9369 (build_check_stmt): Likewise.
9370 (instrument_derefs): If T has insufficient alignment,
9371 force same handling as for odd sizes.
9373 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9374 BUILT_IN_ASAN_REPORT_STORE_N): New.
9375 * asan.c (struct asan_mem_ref): Change access_size type to
9377 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9378 update_mem_ref_hash_table): Likewise.
9379 (asan_mem_ref_hasher::hash): Hash in a HWI.
9380 (report_error_func): Change size_in_bytes argument to HWI.
9381 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9383 (build_shadow_mem_access): New function.
9384 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9385 Handle size_in_bytes not power of two or larger than 16.
9386 (instrument_derefs): Don't give up if size_in_bytes is not
9387 power of two or is larger than 16.
9389 2014-05-30 Kai Tietz <ktietz@redhat.com>
9392 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9393 for sibling-tail-calls.
9394 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9396 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9397 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9399 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9401 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9402 * config/avr/avr-tables.opt: Regenerate.
9403 * config/avr/t-multilib: Regenerate.
9404 * doc/avr-mmcu.texi: Regenerate.
9406 2014-05-30 Ian Lance Taylor <iant@google.com>
9408 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9411 2014-05-30 Tom de Vries <tom@codesourcery.com>
9413 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9416 2014-05-30 Tom de Vries <tom@codesourcery.com>
9418 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9419 * lra.c (initialize_lra_reg_info_element): Add init of
9420 actual_call_used_reg_set field.
9421 (lra): Call lra_create_live_ranges before lra_inheritance for
9423 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9425 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9426 instead of call_used_reg_set for -fuse-caller-save.
9427 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9429 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9431 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9433 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9435 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9437 * ira.c (ira_get_dup_out_num): Check for output operands at
9438 the start of the loop. Handle cases where an included alternative
9439 follows an excluded one.
9441 2014-05-29 Mike Stump <mikestump@comcast.net>
9444 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9445 post ld passes when lto is used.
9447 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9449 PR rtl-optimization/61325
9450 * lra-constraints.c (process_address): Rename to process_address_1.
9451 (process_address): New function.
9453 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9455 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9456 TYPES_BINOPV): New static data.
9457 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9459 * config/aarch64/aarch64-simd.md (aarch64_ext,
9460 aarch64_im_lane_boundsi): New patterns.
9461 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9463 (aarch64_evpc_ext): New function.
9465 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9467 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9468 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9469 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9470 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9471 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9473 2014-05-29 Tom de Vries <tom@codesourcery.com>
9475 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9477 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9478 Richard Sandiford <rdsandiford@googlemail.com>
9480 * arm/iterators.md (shiftable_ops): New code iterator.
9481 (t2_binop0, arith_shift_insn): New code attributes.
9482 * arm/predicates.md (shift_nomul_operator): New predicate.
9483 * arm/arm.md (insn_enabled): Delete.
9484 (enabled): Remove insn_enabled test.
9485 (*arith_shiftsi): Delete. Replace with ...
9486 (*<arith_shift_insn>_multsi): ... new pattern.
9487 (*<arith_shift_insn>_shiftsi): ... new pattern.
9488 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9490 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9491 Tom de Vries <tom@codesourcery.com>
9493 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9494 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9496 (mips_split_call): Use POST_CALL_TMP_REG.
9497 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9499 2014-05-29 Tom de Vries <tom@codesourcery.com>
9501 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9502 with #ifdef STACK_REGS.
9504 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9506 * varasm.c (get_variable_section): Walk aliases.
9507 (place_block_symbol): Walk aliases.
9509 2014-05-28 Tom de Vries <tom@codesourcery.com>
9512 2014-05-28 Tom de Vries <tom@codesourcery.com>
9514 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9515 * lra.c (initialize_lra_reg_info_element): Add init of
9516 actual_call_used_reg_set field.
9517 (lra): Call lra_create_live_ranges before lra_inheritance for
9519 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9521 * lra-constraints.c (need_for_call_save_p): Use
9522 actual_call_used_reg_set instead of call_used_reg_set for
9524 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9526 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9528 * doc/md.texi: Document that the % constraint character must
9529 be at the beginning of the string.
9530 * genoutput.c (validate_insn_alternatives): Check that '=',
9531 '+' and '%' only appear at the beginning of a constraint.
9532 * ira.c (commutative_constraint_p): Delete.
9533 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9534 at the start of the string.
9535 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9537 * config/arm/neon.md (bicdi3_neon): Likewise.
9538 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9539 (slt_si, sltu_si): Likewise.
9540 * config/vax/vax.md (sbcdi3): Likewise.
9541 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9542 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9543 (mul64): Move '%' to beginning of constraint.
9544 * config/arm/arm.md (*xordi3_insn): Likewise.
9545 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9548 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9550 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9552 2014-05-28 Jason Merrill <jason@redhat.com>
9555 * cgraph.h (symtab_node::get_comdat_group_id): New.
9556 * cgraphunit.c (analyze_functions): Call it.
9557 * symtab.c (dump_symtab_node): Likewise.
9558 * tree.c (decl_comdat_group_id): New.
9559 * tree.h: Declare it.
9560 * lto-streamer-out.c (write_symbol): Use it.
9561 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9563 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9565 PR bootstrap/PR61146
9566 * wide-int.cc: Do not include longlong.h when compiling with clang.
9568 2014-05-28 Richard Biener <rguenther@suse.de>
9570 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9571 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9572 (vrp_visit_assignment_or_call): Print less vertical space.
9573 (vrp_visit_stmt): Likewise.
9574 (vrp_visit_phi_node): Likewise. For a PHI argument with
9575 VR_VARYING range consider recording it as copy.
9577 2014-05-28 Richard Biener <rguenther@suse.de>
9580 2014-05-28 Richard Biener <rguenther@suse.de>
9582 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9584 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9586 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9587 sufficiently aligned and an offset is used at the same time.
9588 (expand_expr_real_1): Likewise.
9590 2014-05-28 Richard Biener <rguenther@suse.de>
9593 * fold-const.c (fold_comparison): When folding
9594 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9595 the sign of the remaining constant operand stays the same.
9597 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9599 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9600 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9601 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9603 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9604 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9605 (m32bit-doubles) Likewise.
9606 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9607 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9610 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9612 * configure.ac ($gcc_cv_ld_clearcap): New test.
9613 * configure: Regenerate.
9614 * config.in: Regenerate.
9615 * config/sol2.opt (mclear-hwcap): New option.
9616 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9617 * config/sol2-clearcap.map: Moved here from
9618 testsuite/gcc.target/i386/clearcap.map.
9619 * config/sol2-clearcapv2.map: Move here from
9620 gcc.target/i386/clearcapv2.map.
9621 * config/t-sol2 (install): Depend on install-clearcap-map.
9622 (install-clearcap-map): New target.
9623 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9626 2014-05-28 Richard Biener <rguenther@suse.de>
9628 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9629 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9630 ... here and remove the rest.
9631 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9633 2014-05-28 Richard Biener <rguenther@suse.de>
9635 PR tree-optimization/61335
9636 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9637 new range fails, drop to varying.
9639 2014-05-28 Olivier Hainque <hainque@adacore.com>
9641 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9642 (CPP_SPEC): Add entry for -mcpu=8548.
9643 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9644 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9646 2014-05-28 Tom de Vries <tom@codesourcery.com>
9648 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9649 * lra.c (initialize_lra_reg_info_element): Add init of
9650 actual_call_used_reg_set field.
9651 (lra): Call lra_create_live_ranges before lra_inheritance for
9653 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9655 * lra-constraints.c (need_for_call_save_p): Use
9656 actual_call_used_reg_set instead of call_used_reg_set for
9658 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9660 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9661 Tom de Vries <tom@codesourcery.com>
9663 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9665 (@item -fuse-caller-save): New item.
9667 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9668 Tom de Vries <tom@codesourcery.com>
9670 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9671 OPT_fuse_caller_save.
9673 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9674 Tom de Vries <tom@codesourcery.com>
9676 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9677 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9678 get_call_reg_set_usage.
9679 * resource.c (mark_set_resources, mark_target_live_regs): Use
9680 get_call_reg_set_usage.
9681 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9683 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9684 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9685 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9686 * ira-build.c (ira_create_allocno): Init
9687 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9688 (create_cap_allocno, propagate_allocno_info)
9689 (propagate_some_info_from_allocno)
9690 (copy_info_to_removed_store_destinations): Handle
9691 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9692 * ira-costs.c (ira_tune_allocno_costs): Use
9693 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9695 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9696 Tom de Vries <tom@codesourcery.com>
9698 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9699 and function_used_regs_valid fields.
9700 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9701 find_all_hard_reg_sets.
9702 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9703 (get_call_reg_set_usage): New function.
9704 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9705 * regs.h (get_call_reg_set_usage): Declare.
9707 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9710 * config/dbx.h (License): Add Runtime Library Exception.
9711 * config/newlib-stdint.h (License): Same.
9712 * config/rtems.h (License): Same
9713 * config/initfini-array.h (License): Same
9714 * config/v850/v850.h (License): Same.
9715 * config/v850/v850-opts.h (License): Same
9716 * config/v850/rtems.h (License): Same.
9718 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9721 * doc/extend.texi (Local Labels): Note that label differences are
9722 not supported for AVR.
9724 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9725 Olivier Hainque <hainque@adacore.com>
9727 * rtl.h (set_for_reg_notes): Declare.
9728 * emit-rtl.c (set_for_reg_notes): New function.
9729 (set_unique_reg_note): Use it.
9730 * optabs.c (add_equal_note): Likewise
9732 2014-05-27 Andrew Pinski <apinski@cavium.com>
9734 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9735 Use <w> for the register in assembly template.
9736 (stack_protect_test): Use the mode of operands[0] for the result.
9737 (stack_protect_test_<mode>): Use <w> for the register
9738 in assembly template.
9740 2014-05-27 DJ Delorie <dj@redhat.com>
9742 * config/rx/rx.c (add_vector_labels): New.
9743 (rx_output_function_prologue): Call it.
9744 (rx_handle_func_attribute): Don't require empty arguments.
9745 (rx_handle_vector_attribute): New.
9746 (rx_attribute_table): Add "vector" attribute.
9747 * doc/extend.texi (interrupt, vector): Document new/changed
9748 RX-specific attributes.
9750 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9752 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9754 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9755 predicate to detect a negative quotient.
9757 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9759 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9760 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9761 Add X - Y CMP 0 to X CMP Y transformation.
9762 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9764 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9766 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9769 2014-05-27 Steve Ellcey <sellcey@mips.com>
9771 * config/mips/mips.c: Add include of cgraph.h.
9773 2014-05-27 Richard Biener <rguenther@suse.de>
9775 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9777 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9780 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9781 * config/arm/arm-cores.def (License): Same.
9782 * config/arm/arm-opts.h (License): Same.
9783 * config/arm/aout.h (License): Same.
9784 * config/arm/bpabi.h (License): Same.
9785 * config/arm/elf.h (License): Same.
9786 * config/arm/linux-elf.h (License): Same.
9787 * config/arm/linux-gas.h (License): Same.
9788 * config/arm/netbsd-elf.h (License): Same.
9789 * config/arm/uclinux-eabi.h (License): Same.
9790 * config/arm/uclinux-elf.h (License): Same.
9791 * config/arm/vxworks.h (License): Same.
9793 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9795 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9796 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9797 (arm_init_neon_builtins): Handle NEON_BSWAP.
9798 Define required type nodes.
9799 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9800 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9801 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9802 * config/arm/iterators.md (VDQHSD): New mode iterator.
9804 2014-05-27 Richard Biener <rguenther@suse.de>
9806 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9807 Try using literal operands when comparing value-ranges failed.
9809 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9811 * ira.c (commutative_operand): Adjust for change to recog_data.
9812 [Missing from previous commit.]
9814 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9816 * system.h (TEST_BIT): New macro.
9817 * recog.h (alternative_mask): New type.
9818 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9819 (recog_data_d): Replace alternative_enabled_p array with
9820 enabled_alternatives.
9821 (target_recog): New structure.
9822 (default_target_recog, this_target_recog): Declare.
9823 (get_enabled_alternatives, recog_init): Likewise.
9824 * recog.c (default_target_recog, this_target_recog): New variables.
9825 (get_enabled_alternatives): New function.
9826 (extract_insn): Use it.
9827 (recog_init): New function.
9828 (preprocess_constraints, constrain_operands): Adjust for change to
9830 * postreload.c (reload_cse_simplify_operands): Likewise.
9831 * reload.c (find_reloads): Likewise.
9832 * ira-costs.c (record_reg_classes): Likewise.
9833 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9834 all alternatives after a disabled one would be skipped.
9835 (ira_implicitly_set_insn_hard_regs): Likewise.
9836 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9837 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9838 with enabled_alternatives.
9839 * lra.c (free_insn_recog_data): Update accordingly.
9840 (lra_update_insn_recog_data): Likewise.
9841 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9842 * lra-constraints.c (process_alt_operands): Likewise. Handle
9843 only_alternative as part of the enabled mask.
9844 * target-globals.h (this_target_recog): Declare.
9845 (target_globals): Add a recog field.
9846 (restore_target_globals): Restore this_target_recog.
9847 * target-globals.c: Include recog.h.
9848 (default_target_globals): Initialize recog field.
9849 (save_target_globals): Likewise.
9850 * reginfo.c (reinit_regs): Call recog_init.
9851 * toplev.c (backend_init_target): Likewise.
9853 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9855 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9856 rather than any named insn's code.
9858 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9861 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9862 * config/arm/arm-cores.def (License): Same.
9864 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9866 * tree.h (decl_comdat_group): Declare.
9867 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9868 * tree.c (decl_comdat_group): Here.
9870 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9872 PR rtl-optimization/61222
9873 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9874 the shift, truncate the PLUS operand to the result mode.
9876 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9879 * config/i386/i386.c (ix86_rtx_costs)
9880 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9883 2014-05-26 Martin Jambor <mjambor@suse.cz>
9885 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9888 2014-05-26 Richard Biener <rguenther@suse.de>
9890 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9891 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9892 Provide specializations.
9893 (wi::int_traits <HOST_WIDE_INT>,
9894 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9896 2014-05-26 Alan Modra <amodra@gmail.com>
9899 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9900 params and return a bool. Remove dead code. Update comment.
9901 Assert we have a const_int source. Remove bogus code from
9902 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9903 handling of constants > 2G and reg_equal note, from..
9904 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9905 return value. Update comment. If we can, use a new pseudo
9906 for intermediate calculations.
9907 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9909 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9910 call to rs6000_emit_set_const in splitter.
9911 (movdi_internal64+2, +3): Likewise.
9913 2014-05-26 Richard Biener <rguenther@suse.de>
9915 * system.h: Define __STDC_FORMAT_MACROS before
9916 including inttypes.h.
9917 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9918 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9919 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9920 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9921 HOST_WIDEST_INT_C): Remove.
9922 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9923 if C99 inttypes.h is not available.
9924 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9925 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9926 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9927 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9928 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9929 (struct output_info): Likewise.
9930 (print_statistics): Adjust.
9931 (dump_bitmap_statistics): Likewise.
9932 * bt-load.c (migrate_btr_defs): Print with PRId64.
9933 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9934 (MAX_SAFE_MULTIPLIER): Adjust.
9935 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9936 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9937 dump_cgraph_node): Likewise.
9938 * final.c (dump_basic_block_info): Likewise.
9939 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9940 * gcov.c (format_gcov): Likewise.
9941 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9943 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9944 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9945 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9946 Use PRId64 for dumping.
9947 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9948 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9949 (add_allocno_hard_regs): Adjust.
9950 * loop-doloop.c (doloop_modify): Print using PRId64.
9951 * loop-iv.c (inverse): Compute in uint64_t.
9952 (determine_max_iter, iv_number_of_iterations): Likewise.
9953 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9955 * lto-streamer-out.c (write_symbol): Use uint64_t.
9956 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9957 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9958 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9959 * modulo-sched.c (const_iteration_count): Use int64_t.
9960 (sms_schedule): Dump using PRId64.
9961 * predict.c (dump_prediction): Likewise.
9962 * pretty-print.h (pp_widest_integer): Remove.
9963 * profile.c (get_working_sets, is_edge_inconsistent,
9964 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9965 * tree-pretty-print.c (pp_double_int): Remove case handling
9966 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9967 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9969 (pass_optimize_bswap::execute): Remove restriction on hosts.
9970 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9971 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9972 * tree.c (widest_int_cst_value): Remove.
9973 * tree.h (widest_int_cst_value): Likewise.
9974 * value-prof.c (dump_histogram_value): Print using PRId64.
9975 * gengtype.c (main): Also inject int64_t.
9976 * ggc-page.c (struct max_alignment): Use int64_t.
9977 * alloc-pool.c (struct allocation_object_def): Likewise.
9978 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9980 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9981 * doc/tm.texi: Regenerated.
9982 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9983 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9984 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9985 mmix_output_register_setting): Use [u]int64_t in prototypes.
9986 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9987 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9988 mmix_output_octa, mmix_output_shifted_value): Adjust.
9989 (mmix_intval): Adjust. Remove unreachable case.
9990 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9992 2014-05-26 Richard Biener <rguenther@suse.de>
9994 * configure.ac: Drop __int64 type check. Insist that we
9995 found uint64_t and int64_t.
9996 * hwint.h (HOST_BITS_PER___INT64): Remove.
9997 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9998 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9999 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
10000 (HOST_WIDEST_FAST_INT): Remove __int64 case.
10001 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
10002 for dst_q_src_df_rms_cdt.
10003 * configure: Regenerate.
10004 * config.in: Likewise.
10006 2014-05-26 Michael Tautschnig <mt@debian.org>
10009 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
10010 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
10012 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10014 PR rtl-optimization/61278
10015 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
10017 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10019 PR rtl-optimization/61220
10020 Part of PR rtl-optimization/61225
10021 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
10022 insn; skip split_edge for a block with only one successor.
10024 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10026 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10029 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10031 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
10032 (update_vtable_references): New function.
10033 (function_and_variable_visibility): Rewrite also vtable initializers.
10034 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
10036 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10038 * ggc.h (ggc_grow): New function.
10039 * ggc-none.c (ggc_grow): New function.
10040 * ggc-page.c (ggc_grow): Likewise.
10042 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10044 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
10045 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
10046 comdat_can_be_unshared_p, cgraph_externally_visible_p,
10047 varpool_externally_visible_p, can_replace_by_local_alias,
10048 update_visibility_by_resolution_info, function_and_variable_visibility,
10049 pass_data_ipa_function_and_variable_visibility,
10050 make_pass_ipa_function_and_variable_visibility,
10051 whole_program_function_and_variable_visibility,
10052 pass_data_ipa_whole_program_visibility,
10053 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
10054 * cgraph.h (cgraph_local_node_p): Declare.
10055 * ipa-visibility.c: New file.
10056 * Makefile.in (OBJS): Add ipa-visiblity.o
10058 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10060 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
10061 that var decl is available.
10063 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10065 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
10066 symtab_node pointer.
10067 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
10068 (find_decls_types_r): Do not walk COMDAT_GROUP.
10069 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
10070 * varasm.c (make_decl_one_only): Use set_comdat_group;
10071 create node if needed.
10072 * ipa-inline-transform.c (save_inline_function_body): Update
10073 way we decl->symtab mapping.
10074 * symtab.c (symtab_hash, hash_node, eq_node
10075 symtab_insert_node_to_hashtable): Remove.
10076 (symtab_register_node): Update.
10077 (symtab_unregister_node): Update.
10078 (symtab_get_node): Reimplement as inline function.
10079 (symtab_add_to_same_comdat_group): Update.
10080 (symtab_dissolve_same_comdat_group_list): Update.
10081 (dump_symtab_base): Update.
10082 (verify_symtab_base): Update.
10083 (symtab_make_decl_local): Update.
10084 (fixup_same_cpp_alias_visibility): Update.
10085 (symtab_nonoverwritable_alias): Update.
10086 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
10087 * ipa.c (update_visibility_by_resolution_info): UPdate.
10088 * bb-reorder.c: Include cgraph.h
10089 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
10090 with comdat groups.
10091 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
10092 * cgraph.c (cgraph_get_create_node): Update.
10093 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
10095 (symtab_get_node): Make inline.
10096 (symtab_insert_node_to_hashtable): Remove.
10097 (symtab_can_be_discarded): Update.
10098 (decl_comdat_group): New function.
10099 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
10101 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
10103 (read_comdat_group): New function.
10104 (input_node, input_varpool_node): Use it.
10105 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
10107 * mips.c (mips_start_unique_function): Likewise.
10108 (ix86_code_end): Likewise.
10109 (rs6000_code_end): Likweise.
10110 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
10112 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10114 * gengtype-state.c (fatal_reading_state): Bring offline.
10115 * optabs.c (widening_optab_handler): Bring offline.
10116 * optabs.h (widening_optab_handler): Likewise.
10117 * final.c (get_attr_length_1): Likewise.
10119 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10121 * sched-int.h (sd_iterator_cond): Manually tail recurse.
10123 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10125 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
10126 (ppc440-compare): Include shift with dot.
10127 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
10128 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
10130 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
10132 (e6500_sfx2): Include it.
10133 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
10134 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
10135 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
10136 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
10137 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
10138 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
10139 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
10140 *lshiftrt_internal1le, *lshiftrt_internal1be,
10141 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
10142 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
10143 *rotldi3_internal10le, *rotldi3_internal10be,
10144 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
10145 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
10146 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
10147 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
10148 define_insns): Use type "shift" in the appropriate alternatives.
10150 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10152 * config/rs6000/rs6000.md (type): Add "logical". Delete
10154 (dot): Adjust comment.
10155 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
10156 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
10157 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
10158 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
10159 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
10160 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
10161 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
10162 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10164 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10165 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10166 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10167 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10168 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10169 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10170 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10171 * config/rs6000/8540.md (ppc8540_su): Adjust.
10172 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10173 cell-cmp-microcoded): Adjust.
10174 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10175 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10176 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10177 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10178 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10179 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10180 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10181 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10182 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10184 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10185 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
10186 Adjust. Adjust comment.
10187 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10188 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10190 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10192 * config/rs6000/rs6000.md (type): Add "add".
10193 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
10194 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
10195 define_insns): Use it.
10196 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10198 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10199 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10200 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10201 * config/rs6000/601.md (ppc601-integer): Adjust.
10202 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10203 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10204 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10205 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10206 * config/rs6000/8540.md (ppc8540_su): Adjust.
10207 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10208 cell-cmp-microcoded): Adjust.
10209 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10210 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10211 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10212 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10213 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10214 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10215 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10216 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10217 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10219 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10220 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
10221 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10222 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10224 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10226 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
10227 "delayed_compare", "var_delayed_compare".
10228 (var_shift): New attribute.
10229 (cell_micro): Adjust.
10230 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
10231 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
10232 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
10233 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10234 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10235 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10236 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10237 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
10238 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
10239 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10240 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
10241 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
10242 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
10243 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
10244 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
10245 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
10246 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
10247 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
10248 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
10249 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
10250 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
10251 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
10252 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
10253 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10254 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10256 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10257 * config/rs6000/440.md (ppc440-integer): Adjust.
10258 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10259 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
10260 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10261 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10262 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10263 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10264 * config/rs6000/8540.md (ppc8540_su): Adjust.
10265 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10266 cell-cmp-microcoded): Adjust.
10267 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
10268 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10269 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
10270 e500mc64_delayed): Adjust.
10271 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
10272 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
10273 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10274 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
10275 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
10276 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
10277 power6-delayed-compare, power6-var-delayed-compare): Adjust.
10278 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
10279 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
10281 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10282 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10284 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10286 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
10287 (bits): New mode_attr.
10288 (idiv_ldiv): Delete mode_attr.
10289 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
10290 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10291 rs6000_adjust_priority, is_nonpipeline_insn,
10292 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10294 * config/rs6000/40x.md (ppc403-idiv): Adjust.
10295 * config/rs6000/440.md (ppc440-idiv): Adjust.
10296 * config/rs6000/476.md (ppc476-idiv): Adjust.
10297 * config/rs6000/601.md (ppc601-idiv): Adjust.
10298 * config/rs6000/603.md (ppc603-idiv): Adjust.
10299 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
10300 ppc620-ldiv): Adjust.
10301 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
10302 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
10303 * config/rs6000/8540.md (ppc8540_divide): Adjust.
10304 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
10305 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
10306 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
10307 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
10308 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
10309 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
10310 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
10311 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
10312 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
10313 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
10314 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
10315 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
10316 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
10317 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
10318 * config/rs6000/titan.md (titan_fxu_div): Adjust.
10320 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10322 * config/rs6000/rs6000.md (type): Delete "insert_word",
10323 "insert_dword". Add "insert".
10324 (size): Update comment.
10325 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10326 insn_must_be_first_in_group): Adjust.
10327 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10328 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10329 *insvsi_internal6, insvdi_internal): Adjust.
10331 * config/rs6000/40x.md (ppc403-integer): Adjust.
10332 * config/rs6000/440.md (ppc440-integer): Adjust.
10333 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
10334 * config/rs6000/601.md (ppc601-integer): Adjust.
10335 * config/rs6000/603.md (ppc603-integer): Adjust.
10336 * config/rs6000/6xx.md (ppc604-integer): Adjust.
10337 * config/rs6000/7450.md (ppc7450-integer): Adjust.
10338 * config/rs6000/7xx.md (ppc750-integer): Adjust.
10339 * config/rs6000/8540.md (ppc8540_su): Adjust.
10340 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
10341 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
10342 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10343 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
10344 * config/rs6000/e5500.md (e5500_sfx): Adjust.
10345 * config/rs6000/e6500.md (e6500_sfx): Adjust.
10346 * config/rs6000/mpc.md (mpccore-integer): Adjust.
10347 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
10348 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
10349 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
10350 * config/rs6000/power7.md (power7-integer): Adjust.
10351 * config/rs6000/power8.md (power8-1cyc): Adjust.
10352 * config/rs6000/rs64.md (rs64a-integer): Adjust.
10353 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10355 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10357 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
10358 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
10359 (size): New attribute.
10360 (dot): New attribute.
10361 (cell_micro): Adjust.
10362 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10363 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10364 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10365 umuldi3_highpart): Adjust.
10366 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10367 rs6000_adjust_priority, is_nonpipeline_insn,
10368 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10370 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10371 ppc405-imul3): Adjust.
10372 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10373 * config/rs6000/476.md (ppc476-imul): Adjust.
10374 * config/rs6000/601.md (ppc601-imul): Adjust.
10375 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10376 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10377 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10378 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10379 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10381 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10382 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10383 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10384 cell-imul): Adjust.
10385 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10386 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10387 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10388 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10389 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10390 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10391 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10392 power4-lmul, power4-imul, power4-imul3): Adjust.
10393 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10394 power5-lmul, power5-imul, power5-imul3): Adjust.
10395 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10396 power6-lmul, power6-imul, power6-imul3): Adjust.
10397 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10398 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10400 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10401 rs64a-lmul): Adjust.
10402 * config/rs6000/titan.md (titan_imul): Adjust.
10404 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10406 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10407 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10408 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10409 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10410 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10411 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10412 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10413 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10414 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10415 * config/rs6000/titan.md: Delete nonsensical comment.
10416 (titan_imul): Add type imul3.
10417 (titan_mulhw): Remove type imul3; add type halfmul.
10419 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10421 * config/rs6000/rs6000.md (type): Reorder, reformat.
10423 2014-05-23 Martin Jambor <mjambor@suse.cz>
10425 PR tree-optimization/53787
10426 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10427 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10428 analysis_done, update all uses.
10429 * ipa-prop.c: Include domwalk.h
10430 (param_analysis_info): Removed.
10431 (param_aa_status): New type.
10432 (ipa_bb_info): Likewise.
10433 (func_body_info): Likewise.
10434 (ipa_get_bb_info): New function.
10435 (aa_overwalked): Likewise.
10436 (find_dominating_aa_status): Likewise.
10437 (parm_bb_aa_status_for_bb): Likewise.
10438 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10439 (load_from_unmodified_param): Accept func_body_info as a parameter
10440 instead of parms_ainfo.
10441 (parm_ref_data_preserved_p): Changed to use new param AA info.
10442 (parm_ref_data_pass_through_p): Likewise.
10443 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10444 (compute_complex_assign_jump_func): Changed to use new param AA info.
10445 (compute_complex_ancestor_jump_func): Likewise.
10446 (ipa_compute_jump_functions_for_edge): Likewise.
10447 (ipa_compute_jump_functions): Removed.
10448 (ipa_compute_jump_functions_for_bb): New function.
10449 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10451 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10452 and info, moved variable declarations down.
10453 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10455 (ipa_analyze_stmt_uses): Likewise.
10456 (ipa_analyze_params_uses): Removed.
10457 (ipa_analyze_params_uses_in_bb): New function.
10458 (ipa_analyze_controlled_uses): Likewise.
10459 (free_ipa_bb_info): Likewise.
10460 (analysis_dom_walker): New class.
10461 (ipa_analyze_node): Handle node-specific forbidden analysis,
10462 initialize and free func_body_info, use dominator walker.
10463 (ipcp_modif_dom_walker): New class.
10464 (ipcp_transform_function): Create and free func_body_info, use
10465 ipcp_modif_dom_walker, moved a lot of functionality there.
10467 2014-05-23 Marek Polacek <polacek@redhat.com>
10468 Jakub Jelinek <jakub@redhat.com>
10470 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10471 * gcc.c (sanitize_spec_function): Likewise.
10472 * convert.c (convert_to_integer): Include "ubsan.h". Add
10473 floating-point to integer instrumentation.
10474 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10475 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10476 SANITIZE_NONDEFAULT.
10477 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10478 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10479 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10480 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10481 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10482 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10483 float/double/long double.
10484 (ubsan_instrument_float_cast): New function.
10485 * ubsan.h (ubsan_instrument_float_cast): Declare.
10487 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10489 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10491 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10492 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10493 Adjust for tailcalling through registers.
10494 * config/aarch64/aarch64.h (enum reg_class): New caller save
10496 (REG_CLASS_NAMES): Likewise.
10497 (REG_CLASS_CONTENTS): Likewise.
10498 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10499 Allow tailcalling without decls.
10501 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10503 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10504 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10506 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10507 gsi, and variables v_* to v*.
10509 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10511 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10513 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10515 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10516 * omp-low.c: Update accordingly.
10518 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10519 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10520 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10521 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10522 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10523 GF_OMP_TARGET_KIND_UPDATE.
10525 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10526 Explicitly enumerate the expected region types.
10528 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10531 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10532 documentation; the old documentation didn't clearly state the
10533 constraints on the contents of the pointed-to storage.
10535 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10537 Fix bootstrap error on ia64
10538 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10539 Return default value.
10541 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10543 PR tree-optimization/54733
10544 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10546 (find_bswap_or_nop_load): New.
10547 (find_bswap_1): Renamed to ...
10548 (find_bswap_or_nop_1): This. Also add support for memory source.
10549 (find_bswap): Renamed to ...
10550 (find_bswap_or_nop): This. Also add support for memory source and
10551 detection of bitwise operations equivalent to load in target
10553 (execute_optimize_bswap): Likewise. Also move its leading comment back
10554 in place and split statement transformation into ...
10555 (bswap_replace): This.
10557 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10559 PR rtl-optimization/61215
10560 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10561 simplify_gen_subreg until final substitution.
10563 2014-05-23 Alan Modra <amodra@gmail.com>
10566 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10567 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10568 Use "Y" constraint rather than "m".
10570 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10572 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10574 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10575 New function declaration.
10576 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10577 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10578 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10579 (aarch64_init_builtins) : Initialize builtins
10580 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10581 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10582 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10583 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10584 and __builtins_aarch64_set_fpsr.
10585 (aarch64_atomic_assign_expand_fenv): New function.
10586 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10587 (get_fpcr) : Likewise.
10588 (set_fpsr) : Likewise.
10589 (get_fpsr) : Likewise.
10590 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10591 and UNSPECV_SET_FPSR.
10592 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10593 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10594 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10596 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10598 PR rtl-optimization/60969
10599 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10600 constraints. Set up mem cost for NO_REGS case.
10602 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10604 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10606 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10608 * config/darwin.c: Include "lto-section-names.h".
10609 (LTO_SEGMENT_NAME): Don't define.
10610 * config/i386/winnt.c: Include "lto-section-names.h".
10611 * lto-streamer.c: Include "lto-section-names.h".
10612 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10613 * lto-wrapper.c: Include "lto-section-names.h".
10614 (LTO_SECTION_NAME_PREFIX): Don't define.
10615 * lto-section-names.h: New file.
10616 * cgraphunit.c: Include "lto-section-names.h".
10618 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10620 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10622 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10625 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10627 2014-05-22 Nick Clifton <nickc@redhat.com>
10629 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10631 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10633 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10634 -> (T)A transformation to integer types.
10636 2014-05-22 Teresa Johnson <tejohnson@google.com>
10638 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10639 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10640 (gcov_rewrite): Use gcov_nonruntime_assert.
10641 (gcov_open): Ditto.
10642 (gcov_write_words): Ditto.
10643 (gcov_write_length): Ditto.
10644 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10645 gcc_assert from IN_LIBGCOV code.
10646 (gcov_read_summary): Use gcov_error to flag profile corruption.
10647 (gcov_sync): Use gcov_nonruntime_assert.
10648 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10649 (gcov_histo_index): Use gcov_nonruntime_assert.
10650 (static void gcov_histogram_merge): Ditto.
10651 (compute_working_sets): Ditto.
10652 * gcov-io.h (gcov_nonruntime_assert): Define.
10653 (gcov_error): Define for !IN_LIBGCOV
10655 2014-05-22 Richard Biener <rguenther@suse.de>
10657 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10658 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10659 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10660 and deallocation site.
10661 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10662 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10663 passing through the incoming points-to set.
10664 (handle_lhs_call): Use flags argument instead of recomputing it.
10665 (find_func_aliases_for_call): Call handle_lhs_call with proper
10668 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10670 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10671 all padding bits in REAL_VALUE_TYPE are cleared.
10673 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10675 Cleanup and improve multipass_dfa_lookahead_guard
10676 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10677 (core2i7_first_cycle_multipass_begin,)
10678 (core2i7_first_cycle_multipass_issue,)
10679 (core2i7_first_cycle_multipass_backtrack): Update signature.
10680 * config/ia64/ia64.c
10681 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10682 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10683 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10685 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10686 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10688 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10690 * doc/tm.texi: Regenerate.
10692 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10693 * haifa-sched.c (ready_try): Make signed to allow negative values.
10694 (rebug_ready_list_1): Update.
10695 (choose_ready): Simplify.
10696 (sched_extend_ready_list): Update.
10698 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10700 Remove IA64 speculation tweaking flags
10701 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10702 speculation tuning flags.
10703 (msched-prefer-non-data-spec-insns,)
10704 (msched-prefer-non-control-spec-insns): Obsolete options.
10705 * haifa-sched.c (choose_ready): Remove handling of
10706 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10707 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10708 and PREFER_NON_DATA_SPEC.
10709 * sel-sched.c (process_spec_exprs): Remove handling of
10710 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10712 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10714 Improve scheduling debug output
10715 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10716 (advance_one_cycle): Update.
10717 (schedule_insn, queue_to_ready): Add debug printouts.
10718 (debug_ready_list_1): New static function.
10719 (debug_ready_list): Update.
10720 (max_issue): Add debug printouts.
10721 (dump_insn_stream): New static function.
10722 (schedule_block): Use it. Also better indent printouts.
10724 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10726 Fix sched_insn debug counter
10727 * haifa-sched.c (schedule_insn): Update.
10728 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10729 (save_backtrack_point, restore_backtrack_point): Update.
10730 (first_nonscheduled_insn): New static function.
10731 (queue_to_ready, choose_ready): Use it.
10732 (schedule_block): Init nonscheduled_insns_begin.
10733 (sched_emit_insn): Update.
10736 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10738 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10740 (aarch64_secondary_reload) : LikeWise.
10741 (aarch64_class_max_nregs) : Remove CORE_REGS.
10742 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10743 (REG_CLASS_NAMES) : Likewise.
10744 (REG_CLASS_CONTENTS) : LikeWise.
10745 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10747 2014-05-21 Guozhi Wei <carrot@google.com>
10750 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10752 (vqdmulhq_n_s16): Likewise.
10754 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10756 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10758 2014-05-21 Marek Polacek <polacek@redhat.com>
10761 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10763 2014-05-21 Martin Jambor <mjambor@suse.cz>
10765 * doc/invoke.texi (Optimize Options): Document parameters
10766 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10767 ipa-cp-array-index-hint-bonus.
10769 2014-05-21 Mark Wielaard <mjw@redhat.com>
10772 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10773 version >= 3 or not strict DWARF.
10774 * langhooks.h (struct lang_hooks_for_types): Add
10775 enum_underlying_base_type.
10776 * langhooks.c (lhd_enum_underlying_base_type): New function.
10777 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10778 enum_underlying_base_type.
10779 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10780 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10781 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10783 2014-05-21 Richard Biener <rguenther@suse.de>
10785 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10787 2014-05-21 John Marino <gnugcc@marino.st>
10789 * config.gcc (*-*-dragonfly*): New target.
10790 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10791 * configure: Regenerate.
10792 * config/dragonfly-stdint.h: New.
10793 * config/dragonfly.h: New.
10794 * config/dragonfly.opt: New.
10795 * config/i386/dragonfly.h: New.
10796 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10798 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10800 * tree.def (VOID_CST): New.
10801 * tree-core.h (TI_VOID): New.
10802 * tree.h (void_node): New.
10803 * tree.c (tree_node_structure_for_code, tree_code_size)
10804 (iterative_hash_expr): Handle VOID_CST.
10805 (build_common_tree_nodes): Initialize void_node.
10807 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10809 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10811 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10813 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10816 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10817 flag_reorder_blocks_and_partition.
10818 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10820 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10823 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10825 (*addc_r_t): Add new insn_and_split.
10827 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10829 PR middle-end/61252
10830 * omp-low.c (handle_simd_reference): New function.
10831 (lower_rec_input_clauses): Use it. Defer adding reference
10832 initialization even for reduction without placeholder if in simd,
10833 handle it properly later on.
10835 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10837 PR tree-optimization/60899
10838 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10839 assume all static symbols will have definition wile parsing and
10840 check the do have definition later in compilation; check that
10841 variable referring symbol will be output before concluding that
10842 reference is safe; be conservative for referring local statics;
10843 be more precise about when comdat is output in other partition.
10845 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10848 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10850 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10851 (ipa_inline): Loop inline_to_all_callers until no more aliases
10854 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10856 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10857 set writeonly flag only for vars actually written to.
10859 2014-05-20 Dehao Chen <dehao@google.com>
10861 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10862 and callee count to get clone count.
10863 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10864 count in copy_body.
10866 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10868 PR rtl-optimization/61243
10869 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10871 2014-05-20 Xinliang David Li <davidxl@google.com>
10873 * cgraphunit.c (walk_polymorphic_call_targets): Add
10874 dbgcnt and fopt-info support.
10875 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10876 * ipa-devirt.c (ipa_devirt): Ditto.
10877 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10878 * ipa.c (walk_polymorphic_call_targets): Ditto.
10879 * gimple-fold.c (fold_gimple_assign): Ditto.
10880 (gimple_fold_call): Ditto.
10881 * dbgcnt.def: New counter.
10883 2014-05-20 DJ Delorie <dj@redhat.com>
10885 * config/msp430/msp430.md (split): Don't allow subregs when
10886 splitting SImode adds.
10887 (andneghi): Fix subtraction logic.
10888 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10890 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10892 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10894 * except.c (switch_to_exception_section, resolve_unique_section,
10895 get_named_text_section, default_function_rodata_section,
10896 align_variable, get_block_for_decl, default_section_type_flags):
10897 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10898 * symtab.c (symtab_add_to_same_comdat_group,
10899 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10900 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10902 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10903 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10904 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10905 (c6x_function_in_section_p): Likewise.
10906 * config/darwin.c (machopic_select_section): Likewise.
10907 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10908 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10909 * config/mep/mep.c (mep_select_section): LIkewise.
10910 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10912 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10914 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10915 EH region of calls to pure functions that can throw an exception.
10916 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10917 (copy_reference_ops_from_call): Also copy the EH region of the call if
10918 it can throw an exception.
10920 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10922 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10923 nested VEC_SELECTs that are inverses of each other.
10925 2014-05-20 Richard Biener <rguenther@suse.de>
10927 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10928 (extract_and_process_scc_for_name): not here.
10929 (cond_dom_walker::before_dom_children): Only process
10930 stmts that end the BB in interesting ways.
10931 (run_scc_vn): Mark param uses as visited.
10933 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10935 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10938 2014-05-20 Nick Clifton <nickc@redhat.com>
10940 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10941 (msp430_gimplify_va_arg_expr): New function.
10942 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10944 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10945 operand 0 in order to prevent confusion about the number of
10946 registers involved.
10948 2014-05-20 Richard Biener <rguenther@suse.de>
10950 PR tree-optimization/61221
10951 * tree-ssa-pre.c (el_to_update): Remove.
10952 (eliminate_dom_walker::before_dom_children): Handle released
10953 VDEFs by value-numbering them to the associated VUSE. Update
10954 stmt immediately for substituted call address.
10955 (eliminate): Remove delayed stmt updating code.
10956 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10957 possibly late re-numbered vuses.
10958 (vn_reference_lookup_2): Adjust.
10959 (vn_reference_lookup_pieces): Likewise.
10960 (vn_reference_lookup): Likewise.
10962 2014-05-20 Richard Biener <rguenther@suse.de>
10964 * config.gcc: Remove need_64bit_hwint.
10965 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10966 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10968 * config.in: Regenerate.
10969 * configure: Likewise.
10971 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10973 * doc/extend.texi: Create Label Attributes section,
10974 move all label attributes into it and reference it.
10976 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10978 * arm.c (thumb1_reorg): When scanning backwards skip anything
10979 that's not a proper insn.
10981 2014-05-19 Richard Biener <rguenther@suse.de>
10983 PR tree-optimization/61221
10984 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10985 Do nothing for unreachable blocks.
10986 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10987 Improve unreachability detection.
10989 2014-05-19 Richard Biener <rguenther@suse.de>
10991 PR tree-optimization/61209
10992 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10994 2014-05-19 Nick Clifton <nickc@redhat.com>
10996 * except.c (init_eh): Fix computation of builtin setjmp buffer
10997 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10999 2014-05-19 Richard Biener <rguenther@suse.de>
11001 PR tree-optimization/61184
11002 * tree-vrp.c (is_negative_overflow_infinity): Use
11003 TREE_OVERFLOW_P and do that check first.
11004 (is_positive_overflow_infinity): Likewise.
11005 (is_overflow_infinity): Likewise.
11006 (vrp_operand_equal_p): Properly treat operands with
11007 differing overflow as not equal.
11009 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
11011 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
11012 shift simplification where it was intended.
11014 2014-05-19 Christian Bruel <christian.bruel@st.com>
11017 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
11019 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
11022 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11025 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11027 * reg-notes.def (CROSSING_JUMP): Likewise.
11028 * rtl.h (rtx_def): Update comment for jump flag.
11029 (CROSSING_JUMP_P): Define.
11030 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
11031 of a REG_CROSSING_JUMP note.
11032 * cfghooks.c (tidy_fallthru_edges): Likewise.
11033 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
11034 * emit-rtl.c (try_split): Likewise.
11035 * haifa-sched.c (sched_create_recovery_edges): Likewise.
11036 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11037 * jump.c (redirect_jump_2): Likewise.
11038 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
11039 (relax_delay_slots): Likewise.
11040 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
11041 (bbit_di): Likewise.
11042 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
11043 * config/sh/sh.md (jump_compact): Likewise.
11044 * bb-reorder.c (rotate_loop): Likewise.
11045 (pass_duplicate_computed_gotos::execute): Likewise.
11046 (add_reg_crossing_jump_notes): Rename to...
11047 (update_crossing_jump_flags): ...this.
11048 (pass_partition_blocks::execute): Update accordingly.
11050 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11052 * tree.h: Remove extraneous template <>.
11054 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11056 * ipa.c (symtab_remove_unreachable_nodes): Remove
11057 symbol from comdat group if its body was eliminated.
11058 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
11059 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
11060 (symtab_unregister_node): ... this one.
11061 (verify_symtab_base): More strict checking of comdats.
11062 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
11064 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11066 * tree-pass.h (make_pass_ipa_comdats): New pass.
11067 * timevar.def (TV_IPA_COMDATS): New timevar.
11068 * passes.def (pass_ipa_comdats): Add.
11069 * Makefile.in (OBJS): Add ipa-comdats.o
11070 * ipa-comdats.c: New file.
11072 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11074 * ipa.c (update_visibility_by_resolution_info): New function.
11075 (function_and_variable_visibility): Use it.
11077 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11079 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
11081 (FOR_EACH_DEFINED_SYMBOL): New macro.
11082 (varpool_first_static_initializer, varpool_next_static_initializer,
11083 varpool_first_defined_variable, varpool_next_defined_variable):
11085 (symtab_in_same_comdat_p): Correctly deal with inline functions.
11087 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11089 * ggc-page.c (ggc_handle_finalizers): Add comment.
11091 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11093 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
11094 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
11095 (ggc_internal_cleared_alloc): Likewise.
11096 * ggc-page.c (finalizer): New class.
11097 (vec_finalizer): Likewise.
11098 (globals::finalizers): New member.
11099 (globals::vec_finalizers): Likewise.
11100 (ggc_internal_alloc): Record the finalizer if any for the block being
11102 (ggc_handle_finalizers): New function.
11103 (ggc_collect): Call ggc_handle_finalizers.
11104 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
11106 (ggc_internal_cleared_alloc): Likewise.
11107 (finalize): New function.
11108 (need_finalization_p): Likewise.
11109 (ggc_alloc): Install the type's destructor as the finalizer if it
11110 might do something.
11111 (ggc_cleared_alloc): Likewise.
11112 (ggc_vec_alloc): Likewise.
11113 (ggc_cleared_vec_alloc): Likewise.
11115 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11117 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
11119 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11121 * alias.c (record_alias_subset): Adjust.
11122 * bitmap.c (bitmap_element_allocate): Likewise.
11123 (bitmap_gc_alloc_stat): Likewise.
11124 * cfg.c (init_flow): Likewise.
11125 (alloc_block): Likewise.
11126 (unchecked_make_edge): Likewise.
11127 * cfgloop.c (alloc_loop): Likewise.
11128 (flow_loops_find): Likewise.
11129 (rescan_loop_exit): Likewise.
11130 * cfgrtl.c (init_rtl_bb_info): Likewise.
11131 * cgraph.c (insert_new_cgraph_node_version): Likewise.
11132 (cgraph_allocate_node): Likewise.
11133 (cgraph_create_edge_1): Likewise.
11134 (cgraph_allocate_init_indirect_info): Likewise.
11135 * cgraphclones.c (cgraph_clone_edge): Likewise.
11136 * cgraphunit.c (add_asm_node): Likewise.
11137 (init_lowered_empty_function): Likewise.
11138 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
11139 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11140 (alpha_use_linkage): Likewise.
11141 * config/arc/arc.c (arc_init_machine_status): Likewise.
11142 * config/arm/arm.c (arm_init_machine_status): Likewise.
11143 * config/avr/avr.c (avr_init_machine_status): Likewise.
11144 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11145 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
11146 * config/cris/cris.c (cris_init_machine_status): Likewise.
11147 * config/darwin.c (machopic_indirection_name): Likewise.
11148 (darwin_build_constant_cfstring): Likewise.
11149 (darwin_enter_string_into_cfstring_table): Likewise.
11150 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
11151 * config/frv/frv.c (frv_init_machine_status): Likewise.
11152 * config/i386/i386.c (get_dllimport_decl): Likewise.
11153 (ix86_init_machine_status): Likewise.
11154 (assign_386_stack_local): Likewise.
11155 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11156 (i386_pe_maybe_record_exported_symbol): Likewise.
11157 (i386_pe_record_stub): Likewise.
11158 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11159 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11160 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11161 (m32c_note_pragma_address): Likewise.
11162 * config/mep/mep.c (mep_init_machine_status): Likewise.
11163 (mep_note_pragma_flag): Likewise.
11164 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11165 (mips16_local_alias): Likewise.
11166 (mips_init_machine_status): Likewise.
11167 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11168 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11169 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
11170 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
11171 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
11172 * config/pa/pa.c (pa_init_machine_status): Likewise.
11173 (pa_get_deferred_plabel): Likewise.
11174 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
11175 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11176 (rs6000_init_machine_status): Likewise.
11177 (output_toc): Likewise.
11178 * config/s390/s390.c (s390_init_machine_status): Likewise.
11179 * config/score/score.c (score_output_external): Likewise.
11180 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11181 * config/spu/spu.c (spu_init_machine_status): Likewise.
11182 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
11183 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
11184 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11185 * coverage.c (coverage_end_function): Likewise.
11186 * dbxout.c (dbxout_init): Likewise.
11187 * doc/gty.texi: Don't mention variable_size attribute.
11188 * dwarf2cfi.c (new_cfi): Adjust.
11189 (new_cfi_row): Likewise.
11190 (copy_cfi_row): Likewise.
11191 (create_cie_data): Likewise.
11192 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
11193 (new_loc_descr): Likewise.
11194 (find_AT_string_in_table): Likewise.
11195 (add_addr_table_entry): Likewise.
11196 (new_die): Likewise.
11197 (add_var_loc_to_decl): Likewise.
11198 (clone_die): Likewise.
11199 (clone_as_declaration): Likewise.
11200 (break_out_comdat_types): Likewise.
11201 (new_loc_list): Likewise.
11202 (add_loc_descr_to_each): Likewise.
11203 (add_location_or_const_value_attribute): Likewise.
11204 (add_linkage_name): Likewise.
11205 (lookup_filename): Likewise.
11206 (dwarf2out_var_location): Likewise.
11207 (new_line_info_table): Likewise.
11208 (dwarf2out_init): Likewise.
11209 (mem_loc_descriptor): Likewise.
11210 (loc_descriptor): Likewise.
11211 (add_const_value_attribute): Likewise.
11212 (tree_add_const_value_attribute): Likewise.
11213 (comp_dir_string): Likewise.
11214 (dwarf2out_vms_debug_main_pointer): Likewise.
11215 (string_cst_pool_decl): Likewise.
11216 * emit-rtl.c (set_mem_attrs): Likewise.
11217 (get_reg_attrs): Likewise.
11218 (start_sequence): Likewise.
11219 (init_emit): Likewise.
11220 (init_emit_regs): Likewise.
11221 * except.c (init_eh_for_function): Likewise.
11222 (gen_eh_region): Likewise.
11223 (gen_eh_region_catch): Likewise.
11224 (gen_eh_landing_pad): Likewise.
11225 (add_call_site): Likewise.
11226 * function.c (add_frame_space): Likewise.
11227 (insert_temp_slot_address): Likewise.
11228 (assign_stack_temp_for_type): Likewise.
11229 (get_hard_reg_initial_val): Likewise.
11230 (allocate_struct_function): Likewise.
11231 (prepare_function_start): Likewise.
11232 (types_used_by_var_decl_insert): Likewise.
11233 * gengtype.c (variable_size_p): Remove function.
11234 (enum alloc_quantity): Remove enum.
11235 (write_typed_alloc_def): Remove function.
11236 (write_typed_struct_alloc_def): Likewise.
11237 (write_typed_typedef_alloc_def): Likewise.
11238 (write_typed_alloc_defns): Likewise.
11240 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
11241 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
11242 * ggc.h (ggc_alloc): new function.
11243 (ggc_cleared_alloc): Likewise.
11244 (ggc_vec_alloc): Template on type of vector element, and remove
11245 element size argument.
11246 (ggc_cleared_vec_alloc): Likewise.
11247 * gimple.c (gimple_build_omp_for): Adjust.
11248 (gimple_copy): Likewise.
11249 * ipa-cp.c (get_replacement_map): Likewise.
11250 (find_aggregate_values_for_callers_subset): Likewise.
11251 (known_aggs_to_agg_replacement_list): Likewise.
11252 * ipa-devirt.c (get_odr_type): Likewise.
11253 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
11254 (read_agg_replacement_chain): Likewise.
11255 * loop-iv.c (get_simple_loop_desc): Likewise.
11256 * lto-cgraph.c (input_node_opt_summary): Likewise.
11257 * lto-section-in.c (lto_new_in_decl_state): Likewise.
11258 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11259 (input_eh_region): Likewise.
11260 (input_eh_lp): Likewise.
11261 (input_cfg): Likewise.
11262 * optabs.c (set_optab_libfunc): Likewise.
11263 (init_tree_optimization_optabs): Likewise.
11264 (set_conv_libfunc): Likewise.
11265 * passes.c (do_per_function_toporder): Likewise.
11266 * rtl.h: Don't use variable_size gty attribute.
11267 * sese.c (if_region_set_false_region): Adjust.
11268 * stringpool.c (gt_pch_save_stringpool): Likewise.
11269 * target-globals.c (save_target_globals): Likewise.
11270 * toplev.c (general_init): Likewise.
11271 * trans-mem.c (record_tm_replacement): Likewise.
11272 (split_bb_make_tm_edge): Likewise.
11273 * tree-cfg.c (move_sese_region_to_fn): Likewise.
11274 * tree-data-ref.h (lambda_vector_new): Likewise.
11275 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11276 * tree-iterator.c (tsi_link_before): Likewise.
11277 (tsi_link_after): Likewise.
11278 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11279 * tree-ssa-loop-niter.c (record_estimate): Likewise.
11280 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11281 * tree-ssa-operands.h: Don't use variable_size gty attribute.
11282 * tree-ssa.c (init_tree_ssa): Adjust.
11283 * tree-ssanames.c (set_range_info): Likewise.
11284 (get_ptr_info): Likewise.
11285 (duplicate_ssa_name_ptr_info): Likewise.
11286 (duplicate_ssa_name_range_info): Likewise.
11287 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
11288 (unpack_ts_fixed_cst_value_fields): Likewise.
11289 * tree.c (build_fixed): Likewise.
11290 (build_real): Likewise.
11291 (build_string): Likewise.
11292 (decl_priority_info): Likewise.
11293 (decl_debug_expr_insert): Likewise.
11294 (decl_value_expr_insert): Likewise.
11295 (decl_debug_args_insert): Likewise.
11296 (type_hash_add): Likewise.
11297 (build_omp_clause): Likewise.
11298 * ubsan.c (decl_for_type_insert): Likewise.
11299 * varasm.c (get_unnamed_section): Likewise.
11300 (get_noswitch_section): Likewise.
11301 (get_section): Likewise.
11302 (get_block_for_section): Likewise.
11303 (create_block_symbol): Likewise.
11304 (build_constant_desc): Likewise.
11305 (create_constant_pool): Likewise.
11306 (force_const_mem): Likewise.
11307 (record_tm_clone_pair): Likewise.
11308 * varpool.c (varpool_create_empty_node): Likewise.
11310 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11312 * dwarf2out.c (tree_add_const_value_attribute): Call
11313 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
11314 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
11315 instead of ggc_internal_<x>alloc_stat.
11316 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
11317 (ggc_realloc): Likewise.
11318 * ggc-none.c (ggc_internal_alloc): Likewise.
11319 (ggc_internal_cleared_alloc): Likewise.
11320 * ggc-page.c: Likewise.
11321 * ggc.h (ggc_internal_alloc_stat): Likewise.
11322 (ggc_internal_alloc): Remove macro.
11323 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
11324 (ggc_internal_cleared_alloc): Remove macro.
11325 (GGC_RESIZEVEC): Adjust.
11326 (ggc_resizevar): Remove macro.
11327 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
11328 (ggc_internal_cleared_vec_alloc_stat): Likewise.
11329 (ggc_internal_vec_cleared_alloc): Remove macro.
11330 (ggc_alloc_atomic_stat): Drop _stat suffix.
11331 (ggc_alloc_atomic): Remove macro.
11332 (ggc_alloc_cleared_atomic): Remove macro.
11333 (ggc_alloc_string_stat): Drop _stat suffix.
11334 (ggc_alloc_string): Remove macro.
11335 (ggc_alloc_rtx_def_stat): Adjust.
11336 (ggc_alloc_tree_node_stat): Likewise.
11337 (ggc_alloc_cleared_tree_node_stat): Likewise.
11338 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
11339 (ggc_alloc_cleared_simd_clone_stat): Likewise.
11340 * gimple.c (gimple_build_omp_for): Likewise.
11341 (gimple_copy): Likewise.
11342 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
11343 * toplev.c (realloc_for_line_map): Adjust.
11344 * tree-data-ref.h (lambda_vector_new): Likewise.
11345 * tree-phinodes.c (allocate_phi_node): Likewise.
11346 * tree.c (grow_tree_vec_stat): Likewise.
11347 * vec.h (va_gc::reserve): Adjust.
11349 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
11351 * config/microblaze/microblaze.c (break_handler): New Declaration.
11352 (microblaze_break_function_p,microblaze_is_break_handler): New.
11353 (compute_frame_size): Use microblaze_break_function_p.
11354 Add the test of break_handler.
11355 (microblaze_function_prologue) : Add the test of variable
11356 break_handler. Check the fnname by BREAK_HANDLER_NAME.
11357 (microblaze_function_epilogue) : Add the test of break_handler.
11358 (microblaze_globalize_label) : Add the test of break_handler.
11359 Check the name by BREAK_HANDLER_NAME.
11361 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11363 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11364 microblaze_is_break_handler test.
11365 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11366 Use SYMBOL_REF_DECL.
11368 * config/microblaze/microblaze-protos.h
11369 (microblaze_break_function_p,microblaze_is_break_handler):
11372 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11373 new MicroBlaze break_handler functions.
11375 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11377 * doc/extend.texi (Size of an asm): Move node text according
11378 to its @menu entry position.
11380 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11382 PR tree-optimization/61140
11383 PR tree-optimization/61150
11384 PR tree-optimization/61197
11385 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11387 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11389 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11391 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11393 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11394 __SIZEOF_INT128__ is defined.
11396 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11398 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11399 (rs6000_delegitimize_address): Use it.
11401 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11403 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11404 inplace argument. Store the new address in the original MEM when true.
11405 * emit-rtl.c (change_address_1): Likewise.
11406 (adjust_address_1, adjust_automodify_address_1, offset_address):
11407 Update accordingly.
11408 * rtl.h (plus_constant): Add an inplace argument.
11409 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11410 when true. Avoid generating (plus X (const_int 0)).
11411 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11412 in-place. Pass true to plus_constant.
11413 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11415 2014-05-16 Dehao Chen <dehao@google.com>
11417 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11419 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11422 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11424 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11426 2014-05-16 Dehao Chen <dehao@google.com>
11428 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11429 optimize_function_for_size_p.
11430 * regs.h (REG_FREQ_FROM_BB): Likewise.
11432 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11435 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11436 negt_reg_operand cases.
11437 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11439 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11441 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11443 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11446 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11449 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11451 * tree-cfg.c (dump_function_to_file): Dump the return type of
11452 functions, in a line to itself before the function body, mimicking
11453 the layout of a C function.
11455 2014-05-16 Dehao Chen <dehao@google.com>
11457 * cfghooks.c (make_forwarder_block): Use direct computation to
11458 get fall-through edge's count and frequency.
11460 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11462 * config/arc/arc.c (arc_init): Fix typo in error message.
11463 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11464 (split_stack_prologue_scratch_regno): Likewise.
11465 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11466 word from error message.
11468 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11470 * ira-costs.c: Fix typo in comment.
11472 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11474 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11476 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11478 * varpool.c (dump_varpool_node): Dump write-only flag.
11479 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11481 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11482 write-only variables.
11483 * ipa.c (process_references): New function.
11484 (set_readonly_bit): New function.
11485 (set_writeonly_bit): New function.
11486 (clear_addressable_bit): New function.
11487 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11488 fix handling of aliases.
11489 * cgraph.h (struct varpool_node): Add writeonly flag.
11491 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11493 PR rtl-optimization/60969
11494 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11495 Calculate costs for this case.
11497 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11499 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11500 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11502 2014-05-16 Richard Biener <rguenther@suse.de>
11504 PR tree-optimization/61194
11505 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11506 bool patterns ending in a COND_EXPR.
11508 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11510 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11512 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11514 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11515 where we were unable to cost an RTX.
11517 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11519 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11522 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11523 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11525 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11527 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11528 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11530 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11531 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11533 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11534 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11536 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11539 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11540 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11542 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11545 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11546 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11548 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11549 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11551 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11552 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11554 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11555 rotates and shifts.
11557 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11558 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11561 ZERO_EXTEND and SIGN_EXTEND better.
11563 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11564 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11566 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11567 logical operations.
11569 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11570 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11572 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11573 costs when costing loads and stores to memory.
11575 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11576 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11578 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11581 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11583 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11585 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11586 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11588 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11590 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11592 (aarch64_rtx_mult_cost): New.
11593 (aarch64_rtx_costs): Use it, refactor as appropriate.
11595 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11596 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11598 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11599 emit instructions, return number of instructions which would
11601 (aarch64_add_constant): Update call to aarch64_build_constant.
11602 (aarch64_output_mi_thunk): Likewise.
11603 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11606 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11608 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11609 (TARGET_RTX_COSTS): Call it.
11611 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11613 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11614 (cortexa57_vector_cost): Likewise.
11615 (cortexa57_tunings): Use them.
11617 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11619 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11620 (cpu_addrcost_table): Use it.
11621 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11622 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11625 2014-05-16 Richard Biener <rguenther@suse.de>
11627 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11628 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11629 (visit_phi): Ignore edges marked as not executable.
11630 (class cond_dom_walker): New.
11631 (cond_dom_walker::before_dom_children): Value-number
11632 control statements and mark successor edges as not
11633 executable if possible.
11634 (run_scc_vn): First walk all control statements in
11635 dominator order, marking edges as not executable.
11636 * tree-inline.c (copy_edges_for_bb): Be not confused
11637 about random edge flags.
11639 2014-05-16 Richard Biener <rguenther@suse.de>
11641 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11643 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11646 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11647 (__TM_simple_begin): Use it.
11648 (__TM_begin): Likewise.
11650 2014-05-15 Martin Jambor <mjambor@suse.cz>
11653 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11654 type_preserved flag when the indirect edge is polymorphic.
11656 2014-05-15 Martin Jambor <mjambor@suse.cz>
11658 PR tree-optimization/61090
11659 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11660 build_ref_for_model.
11662 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11664 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11665 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11667 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11669 PR tree-optimization/61158
11670 * fold-const.c (fold_binary_loc): If X is zero-extended and
11671 shiftc >= prec, make sure zerobits is all ones instead of
11672 invoking undefined behavior.
11674 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11676 * regcprop.h: New file.
11677 * regcprop.c (skip_debug_insn_p): New decl.
11678 (replace_oldest_value_reg): Check skip_debug_insn_p.
11679 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11680 * shrink-wrap.c: Include regcprop.h.
11681 (prepare_shrink_wrap): Call
11682 copyprop_hardreg_forward_bb_without_debug_insn.
11684 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11686 * shrink-wrap.h: Update comment.
11687 * shrink-wrap.c: Update comment.
11688 (next_block_for_reg): Rename to live_edge_for_reg.
11689 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11690 (move_insn_for_shrink_wrap): Split live_edge.
11691 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11693 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11695 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11697 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11698 * config/sparc/sparc.md (fptype_ut699): New attribute.
11699 (in_branch_delay): Return false if -mfix-ut699 is specified and
11700 fptype_ut699 is set to single.
11701 (truncdfsf2): Add fptype_ut699 attribute.
11702 (fix_truncdfsi2): Likewise.
11703 (floatsisf2): Change fptype attribute.
11704 (fix_truncsfsi2): Likewise.
11705 (negtf2_notv9): Delete.
11706 (negtf2_v9): Likewise.
11707 (negtf2_hq): New instruction.
11708 (negtf2): New instruction and splitter.
11709 (negdf2_notv9): Rewrite.
11710 (abstf2_notv9): Delete.
11711 (abstf2_hq_v9): Likewise.
11712 (abstf2_v9): Likewise.
11713 (abstf2_hq): New instruction.
11714 (abstf2): New instruction and splitter.
11715 (absdf2_notv9): Rewrite.
11717 2014-05-14 Cary Coutant <ccoutant@google.com>
11720 * opts.c (common_handle_option): Don't special-case "-g".
11721 (set_debug_level): Default to at least level 2 with "-g".
11723 2014-05-14 DJ Delorie <dj@redhat.com>
11725 * config/msp430/msp430.c (msp430_builtin): Add
11726 MSP430_BUILTIN_DELAY_CYCLES.
11727 (msp430_init_builtins): Register void __delay_cycles(long long).
11728 (msp430_builtin_decl): Add it.
11729 (cg_magic_constant): New.
11730 (msp430_expand_delay_cycles): New.
11731 (msp430_expand_builtin): Call it.
11732 (msp430_print_operand_raw): Change integer printing from "int" to
11734 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11735 (delay_cycles_start): New.
11736 (delay_cycles_end): New.
11737 (delay_cycles_32): New.
11738 (delay_cycles_32x): New.
11739 (delay_cycles_16): New.
11740 (delay_cycles_16x): New.
11741 (delay_cycles_2): New.
11742 (delay_cycles_1): New.
11743 * doc/extend.texi: Document __delay_cycles().
11745 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11747 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11748 length attribute computation.
11750 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11753 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11755 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11758 * config/sparc/sparc.md: Fix types of low and high in DI constant
11759 splitter. Use gen_int_mode in some other splitters.
11761 2014-05-14 Martin Jambor <mjambor@suse.cz>
11764 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11766 2014-05-14 James Norris <jnorris@codesourcery.com>
11768 * omp-low.c (expand_parallel_call): Remove shadow variable.
11769 (expand_omp_taskreg): Likewise.
11771 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11773 * common/config/i386/i386-common.c
11774 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11775 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11776 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11777 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11778 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11779 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11780 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11781 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11782 xsavecintrin.h, xsavesintrin.h.
11783 (x86_64-*-*): Ditto.
11784 * config/i386/clflushoptintrin.h: New.
11785 * config/i386/xsavecintrin.h: Ditto.
11786 * config/i386/xsavesintrin.h: Ditto.
11787 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11788 (bit_XSAVES): Ditto.
11789 (bit_XSAVES): Ditto.
11790 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11791 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11793 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11794 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11795 OPTION_MASK_ISA_XSAVES.
11796 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11797 -mxsavec, -mxsaves.
11798 (PTA_CLFLUSHOPT) Define.
11799 (PTA_XSAVEC): Ditto.
11800 (PTA_XSAVES): Ditto.
11801 (ix86_option_override_internal): Handle new options.
11802 (ix86_valid_target_attribute_inner_p): Ditto.
11803 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11804 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11805 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11806 (bdesc_special_args): Add __builtin_ia32_xsaves,
11807 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11808 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11809 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11810 (ix86_expand_builtin): Handle new builtins.
11811 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11812 (TARGET_CLFLUSHOPT_P): Ditto.
11813 (TARGET_XSAVEC): Ditto.
11814 (TARGET_XSAVEC_P): Ditto.
11815 (TARGET_XSAVES): Ditto.
11816 (TARGET_XSAVES_P): Ditto.
11817 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11818 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11819 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11821 (ANY_XRSTOR64): Ditto.
11823 (xrstor): Change into <xrstor>.
11824 (xrstor_rex64): Change into <xrstor>_rex64.
11825 (xrstor64): Change into <xrstor>64
11827 * config/i386/i386.opt (mclflushopt): New.
11830 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11832 * doc/invoke.texi: Document new options.
11834 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11836 PR rtl-optimization/60866
11837 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11838 Default it to -1. Pass it down to init_simplejump_data.
11839 (init_simplejump_data): New parameter old_seqno. Pass it down
11840 to get_seqno_for_a_jump.
11841 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11842 initializing new jump seqno as a last resort. Add comment.
11843 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11844 jump and pass it down to sel_init_new_insn.
11845 (sel_redirect_edge_and_branch_force): Likewise.
11847 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11849 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11850 shifted values to avoid build warning.
11852 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11854 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11855 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11856 (cfg_layout_merge_blocks): Likewise.
11857 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11859 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11861 PR rtl-optimization/60901
11862 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11863 bb predecessor belongs to the same scheduling region. Adjust comment.
11865 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11867 * doc/sourcebuild.texi: (dfp_hw): Document.
11868 (p8vector_hw): Likewise.
11869 (powerpc_eabi_ok): Likewise.
11870 (powerpc_elfv2): Likewise.
11871 (powerpc_htm_ok): Likewise.
11872 (ppc_recip_hw): Likewise.
11873 (vsx_hw): Likewise.
11875 2014-05-13 Cary Coutant <ccoutant@google.com>
11877 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11879 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11881 * gengtype-parse.c (require3): Eliminate in favor of...
11883 (require_template_declaration): Update to support optional single *
11886 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11887 (create_user_defined_type): Handle a single level of explicit
11888 pointerness within template arguments.
11889 (struct write_types_data): Add field "kind".
11890 (filter_type_name): Handle "*" character.
11891 (write_user_func_for_structure_ptr): Require a write_types_data
11892 rather than just a prefix string, so that we can look up the kind
11893 of the wtd and use it as an index into wrote_user_func_for_ptr,
11894 ensuring that such functions are written at most once. Support
11895 subclasses by invoking the marking function of the ultimate base class.
11896 (write_user_func_for_structure_body): Require a write_types_data
11897 rather than just a prefix string, so that we can pass this to
11898 write_user_func_for_structure_ptr.
11899 (write_func_for_structure): Likewise.
11900 (ggc_wtd): Add initializer of new "kind" field.
11901 (pch_wtd): Likewise.
11903 * gengtype.h (enum write_types_kinds): New.
11904 (struct type): Add field wrote_user_func_for_ptr to the "s"
11907 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11909 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11910 instead of const_binop.
11911 (fold_binary_loc): Likewise.
11913 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11915 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11916 calculation to match get_ref_base_and_extent.
11918 2014-05-13 Catherine Moore <clm@codesourcery.com>
11919 Sandra Loosemore <sandra@codesourcery.com>
11921 * configure.ac: Fix assembly for explicit JALR relocation check.
11922 * configure: Regenerate.
11924 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11926 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11927 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11928 Remove associated type declarations and initialisations.
11929 (arm_expand_neon_builtin): Likewise.
11930 (neon_emit_pair_result_insn): Delete.
11931 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11932 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11933 (neon_vzip<mode>): Likewise.
11934 (neon_vuzp<mode>): Likewise.
11936 2014-05-13 Richard Biener <rguenther@suse.de>
11939 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11940 it needs revisiting whether the call still may be tail-called.
11942 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11944 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11945 * rtl.h (block_symbol): Reduce number of fields to 2.
11946 (rtx_def): Add u2.symbol_ref_flags.
11947 (SYMBOL_REF_FLAGS): Use it.
11948 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11949 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11950 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11951 Lower index of SYMBOL_REF_DATA.
11952 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11953 Print SYMBOL_REF_FLAGS at the same time.
11954 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11956 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11958 * rtl.def (VAR_LOCATION): Remove "i" field.
11959 * rtl.h (rtx_def): Add u2.var_location_status.
11960 (PAT_VAR_LOCATION_STATUS): Use it.
11961 (gen_rtx_VAR_LOCATION): Declare.
11962 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11963 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11964 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11966 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11968 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11969 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11971 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11973 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11974 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11975 * rtl.h (rtx_def): Add insn_uid to u2 field.
11976 (RTX_FLAG_CHECK8): Delete in favor of...
11977 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11978 (INSN_DELETED_P): Update accordingly.
11979 (INSN_UID): Use u2.insn_uid.
11980 (INSN_CHAIN_CODE_P): Define.
11981 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11982 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11983 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11984 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11985 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11986 indices accordingly.
11987 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11988 Update indices for insn-chain rtxes.
11989 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11990 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11991 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11992 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11993 * combine.c (try_combine): Likewise.
11994 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11996 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11998 * rtl.def (REG): Remove middle field.
11999 * rtl.h (rtx_def): Add orignal_regno to u2.
12000 (ORIGINAL_REGNO): Use it instead of field 1.
12001 (REG_ATTRS): Lower field index accordingly.
12002 * gengtype.c (adjust_field_rtx_def): Remove handling of
12003 ORIGINAL_REGNO. Move REG_ATTRS index down.
12004 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
12005 code that prints the REGNO.
12007 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12009 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
12012 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12014 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
12016 2014-05-13 Bin Cheng <bin.cheng@arm.com>
12018 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
12019 (alloc_iv): Lower base expressions containing ADDR_EXPR.
12021 2014-05-13 Ian Bolton <ian.bolton@arm.com>
12023 * config/aarch64/aarch64-protos.h
12024 (aarch64_hard_regno_caller_save_mode): New prototype.
12025 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12027 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12029 2014-05-13 Christian Bruel <christian.bruel@st.com>
12031 * target.def (mode_switching): New hook vector.
12032 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
12033 (mode_exit, modepriority_to_mode): Likewise.
12034 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
12035 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12036 * target.h: Include tm.h and hard-reg-set.h.
12037 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
12038 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
12039 * doc/tm.texi Regenerate.
12040 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12041 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12042 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
12043 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
12044 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12045 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12046 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
12047 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
12048 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
12049 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
12050 (ix86_emit_mode_set): Hookify.
12051 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
12053 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12054 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
12055 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
12056 (epiphany_mode_priority_to_mode): Remove declaration.
12057 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
12058 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
12059 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
12061 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
12062 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
12063 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
12065 2014-05-13 Jakub Jelinek <jakub@redhat.com>
12068 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
12069 is const0_rtx, return immediately. Don't test count == 0 when
12072 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12074 * Makefile.in: add shrink-wrap.o.
12075 * config/i386/i386.c: include "shrink-wrap.h"
12076 * function.c: Likewise.
12077 (requires_stack_frame_p, next_block_for_reg,
12078 move_insn_for_shrink_wrap, prepare_shrink_wrap,
12079 dup_block_and_redirect): Move to shrink-wrap.c
12080 (thread_prologue_and_epilogue_insns): Extract three code segments
12081 as functions in shrink-wrap.c
12082 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
12084 * shrink-wrap.c: New file.
12085 * shrink-wrap.h: New file.
12087 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12089 * doc/extend.texi: Reflect current numbers of pragmas. Remove
12090 reference to Solaris.
12092 2014-05-12 Mike Stump <mikestump@comcast.net>
12095 * genattrtab.c (filename): Add.
12096 (convert_set_attr_alternative): Improve error message.
12097 (check_defs): Restore read_md_filename for error messages.
12098 (gen_insn): Save filename.
12100 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
12102 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
12103 -fno-local-ivars and -fivar-visibility.
12104 * c-family/c.opt: Make -Wshadow also implicitly enable
12107 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12109 * doc/tm.texi: Remove reference to deleted macro.
12110 * doc/tm.texi.in: Likewise.
12112 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12115 * config/avr/avr.c (avr_out_store_psi): Use correct constant
12118 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
12121 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
12122 * config/arm/aout.h (License): Same.
12123 * config/arm/bpabi.h (License): Same.
12124 * config/arm/elf.h (License): Same.
12125 * config/arm/linux-elf.h (License): Same.
12126 * config/arm/linux-gas.h (License): Same.
12127 * config/arm/netbsd-elf.h (License): Same.
12128 * config/arm/uclinux-eabi.h (License): Same.
12129 * config/arm/uclinux-elf.h (License): Same.
12130 * config/arm/vxworks.h (License): Same.
12132 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12134 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
12135 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
12136 number of operands to 3.
12137 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
12138 * tree-nested.c (convert_nonlocal_omp_clauses,
12139 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
12140 * gimplify.c (gimplify_scan_omp_clauses): Handle
12141 OMP_CLAUSE_LINEAR_STMT.
12142 * omp-low.c (lower_rec_input_clauses): Fix typo.
12143 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
12144 cast between Fortran boolean_type_node and C _Bool if
12147 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
12149 PR tree-optimization/61136
12150 * wide-int.h (multiple_of_p): Define a version that doesn't return
12152 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
12153 integer_zerop/const_binop pair.
12154 (multiple_of_p): Likewise, converting both operands to widest_int
12157 2014-05-09 Teresa Johnson <tejohnson@google.com>
12159 * cgraphunit.c (analyze_functions): Use correct dump file.
12161 2014-05-09 Florian Weimer <fweimer@redhat.com>
12163 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
12165 (stack_protect_return_slot_p): New function.
12166 (expand_used_vars): Call stack_protect_decl_p and
12167 stack_protect_return_slot_p for -fstack-protector-strong.
12169 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
12170 Andrew Haley <aph@redhat.com>
12171 Richard Sandiford <rdsandiford@googlemail.com>
12173 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
12176 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
12178 PR middle-end/61111
12179 * fold-const.c (fold_binary_loc): Changed width of mask.
12181 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12183 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
12184 unsigned int initializers for regno_in, regno_out.
12186 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12189 * config/avr/avr.md (cc): Add new attribute set_vzn.
12190 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
12191 Set cc insn attribute to set_vzn instead of set_zn for alternatives
12192 with INC, DEC or NEG.
12193 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
12194 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
12195 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
12197 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12200 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12202 * wide-int.cc (UTItype): Define.
12203 (UDWtype): Define for appropriate W_TYPE_SIZE.
12205 2014-05-09 Richard Biener <rguenther@suse.de>
12207 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
12208 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
12209 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
12210 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
12211 ssa_propagate): Adjust.
12213 2014-05-08 Jeff Law <law@redhat.com>
12215 PR tree-optimization/61009
12216 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
12217 tri-state rather than a boolean. When a block is too big to
12218 thread through, inform caller via negative return value.
12219 (thread_across_edge): If a block was too big for normal threading,
12220 then it's too big for a joiner too, so remove temporary equivalences
12221 and return immediately.
12223 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12224 Matthias Klose <doko@ubuntu.com>
12227 * optc-gen.awk: Fix option handling for -Wunused-parameter.
12229 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12232 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
12234 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12237 * config/alpha/alpha.c: Include gimple-iterator.h.
12238 (alpha_gimple_fold_builtin): New function. Move
12239 ALPHA_BUILTIN_UMULH folding from ...
12240 (alpha_fold_builtin): ... here.
12241 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
12243 2014-05-08 Wei Mi <wmi@google.com>
12246 * config/i386/i386.c (ix86_compute_frame_layout): Update
12247 preferred_stack_boundary for call, expanded from tls descriptor.
12248 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
12249 to depend on SP register.
12250 (*tls_local_dynamic_base_32_gnu): Ditto.
12251 (*tls_local_dynamic_32_once): Ditto.
12252 (tls_global_dynamic_64_<mode>): Set
12253 ix86_tls_descriptor_calls_expanded_in_cfun.
12254 (tls_local_dynamic_base_64_<mode>): Ditto.
12255 (tls_global_dynamic_32): Set
12256 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
12257 to depend on SP register.
12258 (tls_local_dynamic_base_32): Ditto.
12260 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12262 * config/arm/arm_neon.h: Update comment.
12263 * config/arm/neon-docgen.ml: Delete.
12264 * config/arm/neon-gen.ml: Delete.
12265 * doc/arm-neon-intrinsics.texi: Update comment.
12267 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12269 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
12271 (vand, vorr, veor, vorn, vbic): Remove.
12272 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
12274 (neon_vsub_unspec): Likewise.
12275 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
12277 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12279 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
12280 (vadd_s16): Likewise.
12281 (vadd_s32): Likewise.
12282 (vadd_f32): Likewise.
12283 (vadd_u8): Likewise.
12284 (vadd_u16): Likewise.
12285 (vadd_u32): Likewise.
12286 (vadd_s64): Likewise.
12287 (vadd_u64): Likewise.
12288 (vaddq_s8): Likewise.
12289 (vaddq_s16): Likewise.
12290 (vaddq_s32): Likewise.
12291 (vaddq_s64): Likewise.
12292 (vaddq_f32): Likewise.
12293 (vaddq_u8): Likewise.
12294 (vaddq_u16): Likewise.
12295 (vaddq_u32): Likewise.
12296 (vaddq_u64): Likewise.
12297 (vmul_s8): Likewise.
12298 (vmul_s16): Likewise.
12299 (vmul_s32): Likewise.
12300 (vmul_f32): Likewise.
12301 (vmul_u8): Likewise.
12302 (vmul_u16): Likewise.
12303 (vmul_u32): Likewise.
12304 (vmul_p8): Likewise.
12305 (vmulq_s8): Likewise.
12306 (vmulq_s16): Likewise.
12307 (vmulq_s32): Likewise.
12308 (vmulq_f32): Likewise.
12309 (vmulq_u8): Likewise.
12310 (vmulq_u16): Likewise.
12311 (vmulq_u32): Likewise.
12312 (vsub_s8): Likewise.
12313 (vsub_s16): Likewise.
12314 (vsub_s32): Likewise.
12315 (vsub_f32): Likewise.
12316 (vsub_u8): Likewise.
12317 (vsub_u16): Likewise.
12318 (vsub_u32): Likewise.
12319 (vsub_s64): Likewise.
12320 (vsub_u64): Likewise.
12321 (vsubq_s8): Likewise.
12322 (vsubq_s16): Likewise.
12323 (vsubq_s32): Likewise.
12324 (vsubq_s64): Likewise.
12325 (vsubq_f32): Likewise.
12326 (vsubq_u8): Likewise.
12327 (vsubq_u16): Likewise.
12328 (vsubq_u32): Likewise.
12329 (vsubq_u64): Likewise.
12330 (vand_s8): Likewise.
12331 (vand_s16): Likewise.
12332 (vand_s32): Likewise.
12333 (vand_u8): Likewise.
12334 (vand_u16): Likewise.
12335 (vand_u32): Likewise.
12336 (vand_s64): Likewise.
12337 (vand_u64): Likewise.
12338 (vandq_s8): Likewise.
12339 (vandq_s16): Likewise.
12340 (vandq_s32): Likewise.
12341 (vandq_s64): Likewise.
12342 (vandq_u8): Likewise.
12343 (vandq_u16): Likewise.
12344 (vandq_u32): Likewise.
12345 (vandq_u64): Likewise.
12346 (vorr_s8): Likewise.
12347 (vorr_s16): Likewise.
12348 (vorr_s32): Likewise.
12349 (vorr_u8): Likewise.
12350 (vorr_u16): Likewise.
12351 (vorr_u32): Likewise.
12352 (vorr_s64): Likewise.
12353 (vorr_u64): Likewise.
12354 (vorrq_s8): Likewise.
12355 (vorrq_s16): Likewise.
12356 (vorrq_s32): Likewise.
12357 (vorrq_s64): Likewise.
12358 (vorrq_u8): Likewise.
12359 (vorrq_u16): Likewise.
12360 (vorrq_u32): Likewise.
12361 (vorrq_u64): Likewise.
12362 (veor_s8): Likewise.
12363 (veor_s16): Likewise.
12364 (veor_s32): Likewise.
12365 (veor_u8): Likewise.
12366 (veor_u16): Likewise.
12367 (veor_u32): Likewise.
12368 (veor_s64): Likewise.
12369 (veor_u64): Likewise.
12370 (veorq_s8): Likewise.
12371 (veorq_s16): Likewise.
12372 (veorq_s32): Likewise.
12373 (veorq_s64): Likewise.
12374 (veorq_u8): Likewise.
12375 (veorq_u16): Likewise.
12376 (veorq_u32): Likewise.
12377 (veorq_u64): Likewise.
12378 (vbic_s8): Likewise.
12379 (vbic_s16): Likewise.
12380 (vbic_s32): Likewise.
12381 (vbic_u8): Likewise.
12382 (vbic_u16): Likewise.
12383 (vbic_u32): Likewise.
12384 (vbic_s64): Likewise.
12385 (vbic_u64): Likewise.
12386 (vbicq_s8): Likewise.
12387 (vbicq_s16): Likewise.
12388 (vbicq_s32): Likewise.
12389 (vbicq_s64): Likewise.
12390 (vbicq_u8): Likewise.
12391 (vbicq_u16): Likewise.
12392 (vbicq_u32): Likewise.
12393 (vbicq_u64): Likewise.
12394 (vorn_s8): Likewise.
12395 (vorn_s16): Likewise.
12396 (vorn_s32): Likewise.
12397 (vorn_u8): Likewise.
12398 (vorn_u16): Likewise.
12399 (vorn_u32): Likewise.
12400 (vorn_s64): Likewise.
12401 (vorn_u64): Likewise.
12402 (vornq_s8): Likewise.
12403 (vornq_s16): Likewise.
12404 (vornq_s32): Likewise.
12405 (vornq_s64): Likewise.
12406 (vornq_u8): Likewise.
12407 (vornq_u16): Likewise.
12408 (vornq_u32): Likewise.
12409 (vornq_u64): Likewise.
12411 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12413 * wide-int.cc (UTItype): Define.
12414 (UDWtype): Define for appropriate W_TYPE_SIZE.
12416 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12418 PR tree-optimization/59100
12419 * tree-ssa-phiopt.c: Include tree-inline.h.
12420 (neutral_element_p, absorbing_element_p): New functions.
12421 (value_replacement): Handle conditional binary operations with a
12422 neutral or absorbing element.
12424 2014-05-08 Richard Biener <rguenther@suse.de>
12426 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12427 folding the expression.
12428 (valueize_expr): Remove.
12429 (visit_reference_op_load): Do not valueize the result of
12431 (simplify_binary_expression): Likewise.
12432 (simplify_unary_expression): Likewise.
12434 2014-05-08 Richard Biener <rguenther@suse.de>
12436 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12437 looking at TYPE_ARG_TYPES.
12439 2014-05-08 Richard Biener <rguenther@suse.de>
12441 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12442 pointer propagation special-case.
12444 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12446 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12447 core part of address expressions.
12449 2014-05-08 Alan Modra <amodra@gmail.com>
12452 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12453 loads and stores when -mno-strict-align at any alignment.
12454 (expand_block_clear): Similarly. Also correct calculation of
12457 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12459 PR middle-end/39246
12460 * tree-complex.c (expand_complex_move): Keep line info when expanding
12462 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12463 of complex expression. Use new argument to display correct location
12464 for values coming from phi statement.
12465 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12466 (warn_uninitialized_phi): Pass location of phi argument to
12468 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12469 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12471 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12473 * config/rs6000/predicates.md (indexed_address_mem): New.
12474 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12475 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12476 fpstore_ux, fpstore_u.
12477 (sign_extend, indexed, update): New.
12478 (cell_micro): Adjust.
12479 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12480 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12481 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12482 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12483 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12484 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12485 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12486 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12487 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12488 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12489 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12490 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12491 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12492 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12493 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12495 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12496 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12497 *vsx_extract_<mode>_store): Adjust.
12498 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12499 is_cracked_insn, insn_must_be_first_in_group,
12500 insn_must_be_last_in_group): Adjust.
12502 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12504 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12505 ppc440-fpstore): Adjust.
12506 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12507 ppc476-fpstore): Adjust.
12508 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12509 ppc601-fpstore): Adjust.
12510 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12512 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12514 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12515 ppc7450-fpstore): Adjust.
12516 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12517 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12518 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12520 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12521 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12522 cell-fpstore, cell-fpstore-update): Adjust.
12523 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12524 ppce300c3_store, ppce300c3_fpstore): Adjust.
12525 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12526 e500mc_fpstore): Adjust.
12527 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12528 e500mc64_store, e500mc64_fpstore): Adjust.
12529 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12530 e5500_fpstore): Adjust.
12531 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12532 e6500_fpstore): Adjust.
12533 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12535 * config/rs6000/power4.md (power4-load, power4-load-ext,
12536 power4-load-ext-update, power4-load-ext-update-indexed,
12537 power4-load-update-indexed, power4-load-update, power4-fpload,
12538 power4-fpload-update, power4-store, power4-store-update,
12539 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12541 * config/rs6000/power5.md (power5-load, power5-load-ext,
12542 power5-load-ext-update, power5-load-ext-update-indexed,
12543 power5-load-update-indexed, power5-load-update, power5-fpload,
12544 power5-fpload-update, power5-store, power5-store-update,
12545 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12547 * config/rs6000/power6.md (power6-load, power6-load-ext,
12548 power6-load-update, power6-load-update-indexed,
12549 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12550 power6-fpload-update, power6-store, power6-store-update,
12551 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12553 * config/rs6000/power7.md (power7-load, power7-load-ext,
12554 power7-load-update, power7-load-update-indexed,
12555 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12556 power7-fpload-update, power7-store, power7-store-update,
12557 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12559 * config/rs6000/power8.md (power8-load, power8-load-update,
12560 power8-load-ext, power8-load-ext-update, power8-fpload,
12561 power8-fpload-update, power8-store, power8-store-update-indexed,
12562 power8-fpstore, power8-fpstore-update): Adjust.
12563 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12565 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12566 titan_lsu_store, titan_lsu_fpstore): Adjust.
12567 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12569 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12572 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12573 unrolled byte insns. Emit address increments after move insns.
12575 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12577 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12578 const_gimple, rather than a gimple.
12579 (gimple_call_builtin_p): Likewise, for the three variants.
12581 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12582 (gimple_call_builtin_p): Likewise, for the three variants.
12584 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12586 PR tree-optimization/61095
12587 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12589 2014-05-07 Richard Biener <rguenther@suse.de>
12591 PR tree-optimization/61034
12592 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12593 (maybe_skip_until): Use translate to take into account
12594 lattices when trying to do disambiguations.
12595 (get_continuation_for_phi_1): Likewise.
12596 (get_continuation_for_phi): Adjust for added translate arguments.
12597 (walk_non_aliased_vuses): Likewise.
12598 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12599 (walk_non_aliased_vuses): Likewise.
12600 (call_may_clobber_ref_p_1): Declare.
12601 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12602 calls. Stop early if we are only supposed to disambiguate.
12603 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12605 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12607 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12608 Emit an error when the function has arguments.
12610 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12612 * cfgloop.h (unswitch_loops): Remove.
12613 * doc/passes.texi: Remove references to loop-unswitch.c
12614 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12616 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12618 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12619 check for loads group of length 3.
12620 (vect_permute_load_chain): New permutations for loads group of
12622 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12623 of vec_perm_shuffle for the new permutations.
12625 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12627 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12628 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12629 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12630 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12631 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12632 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12633 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12634 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12636 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12638 * loop-unswitch.c: Delete.
12640 2014-05-07 Richard Biener <rguenther@suse.de>
12642 * config.gcc: Always set need_64bit_hwint to yes.
12644 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12646 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12647 of using optimize_size.
12649 2014-05-06 Mike Stump <mikestump@comcast.net>
12651 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12653 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12655 * config/i386/sse.md (*mov<mode>_internal)
12656 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12657 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12658 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12659 (*<code><mode>3, *andnot<mode>3<mask_name>)
12660 (<mask_codefor><code><mode>3<mask_name>): Only consider
12661 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12663 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12666 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12668 * lra-constraints.c (valid_address_p): Move earlier in file.
12669 Add a constraint argument to the address_info version.
12670 (satisfies_memory_constraint_p): New function.
12671 (satisfies_address_constraint_p): Likewise.
12672 (process_alt_operands, curr_insn_transform): Use them.
12673 (process_address): Pass the constraint to valid_address_p when
12674 checking address operands.
12676 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12678 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12679 to their respective blocks. Fix inadvertent use of "node".
12681 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12683 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12685 (init_emit_once): ...here.
12686 * rtl.h (init_derived_machine_modes): Declare.
12687 * toplev.c (do_compile): Call it even if no_backend.
12689 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12690 Mike Stump <mikestump@comcast.net>
12691 Richard Sandiford <rdsandiford@googlemail.com>
12692 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12694 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12695 (rtx_equal_for_memref_p): Update comment.
12696 (adjust_offset_for_component_ref): Use wide-int interfaces.
12697 * builtins.c (get_object_alignment_2): Likewise.
12698 (c_readstr): Likewise.
12699 (target_char_cast): Add comment.
12700 (determine_block_size): Use wide-int interfaces.
12701 (expand_builtin_signbit): Likewise.
12702 (fold_builtin_int_roundingfn): Likewise.
12703 (fold_builtin_bitop): Likewise.
12704 (fold_builtin_bswap): Likewise.
12705 (fold_builtin_logarithm): Use signop.
12706 (fold_builtin_pow): Likewise.
12707 (fold_builtin_memory_op): Use wide-int interfaces.
12708 (fold_builtin_object_size): Likewise.
12709 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12710 nb_iterations_estimate.
12711 (record_niter_bound): Use wide-int interfaces.
12712 (get_estimated_loop_iterations_int): Likewise.
12713 (get_estimated_loop_iterations): Likewise.
12714 (get_max_loop_iterations): Likewise.
12715 * cfgloop.h: Include wide-int.h.
12716 (struct nb_iter_bound): Change bound to widest_int.
12717 (struct loop): Change nb_iterations_upper_bound and
12718 nb_iterations_estimate to widest_int.
12719 (record_niter_bound): Switch to use widest_int.
12720 (get_estimated_loop_iterations): Likewise.
12721 (get_max_loop_iterations): Likewise.
12722 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12723 update for wide-int.
12724 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12725 * combine.c (try_combine): Likewise.
12726 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12727 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12729 (aarch64_float_const_representable_p): Likewise.
12730 * config/arc/arc.c: Include wide-int.h.
12731 (arc_can_use_doloop_p): Use wide-int interfaces.
12732 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12733 (vfp3_const_double_index): Likewise.
12734 * config/avr/avr.c (avr_out_round): Likewise.
12735 (avr_fold_builtin): Likewise.
12736 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12737 (bfin_can_use_doloop_p): Likewise.
12738 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12739 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12740 * config/i386/i386.c: Include wide-int.h.
12741 (ix86_data_alignment): Use wide-int interfaces.
12742 (ix86_local_alignment): Likewise.
12743 (ix86_emit_swsqrtsf): Update real_from_integer.
12744 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12745 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12746 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12747 (zero_constant): Likewise.
12748 (input_operand): Likewise.
12749 (splat_input_operand): Likewise.
12750 (non_logical_cint_operand): Change const_double to const_wide_int.
12751 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12752 (easy_altivec_constant): Remove comment.
12753 (paired_expand_vector_init): Use CONSTANT_P.
12754 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12755 (rs6000_emit_move): Update checks.
12756 (rs6000_aggregate_candidate): Use wide-int interfaces.
12757 (rs6000_expand_ternop_builtin): Likewise.
12758 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12759 (rs6000_assemble_integer): Likewise.
12760 (rs6000_hash_constant): Likewise.
12761 (output_toc): Likewise.
12762 (rs6000_rtx_costs): Likewise.
12763 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12764 * config/rs6000/rs6000-c.c: Include wide-int.h.
12765 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12766 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12767 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12768 Handle CONST_WIDE_INT.
12769 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12770 Use tree_fits_uhwi_p.
12771 * config/sparc/sparc.c: Include wide-int.h.
12772 (sparc_fold_builtin): Use wide-int interfaces.
12773 * config/vax/vax.c: Include wide-int.h.
12774 (vax_float_literal): Use real_from_integer.
12775 * coretypes.h (struct hwivec_def): New.
12777 (const_hwivec): New.
12778 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12779 (equiv_constant): Handle CONST_WIDE_INT.
12780 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12781 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12782 * dbxout.c (stabstr_U): Use wide-int interfaces.
12783 (dbxout_type): Update to use cst_fits_shwi_p.
12784 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12785 (TARGET_SUPPORTS_WIDE_INT): Add default.
12786 * dfp.c: Include wide-int.h.
12787 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12788 decimal_real_to_integer.
12789 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12790 decimal_real_to_integer.
12791 * doc/generic.texi (Constant expressions): Update for wide_int.
12792 * doc/rtl.texi (const_double): Likewise.
12793 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12794 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12795 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12796 (REAL_VALUE_FROM_INT): Remove.
12797 (TARGET_SUPPORTS_WIDE_INT): New.
12798 * doc/tm.texi: Regenerate.
12799 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12800 * double-int.h: Include wide-int.h.
12801 (struct wi::int_traits): New.
12802 * dwarf2out.c (get_full_len): New.
12803 (dw_val_equal_p): Add case dw_val_class_wide_int.
12804 (size_of_loc_descr): Likewise.
12805 (output_loc_operands): Likewise.
12806 (insert_double): Remove.
12807 (insert_wide_int): New.
12808 (add_AT_wide): New.
12809 (print_die): Add case dw_val_class_wide_int.
12810 (attr_checksum): Likewise.
12811 (attr_checksum_ordered): Likewise.
12812 (same_dw_val_p): Likewise.
12813 (size_of_die): Likewise.
12814 (value_format): Likewise.
12815 (output_die): Likewise.
12816 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12818 (clz_loc_descriptor): Use wide-int interfaces.
12819 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12820 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12821 (round_up_to_align): Use wide-int interfaces.
12822 (field_byte_offset): Likewise.
12823 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12824 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12825 CONST_DOUBLE handling. Use wide-int interfaces.
12826 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12827 (gen_enumeration_type_die): Use add_AT_wide.
12828 (hash_loc_operands): Add case dw_val_class_wide_int.
12829 (compare_loc_operands): Likewise.
12830 * dwarf2out.h: Include wide-int.h.
12831 (wide_int_ptr): New.
12832 (enum dw_val_class): Add dw_val_class_wide_int.
12833 (struct dw_val_struct): Add val_wide.
12834 * emit-rtl.c (const_wide_int_htab): New.
12835 (const_wide_int_htab_hash): New.
12836 (const_wide_int_htab_eq): New.
12837 (lookup_const_wide_int): New.
12838 (const_double_htab_hash): Use wide-int interfaces.
12839 (const_double_htab_eq): Likewise.
12840 (rtx_to_double_int): Conditionally compile for wide-int.
12841 (immed_double_int_const): Rename to immed_wide_int_const and
12842 update for wide-int.
12843 (immed_double_const): Conditionally compile for wide-int.
12844 (init_emit_once): Use wide-int interfaces.
12845 * explow.c (plus_constant): Likewise.
12846 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12847 (lshift_value): Use wide-int interfaces.
12848 (expand_mult): Likewise.
12849 (choose_multiplier): Likewise.
12850 (expand_smod_pow2): Likewise.
12851 (make_tree): Likewise.
12852 * expr.c (convert_modes): Consolidate handling of constants.
12853 Use wide-int interfaces.
12854 (emit_group_load_1): Add note.
12855 (store_expr): Update comment.
12856 (get_inner_reference): Use wide-int interfaces.
12857 (expand_constructor): Update comment.
12858 (expand_expr_real_2): Use wide-int interfaces.
12859 (expand_expr_real_1): Likewise.
12860 (reduce_to_bit_field_precision): Likewise.
12861 (const_vector_from_tree): Likewise.
12862 * final.c: Include wide-int-print.h.
12863 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12864 * fixed-value.c: Include wide-int.h.
12865 (fixed_from_string): Use wide-int interfaces.
12866 (fixed_to_decimal): Likewise.
12867 (fixed_convert_from_real): Likewise.
12868 (real_convert_from_fixed): Likewise.
12869 * fold-const.h (mem_ref_offset): Return an offset_int.
12870 (div_if_zero_remainder): Remove code parameter.
12871 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12872 Use wide-int interfaces.
12873 (may_negate_without_overflow_p): Use wide-int interfaces.
12874 (negate_expr_p): Likewise.
12875 (fold_negate_expr): Likewise.
12876 (int_const_binop_1): Likewise.
12877 (const_binop): Likewise.
12878 (fold_convert_const_int_from_int): Likewise.
12879 (fold_convert_const_int_from_real): Likewise.
12880 (fold_convert_const_int_from_fixed): Likewise.
12881 (fold_convert_const_fixed_from_int): Likewise.
12882 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12883 (sign_bit_p): Use wide-int interfaces.
12884 (make_range_step): Likewise.
12885 (build_range_check): Likewise. Pass an integer of the correct type
12886 instead of using integer_one_node.
12887 (range_predecessor): Pass an integer of the correct type instead
12888 of using integer_one_node.
12889 (range_successor): Likewise.
12890 (merge_ranges): Likewise.
12891 (unextend): Use wide-int interfaces.
12892 (extract_muldiv_1): Likewise.
12893 (fold_div_compare): Likewise.
12894 (fold_single_bit_test): Likewise.
12895 (fold_sign_changed_comparison): Likewise.
12896 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12897 (fold_plusminus_mult_expr): Use wide-int interfaces.
12898 (native_encode_int): Likewise.
12899 (native_interpret_int): Likewise.
12900 (fold_unary_loc): Likewise.
12901 (pointer_may_wrap_p): Likewise.
12902 (size_low_cst): Likewise.
12903 (mask_with_tz): Likewise.
12904 (fold_binary_loc): Likewise.
12905 (fold_ternary_loc): Likewise.
12906 (multiple_of_p): Likewise.
12907 (tree_call_nonnegative_warnv_p): Update calls to
12908 tree_int_cst_min_precision and real_from_integer.
12909 (fold_negate_const): Use wide-int interfaces.
12910 (fold_abs_const): Likewise.
12911 (fold_relational_const): Use tree_int_cst_lt.
12912 (round_up_loc): Use wide-int interfaces.
12913 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12914 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12915 * gengtype.c: Remove include of double-int.h.
12916 (do_typedef): Use wide-int interfaces.
12917 (open_base_files): Add wide-int.h.
12918 (main): Add offset_int and widest_int typedefs.
12919 * gengtype-lex.l: Handle "^".
12920 (CXX_KEYWORD): Add "static".
12921 * gengtype-parse.c (require3): New.
12922 (require_template_declaration): Handle constant template arguments
12923 and nested templates.
12924 * gengtype-state.c: Don't include "double-int.h".
12925 * genpreds.c (write_one_predicate_function): Update comment.
12926 (write_tm_constrs_h): Add check for hval and lval use in
12928 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12929 (add_to_sequence): Likewise.
12930 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12931 and const_double_operand.
12932 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12934 * gimple-fold.c (get_base_constructor): Likewise.
12935 (fold_array_ctor_reference): Likewise.
12936 (fold_nonarray_ctor_reference): Likewise.
12937 (fold_const_aggregate_ref_1): Likewise.
12938 (gimple_val_nonnegative_real_p): Likewise.
12939 (gimple_fold_indirect_ref): Likewise.
12940 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12941 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12942 (struct slsr_cand_d): Change index to be widest_int.
12943 (struct incr_info_d): Change incr to be widest_int.
12944 (alloc_cand_and_find_basis): Use wide-int interfaces.
12945 (slsr_process_phi): Likewise.
12946 (backtrace_base_for_ref): Likewise. Return a widest_int.
12947 (restructure_reference): Take a widest_int instead of a double_int.
12948 (slsr_process_ref): Use wide-int interfaces.
12949 (create_mul_ssa_cand): Likewise.
12950 (create_mul_imm_cand): Likewise.
12951 (create_add_ssa_cand): Likewise.
12952 (create_add_imm_cand): Take a widest_int instead of a double_int.
12953 (slsr_process_add): Use wide-int interfaces.
12954 (slsr_process_cast): Likewise.
12955 (slsr_process_copy): Likewise.
12956 (dump_candidate): Likewise.
12957 (dump_incr_vec): Likewise.
12958 (replace_ref): Likewise.
12959 (cand_increment): Likewise. Return a widest_int.
12960 (cand_abs_increment): Likewise.
12961 (replace_mult_candidate): Take a widest_int instead of a double_int.
12962 (replace_unconditional_candidate): Use wide-int interfaces.
12963 (incr_vec_index): Take a widest_int instead of a double_int.
12964 (create_add_on_incoming_edge): Likewise.
12965 (create_phi_basis): Use wide-int interfaces.
12966 (replace_conditional_candidate): Likewise.
12967 (record_increment): Take a widest_int instead of a double_int.
12968 (record_phi_increments): Use wide-int interfaces.
12969 (phi_incr_cost): Take a widest_int instead of a double_int.
12970 (lowest_cost_path): Likewise.
12971 (total_savings): Likewise.
12972 (analyze_increments): Use wide-int interfaces.
12973 (ncd_with_phi): Take a widest_int instead of a double_int.
12974 (ncd_of_cand_and_phis): Likewise.
12975 (nearest_common_dominator_for_cands): Likewise.
12976 (insert_initializers): Use wide-int interfaces.
12977 (all_phi_incrs_profitable): Likewise.
12978 (replace_one_candidate): Likewise.
12979 (replace_profitable_candidates): Likewise.
12980 * godump.c: Include wide-int-print.h.
12981 (go_output_typedef): Use wide-int interfaces.
12982 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12983 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12984 (build_loop_iteration_domains): Likewise.
12985 * hooks.h: Include wide-int.h rather than double-int.h.
12986 (hook_bool_dint_dint_uint_bool_true): Delete.
12987 (hook_bool_wint_wint_uint_bool_true): Declare.
12988 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12989 (hook_bool_wint_wint_uint_bool_true): New.
12990 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12992 (ubsan_expand_si_overflow_mul_check): Likewise.
12993 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12994 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12995 (get_ancestor_addr_info): Likewise.
12996 (ipa_modify_call_arguments): Likewise.
12997 * loop-doloop.c (doloop_modify): Likewise.
12998 (doloop_optimize): Likewise.
12999 * loop-iv.c (iv_number_of_iterations): Likewise.
13000 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
13001 (unroll_loop_constant_iterations): Likewise.
13002 (decide_unroll_runtime_iterations): Likewise.
13003 (unroll_loop_runtime_iterations): Likewise.
13004 (decide_peel_simple): Likewise.
13005 (decide_unroll_stupid): Likewise.
13006 * lto-streamer-in.c (streamer_read_wi): Add.
13007 (input_cfg): Use wide-int interfaces.
13008 (lto_input_tree_1): Likewise.
13009 * lto-streamer-out.c (streamer_write_wi): Add.
13010 (hash_tree): Use wide-int interfaces.
13011 (output_cfg): Likewise.
13012 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
13013 (GTFILES): Add wide-int.h and signop.h.
13014 (TAGS): Look for .cc files too.
13015 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
13016 * optabs.c (expand_subword_shift): Likewise.
13017 (expand_doubleword_shift): Likewise.
13018 (expand_absneg_bit): Likewise.
13019 (expand_copysign_absneg): Likewise.
13020 (expand_copysign_bit): Likewise.
13021 * postreload.c (reload_cse_simplify_set): Likewise.
13022 * predict.c (predict_iv_comparison): Likewise.
13023 * pretty-print.h: Include wide-int-print.h.
13025 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13026 * print-tree.c: Include wide-int-print.h.
13027 (print_node_brief): Use wide-int interfaces.
13028 (print_node): Likewise.
13029 * read-rtl.c (validate_const_wide_int): New.
13030 (read_rtx_code): Add CONST_WIDE_INT case.
13031 * real.c: Include wide-int.h.
13032 (real_to_integer2): Delete.
13033 (real_to_integer): New function, returning a wide_int.
13034 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13035 (ten_to_ptwo): Update call to real_from_integer.
13036 (real_digit): Likewise.
13037 * real.h: Include signop.h, wide-int.h and insn-modes.h.
13038 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
13039 (REAL_VALUE_TO_INT): Delete.
13040 (real_to_integer): Declare a wide-int form.
13041 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13042 * recog.c (const_int_operand): Improve comment.
13043 (const_scalar_int_operand): New.
13044 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
13045 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
13046 (split_double): Likewise.
13047 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
13048 (rtx_size): Likewise.
13049 (rtx_alloc_stat_v): New.
13050 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
13051 (cwi_output_hex): New.
13052 (iterative_hash_rtx): Handle CONST_WIDE_INT.
13053 (cwi_check_failed_bounds): New.
13054 * rtl.def (CONST_WIDE_INT): New.
13055 * rtl.h: Include <utility> and wide-int.h.
13056 (struct hwivec_def): New.
13057 (CWI_GET_NUM_ELEM): New.
13058 (CWI_PUT_NUM_ELEM): New.
13059 (struct rtx_def): Add num_elem and hwiv.
13060 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
13061 (CASE_CONST_UNIQUE): Likewise.
13062 (CASE_CONST_ANY): Likewise.
13063 (CONST_SCALAR_INT_P): Likewise.
13064 (CONST_WIDE_INT_P): New.
13066 (HWIVEC_CHECK): New.
13067 (cwi_check_failed_bounds): New.
13069 (HWIVEC_CHECK): New.
13070 (CONST_WIDE_INT_VEC) New.
13071 (CONST_WIDE_INT_NUNITS) New.
13072 (CONST_WIDE_INT_ELT) New.
13073 (rtx_mode_t): New type.
13074 (wi::int_traits <rtx_mode_t>): New.
13076 (wi::min_value): New.
13077 (wi::max_value): New.
13079 (const_wide_int_alloc): New.
13080 (immed_wide_int_const): New.
13081 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
13082 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
13083 * signop.h: New file.
13084 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
13085 (simplify_const_unary_operation): Use wide-int interfaces.
13086 (simplify_binary_operation_1): Likewise.
13087 (simplify_const_binary_operation): Likewise.
13088 (simplify_const_relational_operation): Likewise.
13089 (simplify_immed_subreg): Likewise.
13090 * stmt.c (expand_case): Likewise.
13091 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
13092 signop rather than a bool.
13093 * stor-layout.c (layout_type): Use wide-int interfaces.
13094 (initialize_sizetypes): Update calls to
13095 set_min_and_max_values_for_integral_type.
13096 (set_min_and_max_values_for_integral_type): Take a signop rather
13097 than a bool. Use wide-int interfaces.
13098 (fixup_signed_type): Update accordingly. Remove
13099 HOST_BITS_PER_DOUBLE_INT limit.
13100 (fixup_unsigned_type): Likewise.
13101 * system.h (STATIC_CONSTANT_P): New.
13102 (STATIC_ASSERT): New.
13103 * target.def (can_use_doloop_p): Take widest_ints rather than
13105 * target.h: Include wide-int.h rather than double-int.h.
13106 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
13108 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
13109 rather than INT_CST_LT_UNSIGNED.
13110 (can_use_doloop_if_innermost): Take widest_ints rather than
13112 * tree-affine.c: Include wide-int-print.h.
13113 (double_int_ext_for_comb): Delete.
13114 (wide_int_ext_for_comb): New.
13115 (aff_combination_zero): Use wide-int interfaces.
13116 (aff_combination_const): Take a widest_int instead of a double_int.
13117 (aff_combination_elt): Use wide-int interfaces.
13118 (aff_combination_scale): Take a widest_int instead of a double_int.
13119 (aff_combination_add_elt): Likewise.
13120 (aff_combination_add_cst): Likewise.
13121 (aff_combination_add): Use wide-int interfaces.
13122 (aff_combination_convert): Likewise.
13123 (tree_to_aff_combination): Likewise.
13124 (add_elt_to_tree): Take a widest_int instead of a double_int.
13125 (aff_combination_to_tree): Use wide-int interfaces.
13126 (aff_combination_remove_elt): Likewise.
13127 (aff_combination_add_product): Take a widest_int instead of
13129 (aff_combination_mult): Use wide-int interfaces.
13130 (aff_combination_expand): Likewise.
13131 (double_int_constant_multiple_p): Delete.
13132 (wide_int_constant_multiple_p): New.
13133 (aff_combination_constant_multiple_p): Take a widest_int pointer
13134 instead of a double_int pointer.
13135 (print_aff): Use wide-int interfaces.
13136 (get_inner_reference_aff): Take a widest_int pointer
13137 instead of a double_int pointer.
13138 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
13139 * tree-affine.h: Include wide-int.h.
13140 (struct aff_comb_elt): Change type of coef to widest_int.
13141 (struct affine_tree_combination): Change type of offset to widest_int.
13142 (double_int_ext_for_comb): Delete.
13143 (wide_int_ext_for_comb): New.
13144 (aff_combination_const): Use widest_int instead of double_int.
13145 (aff_combination_scale): Likewise.
13146 (aff_combination_add_elt): Likewise.
13147 (aff_combination_constant_multiple_p): Likewise.
13148 (get_inner_reference_aff): Likewise.
13149 (aff_comb_cannot_overlap_p): Likewise.
13150 (aff_combination_zero_p): Use wide-int interfaces.
13151 * tree.c: Include tree.h.
13152 (init_ttree): Use make_int_cst.
13153 (tree_code_size): Removed code for INTEGER_CST case.
13154 (tree_size): Add INTEGER_CST case.
13155 (make_node_stat): Update comment.
13156 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
13157 (build_int_cst_type): Use wide-int interfaces.
13158 (double_int_to_tree): Likewise.
13159 (double_int_fits_to_tree_p): Delete.
13160 (force_fit_type_double): Delete.
13161 (force_fit_type): New.
13162 (int_cst_hash_hash): Use wide-int interfaces.
13163 (int_cst_hash_eq): Likewise.
13164 (build_int_cst_wide): Delete.
13165 (wide_int_to_tree): New.
13166 (cache_integer_cst): Use wide-int interfaces.
13167 (build_low_bits_mask): Likewise.
13168 (cst_and_fits_in_hwi): Likewise.
13169 (real_value_from_int_cst): Likewise.
13170 (make_int_cst_stat): New.
13171 (integer_zerop): Use wide_int interfaces.
13172 (integer_onep): Likewise.
13173 (integer_all_onesp): Likewise.
13174 (integer_pow2p): Likewise.
13175 (integer_nonzerop): Likewise.
13176 (tree_log2): Likewise.
13177 (tree_floor_log2): Likewise.
13178 (tree_ctz): Likewise.
13179 (int_size_in_bytes): Likewise.
13180 (mem_ref_offset): Return an offset_int rather than a double_int.
13181 (build_type_attribute_qual_variant): Use wide_int interfaces.
13182 (type_hash_eq): Likewise
13183 (tree_int_cst_equal): Likewise.
13184 (tree_int_cst_lt): Delete.
13185 (tree_int_cst_compare): Likewise.
13186 (tree_fits_shwi_p): Use wide_int interfaces.
13187 (tree_fits_uhwi_p): Likewise.
13188 (tree_int_cst_sign_bit): Likewise.
13189 (tree_int_cst_sgn): Likewise.
13190 (tree_int_cst_min_precision): Take a signop rather than a bool.
13191 (simple_cst_equal): Use wide_int interfaces.
13192 (compare_tree_int): Likewise.
13193 (iterative_hash_expr): Likewise.
13194 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
13196 (get_type_static_bounds): Use wide_int interfaces.
13197 (tree_int_cst_elt_check_failed): New.
13198 (build_common_tree_nodes): Reordered to set prec before filling in
13200 (int_cst_value): Check cst_and_fits_in_hwi.
13201 (widest_int_cst_value): Use wide_int interfaces.
13202 (upper_bound_in_type): Likewise.
13203 (lower_bound_in_type): Likewise.
13204 (num_ending_zeros): Likewise.
13205 (drop_tree_overflow): Likewise.
13206 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
13207 (gen_conditions_for_pow_cst_base): Likewise.
13208 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
13209 (group_case_labels_stmt): Use wide-int interfaces.
13210 (verify_gimple_assign_binary): Likewise.
13211 (print_loop): Likewise.
13212 * tree-chrec.c (tree_fold_binomial): Likewise.
13213 * tree-core.h (struct tree_base): Add int_length.
13214 (struct tree_int_cst): Change rep of value.
13215 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
13216 (dr_may_alias_p): Likewise.
13217 (max_stmt_executions_tree): Likewise.
13218 * tree.def (INTEGER_CST): Update comment.
13219 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
13220 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
13221 * tree-dump.c: Include wide-int.h and wide-int-print.h.
13222 (dequeue_and_dump): Use wide-int interfaces.
13223 * tree.h: Include wide-int.h.
13224 (NULL_TREE): Moved to earlier loc in file.
13225 (TREE_INT_CST_ELT_CHECK): New.
13226 (tree_int_cst_elt_check_failed): New.
13228 (TREE_INT_CST): Delete.
13229 (TREE_INT_CST_LOW): Use wide-int interfaces.
13230 (TREE_INT_CST_HIGH): Delete.
13231 (TREE_INT_CST_NUNITS): New.
13232 (TREE_INT_CST_EXT_NUNITS): Likewise.
13233 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
13234 (TREE_INT_CST_ELT): Likewise.
13235 (INT_CST_LT): Delete.
13236 (tree_int_cst_elt_check): New (two forms).
13237 (type_code_size): Update comment.
13238 (make_int_cst_stat, make_int_cst): New.
13239 (tree_to_double_int): Delete.
13240 (double_int_fits_to_tree_p): Delete.
13241 (force_fit_type_double): Delete.
13242 (build_int_cstu): Replace with out-of-line function.
13243 (build_int_cst_wide): Delete.
13244 (tree_int_cst_lt): Define inline.
13245 (tree_int_cst_le): New.
13246 (tree_int_cst_compare): Define inline.
13247 (tree_int_cst_min_precision): Take a signop rather than a bool.
13248 (wi::int_traits <const_tree>): New.
13249 (wi::int_traits <tree>): New.
13250 (wi::extended_tree): New.
13251 (wi::int_traits <wi::extended_tree>): New.
13252 (wi::to_widest): New.
13253 (wi::to_offset): New.
13254 (wi::fits_to_tree_p): New.
13255 (wi::min_value): New.
13256 (wi::max_value): New.
13257 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
13258 (copy_tree_body_r): Likewise.
13259 * tree-object-size.c (compute_object_offset): Likewise.
13260 (addr_object_size): Likewise.
13261 * tree-predcom.c: Include wide-int-print.h.
13262 (struct dref_d): Change type of offset to widest_int.
13263 (dump_dref): Call wide-int printer.
13264 (aff_combination_dr_offset): Use wide-int interfaces.
13265 (determine_offset): Take a widest_int pointer rather than a
13266 double_int pointer.
13267 (split_data_refs_to_components): Use wide-int interfaces.
13268 (suitable_component_p): Likewise.
13269 (order_drefs): Likewise.
13270 (add_ref_to_chain): Likewise.
13271 (valid_initializer_p): Likewise.
13272 (determine_roots_comp): Likewise.
13273 * tree-pretty-print.c: Include wide-int-print.h.
13274 (dump_generic_node): Use wide-int interfaces.
13275 * tree-sra.c (sra_ipa_modify_expr): Likewise.
13276 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13277 (move_fixed_address_to_symbol): Likewise.
13278 (move_hint_to_base): Likewise.
13279 (move_pointer_to_base): Likewise.
13280 (move_variant_to_index): Likewise.
13281 (most_expensive_mult_to_index): Likewise.
13282 (addr_to_parts): Likewise.
13283 (copy_ref_info): Likewise.
13284 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
13285 (indirect_refs_may_alias_p): Likewise.
13286 (stmt_kills_ref_p_1): Likewise.
13287 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13288 * tree-ssa-ccp.c: Update comment at top of file. Include
13290 (struct prop_value_d): Change type of mask to widest_int.
13291 (extend_mask): New function.
13292 (dump_lattice_value): Use wide-int interfaces.
13293 (get_default_value): Likewise.
13294 (set_constant_value): Likewise.
13295 (set_value_varying): Likewise.
13296 (valid_lattice_transition): Likewise.
13297 (set_lattice_value): Likewise.
13298 (value_to_double_int): Delete.
13299 (value_to_wide_int): New.
13300 (get_value_from_alignment): Use wide-int interfaces.
13301 (get_value_for_expr): Likewise.
13302 (do_dbg_cnt): Likewise.
13303 (ccp_finalize): Likewise.
13304 (ccp_lattice_meet): Likewise.
13305 (bit_value_unop_1): Use widest_ints rather than double_ints.
13306 (bit_value_binop_1): Likewise.
13307 (bit_value_unop): Use wide-int interfaces.
13308 (bit_value_binop): Likewise.
13309 (bit_value_assume_aligned): Likewise.
13310 (evaluate_stmt): Likewise.
13311 (ccp_fold_stmt): Likewise.
13312 (visit_cond_stmt): Likewise.
13313 (ccp_visit_stmt): Likewise.
13314 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13315 (constant_pointer_difference): Likewise.
13316 (associate_pointerplus): Likewise.
13317 (combine_conversions): Likewise.
13318 * tree-ssa-loop.h: Include wide-int.h.
13319 (struct tree_niter_desc): Change type of max to widest_int.
13320 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
13321 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
13322 (remove_redundant_iv_tests): Likewise.
13323 (canonicalize_loop_induction_variables): Likewise.
13324 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
13325 (constant_multiple_of): Take a widest_int pointer instead of
13326 a double_int pointer.
13327 (get_computation_aff): Use wide-int interfaces.
13328 (ptr_difference_cost): Likewise.
13329 (difference_cost): Likewise.
13330 (get_loop_invariant_expr_id): Likewise.
13331 (get_computation_cost_at): Likewise.
13332 (iv_elimination_compare_lt): Likewise.
13333 (may_eliminate_iv): Likewise.
13334 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
13335 instead of double_int.
13336 (max_loop_iterations): Likewise.
13337 (max_stmt_executions): Likewise.
13338 (estimated_stmt_executions): Likewise.
13339 * tree-ssa-loop-niter.c: Include wide-int-print.h.
13340 (split_to_var_and_offset): Use wide-int interfaces.
13341 (determine_value_range): Likewise.
13342 (bound_difference_of_offsetted_base): Likewise.
13343 (bounds_add): Take a widest_int instead of a double_int.
13344 (number_of_iterations_ne_max): Use wide-int interfaces.
13345 (number_of_iterations_ne): Likewise.
13346 (number_of_iterations_lt_to_ne): Likewise.
13347 (assert_loop_rolls_lt): Likewise.
13348 (number_of_iterations_lt): Likewise.
13349 (number_of_iterations_le): Likewise.
13350 (number_of_iterations_cond): Likewise.
13351 (number_of_iterations_exit): Likewise.
13352 (finite_loop_p): Likewise.
13353 (derive_constant_upper_bound_assign): Likewise.
13354 (derive_constant_upper_bound): Return a widest_int.
13355 (derive_constant_upper_bound_ops): Likewise.
13356 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
13357 (record_estimate): Take a widest_int rather than a double_int.
13358 (record_nonwrapping_iv): Use wide-int interfaces.
13359 (double_int_cmp): Delete.
13360 (wide_int_cmp): New.
13361 (bound_index): Take a widest_int rather than a double_int.
13362 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13363 (maybe_lower_iteration_bound): Likewise.
13364 (estimate_numbers_of_iterations_loop): Likewise.
13365 (estimated_loop_iterations): Take a widest_int pointer than than
13366 a double_int pointer.
13367 (estimated_loop_iterations_int): Use wide-int interfaces.
13368 (max_loop_iterations): Take a widest_int pointer than than
13369 a double_int pointer.
13370 (max_loop_iterations_int): Use wide-int interfaces.
13371 (max_stmt_executions): Take a widest_int pointer than than
13372 a double_int pointer.
13373 (estimated_stmt_executions): Likewise.
13374 (n_of_executions_at_most): Use wide-int interfaces.
13375 (scev_probably_wraps_p): Likewise.
13376 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13377 to real_to_integer.
13378 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13380 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13381 double_ints. Adjust for trailing_wide_ints <3> representation.
13382 (set_nonzero_bits): Likewise.
13383 (get_range_info): Return wide_ints rather than double_ints.
13384 Adjust for trailing_wide_ints <3> representation.
13385 (get_nonzero_bits): Likewise.
13386 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13388 * tree-ssanames.h (struct range_info_def): Replace min, max and
13389 nonzero_bits with a trailing_wide_ints <3>.
13390 (set_range_info): Use wide_int_refs rather than double_ints.
13391 (set_nonzero_bits): Likewise.
13392 (get_range_info): Return wide_ints rather than double_ints.
13393 (get_nonzero_bits): Likewise.
13394 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13395 * tree-ssa-pre.c (phi_translate_1): Likewise.
13396 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13397 (acceptable_pow_call): Likewise.
13398 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13400 (vn_reference_fold_indirect): Likewise.
13401 (vn_reference_maybe_forwprop_address): Likewise.
13402 (valueize_refs_1): Likewise.
13403 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13404 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13405 tree_int_cst_lt and tree_int_cst_le.
13406 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13408 (streamer_alloc_tree): Likewise.
13409 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13410 (streamer_write_tree_header): Likewise.
13411 (streamer_write_integer_cst): Likewise.
13412 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13413 (build_constructors): Likewise.
13414 (array_value_type): Likewise.
13415 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13416 (vect_check_gather): Likewise.
13417 * tree-vect-generic.c (build_replicated_const): Likewise.
13418 (expand_vector_divmod): Likewise.
13419 * tree-vect-loop.c (vect_transform_loop): Likewise.
13420 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13421 (vect_do_peeling_for_alignment): Likewise.
13422 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13423 * tree-vrp.c: Include wide-int.h.
13424 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13425 (extract_range_from_assert): Use wide-int interfaces.
13426 (vrp_int_const_binop): Likewise.
13427 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13428 double_int pointers.
13429 (ranges_from_anti_range): Use wide-int interfaces.
13430 (quad_int_cmp): Delete.
13431 (quad_int_pair_sort): Likewise.
13432 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13433 (extract_range_from_unary_expr_1): Likewise.
13434 (adjust_range_with_scev): Likewise.
13435 (masked_increment): Take and return wide_ints rather than double_ints.
13436 (register_edge_assert_for_2): Use wide-int interfaces.
13437 (check_array_ref): Likewise.
13438 (search_for_addr_array): Likewise.
13439 (maybe_set_nonzero_bits): Likewise.
13440 (union_ranges): Pass an integer of the correct type instead of
13441 using integer_one_node.
13442 (intersect_ranges): Likewise.
13443 (simplify_truth_ops_using_ranges): Likewise.
13444 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13445 (range_fits_type_p): Likewise.
13446 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13448 (simplify_conversion_using_ranges): Use wide-int interfaces.
13449 (simplify_float_conversion_using_ranges): Likewise.
13450 (vrp_finalize): Likewise.
13451 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13452 (gimple_stringops_transform): Likewise.
13453 * varasm.c (decode_addr_const): Likewise.
13454 (const_hash_1): Likewise.
13455 (const_rtx_hash_1): Likewise
13456 (output_constant): Likewise.
13457 (array_size_for_constructor): Likewise.
13458 (output_constructor_regular_field): Likewise.
13459 (output_constructor_bitfield): Likewise.
13460 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13461 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13463 * gencheck.c: Define BITS_PER_UNIT.
13464 * wide-int.cc: New.
13466 * wide-int-print.cc: New.
13467 * wide-int-print.h: New.
13469 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13471 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13473 2014-05-06 Richard Biener <rguenther@suse.de>
13475 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13476 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13477 (TODO_verify_all): Adjust.
13478 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13479 TODO_verify_stmts and TODO_verify_rtl_sharing.
13480 * bb-reorder.c: Likewise.
13481 * cfgexpand.c: Likewise.
13482 * cprop.c: Likewise.
13484 * function.c: Likewise.
13485 * fwprop.c: Likewise.
13486 * gcse.c: Likewise.
13487 * gimple-ssa-isolate-paths.c: Likewise.
13488 * gimple-ssa-strength-reduction.c: Likewise.
13489 * ipa-split.c: Likewise.
13490 * loop-init.c: Likewise.
13491 * loop-unroll.c: Likewise.
13492 * lower-subreg.c: Likewise.
13493 * modulo-sched.c: Likewise.
13494 * postreload-gcse.c: Likewise.
13495 * predict.c: Likewise.
13496 * recog.c: Likewise.
13497 * sched-rgn.c: Likewise.
13498 * store-motion.c: Likewise.
13499 * tracer.c: Likewise.
13500 * trans-mem.c: Likewise.
13501 * tree-call-cdce.c: Likewise.
13502 * tree-cfg.c: Likewise.
13503 * tree-cfgcleanup.c: Likewise.
13504 * tree-complex.c: Likewise.
13505 * tree-eh.c: Likewise.
13506 * tree-emutls.c: Likewise.
13507 * tree-if-conv.c: Likewise.
13508 * tree-into-ssa.c: Likewise.
13509 * tree-loop-distribution.c: Likewise.
13510 * tree-object-size.c: Likewise.
13511 * tree-parloops.c: Likewise.
13512 * tree-pass.h: Likewise.
13513 * tree-sra.c: Likewise.
13514 * tree-ssa-ccp.c: Likewise.
13515 * tree-ssa-copy.c: Likewise.
13516 * tree-ssa-copyrename.c: Likewise.
13517 * tree-ssa-dce.c: Likewise.
13518 * tree-ssa-dom.c: Likewise.
13519 * tree-ssa-dse.c: Likewise.
13520 * tree-ssa-forwprop.c: Likewise.
13521 * tree-ssa-ifcombine.c: Likewise.
13522 * tree-ssa-loop-ch.c: Likewise.
13523 * tree-ssa-loop-ivcanon.c: Likewise.
13524 * tree-ssa-loop.c: Likewise.
13525 * tree-ssa-math-opts.c: Likewise.
13526 * tree-ssa-phiopt.c: Likewise.
13527 * tree-ssa-phiprop.c: Likewise.
13528 * tree-ssa-pre.c: Likewise.
13529 * tree-ssa-reassoc.c: Likewise.
13530 * tree-ssa-sink.c: Likewise.
13531 * tree-ssa-strlen.c: Likewise.
13532 * tree-ssa-tail-merge.c: Likewise.
13533 * tree-ssa-uncprop.c: Likewise.
13534 * tree-switch-conversion.c: Likewise.
13535 * tree-tailcall.c: Likewise.
13536 * tree-vect-generic.c: Likewise.
13537 * tree-vectorizer.c: Likewise.
13538 * tree-vrp.c: Likewise.
13539 * tsan.c: Likewise.
13540 * var-tracking.c: Likewise.
13541 * bt-load.c: Likewise.
13542 * cfgcleanup.c: Likewise.
13543 * combine-stack-adj.c: Likewise.
13544 * combine.c: Likewise.
13545 * compare-elim.c: Likewise.
13546 * config/epiphany/resolve-sw-modes.c: Likewise.
13547 * config/i386/i386.c: Likewise.
13548 * config/mips/mips.c: Likewise.
13549 * config/s390/s390.c: Likewise.
13550 * config/sh/sh_treg_combine.cc: Likewise.
13551 * config/sparc/sparc.c: Likewise.
13554 * final.c: Likewise.
13555 * ifcvt.c: Likewise.
13556 * mode-switching.c: Likewise.
13557 * passes.c: Likewise.
13558 * postreload.c: Likewise.
13560 * reg-stack.c: Likewise.
13561 * regcprop.c: Likewise.
13562 * regrename.c: Likewise.
13565 2014-05-06 Richard Biener <rguenther@suse.de>
13567 PR middle-end/61070
13568 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13569 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13571 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13574 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13576 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13577 Tom de Vries <tom@codesourcery.com>
13579 * target.def (call_fusage_contains_non_callee_clobbers): New
13581 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13583 (@node Miscellaneous Register Hooks): New node.
13584 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13585 * doc/tm.texi: Regenerate.
13587 2014-05-05 Marek Polacek <polacek@redhat.com>
13590 * opts.c (common_handle_option): Call error_at instead of warning_at.
13592 2014-05-05 Richard Biener <rguenther@suse.de>
13594 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13595 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13596 under the TODO_verify_il umbrella.
13598 2014-05-05 Richard Biener <rguenther@suse.de>
13600 * passes.c (execute_function_todo): Move TODO_verify_flow under
13601 the TODO_verify_ul umbrella.
13603 2014-05-05 Richard Biener <rguenther@suse.de>
13605 PR middle-end/61010
13606 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13607 X & CST away from a CST that is the mask of a mode.
13609 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13611 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13612 int argument to enum machine_mode.
13613 (picochip_class_max_nregs): Ditto.
13614 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13615 (picochip_class_max_nregs): Ditto.
13617 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13619 * target.def: Add new target hook.
13620 * doc/tm.texi: Regenerate.
13621 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13622 * targhooks.c (default_keep_leaf_when_profiled): New function.
13624 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13625 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13627 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13629 PR tree-optimization/60363
13630 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13631 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13632 (update_destination_phis): New parameter.
13633 (create_edge_and_update_destination_phis): Ditto.
13634 (ssa_fix_duplicate_block_edges): Pass new arguments.
13635 (thread_single_edge): Ditto.
13637 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13639 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13640 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13641 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13642 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13643 Use RS6000_BTM_HARD_FLOAT.
13644 (BU_MISC_2): Likewise.
13645 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13646 RS6000_BTM_HARD_FLOAT.
13647 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13648 is explicitly used.
13649 (rs6000_invalid_builtin): Add hard floating builtin support.
13650 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13651 hard float builtins.
13652 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13654 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13656 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13657 Add missing function* argument.
13659 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13661 * lra-constraints.c (valid_address_p): Move earlier in file.
13662 Add a constraint argument to the address_info version.
13663 (satisfies_memory_constraint_p): New function.
13664 (satisfies_address_constraint_p): Likewise.
13665 (process_alt_operands, curr_insn_transform): Use them.
13666 (process_address): Pass the constraint to valid_address_p when
13667 checking address operands.
13669 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13671 * config/mips/mips.c (mips_isa_rev): New variable.
13672 (mips_set_architecture): Set it.
13673 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13675 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13676 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13677 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13678 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13679 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13680 conditions in terms of mips_isa_rev.
13681 (mips_isa_rev): Declare.
13683 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13685 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13686 (prob_unlikely, prob_likely): Make variables const.
13688 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13690 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13692 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13694 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13696 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13698 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13699 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13700 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13702 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13703 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13705 Replace usage of ROUND_REG with sh_round_reg.
13706 Use CEIL instead of ROUND_ADVANCE.
13708 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13711 * config/sh/sh.c: Include stdlib headers before everything else.
13713 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13715 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13716 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13717 (gimplify_adjust_omp_clauses): Simd region is never
13718 directly nested in combined parallel. Instead, for linear
13719 with copyin/copyout, if in combined for simd loop, make decl
13720 firstprivate/lastprivate on OMP_FOR.
13721 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13722 expand_omp_for_static_chunk): When setting endvar, also set
13723 fd->loop.v to the same value.
13725 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13727 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13729 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13731 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13734 2014-05-02 Marek Polacek <polacek@redhat.com>
13736 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13738 2014-05-02 Kito Cheng <kito@0xlab.org>
13740 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13741 to a C expression marco.
13742 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13743 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13744 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13745 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13746 HONOR_REG_ALLOC_ORDER.
13747 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13749 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13751 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13753 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13755 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13757 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13759 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13760 (convert_scalar_cond_reduction): Likewise.
13761 (predicate_scalar_phi): Add recognition and transformation
13762 of simple conditioanl reduction to be vectorizable.
13764 2014-05-01 Marek Polacek <polacek@redhat.com>
13767 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13769 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13771 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13772 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13773 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13774 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13775 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13776 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13777 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13778 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13780 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13782 * config/arc/arc.opt (mlra): Move comment above option name
13783 to avoid mis-parsing as language options.
13785 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13787 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13788 * config/sol2.h: ... here.
13789 * config/sol2-10.h: Remove.
13791 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13792 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13793 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13794 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13795 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13796 * config/sol2.h: ... here.
13797 (SECTION_NAME_FORMAT): Don't redefine.
13798 (STARTFILE_ARCH32_SPEC): Rename to ...
13799 (STARTFILE_ARCH_SPEC): ... this.
13800 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13801 * config/sparc/sol2.h: ... here.
13802 (SECTION_NAME_FORMAT): Don't undef.
13803 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13804 (SUBTARGET_EXTRA_SPECS): Remove.
13805 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13807 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13808 (MD_STARTFILE_PREFIX): Remove.
13809 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13810 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13811 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13812 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13813 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13814 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13815 * config/i386/sol2.h: ... here.
13816 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13817 * config/i386/sol2-bi.h: Remove.
13818 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13819 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13821 * config/i386/t-sol2-64: Rename to ...
13822 * config/i386/t-sol2: ... this.
13823 * config/sparc/t-sol2-64: Rename to ...
13824 * config/sparc/t-sol2: ... this.
13826 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13827 sol2_tm_file_head, sol2_tm_file_tail.
13828 Include ${cpu_type}/sol2.h before sol2.h.
13830 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13831 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13832 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13833 Reflect i386/t-sol2-64 renaming.
13834 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13835 Reflect sparc/t-sol2-64 renaming.
13837 2014-04-30 Richard Biener <rguenther@suse.de>
13839 * passes.c (execute_function_todo): Move TODO_verify_stmts
13840 and TODO_verify_ssa under the TODO_verify_il umbrella.
13841 * tree-ssa.h (verify_ssa): Adjust prototype.
13842 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13843 we should verify SSA operands.
13844 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13845 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13846 whether we should verify whether not throwing stmts have EH info.
13847 * graphite-scop-detection.c (create_sese_edges): Adjust.
13848 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13849 * tree-eh.c (lower_try_finally_switch): Do not add the
13850 default case label twice.
13852 2014-04-30 Marek Polacek <polacek@redhat.com>
13854 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13855 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13856 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13857 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13859 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13861 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13862 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13863 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13864 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13865 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13866 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13867 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13868 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13870 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13872 * tree-cfg.c (dump_function_to_file): Dump the return type of
13873 functions, in a line to itself before the function body, mimicking
13874 the layout of a C function.
13876 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13878 PR tree-optimization/60971
13879 * tree-tailcall.c (process_assignment): Reject conversions which
13882 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13884 * calls.c (initialize_argument_information): Always treat
13885 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13886 (expand_call): Likewise.
13887 (emit_library_call_calue_1): Likewise.
13888 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13889 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13892 2014-04-29 Nick Clifton <nickc@redhat.com>
13894 * config/msp430/msp430.md (umulsidi): Fix typo.
13895 (mulhisi3): Enable even inside interrupt handlers.
13896 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13897 bigger return address pushed in large mode.
13899 2014-04-29 Nick Clifton <nickc@redhat.com>
13901 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13902 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13904 * config/m32r/m32r.c (init_reg_tables): Likewise.
13905 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13906 enum to hold the modes.
13908 2014-04-29 Richard Biener <rguenther@suse.de>
13910 * dominance.c (free_dominance_info): Add overload with
13911 function parameter.
13912 (dom_info_state): Likewise.
13913 (dom_info_available_p): Likewise.
13914 * basic-block.h (free_dominance_info, dom_info_state,
13915 dom_info_available_p): Declare overloads.
13916 * passes.c (execute_function_todo): Verify that verifiers
13917 don't change dominator info state. Drop dominator info
13918 for IPA pass invocations.
13919 * cgraph.c (release_function_body): Restore asserts that
13920 dominator information is released.
13922 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13924 * doc/invoke.texi: Fix typo.
13925 * tree-vrp.c: Fix typos.
13926 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13928 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13930 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13932 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13934 * config/aarch64/aarch64-builtins.c
13935 (aarch64_types_storestruct_lane_qualifiers): New.
13936 (TYPES_STORESTRUCT_LANE): Likewise.
13937 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13938 (st3_lane): Likewise.
13939 (st4_lane): Likewise.
13940 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13941 (vec_store_lanesci_lane<mode>): Likewise.
13942 (vec_store_lanesxi_lane<mode>): Likewise.
13943 (aarch64_st2_lane<VQ:mode>): Likewise.
13944 (aarch64_st3_lane<VQ:mode>): Likewise.
13945 (aarch64_st4_lane<VQ:mode>): Likewise.
13946 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13947 * config/aarch64/arm_neon.h
13948 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13949 use new macro arguments.
13950 (__ST3_LANE_FUNC): Likewise.
13951 (__ST4_LANE_FUNC): Likewise.
13952 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13953 (V_THREE_ELEM): Likewise.
13954 (V_FOUR_ELEM): Likewise.
13956 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13958 * doc/gimple.texi: Replace the description of the now-defunct
13959 union gimple_statement_d with a diagram showing the
13960 gimple_statement_base class hierarchy and its relationships to
13961 the GSS_ and GIMPLE_ enums.
13963 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13965 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13966 * config/aarch64/aarch64.c
13967 (aarch64_cannot_change_mode_class): Weaken conditions.
13968 (aarch64_modes_tieable_p): New.
13969 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13971 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13973 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13974 (loadsync_<mode>): Change mode.
13975 (load_quadpti, store_quadpti): New.
13976 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13977 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13979 2014-04-28 Martin Jambor <mjambor@suse.cz>
13981 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13982 same alias type as the original statement.
13983 (subreplacement_assignment_data): New type.
13984 (handle_unscalarized_data_in_subtree): New type of parameter,
13985 generate new memory accesses with same alias type as the original
13987 (load_assign_lhs_subreplacements): Likewise.
13988 (sra_modify_constructor_assign): Generate new memory accesses with
13989 same alias type as the original statement.
13991 2014-04-28 Richard Biener <rguenther@suse.de>
13993 * tree-pass.h (TODO_verify_il): Define.
13994 (TODO_verify_all): Complete properly.
13995 * passes.c (execute_function_todo): Move existing loop-closed
13996 SSA verification under TODO_verify_il.
13997 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13998 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13999 Fix tree sharing issue.
14001 2014-04-28 Richard Biener <rguenther@suse.de>
14003 PR middle-end/60092
14004 * builtins.def (DEF_C11_BUILTIN): Add.
14005 (BUILT_IN_ALIGNED_ALLOC): Likewise.
14006 * coretypes.h (enum function_class): Add function_c11_misc.
14007 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14008 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
14009 (call_may_clobber_ref_p_1): Likewise.
14010 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14011 (mark_all_reaching_defs_necessary_1): Likewise.
14012 (propagate_necessity): Likewise.
14013 (eliminate_unnecessary_stmts): Likewise.
14014 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
14016 2014-04-28 Richard Biener <rguenther@suse.de>
14018 * tree-vrp.c (vrp_var_may_overflow): Remove.
14019 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
14020 with overflow immediately bump to one before that value and
14021 let iteration figure out overflow status.
14023 2014-04-28 Richard Biener <rguenther@suse.de>
14025 * configure.ac: Do valgrind header checks unconditionally.
14026 Add --enable-valgrind-annotations.
14027 * system.h: Guard valgrind header inclusion with
14028 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
14029 * alloc-pool.c (pool_alloc, pool_free): Use
14030 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
14031 to guard possibly dead code.
14032 * config.in: Regenerated.
14033 * configure: Likewise.
14035 2014-04-28 Jeff Law <law@redhat.com>
14037 PR tree-optimization/60902
14038 * tree-ssa-threadedge.c
14039 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
14040 over real defs when invalidating outputs from statements that do not
14041 produce useful outputs for threading.
14043 2014-04-28 Richard Biener <rguenther@suse.de>
14045 PR tree-optimization/60979
14046 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
14047 SCOPs that end in a block with a successor with abnormal
14050 2014-04-28 Richard Biener <rguenther@suse.de>
14052 * tree-pass.h (execute_pass_list): Adjust prototype.
14053 * passes.c (pass_manager::execute_early_local_passes): Adjust.
14054 (do_per_function): Change callback signature, push all actual
14055 work to the callbals.
14056 (do_per_function_toporder): Likewise.
14057 (execute_function_dump): Adjust.
14058 (execute_function_todo): Likewise.
14059 (clear_last_verified): Likewise.
14060 (verify_curr_properties): Likewise.
14061 (update_properties_after_pass): Likewise.
14062 (execute_pass_list_1): Split out from ...
14063 (execute_pass_list): ... here. Adjust.
14064 (execute_ipa_pass_list): Likewise.
14065 * cgraphunit.c (cgraph_add_new_function): Adjust.
14066 (analyze_function): Likewise.
14067 (expand_function): Likewise.
14068 * cgraph.c (release_function_body): Free dominance info
14069 here instead of asserting it was magically freed elsewhere.
14071 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
14073 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
14074 * configure: Regenerate.
14075 * config/sparc/sparc.opt (muser-mode): New option.
14076 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
14078 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
14079 * doc/invoke.texi (SPARC options): Document -muser-mode.
14081 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
14083 * cselib.c (find_slot_memmode): Delete.
14084 (cselib_hasher): Change compare_type to a struct.
14085 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
14087 (preserve_constants_and_equivs): Adjust for new compare_type.
14088 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
14089 (wrap_constant): Delete.
14090 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
14092 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14094 * doc/install.texi (Building with profile feedback): Remove
14097 2014-04-26 Tom de Vries <tom@codesourcery.com>
14099 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
14102 2014-04-25 Cary Coutant <ccoutant@google.com>
14105 * dwarf2out.c (should_move_die_to_comdat): A type definition
14106 can contain a subprogram definition, but don't move it to a
14108 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
14109 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
14111 (clone_tree_hash): Rename to...
14112 (clone_tree_partial): ...this; change callers. Copy
14113 DW_TAG_subprogram DIEs as declarations.
14114 (copy_decls_walk): Don't copy children of a declaration into a
14117 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
14120 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
14123 2014-04-25 Jiong Wang <jiong.wang@arm.com>
14125 * config/arm/predicates.md (call_insn_operand): Add long_call check.
14126 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
14128 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
14131 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14133 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
14135 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14137 PR tree-optimization/60930
14138 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
14139 creating a multiply candidate by folding two constant
14140 multiplicands when the result overflows.
14142 2014-04-25 Jakub Jelinek <jakub@redhat.com>
14144 PR tree-optimization/60960
14145 * tree-vect-generic.c (expand_vector_operation): Only call
14146 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
14148 2014-04-25 Tom de Vries <tom@codesourcery.com>
14150 * expr.c (clobber_reg_mode): New function.
14151 * expr.h (clobber_reg): New function.
14153 2014-04-25 Tom de Vries <tom@codesourcery.com>
14155 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
14158 2014-04-25 Radovan Obradovic <robradovic@mips.com>
14159 Tom de Vries <tom@codesourcery.com>
14161 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
14163 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
14164 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
14165 new argument to find_all_hard_reg_sets call.
14167 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14169 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
14170 Use HOST_WIDE_INT_C for mask literal.
14171 (aarch_rev16_shleft_mask_imm_p): Likewise.
14173 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
14176 * config/sparc/sparc.md (ashlsi3_extend): Delete.
14178 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
14180 PR preprocessor/56540
14181 * config/i386/i386-c.c (ix86_target_macros): Define
14182 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
14184 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14186 * configure.ac (tga_func): Remove.
14187 (LIB_TLS_SPEC): Remove.
14188 * configure: Regenerate.
14189 * config.in: Regenerate.
14190 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
14192 2014-04-25 Richard Biener <rguenther@suse.de>
14195 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
14196 call stmt use/clobber sets during stmt walk instead of
14197 walking the possibly incomplete set of caller edges.
14199 2014-04-25 Richard Biener <rguenther@suse.de>
14202 * passes.c (apply_ipa_transforms): Inline into only caller ...
14203 (execute_one_pass): ... here. Properly bring in function
14204 bodies for nodes we want to apply IPA transforms to.
14206 2014-04-24 Cong Hou <congh@google.com>
14208 PR tree-optimization/60896
14209 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
14210 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
14211 (vect_mark_pattern_stmts): Set the def type of all statements in
14212 PATTERN_DEF_SEQ as vect_internal_def.
14214 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14216 * doc/extend.texi (PowerPC Built-in Functions): Document new
14217 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
14218 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
14220 * config/rs6000/predicates.md (const_0_to_3_operand): New
14221 predicate to match 0..3 integer constants.
14223 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
14224 to support adding miscellaneous builtin functions.
14225 (BU_DFP_MISC_2): Likewise.
14226 (BU_P7_MISC_1): Likewise.
14227 (BU_P7_MISC_2): Likewise.
14228 (BU_P8V_MISC_3): Likewise.
14229 (BU_MISC_1): Likewise.
14230 (BU_MISC_2): Likewise.
14231 (DIVWE): Add extended divide builtin functions.
14232 (DIVWEO): Likewise.
14233 (DIVWEU): Likewise.
14234 (DIVWEUO): Likewise.
14236 (DIVDEO): Likewise.
14237 (DIVDEU): Likewise.
14238 (DIVDEUO): Likewise.
14239 (DXEX): Add decimal floating-point builtin functions.
14241 (DDEDPD): Likewise.
14242 (DDEDPDQ): Likewise.
14243 (DENBCD): Likewise.
14244 (DENBCDQ): Likewise.
14248 (DSCLIQ): Likewise.
14250 (DSCRIQ): Likewise.
14251 (CDTBCD): Add new BCD builtin functions.
14252 (CBCDTD): Likewise.
14253 (ADDG6S): Likewise.
14254 (BCDADD): Likewise.
14255 (BCDADD_LT): Likewise.
14256 (BCDADD_EQ): Likewise.
14257 (BCDADD_GT): Likewise.
14258 (BCDADD_OV): Likewise.
14259 (BCDSUB): Likewise.
14260 (BCDSUB_LT): Likewise.
14261 (BCDSUB_EQ): Likewise.
14262 (BCDSUB_GT): Likewise.
14263 (BCDSUB_OV): Likewise.
14264 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
14265 (UNPACK_TD): Likewise.
14266 (PACK_TF): Likewise.
14267 (UNPACK_TF): Likewise.
14268 (UNPACK_TF_0): Likewise.
14269 (UNPACK_TF_1): Likewise.
14270 (PACK_V1TI): Likewise.
14271 (UNPACK_V1TI): Likewise.
14273 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14274 support for decimal floating point builtin functions.
14275 (rs6000_expand_ternop_builtin): Add checks for the new builtin
14276 functions that take constant arguments.
14277 (rs6000_invalid_builtin): Add decimal floating point builtin support.
14278 (rs6000_init_builtins): Setup long double, _Decimal64, and
14279 _Decimal128 types for new builtin functions.
14280 (builtin_function_type): Set the unsigned flags appropriately for
14281 the new builtin functions.
14282 (rs6000_opt_masks): Add support for decimal floating point builtin
14285 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
14286 floating point builtin functions.
14287 (RS6000_BTM_COMMON): Likewise.
14288 (RS6000_BTI_long_double): Likewise.
14289 (RS6000_BTI_dfloat64): Likewise.
14290 (RS6000_BTI_dfloat128): Likewise.
14291 (long_double_type_internal_node): Likewise.
14292 (dfloat64_type_internal_node): Likewise.
14293 (dfloat128_type_internal_node): Likewise.
14295 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
14296 2.07 bcd arithmetic instructions.
14297 (UNSPEC_BCDSUB): Likewise.
14298 (UNSPEC_BCD_OVERFLOW): Likewise.
14299 (UNSPEC_BCD_ADD_SUB): Likewise.
14300 (bcd_add_sub): Likewise.
14301 (BCD_TEST): Likewise.
14302 (bcd<bcd_add_sub>): Likewise.
14303 (bcd<bcd_add_sub>_test): Likewise.
14304 (bcd<bcd_add_sub>_test2): Likewise.
14305 (bcd<bcd_add_sub>_<code>): Likewise.
14306 (peephole2 for combined bcd ops): Likewise.
14308 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
14309 decimal floating point builtin functions.
14310 (UNSPEC_DENBCD): Likewise.
14311 (UNSPEC_DXEX): Likewise.
14312 (UNSPEC_DIEX): Likewise.
14313 (UNSPEC_DSCLI): Likewise.
14314 (UNSPEC_DSCRI): Likewise.
14315 (D64_D128): Likewise.
14316 (dfp_suffix): Likewise.
14317 (dfp_ddedpd_<mode>): Likewise.
14318 (dfp_denbcd_<mode>): Likewise.
14319 (dfp_dxex_<mode>): Likewise.
14320 (dfp_diex_<mode>): Likewise.
14321 (dfp_dscli_<mode>): Likewise.
14322 (dfp_dscri_<mode>): Likewise.
14324 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
14326 (UNSPEC_CDTBCD): Likewise.
14327 (UNSPEC_CBCDTD): Likewise.
14328 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
14329 (UNSPEC_DIVEO): Likewise.
14330 (UNSPEC_DIVEU): Likewise.
14331 (UNSPEC_DIVEUO): Likewise.
14332 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
14333 pack/unpack 128-bit types.
14334 (UNSPEC_PACK_128BIT): Likewise.
14335 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
14336 (udiv<mode>3): Use idiv_ldiv mode attribute.
14337 (div<mode>3): Likewise.
14338 (addg6s): Add new BCD builtin functions.
14339 (cdtbcd): Likewise.
14340 (cbcdtd): Likewise.
14341 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
14342 (div_extend): Likewise.
14343 (div<div_extend>_<mode>"): Likewise.
14344 (FP128_64): Add support for new builtin functions to pack/unpack
14346 (unpack<mode>): Likewise.
14347 (unpacktf_0): Likewise.
14348 (unpacktf_1): Likewise.
14349 (unpack<mode>_dm): Likewise.
14350 (unpack<mode>_nodm): Likewise.
14351 (pack<mode>): Likewise.
14352 (unpackv1ti): Likewise.
14353 (packv1ti): Likewise.
14355 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
14357 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
14360 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14362 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14363 * gimplify.c (omp_is_private): Change last argument's type to int.
14364 Only diagnose lastprivate if the simd argument is 1, only diagnose
14365 linear if the simd argument is 2.
14366 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14367 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14368 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14369 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14370 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14371 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14372 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14373 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14374 * tree-nested.c (convert_nonlocal_omp_clauses,
14375 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14377 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14380 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14383 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14385 * flag-types.h (enum ivar_visibility): Add.
14387 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14389 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14390 function * argument.
14392 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14394 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14396 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14397 Tom de Vries <tom@codesourcery.com>
14399 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14400 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14402 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14403 * emit-rtl.c (try_split): Same.
14405 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14406 Tom de Vries <tom@codesourcery.com>
14408 * common.opt (fuse-caller-save): New option.
14410 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14412 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14413 elements for big-endian.
14415 2014-04-24 Richard Biener <rguenther@suse.de>
14417 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14418 during TER and instead use the sepops interface for expanding
14419 non-GIMPLE_SINGLE_RHS.
14421 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14423 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14424 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14426 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14428 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14429 assembler 64-bit option.
14430 * configure: Regenerate.
14432 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14434 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14435 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14436 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14437 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14438 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14440 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14442 * config/aarch64/aarch64-builtins.c
14443 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14444 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14445 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14446 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14448 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14449 (Vrevsuff): New mode attribute.
14451 2014-04-24 Terry Guo <terry.guo@arm.com>
14453 * config/arm/arm.h (machine_function): Define variable
14454 after_arm_reorg here.
14455 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14456 (arm_split_constant): Update the way to access variable
14458 (arm_reorg): Ditto.
14459 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14461 2014-04-23 Tom de Vries <tom@codesourcery.com>
14463 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14465 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14467 * is-a.h: Update comments to reflect the following changes to the
14468 "pointerness" of the API, making the template parameter match the
14469 return type, allowing use of is-a.h with typedefs of pointers.
14470 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14471 that the return type matches the parameter to the is_a_helper.
14473 (dyn_cast): Likewise.
14475 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14476 pointer from the is-a.h API.
14478 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14479 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14481 (is_a_helper <varpool_node>::test): Likewise, convert to...
14482 (is_a_helper <varpool_node *>::test): ...this.
14484 (varpool_first_variable): Update for removal of implicit pointer
14485 from the is-a.h API.
14486 (varpool_next_variable): Likewise.
14487 (varpool_first_static_initializer): Likewise.
14488 (varpool_next_static_initializer): Likewise.
14489 (varpool_first_defined_variable): Likewise.
14490 (varpool_next_defined_variable): Likewise.
14491 (cgraph_first_defined_function): Likewise.
14492 (cgraph_next_defined_function): Likewise.
14493 (cgraph_first_function): Likewise.
14494 (cgraph_next_function): Likewise.
14495 (cgraph_first_function_with_gimple_body): Likewise.
14496 (cgraph_next_function_with_gimple_body): Likewise.
14497 (cgraph_alias_target): Likewise.
14498 (varpool_alias_target): Likewise.
14499 (cgraph_function_or_thunk_node): Likewise.
14500 (varpool_variable_node): Likewise.
14501 (symtab_real_symbol_p): Likewise.
14502 * cgraphunit.c (referred_to_p): Likewise.
14503 (analyze_functions): Likewise.
14504 (handle_alias_pairs): Likewise.
14505 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14506 * gimple-ssa.h (gimple_vuse_op): Likewise.
14507 (gimple_vdef_op): Likewise.
14508 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14509 * gimple.c (gimple_build_asm_1): Likewise.
14510 (gimple_build_try): Likewise.
14511 (gimple_build_resx): Likewise.
14512 (gimple_build_eh_dispatch): Likewise.
14513 (gimple_build_omp_for): Likewise.
14514 (gimple_omp_for_set_clauses): Likewise.
14516 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14517 (is_a_helper <gimple_statement_asm *>::test): ...this.
14518 (is_a_helper <gimple_statement_bind>::test): Convert to...
14519 (is_a_helper <gimple_statement_bind *>::test): ...this.
14520 (is_a_helper <gimple_statement_call>::test): Convert to...
14521 (is_a_helper <gimple_statement_call *>::test): ...this.
14522 (is_a_helper <gimple_statement_catch>::test): Convert to...
14523 (is_a_helper <gimple_statement_catch *>::test): ...this.
14524 (is_a_helper <gimple_statement_resx>::test): Convert to...
14525 (is_a_helper <gimple_statement_resx *>::test): ...this.
14526 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14527 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14528 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14529 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14530 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14531 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14532 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14533 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14534 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14535 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14536 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14537 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14538 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14539 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14540 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14541 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14542 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14543 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14544 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14545 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14546 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14547 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14548 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14549 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14550 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14551 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14552 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14553 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14554 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14555 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14556 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14557 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14558 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14559 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14560 (is_a_helper <gimple_statement_phi>::test): Convert to...
14561 (is_a_helper <gimple_statement_phi *>::test): ...this.
14562 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14563 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14564 (is_a_helper <gimple_statement_try>::test): Convert to...
14565 (is_a_helper <gimple_statement_try *>::test): ...this.
14566 (is_a_helper <gimple_statement_wce>::test): Convert to...
14567 (is_a_helper <gimple_statement_wce *>::test): ...this.
14568 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14569 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14570 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14571 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14572 (is_a_helper <const gimple_statement_call>::test): Convert to...
14573 (is_a_helper <const gimple_statement_call *>::test): ...this.
14574 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14575 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14576 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14577 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14578 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14579 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14580 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14581 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14582 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14584 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14586 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14588 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14590 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14591 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14592 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14594 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14595 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14597 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14598 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14599 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14600 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14601 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14602 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14604 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14605 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14606 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14607 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14609 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14610 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14611 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14612 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14613 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14614 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14615 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14616 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14617 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14618 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14619 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14620 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14621 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14622 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14623 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14624 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14626 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14628 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14629 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14631 (gimple_use_ops): Update for removal of implicit pointer from the
14633 (gimple_set_use_ops): Likewise.
14634 (gimple_vuse): Likewise.
14635 (gimple_vdef): Likewise.
14636 (gimple_vuse_ptr): Likewise.
14637 (gimple_vdef_ptr): Likewise.
14638 (gimple_set_vuse): Likewise.
14639 (gimple_set_vdef): Likewise.
14640 (gimple_omp_return_set_lhs): Likewise.
14641 (gimple_omp_return_lhs): Likewise.
14642 (gimple_omp_return_lhs_ptr): Likewise.
14643 (gimple_call_fntype): Likewise.
14644 (gimple_call_set_fntype): Likewise.
14645 (gimple_call_set_internal_fn): Likewise.
14646 (gimple_call_use_set): Likewise.
14647 (gimple_call_clobber_set): Likewise.
14648 (gimple_bind_vars): Likewise.
14649 (gimple_bind_set_vars): Likewise.
14650 (gimple_bind_body_ptr): Likewise.
14651 (gimple_bind_set_body): Likewise.
14652 (gimple_bind_add_stmt): Likewise.
14653 (gimple_bind_block): Likewise.
14654 (gimple_bind_set_block): Likewise.
14655 (gimple_asm_ninputs): Likewise.
14656 (gimple_asm_noutputs): Likewise.
14657 (gimple_asm_nclobbers): Likewise.
14658 (gimple_asm_nlabels): Likewise.
14659 (gimple_asm_input_op): Likewise.
14660 (gimple_asm_input_op_ptr): Likewise.
14661 (gimple_asm_output_op): Likewise.
14662 (gimple_asm_output_op_ptr): Likewise.
14663 (gimple_asm_set_output_op): Likewise.
14664 (gimple_asm_clobber_op): Likewise.
14665 (gimple_asm_set_clobber_op): Likewise.
14666 (gimple_asm_label_op): Likewise.
14667 (gimple_asm_set_label_op): Likewise.
14668 (gimple_asm_string): Likewise.
14669 (gimple_catch_types): Likewise.
14670 (gimple_catch_types_ptr): Likewise.
14671 (gimple_catch_handler_ptr): Likewise.
14672 (gimple_catch_set_types): Likewise.
14673 (gimple_catch_set_handler): Likewise.
14674 (gimple_eh_filter_types): Likewise.
14675 (gimple_eh_filter_types_ptr): Likewise.
14676 (gimple_eh_filter_failure_ptr): Likewise.
14677 (gimple_eh_filter_set_types): Likewise.
14678 (gimple_eh_filter_set_failure): Likewise.
14679 (gimple_eh_must_not_throw_fndecl): Likewise.
14680 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14681 (gimple_eh_else_n_body_ptr): Likewise.
14682 (gimple_eh_else_e_body_ptr): Likewise.
14683 (gimple_eh_else_set_n_body): Likewise.
14684 (gimple_eh_else_set_e_body): Likewise.
14685 (gimple_try_eval_ptr): Likewise.
14686 (gimple_try_cleanup_ptr): Likewise.
14687 (gimple_try_set_eval): Likewise.
14688 (gimple_try_set_cleanup): Likewise.
14689 (gimple_wce_cleanup_ptr): Likewise.
14690 (gimple_wce_set_cleanup): Likewise.
14691 (gimple_phi_capacity): Likewise.
14692 (gimple_phi_num_args): Likewise.
14693 (gimple_phi_result): Likewise.
14694 (gimple_phi_result_ptr): Likewise.
14695 (gimple_phi_set_result): Likewise.
14696 (gimple_phi_arg): Likewise.
14697 (gimple_phi_set_arg): Likewise.
14698 (gimple_resx_region): Likewise.
14699 (gimple_resx_set_region): Likewise.
14700 (gimple_eh_dispatch_region): Likewise.
14701 (gimple_eh_dispatch_set_region): Likewise.
14702 (gimple_omp_critical_name): Likewise.
14703 (gimple_omp_critical_name_ptr): Likewise.
14704 (gimple_omp_critical_set_name): Likewise.
14705 (gimple_omp_for_clauses): Likewise.
14706 (gimple_omp_for_clauses_ptr): Likewise.
14707 (gimple_omp_for_set_clauses): Likewise.
14708 (gimple_omp_for_collapse): Likewise.
14709 (gimple_omp_for_index): Likewise.
14710 (gimple_omp_for_index_ptr): Likewise.
14711 (gimple_omp_for_set_index): Likewise.
14712 (gimple_omp_for_initial): Likewise.
14713 (gimple_omp_for_initial_ptr): Likewise.
14714 (gimple_omp_for_set_initial): Likewise.
14715 (gimple_omp_for_final): Likewise.
14716 (gimple_omp_for_final_ptr): Likewise.
14717 (gimple_omp_for_set_final): Likewise.
14718 (gimple_omp_for_incr): Likewise.
14719 (gimple_omp_for_incr_ptr): Likewise.
14720 (gimple_omp_for_set_incr): Likewise.
14721 (gimple_omp_for_pre_body_ptr): Likewise.
14722 (gimple_omp_for_set_pre_body): Likewise.
14723 (gimple_omp_parallel_clauses): Likewise.
14724 (gimple_omp_parallel_clauses_ptr): Likewise.
14725 (gimple_omp_parallel_set_clauses): Likewise.
14726 (gimple_omp_parallel_child_fn): Likewise.
14727 (gimple_omp_parallel_child_fn_ptr): Likewise.
14728 (gimple_omp_parallel_set_child_fn): Likewise.
14729 (gimple_omp_parallel_data_arg): Likewise.
14730 (gimple_omp_parallel_data_arg_ptr): Likewise.
14731 (gimple_omp_parallel_set_data_arg): Likewise.
14732 (gimple_omp_task_clauses): Likewise.
14733 (gimple_omp_task_clauses_ptr): Likewise.
14734 (gimple_omp_task_set_clauses): Likewise.
14735 (gimple_omp_task_child_fn): Likewise.
14736 (gimple_omp_task_child_fn_ptr): Likewise.
14737 (gimple_omp_task_set_child_fn): Likewise.
14738 (gimple_omp_task_data_arg): Likewise.
14739 (gimple_omp_task_data_arg_ptr): Likewise.
14740 (gimple_omp_task_set_data_arg): Likewise.
14741 (gimple_omp_taskreg_clauses): Likewise.
14742 (gimple_omp_taskreg_clauses_ptr): Likewise.
14743 (gimple_omp_taskreg_set_clauses): Likewise.
14744 (gimple_omp_taskreg_child_fn): Likewise.
14745 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14746 (gimple_omp_taskreg_set_child_fn): Likewise.
14747 (gimple_omp_taskreg_data_arg): Likewise.
14748 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14749 (gimple_omp_taskreg_set_data_arg): Likewise.
14750 (gimple_omp_task_copy_fn): Likewise.
14751 (gimple_omp_task_copy_fn_ptr): Likewise.
14752 (gimple_omp_task_set_copy_fn): Likewise.
14753 (gimple_omp_task_arg_size): Likewise.
14754 (gimple_omp_task_arg_size_ptr): Likewise.
14755 (gimple_omp_task_set_arg_size): Likewise.
14756 (gimple_omp_task_arg_align): Likewise.
14757 (gimple_omp_task_arg_align_ptr): Likewise.
14758 (gimple_omp_task_set_arg_align): Likewise.
14759 (gimple_omp_single_clauses): Likewise.
14760 (gimple_omp_single_clauses_ptr): Likewise.
14761 (gimple_omp_single_set_clauses): Likewise.
14762 (gimple_omp_target_clauses): Likewise.
14763 (gimple_omp_target_clauses_ptr): Likewise.
14764 (gimple_omp_target_set_clauses): Likewise.
14765 (gimple_omp_target_child_fn): Likewise.
14766 (gimple_omp_target_child_fn_ptr): Likewise.
14767 (gimple_omp_target_set_child_fn): Likewise.
14768 (gimple_omp_target_data_arg): Likewise.
14769 (gimple_omp_target_data_arg_ptr): Likewise.
14770 (gimple_omp_target_set_data_arg): Likewise.
14771 (gimple_omp_teams_clauses): Likewise.
14772 (gimple_omp_teams_clauses_ptr): Likewise.
14773 (gimple_omp_teams_set_clauses): Likewise.
14774 (gimple_omp_sections_clauses): Likewise.
14775 (gimple_omp_sections_clauses_ptr): Likewise.
14776 (gimple_omp_sections_set_clauses): Likewise.
14777 (gimple_omp_sections_control): Likewise.
14778 (gimple_omp_sections_control_ptr): Likewise.
14779 (gimple_omp_sections_set_control): Likewise.
14780 (gimple_omp_for_set_cond): Likewise.
14781 (gimple_omp_for_cond): Likewise.
14782 (gimple_omp_atomic_store_set_val): Likewise.
14783 (gimple_omp_atomic_store_val): Likewise.
14784 (gimple_omp_atomic_store_val_ptr): Likewise.
14785 (gimple_omp_atomic_load_set_lhs): Likewise.
14786 (gimple_omp_atomic_load_lhs): Likewise.
14787 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14788 (gimple_omp_atomic_load_set_rhs): Likewise.
14789 (gimple_omp_atomic_load_rhs): Likewise.
14790 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14791 (gimple_omp_continue_control_def): Likewise.
14792 (gimple_omp_continue_control_def_ptr): Likewise.
14793 (gimple_omp_continue_set_control_def): Likewise.
14794 (gimple_omp_continue_control_use): Likewise.
14795 (gimple_omp_continue_control_use_ptr): Likewise.
14796 (gimple_omp_continue_set_control_use): Likewise.
14797 (gimple_transaction_body_ptr): Likewise.
14798 (gimple_transaction_label): Likewise.
14799 (gimple_transaction_label_ptr): Likewise.
14800 (gimple_transaction_set_body): Likewise.
14801 (gimple_transaction_set_label): Likewise.
14803 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14804 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14805 * ipa-ref.c (ipa_record_reference): Likewise.
14806 * ipa-reference.c (analyze_function): Likewise.
14807 (ipa_reference_write_optimization_summary): Likewise.
14808 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14809 (address_taken_from_non_vtable_p): Likewise.
14810 (comdat_can_be_unshared_p_1): Likewise.
14811 * lto-cgraph.c (lto_output_ref): Likewise.
14812 (add_references): Likewise.
14813 (compute_ltrans_boundary): Likewise.
14814 (output_symtab): Likewise.
14815 (input_ref): Likewise.
14816 (input_cgraph_1): Likewise.
14817 (output_cgraph_opt_summary): Likewise.
14818 * lto-streamer-out.c (lto_output): Likewise.
14819 (output_symbol_p): Likewise.
14820 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14821 (lsei_start_function_in_partition): Likewise.
14822 (lsei_next_variable_in_partition): Likewise.
14823 (lsei_start_variable_in_partition): Likewise.
14824 * symtab.c (insert_to_assembler_name_hash): Likewise.
14825 (unlink_from_assembler_name_hash): Likewise.
14826 (symtab_unregister_node): Likewise.
14827 (symtab_remove_node): Likewise.
14828 (dump_symtab_node): Likewise.
14829 (verify_symtab_base): Likewise.
14830 (verify_symtab_node): Likewise.
14831 (symtab_make_decl_local): Likewise.
14832 (symtab_alias_ultimate_target): Likewise.
14833 (symtab_resolve_alias): Likewise.
14834 (symtab_get_symbol_partitioning_class): Likewise.
14835 * tree-phinodes.c (allocate_phi_node): Likewise.
14836 (reserve_phi_args_for_new_edge): Likewise.
14837 (remove_phi_args): Likewise.
14838 * varpool.c (varpool_node_for_asm): Likewise.
14839 (varpool_remove_unreferenced_decls): Likewise.
14841 2014-04-23 Jeff Law <law@redhat.com>
14843 PR tree-optimization/60902
14844 * tree-ssa-threadedge.c
14845 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14846 invalidate outputs from statements that do not produce useful
14847 outputs for threading.
14849 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14851 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14852 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14853 machine descriptions for Stack Smashing Protector.
14855 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14857 * aarch64.md (<optab>_rol<mode>3): New pattern.
14858 (<optab>_rolsi3_uxtw): Likewise.
14859 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14861 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14863 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14864 (arm_cortex_a12_tune): Likewise.
14866 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14868 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14870 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14872 * config/arm/arm.md (arm_rev16si2): New pattern.
14873 (arm_rev16si2_alt): Likewise.
14874 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14876 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14878 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14879 (rev16<mode>2_alt): Likewise.
14880 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14881 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14882 (aarch_rev16_shleft_mask_imm_p): Likewise.
14883 (aarch_rev16_p_1): Likewise.
14884 (aarch_rev16_p): Likewise.
14885 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14886 (aarch_rev16_shright_mask_imm_p): Likewise.
14887 (aarch_rev16_shleft_mask_imm_p): Likewise.
14889 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14891 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14892 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14894 (cortex_a53_extra_costs): Likewise.
14895 (cortex_a57_extra_costs): Likewise.
14896 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14897 (cortexa7_extra_costs): Likewise.
14898 (cortexa8_extra_costs): Likewise.
14899 (cortexa12_extra_costs): Likewise.
14900 (cortexa15_extra_costs): Likewise.
14901 (v7m_extra_costs): Likewise.
14902 (arm_new_rtx_costs): Handle BSWAP.
14904 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14906 * config/arm/arm.c (cortexa8_extra_costs): New table.
14907 (arm_cortex_a8_tune): New tuning struct.
14908 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14910 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14912 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14914 2014-04-23 Richard Biener <rguenther@suse.de>
14916 * Makefile.in (OBJS): Remove loop-unswitch.o.
14917 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14918 * passes.def (pass_rtl_unswitch): Likewise.
14919 * loop-init.c (gate_rtl_unswitch): Likewise.
14920 (rtl_unswitch): Likewise.
14921 (pass_data_rtl_unswitch): Likewise.
14922 (pass_rtl_unswitch): Likewise.
14923 (make_pass_rtl_unswitch): Likewise.
14924 * rtl.h (reversed_condition): Likewise.
14925 (compare_and_jump_seq): Likewise.
14926 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14928 * loop-unroll.c (compare_and_jump_seq): Likewise.
14930 2014-04-23 Richard Biener <rguenther@suse.de>
14932 PR tree-optimization/60903
14933 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14934 commented code block.
14935 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14936 loop flags to newly created BBs and edges.
14938 2014-04-23 Nick Clifton <nickc@redhat.com>
14940 * config/msp430/msp430.c (msp430_handle_option): Move function
14942 (msp430_option_override): Simplify mcu and mcpu option handling.
14943 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14944 support for -mhwmult command line option.
14945 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14946 -mhwmult command line option.
14947 (msp430_hwmult_enabled): Delete.
14948 (msp43o_output_labelref): Add support for -mhwmult command line option.
14949 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14950 (umulsidi3): Likewise.
14951 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14952 (mcpu, mlarge, msmall): Likewise.
14953 (mhwmult): New option.
14954 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14956 (msp430_is_f5_mcu): Remove prototype.
14957 (msp430_use_f5_series_hwmult): Add prototype.
14958 * config/msp430/msp430-opts.h: New file.
14959 * common/config/msp430: New directory.
14960 * common/config/msp430/msp430-common.c: New file.
14961 * config.gcc (msp430): Remove target_has_targetm_common.
14962 * doc/invoke.texi: Document -mhwmult command line option.
14964 2014-04-23 Nick Clifton <nickc@redhat.com>
14966 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14967 default-manifest.o if it can be found in the search path.
14968 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14970 2014-04-23 Terry Guo <terry.guo@arm.com>
14972 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14974 2014-04-23 Richard Biener <rguenther@suse.de>
14976 PR middle-end/60895
14977 * tree-inline.c (declare_return_variable): Use mark_addressable.
14979 2014-04-23 Richard Biener <rguenther@suse.de>
14981 PR middle-end/60891
14982 * loop-init.c (loop_optimizer_init): Make sure to apply
14983 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14985 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14988 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14990 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14991 if flag_sanitize_undefined_trap_on_error.
14992 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14993 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14994 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14995 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14996 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14997 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14998 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14999 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
15000 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
15001 * ubsan.c (ubsan_instrument_unreachable): Return
15002 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
15003 (ubsan_expand_null_ifn): Emit __builtin_trap ()
15004 if flag_sanitize_undefined_trap_on_error and
15005 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
15006 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15007 instrument_bool_enum_load): Emit __builtin_trap () if
15008 flag_sanitize_undefined_trap_on_error and
15009 __builtin_handle_*_abort () if !flag_sanitize_recover.
15010 * doc/invoke.texi (-fsanitize-recover,
15011 -fsanitize-undefined-trap-on-error): Document.
15013 2014-04-22 Christian Bruel <christian.bruel@st.com>
15015 * config/sh/sh.md (mov<mode>): Replace movQIHI.
15016 Force immediates to SImode.
15018 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
15020 * config/nios2/nios2.md (UNSPEC_ROUND): New.
15021 (lroundsfsi2): New.
15022 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15023 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15024 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15025 (nios2_fpu_insn): Add entry for round.
15026 (N2FPU_NO_ERRNO_P): Define.
15027 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15029 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
15031 2014-04-22 Richard Henderson <rth@redhat.com>
15033 * config/aarch64/aarch64 (addti3, subti3): New expanders.
15034 (add<GPI>3_compare0): Remove leading * from name.
15035 (add<GPI>3_carryin): Likewise.
15036 (sub<GPI>3_compare0): Likewise.
15037 (sub<GPI>3_carryin): Likewise.
15038 (<su_optab>mulditi3): New expander.
15039 (multi3): New expander.
15040 (madd<GPI>): Remove leading * from name.
15042 2014-04-22 Martin Jambor <mjambor@suse.cz>
15044 * cgraphclones.c (cgraph_function_versioning): Copy
15045 ipa_transforms_to_apply instead of asserting it is empty.
15047 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
15050 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
15051 on count_exp to get mode.
15053 2014-04-22 Andrew Pinski <apinski@cavium.com>
15055 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15056 Handle TLS for ILP32.
15057 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
15058 (tlsie_small_<mode>): this and handle PTR.
15059 (tlsie_small_sidi): New pattern.
15060 (tlsle_small): Change to an expand to handle ILP32.
15061 (tlsle_small_<mode>): New pattern.
15062 (tlsdesc_small): Rename to ...
15063 (tlsdesc_small_<mode>): this and handle PTR.
15065 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15067 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
15069 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15071 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15072 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
15073 (aarch64_types_signed_poly_qualifiers): Likewise.
15074 (aarch64_types_unsigned_signed_qualifiers): Likewise.
15075 (aarch64_types_poly_signed_qualifiers): Likewise.
15076 (TYPES_REINTERP_SS): Type macro added.
15077 (TYPES_REINTERP_SU): Likewise.
15078 (TYPES_REINTERP_SP): Likewise.
15079 (TYPES_REINTERP_US): Likewise.
15080 (TYPES_REINTERP_PS): Likewise.
15081 (aarch64_fold_builtin): New expression folding added.
15082 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
15083 Declarations removed.
15084 (REINTERP_SS): Declarations added.
15085 (REINTERP_US): Likewise.
15086 (REINTERP_PS): Likewise.
15087 (REINTERP_SU): Likewise.
15088 (REINTERP_SP): Likewise.
15089 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
15090 (vreinterpretq_p8_f64): Likewise.
15091 (vreinterpret_p16_f64): Likewise.
15092 (vreinterpretq_p16_f64): Likewise.
15093 (vreinterpret_f32_f64): Likewise.
15094 (vreinterpretq_f32_f64): Likewise.
15095 (vreinterpret_f64_f32): Likewise.
15096 (vreinterpret_f64_p8): Likewise.
15097 (vreinterpret_f64_p16): Likewise.
15098 (vreinterpret_f64_s8): Likewise.
15099 (vreinterpret_f64_s16): Likewise.
15100 (vreinterpret_f64_s32): Likewise.
15101 (vreinterpret_f64_s64): Likewise.
15102 (vreinterpret_f64_u8): Likewise.
15103 (vreinterpret_f64_u16): Likewise.
15104 (vreinterpret_f64_u32): Likewise.
15105 (vreinterpret_f64_u64): Likewise.
15106 (vreinterpretq_f64_f32): Likewise.
15107 (vreinterpretq_f64_p8): Likewise.
15108 (vreinterpretq_f64_p16): Likewise.
15109 (vreinterpretq_f64_s8): Likewise.
15110 (vreinterpretq_f64_s16): Likewise.
15111 (vreinterpretq_f64_s32): Likewise.
15112 (vreinterpretq_f64_s64): Likewise.
15113 (vreinterpretq_f64_u8): Likewise.
15114 (vreinterpretq_f64_u16): Likewise.
15115 (vreinterpretq_f64_u32): Likewise.
15116 (vreinterpretq_f64_u64): Likewise.
15117 (vreinterpret_s64_f64): Likewise.
15118 (vreinterpretq_s64_f64): Likewise.
15119 (vreinterpret_u64_f64): Likewise.
15120 (vreinterpretq_u64_f64): Likewise.
15121 (vreinterpret_s8_f64): Likewise.
15122 (vreinterpretq_s8_f64): Likewise.
15123 (vreinterpret_s16_f64): Likewise.
15124 (vreinterpretq_s16_f64): Likewise.
15125 (vreinterpret_s32_f64): Likewise.
15126 (vreinterpretq_s32_f64): Likewise.
15127 (vreinterpret_u8_f64): Likewise.
15128 (vreinterpretq_u8_f64): Likewise.
15129 (vreinterpret_u16_f64): Likewise.
15130 (vreinterpretq_u16_f64): Likewise.
15131 (vreinterpret_u32_f64): Likewise.
15132 (vreinterpretq_u32_f64): Likewise.
15134 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15136 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15137 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
15138 (vreinterpret_p8_s8): Likewise.
15139 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
15140 (vreinterpret_p8_s16): Likewise.
15141 (vreinterpret_p8_s32): Likewise.
15142 (vreinterpret_p8_s64): Likewise.
15143 (vreinterpret_p8_f32): Likewise.
15144 (vreinterpret_p8_u8): Likewise.
15145 (vreinterpret_p8_u16): Likewise.
15146 (vreinterpret_p8_u32): Likewise.
15147 (vreinterpret_p8_u64): Likewise.
15148 (vreinterpret_p8_p16): Likewise.
15149 (vreinterpretq_p8_s8): Likewise.
15150 (vreinterpretq_p8_s16): Likewise.
15151 (vreinterpretq_p8_s32): Likewise.
15152 (vreinterpretq_p8_s64): Likewise.
15153 (vreinterpretq_p8_f32): Likewise.
15154 (vreinterpretq_p8_u8): Likewise.
15155 (vreinterpretq_p8_u16): Likewise.
15156 (vreinterpretq_p8_u32): Likewise.
15157 (vreinterpretq_p8_u64): Likewise.
15158 (vreinterpretq_p8_p16): Likewise.
15159 (vreinterpret_p16_s8): Likewise.
15160 (vreinterpret_p16_s16): Likewise.
15161 (vreinterpret_p16_s32): Likewise.
15162 (vreinterpret_p16_s64): Likewise.
15163 (vreinterpret_p16_f32): Likewise.
15164 (vreinterpret_p16_u8): Likewise.
15165 (vreinterpret_p16_u16): Likewise.
15166 (vreinterpret_p16_u32): Likewise.
15167 (vreinterpret_p16_u64): Likewise.
15168 (vreinterpret_p16_p8): Likewise.
15169 (vreinterpretq_p16_s8): Likewise.
15170 (vreinterpretq_p16_s16): Likewise.
15171 (vreinterpretq_p16_s32): Likewise.
15172 (vreinterpretq_p16_s64): Likewise.
15173 (vreinterpretq_p16_f32): Likewise.
15174 (vreinterpretq_p16_u8): Likewise.
15175 (vreinterpretq_p16_u16): Likewise.
15176 (vreinterpretq_p16_u32): Likewise.
15177 (vreinterpretq_p16_u64): Likewise.
15178 (vreinterpretq_p16_p8): Likewise.
15179 (vreinterpret_f32_s8): Likewise.
15180 (vreinterpret_f32_s16): Likewise.
15181 (vreinterpret_f32_s32): Likewise.
15182 (vreinterpret_f32_s64): Likewise.
15183 (vreinterpret_f32_u8): Likewise.
15184 (vreinterpret_f32_u16): Likewise.
15185 (vreinterpret_f32_u32): Likewise.
15186 (vreinterpret_f32_u64): Likewise.
15187 (vreinterpret_f32_p8): Likewise.
15188 (vreinterpret_f32_p16): Likewise.
15189 (vreinterpretq_f32_s8): Likewise.
15190 (vreinterpretq_f32_s16): Likewise.
15191 (vreinterpretq_f32_s32): Likewise.
15192 (vreinterpretq_f32_s64): Likewise.
15193 (vreinterpretq_f32_u8): Likewise.
15194 (vreinterpretq_f32_u16): Likewise.
15195 (vreinterpretq_f32_u32): Likewise.
15196 (vreinterpretq_f32_u64): Likewise.
15197 (vreinterpretq_f32_p8): Likewise.
15198 (vreinterpretq_f32_p16): Likewise.
15199 (vreinterpret_s64_s8): Likewise.
15200 (vreinterpret_s64_s16): Likewise.
15201 (vreinterpret_s64_s32): Likewise.
15202 (vreinterpret_s64_f32): Likewise.
15203 (vreinterpret_s64_u8): Likewise.
15204 (vreinterpret_s64_u16): Likewise.
15205 (vreinterpret_s64_u32): Likewise.
15206 (vreinterpret_s64_u64): Likewise.
15207 (vreinterpret_s64_p8): Likewise.
15208 (vreinterpret_s64_p16): Likewise.
15209 (vreinterpretq_s64_s8): Likewise.
15210 (vreinterpretq_s64_s16): Likewise.
15211 (vreinterpretq_s64_s32): Likewise.
15212 (vreinterpretq_s64_f32): Likewise.
15213 (vreinterpretq_s64_u8): Likewise.
15214 (vreinterpretq_s64_u16): Likewise.
15215 (vreinterpretq_s64_u32): Likewise.
15216 (vreinterpretq_s64_u64): Likewise.
15217 (vreinterpretq_s64_p8): Likewise.
15218 (vreinterpretq_s64_p16): Likewise.
15219 (vreinterpret_u64_s8): Likewise.
15220 (vreinterpret_u64_s16): Likewise.
15221 (vreinterpret_u64_s32): Likewise.
15222 (vreinterpret_u64_s64): Likewise.
15223 (vreinterpret_u64_f32): Likewise.
15224 (vreinterpret_u64_u8): Likewise.
15225 (vreinterpret_u64_u16): Likewise.
15226 (vreinterpret_u64_u32): Likewise.
15227 (vreinterpret_u64_p8): Likewise.
15228 (vreinterpret_u64_p16): Likewise.
15229 (vreinterpretq_u64_s8): Likewise.
15230 (vreinterpretq_u64_s16): Likewise.
15231 (vreinterpretq_u64_s32): Likewise.
15232 (vreinterpretq_u64_s64): Likewise.
15233 (vreinterpretq_u64_f32): Likewise.
15234 (vreinterpretq_u64_u8): Likewise.
15235 (vreinterpretq_u64_u16): Likewise.
15236 (vreinterpretq_u64_u32): Likewise.
15237 (vreinterpretq_u64_p8): Likewise.
15238 (vreinterpretq_u64_p16): Likewise.
15239 (vreinterpret_s8_s16): Likewise.
15240 (vreinterpret_s8_s32): Likewise.
15241 (vreinterpret_s8_s64): Likewise.
15242 (vreinterpret_s8_f32): Likewise.
15243 (vreinterpret_s8_u8): Likewise.
15244 (vreinterpret_s8_u16): Likewise.
15245 (vreinterpret_s8_u32): Likewise.
15246 (vreinterpret_s8_u64): Likewise.
15247 (vreinterpret_s8_p8): Likewise.
15248 (vreinterpret_s8_p16): Likewise.
15249 (vreinterpretq_s8_s16): Likewise.
15250 (vreinterpretq_s8_s32): Likewise.
15251 (vreinterpretq_s8_s64): Likewise.
15252 (vreinterpretq_s8_f32): Likewise.
15253 (vreinterpretq_s8_u8): Likewise.
15254 (vreinterpretq_s8_u16): Likewise.
15255 (vreinterpretq_s8_u32): Likewise.
15256 (vreinterpretq_s8_u64): Likewise.
15257 (vreinterpretq_s8_p8): Likewise.
15258 (vreinterpretq_s8_p16): Likewise.
15259 (vreinterpret_s16_s8): Likewise.
15260 (vreinterpret_s16_s32): Likewise.
15261 (vreinterpret_s16_s64): Likewise.
15262 (vreinterpret_s16_f32): Likewise.
15263 (vreinterpret_s16_u8): Likewise.
15264 (vreinterpret_s16_u16): Likewise.
15265 (vreinterpret_s16_u32): Likewise.
15266 (vreinterpret_s16_u64): Likewise.
15267 (vreinterpret_s16_p8): Likewise.
15268 (vreinterpret_s16_p16): Likewise.
15269 (vreinterpretq_s16_s8): Likewise.
15270 (vreinterpretq_s16_s32): Likewise.
15271 (vreinterpretq_s16_s64): Likewise.
15272 (vreinterpretq_s16_f32): Likewise.
15273 (vreinterpretq_s16_u8): Likewise.
15274 (vreinterpretq_s16_u16): Likewise.
15275 (vreinterpretq_s16_u32): Likewise.
15276 (vreinterpretq_s16_u64): Likewise.
15277 (vreinterpretq_s16_p8): Likewise.
15278 (vreinterpretq_s16_p16): Likewise.
15279 (vreinterpret_s32_s8): Likewise.
15280 (vreinterpret_s32_s16): Likewise.
15281 (vreinterpret_s32_s64): Likewise.
15282 (vreinterpret_s32_f32): Likewise.
15283 (vreinterpret_s32_u8): Likewise.
15284 (vreinterpret_s32_u16): Likewise.
15285 (vreinterpret_s32_u32): Likewise.
15286 (vreinterpret_s32_u64): Likewise.
15287 (vreinterpret_s32_p8): Likewise.
15288 (vreinterpret_s32_p16): Likewise.
15289 (vreinterpretq_s32_s8): Likewise.
15290 (vreinterpretq_s32_s16): Likewise.
15291 (vreinterpretq_s32_s64): Likewise.
15292 (vreinterpretq_s32_f32): Likewise.
15293 (vreinterpretq_s32_u8): Likewise.
15294 (vreinterpretq_s32_u16): Likewise.
15295 (vreinterpretq_s32_u32): Likewise.
15296 (vreinterpretq_s32_u64): Likewise.
15297 (vreinterpretq_s32_p8): Likewise.
15298 (vreinterpretq_s32_p16): Likewise.
15299 (vreinterpret_u8_s8): Likewise.
15300 (vreinterpret_u8_s16): Likewise.
15301 (vreinterpret_u8_s32): Likewise.
15302 (vreinterpret_u8_s64): Likewise.
15303 (vreinterpret_u8_f32): Likewise.
15304 (vreinterpret_u8_u16): Likewise.
15305 (vreinterpret_u8_u32): Likewise.
15306 (vreinterpret_u8_u64): Likewise.
15307 (vreinterpret_u8_p8): Likewise.
15308 (vreinterpret_u8_p16): Likewise.
15309 (vreinterpretq_u8_s8): Likewise.
15310 (vreinterpretq_u8_s16): Likewise.
15311 (vreinterpretq_u8_s32): Likewise.
15312 (vreinterpretq_u8_s64): Likewise.
15313 (vreinterpretq_u8_f32): Likewise.
15314 (vreinterpretq_u8_u16): Likewise.
15315 (vreinterpretq_u8_u32): Likewise.
15316 (vreinterpretq_u8_u64): Likewise.
15317 (vreinterpretq_u8_p8): Likewise.
15318 (vreinterpretq_u8_p16): Likewise.
15319 (vreinterpret_u16_s8): Likewise.
15320 (vreinterpret_u16_s16): Likewise.
15321 (vreinterpret_u16_s32): Likewise.
15322 (vreinterpret_u16_s64): Likewise.
15323 (vreinterpret_u16_f32): Likewise.
15324 (vreinterpret_u16_u8): Likewise.
15325 (vreinterpret_u16_u32): Likewise.
15326 (vreinterpret_u16_u64): Likewise.
15327 (vreinterpret_u16_p8): Likewise.
15328 (vreinterpret_u16_p16): Likewise.
15329 (vreinterpretq_u16_s8): Likewise.
15330 (vreinterpretq_u16_s16): Likewise.
15331 (vreinterpretq_u16_s32): Likewise.
15332 (vreinterpretq_u16_s64): Likewise.
15333 (vreinterpretq_u16_f32): Likewise.
15334 (vreinterpretq_u16_u8): Likewise.
15335 (vreinterpretq_u16_u32): Likewise.
15336 (vreinterpretq_u16_u64): Likewise.
15337 (vreinterpretq_u16_p8): Likewise.
15338 (vreinterpretq_u16_p16): Likewise.
15339 (vreinterpret_u32_s8): Likewise.
15340 (vreinterpret_u32_s16): Likewise.
15341 (vreinterpret_u32_s32): Likewise.
15342 (vreinterpret_u32_s64): Likewise.
15343 (vreinterpret_u32_f32): Likewise.
15344 (vreinterpret_u32_u8): Likewise.
15345 (vreinterpret_u32_u16): Likewise.
15346 (vreinterpret_u32_u64): Likewise.
15347 (vreinterpret_u32_p8): Likewise.
15348 (vreinterpret_u32_p16): Likewise.
15349 (vreinterpretq_u32_s8): Likewise.
15350 (vreinterpretq_u32_s16): Likewise.
15351 (vreinterpretq_u32_s32): Likewise.
15352 (vreinterpretq_u32_s64): Likewise.
15353 (vreinterpretq_u32_f32): Likewise.
15354 (vreinterpretq_u32_u8): Likewise.
15355 (vreinterpretq_u32_u16): Likewise.
15356 (vreinterpretq_u32_u64): Likewise.
15357 (vreinterpretq_u32_p8): Likewise.
15358 (vreinterpretq_u32_p16): Likewise.
15360 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15362 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15364 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15366 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15367 (vqnegd_s64): Likewise.
15368 (vqabs_s64): Likewise.
15369 (vqabsd_s64): Likewise.
15371 2014-04-22 Richard Henderson <rth@redhat.com>
15373 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15374 computation to the top of the loop.
15376 2014-04-22 Renlin <renlin.li@arm.com>
15377 Jiong Wang <jiong.wang@arm.com>
15379 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15380 * config/aarch64/aarch64.c (aarch64_layout_frame)
15381 (aarch64_initial_elimination_offset): Likewise.
15383 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15385 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15388 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15390 * machmode.h (bitwise_mode_for_mode): Declare.
15391 * stor-layout.h (bitwise_type_for_mode): Likewise.
15392 * stor-layout.c (bitwise_mode_for_mode): New function.
15393 (bitwise_type_for_mode): Likewise.
15394 * builtins.c (fold_builtin_memory_op): Use it instead of
15395 int_mode_for_mode and build_nonstandard_integer_type.
15397 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15399 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15400 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15401 (*-*-solaris2*): Simplify.
15402 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15403 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15404 *-*-solaris2.9* handling.
15406 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15408 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15409 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15410 handling, simplify.
15411 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15412 * configure: Regenerate.
15414 * config/i386/sol2-9.h: Remove.
15416 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15417 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15418 Remove Solaris 9 references.
15420 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15422 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15423 (floatuns<GPI:mode><GPF:mode>2): Remove.
15424 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15425 and floatuns conversions.
15426 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15427 and floatuns conversions.
15428 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15429 (w1,w2): New mode attributes for inequal width conversions.
15431 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15433 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15434 the output asm format.
15436 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15438 * config/aarch64/aarch64-simd.md
15439 (aarch64_cm<optab>di): Always split.
15440 (*aarch64_cm<optab>di): New.
15441 (aarch64_cmtstdi): Always split.
15442 (*aarch64_cmtstdi): New.
15444 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15446 PR tree-optimization/60823
15447 * omp-low.c (ipa_simd_modify_function_body): Go through
15448 all SSA_NAMEs and for those refering to vector arguments
15449 which are going to be replaced adjust SSA_NAME_VAR and,
15450 if it is a default definition, change it into a non-default
15451 definition assigned at the beginning of function from new_decl.
15452 (ipa_simd_modify_stmt_ops): Rewritten.
15453 * tree-dfa.c (set_ssa_default_def): When removing default def,
15454 check for NULL loc instead of NULL *loc.
15456 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15458 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15459 restrictions on core registers for DImode values in Thumb2.
15461 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15463 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15464 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15466 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15468 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15469 (*iordi_notzesidi_di): Likewise.
15470 (*iordi_notsesidi_di): Likewise.
15472 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15474 * config/arm/arm-protos.h (tune_params): New struct members.
15475 * config/arm/arm.c: Initialise tune_params per processor.
15476 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15477 for speed, based on new tune_params.
15479 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15481 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15482 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15483 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15484 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15485 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15486 (vrnda_f64): Likewise.
15487 (vrndi_f64): Likewise.
15488 (vrndm_f64): Likewise.
15489 (vrndn_f64): Likewise.
15490 (vrndp_f64): Likewise.
15491 (vrndx_f64): Likewise.
15493 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15495 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15496 GET_MODE_SIZE argument is enum machine_mode.
15498 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15501 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15502 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15504 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15506 PR middle-end/60281
15507 * asan.c (asan_emit_stack_protection): Force the base to align to
15508 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15509 appropriate bits if STRICT_ALIGNMENT.
15510 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15512 (expand_used_vars): Leave a space in the stack frame for alignment
15513 if STRICT_ALIGNMENT.
15515 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15517 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15519 (gimple_store_p): Likewise.
15520 (gimple_assign_load_p): Likewise.
15521 (gimple_assign_cast_p): Likewise.
15522 (gimple_clobber_p): Likewise.
15524 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15525 rather than a gimple.
15526 (gimple_assign_cast_p): Likewise.
15528 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15531 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15532 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15534 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15535 more debug information for E500 if -mdebug=reg.
15537 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15540 * config/i386/i386.c (ix86_expand_builtin)
15541 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15542 register for target RTX.
15543 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15545 2014-04-18 Cong Hou <congh@google.com>
15547 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15548 the widen-mult pattern by handling two operands with different sizes,
15549 and operands whose size is smaller than half of the result type.
15551 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15553 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15554 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15555 (do_estimate_edge_time): Compute it.
15556 * ipa-inline.c (want_inline_small_function_p): Bypass
15557 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15559 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15561 * ipa-inline.c (spec_rem): New static variable.
15562 (dump_overall_stats): New function.
15563 (dump_inline_stats): New function.
15565 2014-04-18 Richard Henderson <rth@redhat.com>
15567 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15568 to GET_MODE_SIZE, not a reg_class_t.
15570 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15572 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15573 (vsx_xxmrglw_<mode>): Likewise.
15575 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15578 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15579 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15580 (rs6000_init_hard_regno_mode_ok): Likewise.
15582 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15584 * ipa-inline.c (inline_small_functions): Account only non-cold
15586 * doc/invoke.texi (inline-unit-growth): Update documentation.
15588 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15590 * config/rs6000/rs6000.md (addti3, subti3): New.
15592 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15595 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15596 comment. Check optimize_insn_for_size_p instead of
15597 optimize_insn_for_speed_p.
15599 2014-04-17 Martin Jambor <mjambor@suse.cz>
15601 * gimple-iterator.c (gsi_start_edge): New function.
15602 * gimple-iterator.h (gsi_start_edge): Declare.
15603 * tree-sra.c (single_non_eh_succ): New function.
15604 (disqualify_ops_if_throwing_stmt): Renamed to
15605 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15606 having one non-EH successor BB.
15607 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15608 generate loads into replacements.
15609 (sra_modify_assign): Likewise and and also use the simple path for
15611 (sra_modify_function_body): Commit statements on edges.
15613 2014-04-17 Richard Biener <rguenther@suse.de>
15615 PR middle-end/60849
15616 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15617 comparison results and add clarifying comment.
15619 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15621 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15622 (blank_mode): Initialize it.
15623 (emit_mode_size_inline, emit_mode_nunits_inline,
15624 emit_mode_inner_inline): New functions.
15625 (emit_insn_modes_h): Call them and surround their output with
15626 #if GCC_VERSION >= 4001 ... #endif.
15627 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15628 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15629 mode_* arrays if the argument is __builtin_constant_p.
15630 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15631 is enum machine_mode.
15633 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15635 * passes.c (opt_pass::execute): Adjust.
15636 (pass_manager::execute_pass_mode_switching): Likewise.
15637 (early_local_passes::execute): Likewise.
15638 (execute_one_pass): Pass cfun to the pass's execute method.
15639 * tree-pass.h (opt_pass::execute): Add function * argument.
15640 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15641 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15642 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15643 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15644 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15645 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15646 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15647 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15648 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15649 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15650 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15651 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15652 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15653 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15654 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15655 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15656 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15657 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15658 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15659 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15660 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15661 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15662 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15663 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15664 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15665 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15666 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15667 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15668 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15671 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15673 * passes.c (opt_pass::gate): Take function * argument.
15674 (gate_all_early_local_passes): Merge into
15675 (early_local_passes::gate): this.
15676 (gate_all_early_optimizations): Merge into
15677 (all_early_optimizations::gate): this.
15678 (gate_all_optimizations): Mege into
15679 (all_optimizations::gate): this.
15680 (gate_all_optimizations_g): Merge into
15681 (all_optimizations_g::gate): this.
15682 (gate_rest_of_compilation): Mege into
15683 (rest_of_compilation::gate): this.
15684 (gate_postreload): Merge into
15685 (postreload::gate): this.
15686 (dump_one_pass): Pass cfun to the pass's gate method.
15687 (execute_ipa_summary_passes): Likewise.
15688 (execute_one_pass): Likewise.
15689 (ipa_write_summaries_2): Likewise.
15690 (ipa_write_optimization_summaries_1): Likewise.
15691 (ipa_read_summaries_1): Likewise.
15692 (ipa_read_optimization_summaries_1): Likewise.
15693 (execute_ipa_stmt_fixups): Likewise.
15694 * tree-pass.h (opt_pass::gate): Add function * argument.
15695 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15696 combine-stack-adj.c, combine.c, compare-elim.c,
15697 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15698 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15699 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15700 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15701 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15702 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15703 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15704 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15705 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15706 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15707 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15708 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15709 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15710 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15711 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15712 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15713 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15714 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15715 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15716 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15717 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15718 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15719 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15720 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15721 var-tracking.c, vtable-verify.c, web.c: Adjust.
15723 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15725 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15726 * configure: Regenerate.
15728 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15730 * passes.c (dump_one_pass): don't check pass->has_gate.
15731 (execute_ipa_summary_passes): Likewise.
15732 (execute_one_pass): Likewise.
15733 (ipa_write_summaries_2): Likewise.
15734 (ipa_write_optimization_summaries_1): Likewise.
15735 (ipa_read_optimization_summaries_1): Likewise.
15736 (execute_ipa_stmt_fixups): Likewise.
15737 * tree-pass.h (pass_data::has_gate): Remove.
15738 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15739 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15740 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15741 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15742 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15743 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15744 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15745 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15746 gimple-low.c, gimple-ssa-isolate-paths.c,
15747 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15748 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15749 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15750 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15751 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15752 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15753 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15754 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15755 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15756 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15757 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15758 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15759 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15760 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15761 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15762 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15763 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15764 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15765 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15766 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15767 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15768 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15771 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15773 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15775 * passes.c (pass_manager::register_dump_files_1): Merge into
15776 (pass_manager::register_dump_files): this, and remove its handling of
15777 properties since the pass always has the properties anyway.
15778 (pass_manager::pass_manager): Adjust.
15780 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15782 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15783 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15784 dealing with properties.
15785 (pass_manager::register_dump_files): Adjust.
15787 2014-03-20 Mark Wielaard <mjw@redhat.com>
15789 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15790 then represent the bound as normal constant value.
15792 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15795 Forward port from 4.8 branch
15796 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15798 * config/i386/bmiintrin.h (_blsi_u32): New.
15799 (_blsi_u64): Ditto.
15800 (_blsr_u32): Ditto.
15801 (_blsr_u64): Ditto.
15802 (_blsmsk_u32): Ditto.
15803 (_blsmsk_u64): Ditto.
15804 (_tzcnt_u32): Ditto.
15805 (_tzcnt_u64): Ditto.
15807 2014-04-17 Kito Cheng <kito@0xlab.org>
15809 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15811 2014-04-17 Richard Biener <rguenther@suse.de>
15813 PR middle-end/60849
15814 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15815 boolean results for comparisons.
15817 2014-04-17 Richard Biener <rguenther@suse.de>
15819 PR tree-optimization/60836
15820 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15821 initial PHI args to be gimple values.
15823 2014-04-17 Richard Biener <rguenther@suse.de>
15825 PR tree-optimization/60841
15826 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15827 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15828 of stmts to SLP build.
15829 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15830 (vect_analyze_slp): Likewise.
15831 (vect_analyze_slp_instance): Likewise.
15832 (vect_build_slp_tree): Limit overall SLP tree growth.
15833 * tree-vectorizer.h (vect_analyze_data_refs,
15834 vect_analyze_slp): Adjust prototypes.
15836 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15838 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15841 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15843 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15844 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15845 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15846 for TARGET_SLOW_PSHUFB
15848 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15850 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15851 * config/i386/i386.c (intel_cost): Ditto.
15853 2014-04-17 Joey Ye <joey.ye@arm.com>
15855 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15857 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15859 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15860 with -fuse-profile.
15862 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15864 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15865 (type_all_derivations_known_p): New predicate.
15866 (type_all_ctors_visible_p): New predicate.
15867 (type_possibly_instantiated_p): New predicate.
15868 (get_odr_type): Compute all_derivations_known.
15869 (dump_odr_type): Dump the flag.
15870 (maybe_record_type): Cleanup.
15871 (record_target_from_binfo): Add bases_to_consider array;
15872 record bases for types w/o instances and skip CXX destructor.
15873 (possible_polymorphic_call_targets_1): Add bases_to_consider
15874 and consider_construction parameters; check if type may have instance.
15875 (get_polymorphic_call_info): Set maybe_in_construction to true
15876 when we know nothing.
15877 (record_targets_from_bases): Skip CXX destructors; they are
15878 never called for types in construction.
15879 (possible_polymorphic_call_targets): Do not record target when
15880 type may not have instance.
15882 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15885 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15886 external aliases alive, too.
15888 2014-04-16 Andrew Pinski <apinski@cavium.com>
15890 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15893 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15895 * final.c (compute_alignments): Do not apply loop alignment to a block
15896 falling through to the exit.
15898 2014-04-16 Catherine Moore <clm@codesourcery.com>
15900 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15901 Adjust constraints for microMIPS store patterns.
15903 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15905 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15907 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15909 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15910 (append_use): Run at -O0.
15911 (append_vdef): Likewise.
15912 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15913 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15915 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15917 PR tree-optimization/60844
15918 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15919 (propagate_op_to_single_use, remove_visited_stmt_chain,
15920 linearize_expr, repropagate_negates, reassociate_bb): Use it
15921 instead of gsi_remove.
15923 2014-04-16 Martin Jambor <mjambor@suse.cz>
15925 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15926 ipa_transforms_to_apply.
15927 (cgraph_function_versioning): Assert that old_node has empty
15928 ipa_transforms_to_apply.
15929 * trans-mem.c (ipa_tm_create_version): Likewise.
15930 * tree-inline.c (tree_function_versioning): Do not duplicate
15931 ipa_transforms_to_apply.
15933 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15936 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15938 Pass necessary as flags on 64-bit Solaris/x86.
15939 Use lowercase relocs for x86_64-*-*.
15940 * configure: Regenerate.
15942 2014-04-15 Jan Hubicka <jh@suse.cz>
15944 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15945 (maybe_record_node, likely_target_p): Use it.
15947 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15950 Revert following patch
15952 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15955 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15956 software floating point or no floating point registers, do not
15957 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15958 in GPRs that occurs after we tested for GPRs that would never be
15961 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15962 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15963 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15964 specifically allow DDmode, since that does not use the SPE SIMD
15967 2014-03-21 Mark Wielaard <mjw@redhat.com>
15969 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15970 as unsigned or int depending on type and value used.
15972 2014-04-15 Richard Biener <rguenther@suse.de>
15974 PR rtl-optimization/56965
15975 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15976 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15978 * alias.c (true_dependence_1): Do not call
15979 nonoverlapping_component_refs_p.
15980 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15981 nonoverlapping_component_refs_p.
15982 (indirect_refs_may_alias_p): Likewise.
15984 2014-04-15 Teresa Johnson <tejohnson@google.com>
15986 * cfg.c (dump_bb_info): Fix flags check.
15987 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15989 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15991 PR rtl-optimization/60663
15992 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15995 2014-04-15 Richard Biener <rguenther@suse.de>
15997 * lto-streamer.h (LTO_major_version): Bump to 4.
15999 2014-04-15 Richard Biener <rguenther@suse.de>
16001 * common.opt (lto_partition_model): New enum.
16002 (flto-partition=): Merge separate options with a single with argument,
16003 add -flto-partition=one support.
16004 * flag-types.h (enum lto_partition_model): Declare.
16005 * opts.c (finish_options): Remove duplicate -flto-partition=
16007 * lto-wrapper.c (run_gcc): Adjust.
16009 2014-04-15 Richard Biener <rguenther@suse.de>
16011 * alias.c (ncr_compar): New function.
16012 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
16014 2014-04-15 Richard Biener <rguenther@suse.de>
16016 * alias.c (record_component_aliases): Do not walk BINFOs.
16018 2014-04-15 Richard Biener <rguenther@suse.de>
16020 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16021 Add struct function argument and adjust.
16022 (find_func_aliases_for_call): Likewise.
16023 (find_func_aliases): Likewise.
16024 (find_func_clobbers): Likewise.
16025 (intra_create_variable_infos): Likewise.
16026 (compute_points_to_sets): Likewise.
16027 (ipa_pta_execute): Adjust. Do not push/pop cfun.
16029 2014-04-15 Richard Biener <rguenther@suse.de>
16031 * tree.c (iterative_hash_expr): Use enum tree_code_class
16032 to store TREE_CODE_CLASS.
16033 (tree_block): Likewise.
16034 (tree_set_block): Likewise.
16035 * tree.h (fold_build_pointer_plus_loc): Use
16036 convert_to_ptrofftype_loc.
16038 2014-04-15 Jakub Jelinek <jakub@redhat.com>
16041 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
16044 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
16046 * cfgloop.h (struct loop): Move force_vectorize down.
16047 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
16048 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
16049 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
16050 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
16051 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
16052 * tree-core.h (enum annot_expr_kind): Add new kind values.
16053 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
16054 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
16056 * tree.def (ANNOTATE_EXPR): Tweak comment.
16058 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16060 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
16063 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
16065 * tree.h (TYPE_IDENTIFIER): Declare.
16066 * tree.c (subrange_type_for_debug_p): Use it.
16067 * godump.c (go_format_type): Likewise.
16068 * dwarf2out.c (is_cxx_auto, modified_type_die,
16069 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
16070 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
16072 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16075 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
16077 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
16079 * config/i386/i386.c (examine_argument): Return bool. Return true if
16080 parameter should be passed in memory.
16081 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
16082 (construct_container): Update calls to examine_argument.
16083 (function_arg_advance_64): Ditto.
16084 (return_in_memory_32): Merge with ix86_return_in_memory.
16085 (return_in_memory_64): Ditto.
16086 (return_in_memory_ms_64): Ditto.
16088 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16090 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
16091 * coverage.c (coverage_compute_profile_id): Handle externally visible
16094 2014-04-14 Martin Jambor <mjambor@suse.cz>
16096 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
16097 DECL_DISREGARD_INLINE_LIMITS functions.
16099 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16102 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
16104 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16107 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
16108 optimize_insn_for_speed_p instead of
16109 optimize_function_for_speed_p.
16111 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
16113 * doc/invoke.texi (free): Document AArch64.
16115 2014-04-14 Richard Biener <rguenther@suse.de>
16117 PR tree-optimization/60042
16118 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
16119 (insert_into_preds_of_block): Do not prevent PHI insertion
16120 for REFERENCE exprs here ...
16121 (eliminate_dom_walker::before_dom_children): ... but prevent
16122 their use here under similar conditions when applied to the
16123 IL after PRE optimizations.
16125 2014-04-14 Richard Biener <rguenther@suse.de>
16127 * passes.def: Move early points-to after early SRA.
16129 2014-04-14 Richard Biener <rguenther@suse.de>
16131 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
16132 check for which sign-changes we allow when forwarding
16133 a converted value into a switch.
16135 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16137 * stor-layout.c (place_field): Finalize non-constant offset for the
16140 2014-04-14 Richard Biener <rguenther@suse.de>
16142 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
16144 (expand_switch_using_bit_tests_p): Likewise.
16145 (process_switch): Compute and pass on speed_p based on the
16147 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
16148 optimize_bb_for_speed_p.
16150 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16152 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
16153 * function.h (struct function): Rename has_force_vect_loops into
16154 has_force_vectorize_loops.
16155 * lto-streamer-in.c (input_cfg): Adjust for renaming.
16156 (input_struct_function_base): Likewise.
16157 * lto-streamer-out.c (output_cfg): Likewise.
16158 (output_struct_function_base): Likewise.
16159 * omp-low.c (expand_omp_simd): Likewise.
16160 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16161 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
16162 (version_loop_for_if_conversion): Likewise.
16163 (tree_if_conversion): Likewise.
16164 (main_tree_if_conversion): Likewise.
16165 (gate_tree_if_conversion): Likewise.
16166 * tree-inline.c (copy_loops): Likewise.
16167 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
16168 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
16169 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16170 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
16171 * tree-vectorizer.c (vectorize_loops): Likewise.
16172 * tree-vectorizer.h (unlimited_cost_model): Likewise.
16174 2014-04-14 Richard Biener <rguenther@suse.de>
16177 * lto-streamer-out.c (wrap_refs): New function.
16178 (lto_output): Wrap symbol references in global initializes in
16179 type-preserving MEM_REFs.
16181 2014-04-14 Christian Bruel <christian.bruel@st.com>
16183 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
16185 2014-04-14 Christian Bruel <christian.bruel@st.com>
16187 * config/sh/sh.md (setmemqi): New expand pattern.
16188 * config/sh/sh.h (CLEAR_RATIO): Define.
16189 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
16190 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
16192 2014-04-14 Richard Biener <rguenther@suse.de>
16194 PR middle-end/55022
16195 * fold-const.c (negate_expr_p): Don't negate directional rounding
16197 (fold_negate_expr): Likewise.
16199 2014-04-14 Richard Biener <rguenther@suse.de>
16201 PR tree-optimization/59817
16202 PR tree-optimization/60453
16203 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
16204 recursion to catch all CHRECs in the scalar evolution and restrict
16205 the predicate for the remains appropriately.
16207 2014-04-12 Catherine Moore <clm@codesourcery.com>
16209 * config/mips/constraints.md: Add new register constraint "kb".
16210 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
16211 (*movhi_internal): Likewise.
16212 (*movqi_internal): Likewise.
16213 * config/mips/mips.h (M16_STORE_REGS): New register class.
16214 (REG_CLASS_NAMES): Add M16_STORE_REGS.
16215 (REG_CLASS_CONTENTS): Likewise.
16216 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
16218 2014-04-11 Tobias Burnus <burnus@net-b.de>
16221 * doc/invoke.texi (-Wformat-signedness): Document it.
16222 (Wformat=2): Mention that this enables -Wformat-signedness.
16224 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16226 * common/config/epiphany/epiphany-common.c
16227 (epiphany_option_optimization_table): Enable section anchors by
16228 default at -O1 or higher.
16229 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
16230 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
16231 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
16232 carries no extra cost.
16233 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
16234 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
16235 * config/epiphany/predicates.md (memclob_operand): New predicate.
16236 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
16237 Use memclob_operand predicate and X constraint for operand 3.
16239 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16241 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
16242 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
16245 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16247 PR rtl-optimization/60651
16248 * mode-switching.c (optimize_mode_switching): Make sure to emit
16249 sets of a lower numbered entity before sets of a higher numbered
16250 entity to a mode of the same or lower priority.
16251 When creating a seginfo for a basic block that starts with a code
16252 label, move the insertion point past the code label.
16253 (new_seginfo): Document and enforce requirement that
16254 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
16255 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
16256 * doc/tm.texi: Regenerate.
16258 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
16261 * config/arc/arc.c (arc_save_restore): Fix assert typo.
16263 2013-04-11 Jakub Jelinek <jakub@redhat.com>
16265 * BASE-VER: Set to 4.10.0.
16267 2014-04-11 Tobias Burnus <burnus@net-b.de>
16270 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
16271 * doc/gcc.texi (Service): Update description in the @menu
16272 * doc/invoke.texi (Option Summary): Remove misplaced and
16275 2014-04-11 Steve Ellcey <sellcey@mips.com>
16276 Jakub Jelinek <jakub@redhat.com>
16278 PR middle-end/60556
16279 * expr.c (convert_move): Use emit_store_flag_force instead of
16280 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
16283 2014-04-11 Richard Biener <rguenther@suse.de>
16285 PR middle-end/60797
16286 * varasm.c (assemble_alias): Avoid endless error reporting
16287 recursion by setting TREE_ASM_WRITTEN.
16289 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16291 * config/s390/s390.md: Add a splitter for NOT rtx.
16293 2014-04-11 Jakub Jelinek <jakub@redhat.com>
16295 PR rtl-optimization/60663
16296 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
16298 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
16299 Jakub Jelinek <jakub@redhat.com>
16302 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
16303 flag from decl_node to node.
16305 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16308 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
16309 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
16310 ameliorating the cases where it can be.
16312 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
16315 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16317 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16318 (loadsync_<mode>): Change mode.
16319 (load_quadpti, store_quadpti): New.
16320 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16321 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16322 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
16324 2014-04-09 Cong Hou <congh@google.com>
16327 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
16330 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16332 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
16333 instead of vnor to exploit possible fusion opportunity in the
16335 (altivec_expand_vec_perm_const_le): Likewise.
16337 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16339 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16340 (loadsync_<mode>): Change mode.
16341 (load_quadpti, store_quadpti): New.
16342 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16343 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16345 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
16348 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
16349 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
16350 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
16352 2014-04-08 Richard Biener <rguenther@suse.de>
16354 PR middle-end/60706
16355 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
16356 a 64bit widest int print double-int similar to on HWI64 hosts.
16358 2014-04-08 Richard Biener <rguenther@suse.de>
16360 PR tree-optimization/60785
16361 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16362 default defs properly.
16364 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16366 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16367 (Weffc++): Likewise.
16369 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16371 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16372 set completep to false rather than true.
16374 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16377 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16378 ARM_TARGET2_DWARF_FORMAT.
16380 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16383 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16384 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16387 2014-04-07 Richard Biener <rguenther@suse.de>
16389 PR tree-optimization/60766
16390 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16391 (may_eliminate_iv): Convert cand_value_at result to desired type.
16393 2014-04-07 Jason Merrill <jason@redhat.com>
16396 * common.opt (-fno-gnu-unique): Add.
16397 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16399 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16401 * haifa-sched.c: Fix outdated function reference and minor
16402 grammar errors in introductory comment.
16404 2014-04-07 Richard Biener <rguenther@suse.de>
16406 PR middle-end/60750
16407 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16408 for noreturn calls.
16409 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16411 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16414 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16415 size accounting for thunks.
16416 (pa_asm_output_mi_thunk): Use final_start_function() and
16417 final_end_function() to output function start and end directives.
16419 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16421 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16422 device specific ISA/ feature information. Remove short_sp and
16423 errata_skip ds. Add avr_device_specific_features enum to have device
16425 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16426 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16427 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16428 updated device specific info.
16429 * config/avr/avr-mcus.def: Merge device specific details to
16430 dev_attribute field.
16431 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16433 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16434 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16435 assembler if RMW isa supported by current device.
16436 * config/avr/genmultilib.awk: Update as device info structure changed.
16437 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16439 2014-04-04 Cong Hou <congh@google.com>
16441 PR tree-optimization/60656
16442 * tree-vect-stmts.c (supportable_widening_operation):
16443 Fix a bug that elements in a vector with vect_used_by_reduction
16444 property are incorrectly reordered when the operation on it is not
16445 consistant with the one in reduction operation.
16447 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16449 PR rtl-optimization/60155
16450 * gcse.c (record_set_data): New function.
16451 (single_set_gcse): New function.
16452 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16453 (hoist_code): Likewise.
16454 (get_pressure_class_and_nregs): Likewise.
16456 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16458 * explow.c (probe_stack_range): Emit a final optimization blockage.
16460 2014-04-04 Anthony Green <green@moxielogic.com>
16462 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16465 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16468 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16469 flags are set only during streaming.
16470 * ipa.c (process_references, walk_polymorphic_call_targets,
16471 symtab_remove_unreachable_nodes): Drop bodies of always inline
16472 after early inlining.
16473 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16475 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16476 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16479 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16482 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16485 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16487 (cortex_a53_fdivd): Likewise.
16489 2014-04-04 Martin Jambor <mjambor@suse.cz>
16492 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16493 Adjust all callers.
16494 * cgraph.c (clone_of_p): Also return true if thunks match.
16495 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16496 cgraph_function_or_thunk_node and an obsolete comment.
16497 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16499 (build_function_decl_skip_args): Likewise.
16500 (set_new_clone_decl_and_node_flags): New function.
16501 (duplicate_thunk_for_node): Likewise.
16502 (redirect_edge_duplicating_thunks): Likewise.
16503 (cgraph_clone_node): New parameter args_to_skip, pass it to
16504 redirect_edge_duplicating_thunks which is called instead of
16505 cgraph_redirect_edge_callee.
16506 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16507 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16509 2014-04-04 Jeff Law <law@redhat.com>
16512 * config/arm/predicates.md (const_int_I_operand): New predicate.
16513 (const_int_M_operand): Similarly.
16514 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16516 (insv_t2, extv_reg, extzv_t2): Likewise.
16517 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16518 (pop_multiple_with_writeback_and_return): Likewise.
16519 (vfp_pop_multiple_with_writeback): Likewise
16521 2014-04-04 Richard Biener <rguenther@suse.de>
16524 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16525 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16527 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16528 * gimplify.c (gimple_add_tmp_var_fn): New function.
16529 * gimple-expr.h (create_tmp_reg_fn): Declare.
16530 * gimple-expr.c (create_tmp_reg_fn): New function.
16531 * gimple-low.c (record_vars_into): Don't change cfun.
16532 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16533 code generation without cfun.
16535 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16538 * Makefile.in (install-driver): Fix shell scripting.
16540 2014-04-03 Cong Hou <congh@google.com>
16542 PR tree-optimization/60505
16543 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16544 threshold of number of iterations below which no vectorization
16546 * tree-vect-loop.c (new_loop_vec_info):
16547 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16548 * tree-vect-loop.c (vect_analyze_loop_operations):
16549 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16550 * tree-vect-loop.c (vect_transform_loop):
16551 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16552 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16553 of iterations of the loop and see if we should build the epilogue.
16555 2014-04-03 Richard Biener <rguenther@suse.de>
16557 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16558 (streamer_tree_cache_create): Adjust.
16559 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16560 to allow optional nodes array.
16561 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16562 (streamer_tree_cache_append): Likewise.
16563 (streamer_tree_cache_create): Create nodes array optionally
16564 as specified by parameter.
16565 * lto-streamer-out.c (create_output_block): Avoid maintaining
16566 the node array in the writer cache.
16567 (DFS_write_tree): Remove assertion.
16568 (produce_asm_for_decls): Free the out decl state hash table early.
16569 * lto-streamer-in.c (lto_data_in_create): Adjust for
16570 streamer_tree_cache_create prototype change.
16572 2014-04-03 Richard Biener <rguenther@suse.de>
16574 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16575 set TREE_CHAIN to NULL_TREE.
16577 2014-04-03 Richard Biener <rguenther@suse.de>
16579 PR tree-optimization/60740
16580 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16581 over all GIMPLE_COND operands.
16583 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16585 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16586 (Weffc++): Remove Scott's numbering, merge lists and reference
16589 2014-04-03 Nick Clifton <nickc@redhat.com>
16591 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16594 2014-04-03 Martin Jambor <mjambor@suse.cz>
16596 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16597 mention gcc_unreachable before failing.
16598 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16601 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16604 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16605 inconsistent code and instead mark the context inconsistent.
16606 (possible_polymorphic_call_targets): For inconsistent contexts
16607 return empty complete list.
16609 2014-04-02 Anthony Green <green@moxielogic.com>
16611 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16612 (extendqisi2, extendhisi2): Define.
16613 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16614 (WCHAR_TYPE): Change to unsigned int.
16616 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16618 PR tree-optimization/60733
16619 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16620 insertion point for PHI candidates to be the end of the feeding
16621 block for the PHI argument.
16623 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16625 PR rtl-optimization/60650
16626 * lra-constraints.c (process_alt_operands): Decrease reject for
16627 earlyclobber matching.
16629 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16631 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16633 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16635 * config/spu/spu.c (pad_bb): Do not crash when the last
16636 insn is CODE_FOR_blockage.
16638 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16640 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16641 lies outside the target mode.
16643 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16646 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16647 software floating point or no floating point registers, do not
16648 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16649 in GPRs that occurs after we tested for GPRs that would never be
16652 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16653 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16654 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16655 specifically allow DDmode, since that does not use the SPE SIMD
16658 2014-04-02 Richard Biener <rguenther@suse.de>
16660 PR middle-end/60729
16661 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16662 MODE_INTs. Properly use negv_optab.
16663 (expand_abs): Likewise.
16665 2014-04-02 Richard Biener <rguenther@suse.de>
16668 * Makefile.in (install-driver): Guard extra installs with special
16671 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16673 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16674 Document vec_vgbbd.
16676 2014-04-01 Richard Henderson <rth@redhat.com>
16679 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16680 alternative enabled before register allocation.
16682 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16684 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16685 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16687 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16688 (nios2_got_address): Update nios2_large_got_address call site.
16689 (nios2_delegitimize_address): New function.
16690 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16691 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16692 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16694 2014-04-01 Martin Husemann <martin@duskware.de>
16696 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16699 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16701 PR rtl-optimization/60604
16702 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16703 check from register_operand.
16704 (register_operand): Redefine in terms of general_operand.
16705 (nonmemory_operand): Use register_operand for the non-constant cases.
16707 2014-04-01 Richard Biener <rguenther@suse.de>
16709 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16711 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16713 * doc/invoke.texi (mapp-regs): Clarify.
16715 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16717 * config/i386/avx512fintrin.h (__v32hi): Define type.
16718 (__v64qi): Likewise.
16719 (_mm512_set1_epi8): Define.
16720 (_mm512_set1_epi16): Define.
16721 (_mm512_set4_epi32): Define.
16722 (_mm512_set4_epi64): Define.
16723 (_mm512_set4_pd): Define.
16724 (_mm512_set4_ps): Define.
16725 (_mm512_setr4_epi64): Define.
16726 (_mm512_setr4_epi32): Define.
16727 (_mm512_setr4_pd): Define.
16728 (_mm512_setr4_ps): Define.
16729 (_mm512_setzero_epi32): Define.
16731 2014-03-31 Martin Jambor <mjambor@suse.cz>
16733 PR middle-end/60647
16734 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16735 callsite_arguments_match_p. Updated all callers. Also check types of
16736 corresponding formal parameters and actual arguments.
16737 (not_all_callers_have_enough_arguments_p) Renamed to
16738 some_callers_have_mismatched_arguments_p.
16740 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16742 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16744 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16747 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16750 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16752 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16753 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16755 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16756 Use FMAMODE_NOVF512 mode iterator.
16757 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16758 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16759 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16760 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16762 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16763 Use VF_128_256 mode iterator.
16764 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16767 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16769 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16770 static chain if needed.
16772 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16775 * lra-constraints.c (index_part_to_reg): New.
16776 (process_address): Use it.
16778 2014-03-27 Jeff Law <law@redhat.com>
16779 Jakub Jelinek <jakub@redhat.com>
16782 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16783 gen_rtx_{PLUS,MULT} to build up the address expression.
16785 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16786 creating non-canonical RTL.
16788 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16791 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16792 functions; reorganize to make cheap checks first.
16793 (inline_small_functions): Do not estimate growth when dumping;
16795 * ipa-inline.h (inline_summary): Add min_size.
16796 (growth_likely_positive): New function.
16797 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16798 (set_cond_stmt_execution_predicate): Cleanup.
16799 (estimate_edge_size_and_time): Compute min_size.
16800 (estimate_calls_size_and_time): Likewise.
16801 (estimate_node_size_and_time): Likewise.
16802 (inline_update_overall_summary): Update min_size.
16803 (do_estimate_edge_time): Likewise.
16804 (do_estimate_edge_size): Update.
16805 (do_estimate_edge_hints): Update.
16806 (growth_likely_positive): New function.
16808 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16811 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16812 also if addr has VOIDmode.
16814 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16816 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16817 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16819 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16820 instructions as well as AdvancedSIMD loads.
16822 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16824 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16825 Use crypto_aese type.
16826 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16827 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16828 crypto_aese, crypto_aesmc. Move to types.md.
16829 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16831 * config/arm/iterators.md (crypto_type): Likewise.
16833 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16835 * cgraph.c: Include expr.h and tree-dfa.h.
16836 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16839 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16842 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16843 regs from checking multi-reg pseudos.
16845 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16847 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16849 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16851 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16852 if it would clobber the stack pointer, even temporarily.
16854 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16856 * mode-switching.c: Make small adjustments to the top comment.
16858 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16860 * config/rs6000/constraints.md (wD constraint): New constraint to
16861 match the constant integer to get the top DImode/DFmode out of a
16862 vector in a VSX register.
16864 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16865 match the constant integer to get the top DImode/DFmode out of a
16866 vector in a VSX register.
16868 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16871 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16874 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16875 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16877 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16878 Optimize vec_extract of 64-bit values, where the value being
16879 extracted is in the top word, where we can use scalar
16880 instructions. Add direct move and store support. Combine the big
16881 endian/little endian vector select load support into a single insn.
16882 (vsx_extract_<mode>_internal1): Likewise.
16883 (vsx_extract_<mode>_internal2): Likewise.
16884 (vsx_extract_<mode>_load): Likewise.
16885 (vsx_extract_<mode>_store): Likewise.
16886 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16887 combined into vsx_extract_<mode>_load.
16888 (vsx_extract_<mode>_one_le): Likewise.
16890 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16891 define the top 64-bit vector element.
16893 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16896 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16897 Document vec_vbpermq builtin.
16900 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16901 enable use of xxsldwi and xxpermdi builtin functions.
16902 (vec_xxpermdi): Likewise.
16904 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16905 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16907 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16909 PR rtl-optimization/60650
16910 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16912 (find_spills_for): New.
16913 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16914 Spill all pseudos on the second iteration.
16916 2014-03-27 Marek Polacek <polacek@redhat.com>
16919 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16922 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16924 * config/s390/s390.c (s390_can_use_return_insn): Check for
16925 call-saved FPRs on 31 bit.
16927 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16929 PR middle-end/60682
16930 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16931 if they need regimplification, just drop them instead of
16932 calling gimple_regimplify_operands on them.
16934 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16937 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16938 (aarch64_frame_pointer_required): Adjust logic.
16939 (aarch64_can_eliminate): Adjust logic.
16940 (aarch64_override_options_after_change): Adjust logic.
16942 2014-03-27 Dehao Chen <dehao@google.com>
16944 * ipa-inline.c (early_inliner): Update node's inline info.
16946 2014-03-26 Dehao Chen <dehao@google.com>
16948 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16949 compiler inserted conditional jumps for NAN float check.
16951 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16953 * ubsan.h (ubsan_create_data): Change second argument's type
16954 to const location_t *.
16955 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16957 (ubsan_create_data): Change second argument to const location_t *PLOC.
16958 Create Loc field whenever PLOC is non-NULL.
16959 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16960 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16964 * real.c (real_to_integer2): Change type of low to UHWI.
16966 2014-03-26 Tobias Burnus <burnus@net-b.de>
16968 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16969 (CILK_SELF_SPECS): New define.
16970 (driver_self_specs): Use it.
16972 2014-03-26 Richard Biener <rguenther@suse.de>
16974 * tree-pretty-print.c (percent_K_format): Implement special
16975 case for LTO and its stripped down BLOCK tree.
16977 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16980 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16982 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16983 one range is range_int_cst_p, but not both, at least optimize
16984 addition/subtraction of 0 and multiplication by 0 or 1.
16985 * gimple-fold.c (gimple_fold_call): Fold
16986 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16987 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16988 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16990 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16992 PR rtl-optimization/60452
16993 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16994 <case REG>: Return 1 for invalid offsets from the frame pointer.
16996 2014-03-26 Marek Polacek <polacek@redhat.com>
16999 * doc/extend.texi (C Extensions): Mention variable-length arrays in
17002 2014-03-26 Marek Polacek <polacek@redhat.com>
17005 * doc/extend.texi (Designated Inits): Describe what happens to omitted
17008 2014-03-26 Marek Polacek <polacek@redhat.com>
17011 * ira-color.c (update_conflict_hard_regno_costs): Perform the
17012 multiplication in unsigned type.
17014 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17016 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
17018 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17020 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
17022 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17025 * cif-code.def (UNREACHABLE) New code.
17026 * ipa-inline.c (inline_small_functions): Skip edges to
17027 __builtlin_unreachable.
17028 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
17029 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
17030 predicate to __bulitin_unreachable.
17031 (set_cond_stmt_execution_predicate): Fix issue when
17032 invert_tree_comparison returns ERROR_MARK.
17033 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
17034 propagate to inline clones.
17035 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
17037 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
17038 * cgraphclones.c (cgraph_clone_node): If call destination is already
17039 ureachable, do not redirect it back.
17040 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
17043 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17045 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
17046 Do not modify inline clones.
17048 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17050 * config/i386/i386.md (general_sext_operand): New mode attr.
17051 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
17052 don't generate (sign_extend (const_int)).
17053 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
17054 operands[2]. Use We constraint instead of <i> and
17055 <general_sext_operand> predicate instead of <general_operand>.
17056 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
17057 * config/i386/constraints.md (We): New constraint.
17058 * config/i386/predicates.md (x86_64_sext_operand,
17059 sext_operand): New predicates.
17061 2014-03-25 Martin Jambor <mjambor@suse.cz>
17064 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
17065 inconsistent devirtualizations to __builtin_unreachable.
17067 2014-03-25 Marek Polacek <polacek@redhat.com>
17070 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
17072 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
17074 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
17075 order of elements for big-endian.
17077 2014-03-25 Richard Biener <rguenther@suse.de>
17079 PR middle-end/60635
17080 * gimplify-me.c (gimple_regimplify_operands): Update the
17083 2014-03-25 Martin Jambor <mjambor@suse.cz>
17086 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
17087 (lto_output_varpool_node): Likewise.
17088 (input_overwrite_node): Likewise.
17089 (input_varpool_node): Likewise.
17091 2014-03-25 Richard Biener <rguenther@suse.de>
17093 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
17094 (run_gcc): Likewise.
17096 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17098 * combine.c (simplify_compare_const): Add MODE argument.
17099 Handle mode_width 0 as very large mode_width.
17100 (try_combine, simplify_comparison): Adjust callers.
17102 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
17103 type to avoid signed integer overflow.
17104 * explow.c (plus_constant): Likewise.
17106 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17108 * doc/generic.texi: Correct typos.
17110 2014-03-24 Tobias Burnus <burnus@net-b.de>
17112 * doc/invoke.texi (-flto): Expand section about
17113 using static libraries with LTO.
17115 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17117 PR rtl-optimization/60501
17118 * optabs.def (addptr3_optab): New optab.
17119 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
17120 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
17121 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
17123 * lra.c (emit_add3_insn): Use the addptr pattern if available.
17125 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
17127 2014-03-24 Ulrich Drepper <drepper@gmail.com>
17129 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
17132 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
17133 (_mm256_undefined_ps): Define.
17134 (_mm256_undefined_pd): Define.
17135 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
17136 (_mm_undefined_pd): Define.
17137 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
17138 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
17139 (_mm512_undefined_ps): Define.
17140 (_mm512_undefined_pd): Define.
17141 Use _mm*_undefined_*.
17142 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
17144 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
17146 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
17147 (lshr_simd): DI mode added.
17148 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
17149 (aarch64_ushr_simddi): Likewise.
17150 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
17151 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
17152 (vshrd_n_u64): Likewise.
17154 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17156 * Makefile.in (s-macro_list): Depend on cc1.
17158 2014-03-23 Teresa Johnson <tejohnson@google.com>
17160 * ipa-utils.c (ipa_print_order): Use specified dump file.
17162 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
17164 PR rtl-optimization/60601
17165 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
17167 * gcc.c (eval_spec_function): Initialize save_growing_value.
17169 2014-03-22 Jakub Jelinek <jakub@redhat.com>
17172 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
17173 code == MINUS_EXPR, never swap op0 with op1.
17175 * toplev.c (init_local_tick): Avoid signed integer multiplication
17177 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
17178 shift by first operand's bitsize.
17180 2014-03-21 Jakub Jelinek <jakub@redhat.com>
17183 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
17184 redefine to 1 or 0.
17185 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
17186 TARGET_ISA_64BIT_P(x).
17188 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17190 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
17191 pattern for vector nor instead of subtract from splat(-1).
17192 (altivec_expand_vec_perm_const_le): Likewise.
17194 2014-03-21 Richard Henderson <rth@twiddle.net>
17197 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
17198 related insns after epilogue_completed.
17200 2014-03-21 Martin Jambor <mjambor@suse.cz>
17203 * cgraph.h (symtab_node): New flag body_removed.
17204 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
17205 when removing bodies.
17206 * symtab.c (dump_symtab_base): Dump body_removed flag.
17207 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
17208 had their bodies removed.
17210 2014-03-21 Martin Jambor <mjambor@suse.cz>
17213 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
17216 2014-03-21 Richard Biener <rguenther@suse.de>
17218 PR tree-optimization/60577
17219 * tree-core.h (struct tree_base): Document nothrow_flag use
17220 in DECL_NONALIASED.
17221 * tree.h (DECL_NONALIASED): New.
17222 (may_be_aliased): Adjust.
17223 * coverage.c (build_var): Set DECL_NONALIASED.
17225 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17227 * expr.c (expand_expr_real_1): Remove outdated comment.
17229 2014-03-20 Jakub Jelinek <jakub@redhat.com>
17231 PR middle-end/60597
17232 * ira.c (adjust_cleared_regs): Call copy_rtx on
17233 *reg_equiv[REGNO (loc)].src_p before passing it to
17234 simplify_replace_fn_rtx.
17237 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
17238 into CONST, put pic register as first operand of PLUS. Use
17239 gen_const_mem for both 32-bit and 64-bit PIC got loads.
17241 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17243 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
17245 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17247 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
17248 around for store forwarding issue in the FPU on the UT699.
17249 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
17250 loads and operations if -mfix-ut699 is specified.
17251 (divtf3_hq): Tweak attribute.
17252 (sqrttf2_hq): Likewise.
17254 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17256 * calls.c (store_one_arg): Remove incorrect const qualification on the
17257 type of the temporary.
17258 * cfgexpand.c (expand_return): Likewise.
17259 * expr.c (expand_constructor): Likewise.
17260 (expand_expr_real_1): Likewise.
17262 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17264 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
17267 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17270 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
17272 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
17274 * config/arm/aarch-common-protos.h
17275 (alu_cost_table): Fix spelling of "extend".
17276 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
17278 2014-03-19 Richard Biener <rguenther@suse.de>
17280 PR middle-end/60553
17281 * tree-core.h (tree_type_common): Re-order pointer members
17282 to reduce recursion depth during GC walks.
17284 2014-03-19 Marek Polacek <polacek@redhat.com>
17287 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
17288 before accessing it.
17290 2014-03-19 Richard Biener <rguenther@suse.de>
17293 * lto-streamer-in.c (input_function): In WPA stage do not drop
17296 2014-03-19 Jakub Jelinek <jakub@redhat.com>
17298 PR tree-optimization/60559
17299 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
17300 with build_zero_cst assignment.
17302 2014-03-18 Kai Tietz <ktietz@redhat.com>
17304 PR rtl-optimization/56356
17305 * sdbout.c (sdbout_parms): Verify that parms'
17306 incoming argument is valid.
17307 (sdbout_reg_parms): Likewise.
17309 2014-03-18 Richard Henderson <rth@redhat.com>
17312 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
17313 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
17314 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
17316 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
17318 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
17319 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
17320 Italicize plugin event names in description. Explain that
17321 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
17322 Remind that no GCC functions should be called after PLUGIN_FINISH.
17323 Explain what pragmas with expansion are.
17325 2014-03-18 Martin Liska <mliska@suse.cz>
17327 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
17328 gimple call statement is update.
17329 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
17330 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
17332 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17335 * ubsan.c (ubsan_instrument_unreachable): Call
17336 initialize_sanitizer_builtins.
17337 (ubsan_pass): Likewise.
17340 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
17341 varpool_finalize_decl instead of rest_of_decl_compilation.
17343 2014-03-18 Richard Biener <rguenther@suse.de>
17345 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
17346 by using bitmap_and_compl instead of bitmap_and_compl_into.
17347 (df_rd_transfer_function): Likewise.
17349 2014-03-18 Richard Biener <rguenther@suse.de>
17351 * doc/lto.texi (fresolution): Fix typo.
17353 2014-03-18 Richard Biener <rguenther@suse.de>
17355 * doc/invoke.texi (flto): Update for changes in 4.9.
17357 2014-03-18 Richard Biener <rguenther@suse.de>
17359 * doc/loop.texi: Remove section on the removed lambda framework.
17360 Update loop docs with recent changes in preserving loop structure.
17362 2014-03-18 Richard Biener <rguenther@suse.de>
17364 * doc/lto.texi (-fresolution): Document.
17366 2014-03-18 Richard Biener <rguenther@suse.de>
17368 * doc/contrib.texi: Adjust my name.
17370 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17373 * internal-fn.c: Include diagnostic-core.h.
17374 (expand_BUILTIN_EXPECT): New function.
17375 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17376 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17377 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17378 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17379 IFN_BUILTIN_EXPECT.
17380 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17381 Revert 3 argument __builtin_expect code.
17382 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17383 * gimple-fold.c (gimple_fold_call): Likewise.
17384 * tree.h (fold_builtin_expect): New prototype.
17385 * builtins.c (build_builtin_expect_predicate): Add predictor
17386 argument, if non-NULL, create 3 argument __builtin_expect.
17387 (fold_builtin_expect): No longer static. Add ARG2 argument,
17388 pass it through to build_builtin_expect_predicate.
17389 (fold_builtin_2): Adjust caller.
17390 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17391 * internal-fn.def (BUILTIN_EXPECT): New.
17393 2014-03-18 Tobias Burnus <burnus@net-b.de>
17396 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17397 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17398 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17400 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17403 * predict.c (combine_predictions_for_bb): Fix up formatting.
17404 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17405 fill what it points to if non-NULL.
17406 (tree_predict_by_opcode): Adjust caller, use the predictor.
17407 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17409 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17411 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17412 proper constant for the store mode.
17414 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17416 * symtab.c (change_decl_assembler_name): Fix transparent alias
17417 chain construction.
17419 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17421 * config/aarch64/aarch64.c: Correct the comments about the
17422 aarch64 stack layout.
17424 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17426 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17427 check for GF_OMP_FOR_KIND_FOR.
17429 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17431 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17432 ymm and zmm register names.
17434 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17437 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17438 note creation for the 2010-08-31 changes.
17440 2014-03-17 Marek Polacek <polacek@redhat.com>
17442 PR middle-end/60534
17443 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17444 as -fno-tree-loop-vectorize.
17445 (expand_omp_simd): Likewise.
17447 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17449 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17450 (eligible_for_call_delay): New prototype.
17451 * config/sparc/sparc.c (tls_call_delay): Rename into...
17452 (eligible_for_call_delay): ...this. Return false if the instruction
17453 cannot be put in the delay slot of a branch.
17454 (eligible_for_restore_insn): Simplify.
17455 (eligible_for_return_delay): Return false if the instruction cannot be
17456 put in the delay slot of a branch and simplify.
17457 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17458 put in the delay slot of a branch.
17459 * config/sparc/sparc.md (fix_ut699): New attribute.
17460 (tls_call_delay): Delete.
17461 (in_call_delay): Reimplement.
17462 (eligible_for_sibcall_delay): Rename into...
17463 (in_sibcall_delay): ...this.
17464 (eligible_for_return_delay): Rename into...
17465 (in_return_delay): ...this.
17466 (in_branch_delay): Reimplement.
17467 (in_uncond_branch_delay): Delete.
17468 (in_annul_branch_delay): Delete.
17470 2014-03-14 Richard Henderson <rth@redhat.com>
17473 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17474 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17475 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17476 (floathi splitters): Remove.
17477 (float<SWI48x>xf2): New pattern.
17478 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17479 code that tried to handle DImode for 32-bit, but which was excluded
17480 by the pattern's condition. Drop allocation of stack temporary.
17481 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17482 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17483 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17484 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17485 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17486 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17487 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17488 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17489 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17490 (*float<SWI48x><X87MODEF>2_i387): Remove.
17491 (all float _with_temp splitters): Remove.
17492 (*float<SWI48x><MODEF>2_i387): New pattern.
17493 (*float<SWI48><MODEF>2_sse): New pattern.
17494 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17495 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17497 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17498 Marek Polacek <polacek@redhat.com>
17500 PR middle-end/60484
17501 * common.opt (dump_base_name_prefixed): New Variable.
17502 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17503 if x_dump_base_name_prefixed is already set, set it at the end.
17505 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17507 PR rtl-optimization/60508
17508 * lra-constraints.c (get_reload_reg): Add new parameter
17510 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17511 Pass the new parameter values.
17513 2014-03-14 Richard Biener <rguenther@suse.de>
17515 * common.opt: Revert unintented changes from r205065.
17516 * opts.c: Likewise.
17518 2014-03-14 Richard Biener <rguenther@suse.de>
17520 PR middle-end/60518
17521 * cfghooks.c (split_block): Properly adjust all loops the
17522 block was a latch of.
17524 2014-03-14 Martin Jambor <mjambor@suse.cz>
17527 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17530 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17533 * config/avr/avr.c (avr_set_current_function): Pass function name
17534 through default_strip_name_encoding before sanity checking instead
17535 of skipping the first char of the assembler name.
17537 2014-03-13 Richard Henderson <rth@redhat.com>
17540 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17541 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17542 * config/i386/i386-protos.h: Likewise.
17543 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17544 in the expander instead of a splitter.
17545 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17546 any possibility of requiring a memory.
17547 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17548 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17549 (fp branch splitters): Update for ix86_split_fp_branch.
17550 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17551 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17552 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17553 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17554 (*fop_<MODEF>_3_i387): Likewise.
17555 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17556 (splitters for the fop_* register patterns): Remove.
17557 (fscalexf4_i387): Rename from *fscalexf4_i387.
17558 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17560 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17562 PR tree-optimization/59779
17563 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17564 type for bitsize and maxsize instead of HOST_WIDE_INT.
17566 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17568 PR rtl-optimization/57320
17569 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17570 the CFG after thread_prologue_and_epilogue_insns.
17572 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17574 PR rtl-optimization/57189
17575 * lra-constraints.c (process_alt_operands): Disfavor spilling
17578 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17580 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17582 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17584 PR tree-optimization/59025
17585 PR middle-end/60418
17586 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17587 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17589 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17592 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17593 calls of avr_out_plus_1.
17595 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17597 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17598 BB's single pred and update the father loop's latch info later.
17600 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17602 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17606 (VEC_base): Likewise.
17607 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17608 registers, we need to swap double words in little endian mode.
17610 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17611 to be a container mode for 128-bit integer operations added in ISA
17612 2.07. Unlike TImode and PTImode, the preferred register set is
17613 the Altivec/VMX registers for the 128-bit operations.
17615 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17617 (rs6000_split_128bit_ok_p): Likewise.
17619 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17620 macros for creating ISA 2.07 normal and overloaded builtin
17621 functions with 3 arguments.
17622 (BU_P8V_OVERLOAD_3): Likewise.
17623 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17624 for use as overloaded functions.
17625 (VPERM_1TI_UNS): Likewise.
17626 (VSEL_1TI): Likewise.
17627 (VSEL_1TI_UNS): Likewise.
17628 (ST_INTERNAL_1ti): Likewise.
17629 (LD_INTERNAL_1ti): Likewise.
17630 (XXSEL_1TI): Likewise.
17631 (XXSEL_1TI_UNS): Likewise.
17632 (VPERM_1TI): Likewise.
17633 (VPERM_1TI_UNS): Likewise.
17634 (XXPERMDI_1TI): Likewise.
17635 (SET_1TI): Likewise.
17636 (LXVD2X_V1TI): Likewise.
17637 (STXVD2X_V1TI): Likewise.
17638 (VEC_INIT_V1TI): Likewise.
17639 (VEC_SET_V1TI): Likewise.
17640 (VEC_EXT_V1TI): Likewise.
17641 (EQV_V1TI): Likewise.
17642 (NAND_V1TI): Likewise.
17643 (ORC_V1TI): Likewise.
17644 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17645 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17646 overloaded builtin.
17647 (VADDUQM): Likewise.
17648 (VSUBCUQ): Likewise.
17649 (VADDEUQM): Likewise.
17650 (VADDECUQ): Likewise.
17651 (VSUBEUQM): Likewise.
17652 (VSUBECUQ): Likewise.
17654 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17655 __int128_t and __uint128_t types.
17656 (__uint128_type): Likewise.
17657 (altivec_categorize_keyword): Add support for vector __int128_t,
17658 vector __uint128_t, vector __int128, and vector unsigned __int128
17659 as a container type for TImode operations that need to be done in
17660 VSX/Altivec registers.
17661 (rs6000_macro_to_expand): Likewise.
17662 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17663 to support 128-bit integer instructions vaddcuq, vadduqm,
17664 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17665 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17667 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17668 for V1TImode, and set up preferences to use VSX/Altivec registers.
17669 Setup VSX reload handlers.
17670 (rs6000_debug_reg_global): Likewise.
17671 (rs6000_init_hard_regno_mode_ok): Likewise.
17672 (rs6000_preferred_simd_mode): Likewise.
17673 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17674 (easy_altivec_constant): Likewise.
17675 (output_vec_const_move): Likewise.
17676 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17678 (rs6000_expand_vector_extract): Likewise.
17679 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17681 (rs6000_const_vec): Add support for V1TImode.
17682 (rs6000_emit_le_vsx_load): Swap double words when loading or
17683 storing TImode/V1TImode.
17684 (rs6000_emit_le_vsx_store): Likewise.
17685 (rs6000_emit_le_vsx_move): Likewise.
17686 (rs6000_emit_move): Add support for V1TImode.
17687 (altivec_expand_ld_builtin): Likewise.
17688 (altivec_expand_st_builtin): Likewise.
17689 (altivec_expand_vec_init_builtin): Likewise.
17690 (altivec_expand_builtin): Likewise.
17691 (rs6000_init_builtins): Add support for V1TImode type. Add
17692 support for ISA 2.07 128-bit integer builtins. Define type names
17693 for the VSX/Altivec vector types.
17694 (altivec_init_builtins): Add support for overloaded vector
17695 functions with V1TImode type.
17696 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17697 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17699 (rs6000_split_128bit_ok_p): Likewise.
17700 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17701 __int128_t and vector __uint128_t.
17703 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17704 and mode attributes.
17706 (VSX_M2): Likewise.
17711 (VS_scalar): Likewise.
17712 (VS_double): Likewise.
17713 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17715 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17716 we support the ISA 2.07 128-bit integer arithmetic instructions.
17717 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17718 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17719 and TImode types for use with the builtin functions.
17720 (V1TI_type_node): Likewise.
17721 (unsigned_V1TI_type_node): Likewise.
17722 (intTI_type_internal_node): Likewise.
17723 (uintTI_type_internal_node): Likewise.
17725 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17726 128-bit builtin functions.
17727 (UNSPEC_VADDEUQM): Likewise.
17728 (UNSPEC_VADDECUQ): Likewise.
17729 (UNSPEC_VSUBCUQ): Likewise.
17730 (UNSPEC_VSUBEUQM): Likewise.
17731 (UNSPEC_VSUBECUQ): Likewise.
17732 (VM): Add V1TImode to vector mode iterators.
17734 (VI_unit): Likewise.
17735 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17736 (altivec_vaddcuq): Likewise.
17737 (altivec_vsubuqm): Likewise.
17738 (altivec_vsubcuq): Likewise.
17739 (altivec_vaddeuqm): Likewise.
17740 (altivec_vaddecuq): Likewise.
17741 (altivec_vsubeuqm): Likewise.
17742 (altivec_vsubecuq): Likewise.
17744 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17746 (BOOL_128): Likewise.
17747 (BOOL_REGS_OUTPUT): Likewise.
17748 (BOOL_REGS_OP1): Likewise.
17749 (BOOL_REGS_OP2): Likewise.
17750 (BOOL_REGS_UNARY): Likewise.
17751 (BOOL_REGS_AND_CR0): Likewise.
17753 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17754 128-bit integer builtin support.
17755 (vec_vadduqm): Likewise.
17756 (vec_vaddecuq): Likewise.
17757 (vec_vaddeuqm): Likewise.
17758 (vec_vsubecuq): Likewise.
17759 (vec_vsubeuqm): Likewise.
17760 (vec_vsubcuq): Likewise.
17761 (vec_vsubuqm): Likewise.
17763 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17764 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17765 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17766 128-bit integer add/subtract to ISA 2.07.
17768 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17770 * config/arc/arc.c (arc_predicate_delay_insns):
17771 Fix third argument passed to conditionalize_nonjump.
17773 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17775 * config/aarch64/aarch64-builtins.c
17776 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17777 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17778 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17779 instead of __builtin_lfloor.
17780 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17782 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17784 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17785 (tree_ssa_ifcombine_bb_1): New function.
17786 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17787 is an empty forwarder block to then_bb or vice versa and then_bb
17788 and else_bb are effectively swapped.
17790 2014-03-12 Christian Bruel <christian.bruel@st.com>
17793 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17794 REG_CFA_DEF_CFA note.
17795 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17796 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17798 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17800 PR tree-optimization/60454
17801 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17803 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17805 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17806 Do not define target_cpu_default2 to generic.
17807 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17808 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17809 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17811 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17812 Marc Glisse <marc.glisse@inria.fr>
17814 PR tree-optimization/60502
17815 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17816 instead of build_low_bits_mask.
17818 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17820 PR middle-end/60482
17821 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17822 if there are multiple uses, but op doesn't live on E edge.
17823 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17824 clobber stmts before __builtin_unreachable.
17826 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17828 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17829 hard_frame_pointer_rtx.
17830 * cse.c (cse_insn): Remove volatile check.
17831 * cselib.c (cselib_process_insn): Likewise.
17832 * dse.c (scan_insn): Likewise.
17834 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17836 * config/arc/arc.c (conditionalize_nonjump): New function,
17838 (arc_ifcvt): ... this.
17839 (arc_predicate_delay_insns): Use it.
17841 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17843 * config/arc/predicates.md (extend_operand): During/after reload,
17844 allow const_int_operand.
17845 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17846 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17847 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17849 (umulsi3_highpart_i): Likewise.
17851 2014-03-11 Richard Biener <rguenther@suse.de>
17853 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17854 Add asserts to guard possible wrong-code bugs.
17856 2014-03-11 Richard Biener <rguenther@suse.de>
17858 PR tree-optimization/60429
17859 PR tree-optimization/60485
17860 * tree-ssa-structalias.c (set_union_with_increment): Properly
17861 take into account all fields that overlap the shifted vars.
17862 (do_sd_constraint): Likewise.
17863 (do_ds_constraint): Likewise.
17864 (get_constraint_for_ptr_offset): Likewise.
17866 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17868 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17869 (nios2_compute_frame_layout):
17870 Add calculation of cfun->machine->fp_save_offset.
17871 (nios2_expand_prologue): Correct setting of frame pointer register
17873 (nios2_expand_epilogue): Update recovery of stack pointer from
17874 frame pointer accordingly.
17875 (nios2_initial_elimination_offset): Update calculation of offset
17876 for eliminating to HARD_FRAME_POINTER_REGNUM.
17878 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17881 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17882 cgraph_get_create_node on VAR_DECLs.
17884 2014-03-10 Richard Biener <rguenther@suse.de>
17886 PR middle-end/60474
17887 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17889 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17891 * config/vms/vms.opt (vms_float_format): New variable.
17893 2014-03-08 Tobias Burnus <burnus@net-b.de>
17895 * doc/invoke.texi (-fcilkplus): Update implementation status.
17897 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17898 Richard Biener <rguenther@suse.de>
17900 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17901 consistently accross all TUs.
17902 (run_gcc): Enable -fshort-double automatically at link at link-time
17903 and disallow override.
17905 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17908 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17909 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17910 if they can't be used.
17912 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17914 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17915 for Solaris 11/x86 ld.
17916 * configure: Regenerate.
17918 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17920 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17921 (LIB_TLS_SPEC): Save as ld_tls_libs.
17922 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17923 (HAVE_AS_IX86_TLSLDM): New test.
17924 * configure, config.in: Regenerate.
17925 * config/i386/i386.c (legitimize_tls_address): Fall back to
17926 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17927 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17928 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17929 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17931 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17933 * common.opt (fira-loop-pressure): Mark as optimization.
17935 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17937 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17938 an OpenMP mappable type.
17940 2014-03-06 Matthias Klose <doko@ubuntu.com>
17942 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17943 MULTILIB_OSDIRNAMES is not defined.
17945 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17946 Meador Inge <meadori@codesourcery.com>
17949 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17950 (arm_legitimize_address): Call legitimize_tls_address for any
17951 arm_tls_referenced_p expression, handle constant addend. Call it
17952 before testing for !TARGET_ARM.
17953 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17955 2014-03-06 Richard Biener <rguenther@suse.de>
17957 PR middle-end/60445
17961 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17963 * tree-streamer.c (record_common_node): Assert we don't record
17964 nodes with type double.
17965 (preload_common_node): Skip type double, complex double and double
17966 pointer since it is now frontend dependent due to fshort-double option.
17968 2014-03-06 Richard Biener <rguenther@suse.de>
17970 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17971 or -fno-lto is specified and the linker has full plugin support.
17972 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17973 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17974 * lto-wrapper.c (merge_and_complain): Merge compile-time
17975 optimization levels.
17976 (run_gcc): And pass it through to the link options.
17978 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17982 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17984 * cselib.c (remove_useless_values): Skip to avoid quadratic
17985 behavior if the condition moved from...
17986 (cselib_process_insn): ... here holds.
17988 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17991 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17992 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17995 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17996 (TM_H): Add x86-tune.def.
17998 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18000 * config/aarch64/aarch64.c (generic_tunings):
18001 Use cortexa57_extra_costs.
18003 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18006 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
18007 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
18008 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
18011 2014-03-04 Heiher <r@hev.cc>
18013 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
18014 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
18016 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
18018 * config/i386/predicates.md (const2356_operand): Change to ...
18019 (const2367_operand): ... this.
18020 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
18022 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18023 (*avx512pf_scatterpf<mode>sf): Ditto.
18024 (avx512pf_scatterpf<mode>df): Ditto.
18025 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18026 (*avx512pf_scatterpf<mode>df): Ditto.
18027 * config/i386/i386.c (ix86_expand_builtin): Update
18028 incorrect hint operand error message.
18030 2014-03-04 Richard Biener <rguenther@suse.de>
18032 * lto-section-in.c (lto_get_section_data): Fix const cast.
18034 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18036 * tree-streamer.c (record_common_node): Assert we don't record
18037 nodes with type double.
18038 (preload_common_node): Skip type double, complex double and double
18039 pointer since it is now frontend dependent due to fshort-double option.
18041 2014-03-04 Richard Biener <rguenther@suse.de>
18044 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
18045 (lto_input_toplevel_asms): Likewise.
18046 * lto-section-in.c (lto_get_section_data): Instead do it here
18049 2014-03-04 Richard Biener <rguenther@suse.de>
18051 PR tree-optimization/60382
18052 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
18053 dead PHIs a reduction.
18055 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
18057 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
18059 (_mm_prefetch): Move out of GCC target("sse") pragma.
18060 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
18061 GCC target("prfchw") pragma.
18062 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
18064 * config/i386/i386.c (ix86_option_override_internal): Enable
18065 -mprfchw with -mprefetchwt1.
18067 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18069 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
18072 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18074 * opts.h (CL_PCH_IGNORE): Define.
18075 * targhooks.c (option_affects_pch_p):
18076 Return false for options that have CL_PCH_IGNORE set.
18077 * opt-functions.awk: Process PchIgnore.
18078 * doc/options.texi: Document PchIgnore.
18080 * config/arc/arc.opt (misize): Add PchIgnore property.
18082 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18084 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
18085 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
18086 constraint on constants to permit them being loaded into
18087 GENERAL_REGS or BASE_REGS.
18089 2014-03-03 Nick Clifton <nickc@redhat.com>
18091 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
18092 anti-cacnonical alternatives.
18093 (negandhi3_real): New pattern.
18094 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
18096 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18098 * config/avr/avr-mcus.def: Remove atxmega16x1.
18099 * config/avr/avr-tables.opt: Regenerate.
18100 * config/avr/t-multilib: Regenerate.
18101 * doc/avr-mmcu.texi: Regenerate.
18103 2014-03-03 Tobias Grosser <tobias@grosser.es>
18104 Mircea Namolaru <mircea.namolaru@inria.fr>
18106 PR tree-optimization/58028
18107 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
18110 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18112 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
18113 not handled by recognizers.
18115 2014-03-03 Jakub Jelinek <jakub@redhat.com>
18117 PR middle-end/60175
18118 * function.c (expand_function_end): Don't emit
18119 clobber_return_register sequence if clobber_after is a BARRIER.
18120 * cfgexpand.c (construct_exit_block): Append instructions before
18121 return_label to prev_bb.
18123 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18125 * config/rs6000/constraints.md: Document reserved use of "wc".
18127 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18130 * ipa.c (function_and_variable_visibility): When dissolving comdat
18131 group, also set all symbols to local.
18133 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18138 2013-12-14 Jan Hubicka <jh@suse.cz>
18139 PR middle-end/58477
18140 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
18142 2014-03-02 Jon Beniston <jon@beniston.com>
18148 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
18149 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
18150 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
18151 (simple_return, *simple_return): New patterns
18152 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
18153 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
18155 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
18157 * dwarf2out.c (gen_subprogram_die): Tidy.
18159 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
18162 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
18163 (*mov_t_msb_neg_negc): ... this new insn.
18165 2014-02-28 Jason Merrill <jason@redhat.com>
18168 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
18171 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
18174 * dwarf2out.c (decltype_auto_die): New static.
18175 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
18176 (gen_type_die_with_usage): Handle 'decltype(auto)'.
18177 (is_cxx_auto): Likewise.
18179 2014-02-28 Ian Bolton <ian.bolton@arm.com>
18181 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
18182 we are not using general regs only.
18184 2014-02-28 Richard Biener <rguenther@suse.de>
18187 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
18188 previous fix and only allow to remove trivial pre-headers
18189 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
18190 (remove_forwarder_block): Properly update the latch of a loop.
18192 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18195 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
18196 (cselib_preserved_hash_table): New.
18197 (preserve_constants_and_equivs): Move preserved vals to it.
18198 (cselib_find_slot): Look it up first.
18199 (cselib_init): Initialize it.
18200 (cselib_finish): Release it.
18201 (dump_cselib_table): Dump it.
18203 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18206 * cselib.c (remove_useless_values): Skip to avoid quadratic
18207 behavior if the condition moved from...
18208 (cselib_process_insn): ... here holds.
18210 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18213 * var-tracking.c (vt_initialize): Apply the same condition to
18214 preserve the CFA base value.
18216 2014-02-28 Joey Ye <joey.ye@arm.com>
18219 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
18220 if reload in progress or completed.
18222 2014-02-28 Tobias Burnus <burnus@net-b.de>
18224 PR middle-end/60147
18225 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
18228 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
18230 * doc/tm.texi.in (Condition Code Status): Update documention for
18231 relative locations of cc0-setter and cc0-user.
18233 2014-02-27 Jeff Law <law@redhat.com>
18235 PR rtl-optimization/52714
18236 * combine.c (try_combine): When splitting an unrecognized PARALLEL
18237 into two independent simple sets, if I3 is a jump, ensure the
18238 pattern we place into I3 is a (set (pc) ...).
18240 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
18241 Jeff Law <law@redhat.com>
18243 PR rtl-optimization/49847
18244 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
18245 are in different blocks.
18246 * doc/tm.texi (Condition Code Status): Update documention for
18247 relative locations of cc0-setter and cc0-user.
18249 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
18252 * lra.c (lra_emit_add): Check SUBREG too.
18254 2014-02-27 Andreas Schwab <schwab@suse.de>
18256 * config/m68k/m68k.c (m68k_option_override): Disable
18257 -flive-range-shrinkage for classic m68k.
18258 (m68k_override_options_after_change): Likewise.
18260 2014-02-27 Marek Polacek <polacek@redhat.com>
18262 PR middle-end/59223
18263 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
18264 -Wmaybe-uninitialized.
18266 2014-02-27 Alan Modra <amodra@gmail.com>
18269 * reload1.c (emit_input_reload_insns): When reload_override_in,
18270 set old to rl->in_reg when rl->in_reg is a subreg.
18272 2014-02-26 Richard Biener <rguenther@suse.de>
18275 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
18277 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18279 * common/config/i386/predicates.md (const1256_operand): Remove.
18280 (const2356_operand): New.
18281 (const_1_to_2_operand): Remove.
18282 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18283 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18284 (*avx512pf_gatherpf<mode>sf): Ditto.
18285 (avx512pf_gatherpf<mode>df): Ditto.
18286 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18287 (*avx512pf_gatherpf<mode>df): Ditto.
18288 (avx512pf_scatterpf<mode>sf): Ditto.
18289 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18290 (*avx512pf_scatterpf<mode>sf): Ditto.
18291 (avx512pf_scatterpf<mode>df): Ditto.
18292 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18293 (*avx512pf_scatterpf<mode>df): Ditto.
18294 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
18296 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
18298 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
18299 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
18300 (_mm512_mask_testn_epi64_mask): Move to ...
18301 * config/i386/avx512cdintrin.h: Here.
18302 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
18303 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
18304 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
18305 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
18306 TARGET_AVX512F from TARGET_AVX512CD.
18308 2014-02-26 Richard Biener <rguenther@suse.de>
18311 * ipa.c (walk_polymorphic_call_targets): Properly guard
18312 call to inline_update_overall_summary.
18314 2014-02-26 Bin Cheng <bin.cheng@arm.com>
18317 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
18318 and latches only if requested. Fix latch if it is removed.
18319 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
18320 LOOPS_HAVE_PREHEADERS.
18322 2014-02-25 Andrew Pinski <apinski@cavium.com>
18324 * builtins.c (expand_builtin_thread_pointer): Create a new target
18325 when the target is NULL.
18327 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
18329 PR rtl-optimization/60317
18330 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18331 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18332 * lra-assigns.c: Include params.h.
18333 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
18334 other reload pseudos considerations.
18336 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18338 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
18339 to use canonical form for nor<mode>3.
18341 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18344 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
18347 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18349 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
18350 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
18351 (ix86_handle_option): Handle OPT_mprefetchwt1.
18352 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
18353 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18355 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18356 OPTION_MASK_ISA_PREFETCHWT1.
18357 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
18358 (PTA_PREFETCHWT1): New.
18359 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
18360 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18361 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18362 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18363 (*prefetch_avx512pf_<mode>_: Change into ...
18364 (*prefetch_prefetchwt1_<mode>: This.
18365 * config/i386/i386.opt (mprefetchwt1): New.
18366 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18367 (_mm_prefetch): Handle intent to write.
18368 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18370 2014-02-25 Richard Biener <rguenther@suse.de>
18372 PR middle-end/60291
18373 * emit-rtl.c (mem_attrs_htab): Remove.
18374 (mem_attrs_htab_hash): Likewise.
18375 (mem_attrs_htab_eq): Likewise.
18376 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18377 (init_emit_once): Do not allocate mem_attrs_htab.
18379 2014-02-25 Richard Biener <rguenther@suse.de>
18382 * lto-opts.c (lto_write_options): Output non-explicit conservative
18383 -fwrapv, -fno-trapv and -fno-strict-overflow.
18384 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18385 (run_gcc): And pass them through.
18387 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18389 * sel-sched.c (calculate_new_fences): New parameter ptime.
18390 Calculate it as a maximum over all fence cycles.
18391 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18392 Print the final schedule timing when sched_verbose.
18394 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18396 PR rtl-optimization/60292
18397 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18398 bit fot the fence instruction.
18400 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18402 * calls.h: Fix typo in comment.
18404 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18406 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18407 adjusting offsetable addresses.
18409 2014-02-24 Guozhi Wei <carrot@google.com>
18411 * sparseset.h (sparseset_pop): Fix the wrong index.
18413 2014-02-24 Walter Lee <walt@tilera.com>
18415 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18416 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18418 * common/config/tilegx/tilegx-common.c
18419 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18420 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18421 (LINK_SPEC): Ditto.
18422 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18423 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18424 (tilegx_gimplify_va_arg_expr): Handle big endian.
18425 (tilegx_expand_unaligned_load): Ditto.
18426 (tilegx_expand_unaligned_store): Ditto.
18427 (TARGET_RETURN_IN_MSB): New.
18428 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18429 (TARGET_ENDIAN_DEFAULT): New.
18430 (TARGET_BIG_ENDIAN): Handle big endian.
18431 (BYTES_BIG_ENDIAN): Ditto.
18432 (WORDS_BIG_ENDIAN): Ditto.
18433 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18434 (ENDIAN_SPEC): New.
18435 (EXTRA_SPECS): New.
18436 * config/tilegx/tilegx.md (extv): Handle big endian.
18438 (insn_st<n>): Ditto.
18439 (insn_st<n>_add<bitsuffix>): Ditto.
18440 (insn_stnt<n>): Ditto.
18441 (insn_stnt<n>_add<bitsuffix>):Ditto.
18442 (vec_interleave_highv8qi): Handle big endian.
18443 (vec_interleave_highv8qi_be): New.
18444 (vec_interleave_highv8qi_le): New.
18445 (insn_v1int_h): Handle big endian.
18446 (vec_interleave_lowv8qi): Handle big endian.
18447 (vec_interleave_lowv8qi_be): New.
18448 (vec_interleave_lowv8qi_le): New.
18449 (insn_v1int_l): Handle big endian.
18450 (vec_interleave_highv4hi): Handle big endian.
18451 (vec_interleave_highv4hi_be): New.
18452 (vec_interleave_highv4hi_le): New.
18453 (insn_v2int_h): Handle big endian.
18454 (vec_interleave_lowv4hi): Handle big endian.
18455 (vec_interleave_lowv4hi_be): New.
18456 (vec_interleave_lowv4hi_le): New.
18457 (insn_v2int_l): Handle big endian.
18458 (vec_interleave_highv2si): Handle big endian.
18459 (vec_interleave_highv2si_be): New.
18460 (vec_interleave_highv2si_le): New.
18461 (insn_v4int_h): Handle big endian.
18462 (vec_interleave_lowv2si): Handle big endian.
18463 (vec_interleave_lowv2si_be): New.
18464 (vec_interleave_lowv2si_le): New.
18465 (insn_v4int_l): Handle big endian.
18466 * config/tilegx/tilegx.opt (mbig-endian): New option.
18467 (mlittle-endian): New option.
18468 * doc/install.texi: Document tilegxbe-linux.
18469 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18471 2014-02-24 Martin Jambor <mjambor@suse.cz>
18474 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18475 there are no parameter descriptors.
18477 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18479 PR rtl-optimization/60268
18480 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18481 initialization to ...
18482 (sched_rgn_init): ... here.
18483 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18485 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18487 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18490 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18492 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18495 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18497 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18498 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18500 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18502 * config/microblaze/predicates.md: Add cmp_op predicate.
18503 * config/microblaze/microblaze.md: Add branch_compare instruction
18504 which uses cmp_op predicate and emits cmp insn before branch.
18505 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18506 to microblaze_expand_conditional_branch and consolidate logic.
18507 (microblaze_expand_conditional_branch): emit branch_compare
18508 insn instead of handling cmp op separate from branch insn.
18510 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18512 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18515 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18517 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18518 define_insn with define_expand and new define_insn
18519 *altivec_lve<VI_char>x_internal.
18520 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18521 and new define_insn *altivec_stve<VI_char>x_internal.
18522 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18524 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18526 (altivec_expand_stvex_be): New function.
18528 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18530 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18531 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18532 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18533 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18535 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18538 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18539 instead of emit_move_insn.
18541 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18543 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18544 vspltw with vsldoi.
18545 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18546 gen_altivec_vsumsws.
18548 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18550 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18551 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18552 (altivec_lvxl_<mode>): New define_expand incorporating
18553 -maltivec=be semantics where needed.
18554 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18555 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18556 semantics where needed.
18557 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18558 (altivec_stvx_<mode>): New define_expand incorporating
18559 -maltivec=be semantics where needed.
18560 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18561 VM2 iterator instead of V4SI.
18562 (altivec_stvxl_<mode>): New define_expand incorporating
18563 -maltivec=be semantics where needed.
18564 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18565 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18566 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18567 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18568 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18569 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18570 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18571 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18572 ALTIVEC_BUILTIN_STVXL.
18573 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18574 (altivec_expand_stvx_be): Likewise.
18575 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18576 (altivec_expand_lvx_be): Likewise.
18577 (altivec_expand_stvx_be): Likewise.
18578 (altivec_expand_builtin): Add cases for
18579 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18580 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18581 (altivec_init_builtins): Add definitions for
18582 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18583 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18585 2014-02-21 Catherine Moore <clm@codesourcery.com>
18587 * doc/invoke.texi (mvirt, mno-virt): Document.
18588 * config/mips/mips.opt (mvirt): New option.
18589 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18591 2014-02-21 Richard Biener <rguenther@suse.de>
18593 PR tree-optimization/60276
18594 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18595 (STMT_VINFO_MIN_NEG_DIST): New macro.
18596 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18597 STMT_VINFO_MIN_NEG_DIST.
18598 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18599 made for negative dependence distances still hold.
18601 2014-02-21 Richard Biener <rguenther@suse.de>
18603 PR middle-end/60291
18604 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18605 DECL_INITIAL for globals not in the current function context.
18607 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18609 PR tree-optimization/56490
18610 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18611 * tree-ssa-uninit.c: Include params.h.
18612 (compute_control_dep_chain): Add num_calls argument, return false
18613 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18614 num_calls to recursive call.
18615 (find_predicates): Change dep_chain into normal array,
18616 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18617 variable and adjust compute_control_dep_chain caller.
18618 (find_def_preds): Likewise.
18620 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18622 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18623 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18625 2014-02-21 Nick Clifton <nickc@redhat.com>
18627 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18628 (pushhi1): Likewise.
18629 (popqi1): Add mode to pre_dec.
18630 (pophi1): Likewise.
18632 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18634 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18635 mode for mask of V8SFmode permutation.
18637 2014-02-20 Richard Henderson <rth@redhat.com>
18640 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18641 a new pseudo for OLDVAL.
18643 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18646 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18647 gen_reg_rtx if d->testing_p.
18648 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18649 if d->testing_p and we will certainly return true.
18650 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18653 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18655 * emit-rtl.c (gen_reg_rtx): Assert that
18656 crtl->emit.regno_pointer_align_length is non-zero.
18658 2014-02-20 Richard Henderson <rth@redhat.com>
18661 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18662 on failure the store back into EXPECT.
18664 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18665 Sandra Loosemore <sandra@codesourcery.com>
18667 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18668 * config/nios2/nios2.c (nios2_function_profiler): Add
18669 -fPIC (flag_pic == 2) support.
18670 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18671 (nios2_large_offset_p): New function.
18672 (nios2_unspec_reloc_p): Move up position, update to use
18673 nios2_large_offset_p.
18674 (nios2_unspec_address): Remove function.
18675 (nios2_unspec_offset): New function.
18676 (nios2_large_got_address): New function.
18677 (nios2_got_address): Add large offset support.
18678 (nios2_legitimize_tls_address): Update usage of removed and new
18680 (nios2_symbol_binds_local_p): New function.
18681 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18682 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18683 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18684 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18685 processing for (const (unspec ...)).
18686 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18688 2014-02-20 Richard Biener <rguenther@suse.de>
18690 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18691 doing the substitution.
18692 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18694 2014-02-20 Martin Jambor <mjambor@suse.cz>
18697 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18698 info when checking whether lattices are bottom.
18700 2014-02-20 Richard Biener <rguenther@suse.de>
18702 PR middle-end/60221
18703 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18706 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18709 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18710 parameter specifying the scaling.
18711 (inline_call): Update.
18712 (want_inline_recursively): Guard division by zero.
18713 (recursive_inlining): Update.
18714 * ipa-inline.h (clone_inlined_nodes): Update.
18716 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18719 * config/i386/i386.c (classify_argument): Pass structures of size
18720 64 bytes or less in register.
18722 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18723 Kirill Yukhin <kirill.yukhin@intel.com>
18725 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18726 (_mm_rcp28_round_ss): Ditto.
18727 (_mm_rsqrt28_round_sd): Ditto.
18728 (_mm_rsqrt28_round_ss): Ditto.
18729 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18730 (_mm_rcp14_round_ss): Ditto.
18731 (_mm_rsqrt14_round_sd): Ditto.
18732 (_mm_rsqrt14_round_ss): Ditto.
18733 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18734 the first input operand, get rid of match_dup.
18735 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18737 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18739 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18740 operand as the first input operand, set type attribute.
18741 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18742 Set type attribute.
18743 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18744 operand as the first input operand, set type attribute.
18746 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18748 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18751 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18754 * config/i386/i386.c (construct_container): Remove TFmode check
18755 for X86_64_INTEGER_CLASS.
18757 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18760 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18761 only when -Wpsabi is enabled.
18763 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18766 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18767 passing arrays in registers are the same as for structs, so remove the
18768 special case for them.
18770 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18772 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18773 destination type, extract only the valid bits if the source type is not
18774 integral and has a different mode.
18776 2014-02-19 Richard Biener <rguenther@suse.de>
18779 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18782 2014-02-19 Richard Biener <rguenther@suse.de>
18785 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18786 (ipa_modify_call_arguments): Emit an argument load explicitely and
18787 preserve virtual SSA form there and for the replacement call.
18788 Do not update SSA form nor free dominance info.
18790 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18792 * ipa.c (function_and_variable_visibility): Also clear WEAK
18793 flag when disolving COMDAT_GROUP.
18795 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18797 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18798 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18799 not devirtualizing.
18800 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18801 do more sanity checks.
18802 (detect_type_change): Return true when giving up early.
18803 (compute_complex_assign_jump_func): Fix type parameter of
18804 ipa_set_ancestor_jf.
18805 (compute_complex_ancestor_jump_func): Likewise.
18806 (update_jump_functions_after_inlining): Fix updating of
18808 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18810 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18812 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18813 inline clones when edge disappears.
18815 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18818 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18819 Split 64-bit moves into 2 patterns. Do not allow the use of
18820 direct move for TDmode in little endian, since the decimal value
18821 has little endian bytes within a word, but the 64-bit pieces are
18822 ordered in a big endian fashion, and normal subreg's of TDmode are
18824 (mov<mode>_64bit_dm): Likewise.
18825 (movtd_64bit_nodm): Likewise.
18827 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18829 PR tree-optimization/60174
18830 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18831 statement of an SSA_NAME that occurs in an abnormal PHI node.
18833 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18836 * final.c (SEEN_BB): Remove.
18837 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18838 (final_scan_insn): Don't force_source_line on second
18839 NOTE_INSN_BASIC_BLOCK.
18841 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18844 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18845 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18846 (type_natural_mode): Warn ABI change when %zmm register is not
18847 available for AVX512F vector value passing.
18849 2014-02-18 Kai Tietz <ktietz@redhat.com>
18852 * config/i386/i386.c (ix86_expand_prologue): Use value in
18853 rax register as displacement when restoring %r10 or %rax.
18854 Fix wrong offset when restoring both registers.
18856 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18858 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18859 assertion with conditional return.
18861 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18862 Uros Bizjak <ubizjak@gmail.com>
18865 * config/i386/driver-i386.c (host_detect_local_cpu): If
18866 YMM state is not saved by the OS, also clear has_f16c. Move
18867 CPUID 0x80000001 handling before YMM state saving checking.
18869 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18871 PR rtl-optimization/58960
18872 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18873 factored out from ...
18874 (sched_init): ... here.
18875 (free_global_sched_pressure_data): New, factored out from ...
18876 (sched_finish): ... here.
18877 * sched-int.h (free_global_sched_pressure_data): Declare.
18878 * sched-rgn.c (nr_regions_initial): New static global.
18879 (haifa_find_rgns): Initialize it.
18880 (schedule_region): Disable sched-pressure for the newly
18883 2014-02-17 Richard Biener <rguenther@suse.de>
18885 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18886 release SSA defs of pattern stmts.
18888 2014-02-17 Richard Biener <rguenther@suse.de>
18890 * tree-inline.c (expand_call_inline): Release the virtual
18891 operand defined by the call we are about to inline.
18893 2014-02-17 Richard Biener <rguenther@suse.de>
18895 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18897 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18898 Ilya Tocar <ilya.tocar@intel.com>
18900 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18901 arguments order in builtin.
18902 (_mm512_permutexvar_epi64): Ditto.
18903 (_mm512_mask_permutexvar_epi64): Ditto
18904 (_mm512_maskz_permutexvar_epi32): Ditto
18905 (_mm512_permutexvar_epi32): Ditto
18906 (_mm512_mask_permutexvar_epi32): Ditto
18908 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18910 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18911 (p8_vmrgow): Likewise.
18913 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18915 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18918 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18921 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18922 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18923 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18924 using direct move instructions on ISA 2.07. Also adjust
18925 instruction length for 64-bit.
18926 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18927 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18929 2014-02-15 Alan Modra <amodra@gmail.com>
18933 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18934 find_replacement on parts of insn rtl that might be reloaded.
18936 2014-02-15 Richard Biener <rguenther@suse.de>
18938 PR tree-optimization/60183
18939 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18940 (tree_ssa_phiprop): Calculate and free post-dominators.
18942 2014-02-14 Jeff Law <law@redhat.com>
18944 PR rtl-optimization/60131
18945 * ree.c (get_extended_src_reg): New function.
18946 (combine_reaching_defs): Use it rather than assuming location of REG.
18947 (find_and_remove_re): Verify first operand of extension is
18948 a REG before adding the insns to the copy list.
18950 2014-02-14 Roland McGrath <mcgrathr@google.com>
18952 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18953 * configure: Regenerated.
18954 * config.in: Regenerated.
18955 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18956 instead of ASM_SHORT.
18958 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18959 Richard Earnshaw <rearnsha@arm.com>
18961 PR rtl-optimization/59535
18962 * lra-constraints.c (process_alt_operands): Encourage alternative
18963 when unassigned pseudo class is superset of the alternative class.
18964 (inherit_reload_reg): Don't inherit when optimizing for code size.
18965 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18966 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18967 modes not less than 4 for Thumb1.
18969 2014-02-14 Kyle McMartin <kyle@redhat.com>
18972 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18974 2014-02-14 Richard Biener <rguenther@suse.de>
18976 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18977 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18978 Do not strip INDIRECT_REFs.
18980 2014-02-14 Richard Biener <rguenther@suse.de>
18983 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18984 DECL_FUNCTION_SPECIFIC_TARGET.
18985 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18986 * tree-streamer-out.c (pack_ts_target_option): Remove.
18987 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18988 (write_ts_function_decl_tree_pointers): Do not stream
18989 DECL_FUNCTION_SPECIFIC_TARGET.
18990 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18991 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18992 (lto_input_ts_function_decl_tree_pointers): Do not stream
18993 DECL_FUNCTION_SPECIFIC_TARGET.
18995 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18997 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18998 (get_initial_def_for_induction, vectorizable_induction): Ignore
18999 debug stmts when looking for exit_phi.
19000 (vectorizable_live_operation): Fix up condition.
19002 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19004 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
19005 nreverse() because it changes the content of original tree list.
19007 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19009 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
19010 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
19012 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19014 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
19015 GNU coding standards.
19017 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19020 * dwarf2out.c (gen_subprogram_die): Don't call
19021 add_calling_convention_attribute if subr_die is old_die.
19023 2014-02-13 Sharad Singhai <singhai@google.com>
19025 * doc/optinfo.texi: Fix order of nodes.
19027 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
19029 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
19030 operands[2], not operands[3].
19032 2014-02-13 Richard Biener <rguenther@suse.de>
19035 * doc/install.texi (ISL): Update recommended version to 0.12.2,
19036 mention the possibility of an in-tree build.
19037 (CLooG): Update recommended version to 0.18.1, mention the
19038 possibility of an in-tree build and clarify that the ISL
19039 bundled with CLooG does not work.
19041 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19044 * expr.c (compress_float_constant): If x is a hard register,
19045 extend into a pseudo and then move to x.
19047 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
19049 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
19050 caused by bad second argument to warning_at() with -mhotpatch and
19051 nested functions (e.g. with gfortran).
19053 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
19055 * opts.c (option_name): Remove "enabled by default" rider.
19057 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
19059 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
19061 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
19062 Uros Bizjak <ubizjak@gmail.com>
19065 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
19066 * configure: Regenerated.
19068 2014-02-12 Richard Biener <rguenther@suse.de>
19070 * vec.c (vec_prefix::calculate_allocation): Move as
19071 inline variant to vec.h.
19072 (vec_prefix::calculate_allocation_1): New out-of-line version.
19073 * vec.h (vec_prefix::calculate_allocation_1): Declare.
19074 (vec_prefix::m_has_auto_buf): Rename to ...
19075 (vec_prefix::m_using_auto_storage): ... this.
19076 (vec_prefix::calculate_allocation): Inline the easy cases
19077 and dispatch to calculate_allocation_1 which doesn't need the
19079 (va_heap::reserve): Use gcc_checking_assert.
19080 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
19081 m_using_auto_storage.
19082 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
19084 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
19085 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
19086 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
19088 2014-02-12 Richard Biener <rguenther@suse.de>
19090 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
19091 when we found a dependence.
19093 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
19095 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
19097 (maybe_fold_stmt): ... into this new function.
19098 * omp-low.c (lower_omp): Update comment.
19100 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
19103 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
19106 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
19108 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
19109 identifiers in comments.
19110 (cortexa53_extra_costs): Likewise.
19111 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
19112 (cortexa7_extra_costs): Likewise.
19113 (cortexa12_extra_costs): Likewise.
19114 (cortexa15_extra_costs): Likewise.
19115 (v7m_extra_costs): Likewise.
19117 2014-02-12 Richard Biener <rguenther@suse.de>
19119 PR middle-end/60092
19120 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
19121 of posix_memalign being successful.
19122 (lower_stmt): Restrict lowering of posix_memalign to when
19123 -ftree-bit-ccp is enabled.
19125 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19127 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
19129 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19131 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
19133 PR rtl-optimization/60116
19134 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
19135 other_insn once the combination has been validated.
19137 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
19140 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
19142 * ipa-devirt.c: Include demangle.h
19143 (odr_violation_reported): New static variable.
19144 (add_type_duplicate): Update odr_violations.
19145 (maybe_record_node): Add completep parameter; update it.
19146 (record_target_from_binfo): Add COMPLETEP parameter;
19147 update it as needed.
19148 (possible_polymorphic_call_targets_1): Likewise.
19149 (struct polymorphic_call_target_d): Add nonconstruction_targets;
19150 rename FINAL to COMPLETE.
19151 (record_targets_from_bases): Sanity check we found the binfo;
19152 fix COMPLETEP updating.
19153 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
19154 parameter, fix computing of COMPLETEP.
19155 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
19156 at LTO time do demangling.
19157 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
19158 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
19160 (gimple_get_virt_method_for_binfo): Likewise.
19161 * gimple-fold.h (gimple_get_virt_method_for_binfo,
19162 gimple_get_virt_method_for_vtable): Update prototypes.
19164 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
19167 * genautomata.c (add_presence_absence): Fix typo with
19168 {final_}presence_list.
19170 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19173 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
19174 for VSX/Altivec vectors that land in GPR registers.
19176 2014-02-11 Richard Henderson <rth@redhat.com>
19177 Jakub Jelinek <jakub@redhat.com>
19180 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
19181 around drhs if type conversion to lacc->type is not useless.
19183 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19185 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
19187 (cortex-a57.cortex-a53): Likewise.
19188 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
19190 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19192 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
19195 2014-02-11 Renlin Li <Renlin.Li@arm.com>
19197 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
19198 add_options_for_arm_vfp3.
19200 2014-02-11 Jeff Law <law@redhat.com>
19202 PR middle-end/54041
19203 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
19204 object with an undesirable mode.
19206 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19209 * config/i386/sol2-9.h: New file.
19210 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
19211 *-*-solaris2.9*): Use it.
19213 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19215 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
19216 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
19218 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19220 * config/microblaze/microblaze.c: Extend mcpu version format
19222 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
19224 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
19226 2014-02-10 Richard Henderson <rth@redhat.com>
19229 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
19230 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
19231 ms-abi vs -mno-accumulate-outgoing-args.
19232 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
19233 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
19236 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19238 PR middle-end/60080
19239 * cfgexpand.c (expand_asm_operands): Attach source location to
19240 ASM_INPUT rtx objects.
19241 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
19243 2014-02-10 Nick Clifton <nickc@redhat.com>
19245 * config/mn10300/mn10300.c (popcount): New function.
19246 (mn10300_expand_prologue): Include saved registers in stack usage
19249 2014-02-10 Jeff Law <law@redhat.com>
19251 PR middle-end/52306
19252 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
19253 when changing the SET_DEST of a prior insn to avoid an input reload.
19255 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19257 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
19258 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
19259 -mcall-openbsd, or -mcall-linux.
19260 (CC1_ENDIAN_BIG_SPEC): Remove.
19261 (CC1_ENDIAN_LITTLE_SPEC): Remove.
19262 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19263 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
19264 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
19265 and %cc1_endian_default.
19266 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19268 2014-02-10 Richard Biener <rguenther@suse.de>
19270 PR tree-optimization/60115
19271 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
19272 MEM_REF handling. Properly verify that the accesses are not
19273 out of the objects bound.
19275 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19277 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
19280 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
19282 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
19283 proper constants and fix formatting.
19284 (possible_polymorphic_call_targets): Fix formatting.
19286 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
19287 Ilya Tocar <ilya.tocar@intel.com>
19289 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
19290 (_mm512_loadu_epi32): Renamed into...
19291 (_mm512_loadu_si512): This.
19292 (_mm512_storeu_epi32): Renamed into...
19293 (_mm512_storeu_si512): This.
19294 (_mm512_maskz_ceil_ps): Removed.
19295 (_mm512_maskz_ceil_pd): Ditto.
19296 (_mm512_maskz_floor_ps): Ditto.
19297 (_mm512_maskz_floor_pd): Ditto.
19298 (_mm512_floor_round_ps): Ditto.
19299 (_mm512_floor_round_pd): Ditto.
19300 (_mm512_ceil_round_ps): Ditto.
19301 (_mm512_ceil_round_pd): Ditto.
19302 (_mm512_mask_floor_round_ps): Ditto.
19303 (_mm512_mask_floor_round_pd): Ditto.
19304 (_mm512_mask_ceil_round_ps): Ditto.
19305 (_mm512_mask_ceil_round_pd): Ditto.
19306 (_mm512_maskz_floor_round_ps): Ditto.
19307 (_mm512_maskz_floor_round_pd): Ditto.
19308 (_mm512_maskz_ceil_round_ps): Ditto.
19309 (_mm512_maskz_ceil_round_pd): Ditto.
19310 (_mm512_expand_pd): Ditto.
19311 (_mm512_expand_ps): Ditto.
19312 * config/i386/i386.c (ix86_builtins): Remove
19313 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
19314 (bdesc_args): Ditto.
19315 * config/i386/predicates.md (const1256_operand): New.
19316 (const_1_to_2_operand): Ditto.
19317 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19318 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19319 (*avx512pf_gatherpf<mode>sf): Ditto.
19320 (avx512pf_gatherpf<mode>df): Ditto.
19321 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19322 (*avx512pf_gatherpf<mode>df): Ditto.
19323 (avx512pf_scatterpf<mode>sf): Ditto.
19324 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19325 (*avx512pf_scatterpf<mode>sf): Ditto.
19326 (avx512pf_scatterpf<mode>df): Ditto.
19327 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19328 (*avx512pf_scatterpf<mode>df): Ditto.
19329 (avx512f_expand<mode>): Removed.
19330 (<shift_insn><mode>3<mask_name>): Change predicate type.
19332 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19334 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
19335 not at the end of datarefs vector use ordered_remove to avoid
19336 reordering datarefs vector.
19339 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
19340 mark local addressable non-static vars as GOVD_PRIVATE
19341 instead of GOVD_LOCAL.
19342 * omp-low.c (lower_omp_for): Move gimple_bind_vars
19343 and BLOCK_VARS of gimple_bind_block to new_stmt rather
19346 PR middle-end/60092
19347 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
19348 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
19349 assume_aligned or alloc_align attributes.
19350 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
19351 arguments. Handle also assume_aligned and alloc_align attributes.
19352 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
19353 calls to functions with assume_aligned or alloc_align attributes.
19354 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
19356 2014-02-08 Terry Guo <terry.guo@arm.com>
19358 * doc/invoke.texi: Document ARM -march=armv7e-m.
19360 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19362 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19363 flag on __cilkrts_rethrow builtin.
19366 * ipa-cp.c (determine_versionability): Fail at -O0
19367 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19368 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19371 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19374 * tree-inline.c (copy_forbidden): Fail for
19375 __attribute__((optimize (0))) functions.
19377 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19379 * varpool.c: Include pointer-set.h.
19380 (varpool_remove_unreferenced_decls): Variables in other partitions
19381 will not be output; be however careful to not lose information
19382 about partitioning.
19384 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19386 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19387 lookup in the vtable constructor.
19389 2014-02-07 Jeff Law <law@redhat.com>
19392 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19393 define_insn_and_split.
19395 * ipa-inline.c (inline_small_functions): Fix typos.
19397 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19399 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19400 (s390_can_use_return_insn): Declare.
19401 * config/s390/s390.h (EPILOGUE_USES): Define.
19402 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19404 (s390_chunkify_start): Handle return JUMP_LABELs.
19405 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19406 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19407 (s390_can_use_return_insn): New functions.
19408 (s390_fix_long_loop_prediction): Handle conditional returns.
19409 (TARGET_SET_UP_BY_PROLOGUE): Define.
19410 * config/s390/s390.md (ANY_RETURN): New code iterator.
19411 (*creturn, *csimple_return, return, simple_return): New patterns.
19413 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19415 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19416 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19417 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19418 REG_CFA_RESTORE list when deciding not to restore a register.
19420 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19422 * config/s390/s390.c: Include tree-pass.h and context.h.
19423 (s390_early_mach): New function, split out from...
19424 (s390_emit_prologue): ...here.
19425 (pass_data_s390_early_mach): New pass structure.
19426 (pass_s390_early_mach): New class.
19427 (s390_option_override): Create and register early_mach pass.
19428 Move to end of file.
19430 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19432 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19433 to match for the exit block.
19435 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19437 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19438 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19439 Reject misaligned operands.
19441 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19443 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19445 2014-02-07 Richard Biener <rguenther@suse.de>
19447 PR middle-end/60092
19448 * gimple-low.c (lower_builtin_posix_memalign): New function.
19449 (lower_stmt): Call it to lower posix_memalign in a way
19450 to make alignment info accessible.
19452 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19455 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19456 __builtin_setjmp_receiver.
19458 2014-02-07 Richard Biener <rguenther@suse.de>
19460 PR middle-end/60092
19461 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19462 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19463 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19464 Handle BUILT_IN_POSIX_MEMALIGN.
19465 (find_func_clobbers): Likewise.
19466 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19467 (call_may_clobber_ref_p_1): Likewise.
19469 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19472 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19475 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19478 * lto-cgraph.c (lto_output_node): Use
19479 symtab_get_symbol_partitioning_class.
19480 (lto_output_varpool_node): likewise.
19481 (symtab_get_symbol_partitioning_class): Move here from
19482 lto/lto-partition.c
19483 * cgraph.h (symbol_partitioning_class): Likewise.
19484 (symtab_get_symbol_partitioning_class): Declare.
19486 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19488 * ggc.h (ggc_internal_cleared_alloc): New macro.
19489 * vec.h (vec_safe_copy): Handle memory stats.
19490 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19491 * target-globals.c (save_target_globals): Likewise.
19493 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19496 * expr.c (emit_move_resolve_push): Export; be bit more selective
19497 on when to clear alias set.
19498 * expr.h (emit_move_resolve_push): Declare.
19499 * function.h (struct function): Add tail_call_marked.
19500 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19501 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19502 * config/i386/i386.md (TImode move expander): De not call
19504 (FP push expanders): Preserve memory attributes.
19505 * config/i386/sse.md (push<mode>1): Remove.
19506 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19507 (ix86_expand_push): Remove.
19508 * config/i386/mmx.md (push<mode>1): Remove.
19510 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19512 PR rtl-optimization/60030
19513 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19514 lopart with paradoxical subreg before shifting it up by hprec.
19516 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19518 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19519 Remove extra newline at end of file.
19520 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19521 (arm_issue_rate): Handle cortexa57.
19522 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19523 (cortex-a57.cortex-a53): Likewise.
19525 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19528 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19529 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19531 (arm_expand_prologue): Adjust all callers.
19532 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19533 info, registers also at the lowest numbered registers side. Use
19534 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19538 * var-tracking.c (adjust_mems): Before adding a SET to
19539 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19541 2014-02-06 Alan Modra <amodra@gmail.com>
19544 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19545 change SDmode to DDmode when lra_in_progress.
19547 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19549 PR middle-end/59150
19550 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19551 free_data_ref on the dr first, and before goto again also set dr
19552 to the next dr. For simd_lane_access, free old datarefs[i] before
19553 overwriting it. For get_vectype_for_scalar_type failure, don't
19554 free_data_ref if simd_lane_access.
19556 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19559 * tree.h (opts_for_fn): New inline function.
19560 (opt_for_fn): Define.
19561 * config/i386/i386.c (ix86_function_regparm): Use
19562 opt_for_fn (decl, optimize) instead of optimize.
19564 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19566 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19567 for SYMBOL_REF in large memory model.
19569 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19571 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19572 and crypto support.
19573 (cortex-a57): Likewise.
19574 (cortex-a57.cortex-a53): Likewise.
19576 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19577 Kugan Vivekanandarajah <kuganv@linaro.org>
19579 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19581 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19583 2014-02-06 Richard Biener <rguenther@suse.de>
19585 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19586 set_loop_copy and initialize_original_copy_tables.
19588 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19590 * config/aarch64/aarch64-simd.md
19591 (aarch64_ashr_simddi): Change QI to SI.
19593 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19594 Jakub Jelinek <jakub@redhat.com>
19596 PR middle-end/60013
19597 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19600 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19602 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19603 CODE_FOR_altivec_vpku[hw]um to
19604 CODE_FOR_altivec_vpku[hw]um_direct.
19605 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19606 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19607 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19608 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19610 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19612 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19613 generation for -maltivec=be.
19614 (altivec_vsumsws): Simplify redundant test.
19616 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19618 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19619 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19620 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19621 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19622 gen_altivec_vpkuwum.
19623 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19625 (altivec_vpks<VI_char>ss): Likewise.
19626 (altivec_vpks<VI_char>us): Likewise.
19627 (altivec_vpku<VI_char>us): Likewise.
19628 (altivec_vpku<VI_char>um): Likewise.
19629 (altivec_vpku<VI_char>um_direct): New (copy of
19630 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19632 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19633 target is little endian and -maltivec=be is not specified.
19634 (*altivec_vupkhs<VU_char>_direct): New (copy of
19635 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19636 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19637 target is little endian and -maltivec=be is not specified.
19638 (*altivec_vupkls<VU_char>_direct): New (copy of
19639 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19640 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19641 little endian and -maltivec=be is not specified.
19642 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19643 little endian and -maltivec=be is not specified.
19645 2014-02-05 Richard Henderson <rth@redhat.com>
19648 * combine-stack-adj.c: Revert r206943.
19649 * sched-int.h (struct deps_desc): Add last_args_size.
19650 * sched-deps.c (init_deps): Initialize it.
19651 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19652 contain REG_ARGS_SIZE notes.
19654 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19656 * lto-cgraph.c (asm_nodes_output): Make global.
19657 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19658 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19659 (driver_handle_option): Handle OPT_fwpa.
19661 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19664 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19665 a comment typo and formatting issue. If odr_hash hasn't been
19666 created, return vNULL and set *completep to false.
19668 PR middle-end/57499
19669 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19670 bb with no successors.
19672 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19675 * doc/invoke.texi (-march): Clarify documentation for ARM.
19676 (-mtune): Likewise.
19679 2014-02-05 Richard Biener <rguenther@suse.de>
19681 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19682 when not vectorizing because of too many alias checks.
19683 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19684 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19686 2014-02-05 Nick Clifton <nickc@redhat.com>
19688 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19689 accept extended registers in any mode when compiling for the MN10300.
19691 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19693 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19694 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19695 sanitization attributes.
19696 (can_inline_edge_p): Likewise.
19697 (sanitize_attrs_match_for_inline_p): New function.
19699 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19701 * ipa-prop.c (detect_type_change): Shor circuit testing of
19702 type changes on THIS pointer.
19704 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19707 * config/pa/pa.c (legitimize_tls_address): Return original address
19708 if not passed a SYMBOL_REF rtx.
19709 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19711 (pa_emit_move_sequence): Simplify TLS source operands.
19712 (pa_legitimate_constant_p): Reject all TLS constants.
19713 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19714 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19716 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19718 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19719 groups when we know they are controlled by LTO.
19720 * varasm.c (default_binds_local_p_1): If object is in other partition,
19721 it will be resolved locally.
19723 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19725 * config/host-linux.c (linux_gt_pch_use_address): Don't
19726 use SSIZE_MAX because it is not always defined.
19728 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19731 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19732 threshold for pseudo splitting.
19733 (update_ebb_live_info): Process call argument hard registers and
19734 hard registers from insn definition too.
19735 (max_small_class_regs_num): New constant.
19736 (inherit_in_ebb): Update live hard regs through EBBs. Update
19737 reloads_num only for small register classes. Don't split for
19740 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19743 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19746 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19748 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19749 visibility is safe.
19751 2014-02-04 Marek Polacek <polacek@redhat.com>
19753 * gdbinit.in (pel): Define.
19755 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19757 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19760 2014-02-04 Richard Biener <rguenther@suse.de>
19763 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19764 in function context local.
19765 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19766 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19767 similar to LTO_imported_decl_ref.
19769 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19771 PR tree-optimization/60002
19772 * cgraphclones.c (build_function_decl_skip_args): Clear
19773 DECL_LANG_SPECIFIC.
19775 PR tree-optimization/60023
19776 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19777 false to gsi_replace.
19778 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19779 has been in some EH region and vec_stmt could throw, add
19780 vec_stmt into the same EH region.
19781 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19782 has no lhs, ignore it.
19783 * internal-fn.c (expand_MASK_LOAD): Likewise.
19786 * tree-inline.c (copy_forbidden): Fail for
19787 __attribute__((optimize (0))) functions.
19790 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19791 is set, copy one less argument.
19792 (expand_simd_clones): Don't subtract clone_info->inbranch
19793 from simd_clone_struct_alloc argument.
19795 PR rtl-optimization/57915
19796 * recog.c (simplify_while_replacing): If all unary/binary/relational
19797 operation arguments are constant, attempt to simplify those.
19799 PR middle-end/59261
19800 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19801 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19803 2014-02-04 Richard Biener <rguenther@suse.de>
19805 PR tree-optimization/60012
19806 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19807 TBAA disambiguation to all DDRs.
19809 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19812 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19813 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19815 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19818 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19820 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19822 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19823 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19825 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19828 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19829 to figure out targets of polymorphic calls with known decl.
19830 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19831 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19832 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19833 (get_polymorphic_call_info): ... here.
19834 (get_polymorphic_call_info_from_invariant): New function.
19836 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19838 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19839 lookup via vtable pointer; check for type consistency
19840 and turn inconsitent facts into UNREACHABLE.
19841 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19842 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19843 type inconsistent querries; return UNREACHABLE instead.
19845 2014-02-03 Richard Henderson <rth@twiddle.net>
19848 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19849 already processed this node.
19850 (normalize_one_pred_1): Pass along mark_set.
19851 (normalize_one_pred): Create and destroy a pointer_set_t.
19852 (normalize_one_pred_chain): Likewise.
19854 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19856 PR gcov-profile/58602
19857 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19859 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19862 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19863 -fno-devirtualize; try to devirtualize by the knowledge of
19864 virtual table pointer given by aggregate propagation.
19865 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19866 (ipa_print_node_jump_functions): Dump also offset that
19867 is relevant for polymorphic calls.
19868 (determine_known_aggregate_parts): Add arg_type parameter; use it
19869 instead of determining the type from pointer type.
19870 (ipa_compute_jump_functions_for_edge): Update call of
19871 determine_known_aggregate_parts.
19872 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19873 (gimple_get_virt_method_for_binfo): ... here; simplify using
19874 vtable_pointer_value_to_vtable.
19875 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19876 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19877 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19878 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19880 (vtable_pointer_value_to_binfo): ... here.
19881 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19883 2014-02-03 Teresa Johnson <tejohnson@google.com>
19885 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19886 redef of outer loop index variable.
19888 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19892 * doc/extend.texi (Function Attributes): Typo.
19894 2014-02-03 Cong Hou <congh@google.com>
19896 PR tree-optimization/60000
19897 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19898 if the vectorized statement is a store. A store statement can only
19899 appear at the end of pattern statements.
19901 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19903 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19904 (ix86_option_override_internal): Default long double to 64-bit for
19905 32-bit Bionic and to 128-bit for 64-bit Bionic.
19907 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19908 TARGET_LONG_DOUBLE_128 is true.
19909 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19911 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19912 (mlong-double-64): Negate -mlong-double-128.
19913 (mlong-double-128): New option.
19915 * config/i386/i386-c.c (ix86_target_macros): Define
19916 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19918 * doc/invoke.texi: Document -mlong-double-128.
19920 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19922 PR rtl-optimization/60024
19923 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19925 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19927 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19929 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19931 PR rtl-optimization/57662
19932 * sel-sched.c (code_motion_path_driver): Do not mark already not
19933 existing blocks in the visiting bitmap.
19935 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19937 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19938 on the insn being emitted.
19940 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19941 Will Deacon <will.deacon@arm.com>
19943 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19945 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19947 * config/arm/arm-tables.opt: Regenerate.
19949 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19951 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19952 for vector types other than V16QImode.
19953 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19954 define_expand, and call altivec_expand_vec_perm_le when producing
19955 code with little endian element order.
19956 (*altivec_vperm_<mode>_internal): New insn having previous
19957 behavior of altivec_vperm_<mode>.
19958 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19959 altivec_expand_vec_perm_le when producing code with little endian
19961 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19962 behavior of altivec_vperm_<mode>_uns.
19964 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19966 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19967 (altivec_vsumsws): Add handling for -maltivec=be with a little
19969 (altivec_vsumsws_direct): New.
19970 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19971 gen_altivec_vsumsws.
19973 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19975 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19976 vtable_pointer_value_to_binfo): New functions.
19977 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19978 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19980 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19982 * config/nios2/nios2.md (load_got_register): Initialize GOT
19983 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19984 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19986 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19988 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19989 preserverd by passthrough, do not propagate the type.
19991 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19993 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19994 (mips_atomic_assign_expand_fenv): New function.
19995 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19997 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19999 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
20000 (__builtin_mips_set_fcsr): Likewise.
20001 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
20002 MIPS_USI_FTYPE_VOID.
20003 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
20004 (mips16_expand_set_fcsr): Likewise.
20005 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
20006 (mips16_set_fcsr_stub): Likewise.
20007 (mips16_get_fcsr_one_only_stub): New class.
20008 (mips16_set_fcsr_one_only_stub): Likewise.
20009 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
20010 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
20011 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
20012 (hard_float): New availability predicate.
20013 (mips_builtins): Add get_fcsr and set_fcsr.
20014 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
20015 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
20016 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
20017 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
20018 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
20021 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20023 * config/mips/mips.c (mips_one_only_stub): New class.
20024 (mips_need_mips16_rdhwr_p): Replace with...
20025 (mips16_rdhwr_stub): ...this new variable.
20026 (mips16_stub_call_address): New function.
20027 (mips16_rdhwr_one_only_stub): New class.
20028 (mips_expand_thread_pointer): Use mips16_stub_call_address.
20029 (mips_output_mips16_rdhwr): Delete.
20030 (mips_finish_stub): New function.
20031 (mips_code_end): Use it to handle rdhwr stubs.
20033 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
20036 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
20037 when calculating size of integer atomic types.
20039 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
20041 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
20043 2014-02-01 Jakub Jelinek <jakub@redhat.com>
20045 PR tree-optimization/60003
20046 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
20047 * profile.c (branch_prob): Use gimple_call_builtin_p
20048 to check for BUILT_IN_SETJMP_RECEIVER.
20049 * tree-inline.c (copy_bb): Call notice_special_calls.
20051 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
20054 * lra-constraints.c (process_alt_operands): Update reload_sum only
20057 2014-01-31 Richard Henderson <rth@redhat.com>
20059 PR middle-end/60004
20060 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
20061 until after else_eh is processed.
20063 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20065 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
20066 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
20067 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
20068 in smmintrin.h, remove them.
20069 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
20070 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
20071 * config/i386/i386.md (ROUND_SAE): Fix value.
20072 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
20073 (const48_operand): New.
20074 * config/i386/subst.md (round), (round_expand): Use
20075 const_4_or_8_to_11_operand.
20076 (round_saeonly), (round_saeonly_expand): Use const48_operand.
20078 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20080 * config/i386/constraints.md (Yk): Swap meaning with k.
20081 * config/i386/i386.md (movhi_internal): Change Yk to k.
20082 (movqi_internal): Ditto.
20083 (*k<logic><mode>): Ditto.
20086 (kandn<mode>): Ditto.
20087 (*<code>hi_1): Ditto.
20088 (*<code>qi_1): Ditto.
20089 (kxnor<mode>): Ditto.
20090 (kortestzhi): Ditto.
20091 (kortestchi): Ditto.
20093 (*one_cmplhi2_1): Ditto.
20094 (*one_cmplqi2_1): Ditto.
20095 * config/i386/sse.md (): Change k to Yk.
20096 (avx512f_load<mode>_mask): Ditto.
20097 (avx512f_blendm<mode>): Ditto.
20098 (avx512f_store<mode>_mask): Ditto.
20099 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
20100 (avx512f_storedqu<mode>_mask): Ditto.
20101 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
20103 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
20104 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
20105 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
20106 (avx512f_maskcmp<mode>3): Ditto.
20107 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
20108 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
20109 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
20110 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
20111 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
20112 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
20113 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
20114 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
20115 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
20116 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
20117 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
20118 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
20119 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
20120 (vec_extract_lo_<mode>_maskm): Ditto.
20121 (vec_extract_hi_<mode>_maskm): Ditto.
20122 (avx512f_vternlog<mode>_mask): Ditto.
20123 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
20124 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
20125 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
20126 (avx512f_<code>v8div16qi2_mask): Ditto.
20127 (avx512f_<code>v8div16qi2_mask_store): Ditto.
20128 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
20129 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
20130 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
20131 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
20132 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20133 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20134 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20135 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20136 (avx512cd_maskb_vec_dupv8di): Ditto.
20137 (avx512cd_maskw_vec_dupv16si): Ditto.
20138 (avx512f_vpermi2var<mode>3_maskz): Ditto.
20139 (avx512f_vpermi2var<mode>3_mask): Ditto.
20140 (avx512f_vpermi2var<mode>3_mask): Ditto.
20141 (avx512f_vpermt2var<mode>3_maskz): Ditto.
20142 (*avx512f_gathersi<mode>): Ditto.
20143 (*avx512f_gathersi<mode>_2): Ditto.
20144 (*avx512f_gatherdi<mode>): Ditto.
20145 (*avx512f_gatherdi<mode>_2): Ditto.
20146 (*avx512f_scattersi<mode>): Ditto.
20147 (*avx512f_scatterdi<mode>): Ditto.
20148 (avx512f_compress<mode>_mask): Ditto.
20149 (avx512f_compressstore<mode>_mask): Ditto.
20150 (avx512f_expand<mode>_mask): Ditto.
20151 * config/i386/subst.md (mask): Change k to Yk.
20152 (mask_scalar_merge): Ditto.
20155 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
20157 * doc/extend.texi (Vector Extensions): Document ?: in C++.
20159 2014-01-31 Richard Biener <rguenther@suse.de>
20161 PR middle-end/59990
20162 * builtins.c (fold_builtin_memory_op): Make sure to not
20163 use a floating-point mode or a boolean or enumeral type for
20164 the copy operation.
20166 2014-01-30 DJ Delorie <dj@redhat.com>
20168 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
20169 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
20170 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
20171 whenever main() has an epilogue.
20173 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20175 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
20176 unused variable "field".
20177 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
20178 (vsx_mergeh_<mode>): Likewise.
20179 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
20180 (altivec_vmrghh): Likewise.
20181 (altivec_vmrghw): Likewise.
20182 (altivec_vmrglb): Likewise.
20183 (altivec_vmrglh): Likewise.
20184 (altivec_vmrglw): Likewise.
20185 (altivec_vspltb): Add missing uses.
20186 (altivec_vsplth): Likewise.
20187 (altivec_vspltw): Likewise.
20188 (altivec_vspltsf): Likewise.
20190 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20193 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
20194 frame related instructions.
20196 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
20198 PR rtl-optimization/59959
20199 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
20200 any reload of register whose subreg is invalid.
20202 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20204 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
20205 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
20206 Add missing return type - void.
20208 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20210 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
20211 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
20212 remove element index adjustment for endian (now handled in vsx.md
20214 (altivec_expand_vec_perm_const): Use
20215 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
20216 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
20217 (vsx_xxspltw_<mode>): Adjust element index for little endian.
20218 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
20219 define_expand and a new define_insn *altivec_vspltb_internal;
20220 adjust for -maltivec=be on a little endian target.
20221 (altivec_vspltb_direct): New.
20222 (altivec_vsplth): Divide into a define_expand and a new
20223 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
20224 little endian target.
20225 (altivec_vsplth_direct): New.
20226 (altivec_vspltw): Divide into a define_expand and a new
20227 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
20228 little endian target.
20229 (altivec_vspltw_direct): New.
20230 (altivec_vspltsf): Divide into a define_expand and a new
20231 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
20232 a little endian target.
20234 2014-01-30 Richard Biener <rguenther@suse.de>
20236 PR tree-optimization/59993
20237 * tree-ssa-forwprop.c (associate_pointerplus): Check we
20238 can propagate form the earlier stmt and avoid the transform
20239 when the intermediate result is needed.
20241 2014-01-30 Alangi Derick <alangiderick@gmail.com>
20243 * README.Portability: Fix typo.
20245 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
20247 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
20248 comparison_operator with ordered_comparison_operator.
20250 2014-01-30 Nick Clifton <nickc@redhat.com>
20252 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
20253 Rename to mn10300_store_multiple_regs.
20254 * config/mn10300/mn10300.c: Likewise.
20255 * config/mn10300/mn10300.md (store_movm): Fix typo: call
20256 store_multiple_regs.
20257 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
20258 Call mn10300_store_multiple_regs.
20260 2014-01-30 Nick Clifton <nickc@redhat.com>
20261 DJ Delorie <dj@redhat.com>
20263 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
20264 %fp 2 to keep registers after it properly word-aligned.
20265 (rl78_alloc_physical_registers_umul): Handle the case where both
20266 input operands are the same.
20268 2014-01-30 Richard Biener <rguenther@suse.de>
20270 PR tree-optimization/59903
20271 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
20274 2014-01-30 Jason Merrill <jason@redhat.com>
20277 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
20280 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
20282 2014-01-30 Richard Biener <rguenther@suse.de>
20284 PR tree-optimization/59951
20285 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
20287 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
20290 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
20291 SFmode to DFmode case.
20293 2014-01-29 DJ Delorie <dj@redhat.com>
20295 * config/msp430/msp430.opt (-minrt): New.
20296 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
20298 (ENDFILE_SPEC): Likewise.
20300 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
20302 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
20303 (estimate_function_body_sizes): Use it.
20305 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
20308 * dwarf2out.c (is_cxx_auto): New.
20309 (is_base_type): Use it.
20310 (gen_type_die_with_usage): Likewise.
20312 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20314 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
20315 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
20316 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
20317 -maltivec=be with LE targets.
20318 (vsx_mergeh_<mode>): Likewise.
20319 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
20320 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
20321 (altivec_vmrghb): Replace with define_expand and new
20322 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
20323 (altivec_vmrghb_direct): New define_insn.
20324 (altivec_vmrghh): Replace with define_expand and new
20325 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
20326 (altivec_vmrghh_direct): New define_insn.
20327 (altivec_vmrghw): Replace with define_expand and new
20328 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
20329 (altivec_vmrghw_direct): New define_insn.
20330 (*altivec_vmrghsf): Adjust for endianness.
20331 (altivec_vmrglb): Replace with define_expand and new
20332 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
20333 (altivec_vmrglb_direct): New define_insn.
20334 (altivec_vmrglh): Replace with define_expand and new
20335 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
20336 (altivec_vmrglh_direct): New define_insn.
20337 (altivec_vmrglw): Replace with define_expand and new
20338 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
20339 (altivec_vmrglw_direct): New define_insn.
20340 (*altivec_vmrglsf): Adjust for endianness.
20341 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20342 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20343 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20344 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20345 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20346 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20347 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20348 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20350 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
20352 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
20353 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
20356 2014-01-29 Richard Biener <rguenther@suse.de>
20358 PR tree-optimization/58742
20359 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
20360 associate_pointerplus_align.
20361 (associate_pointerplus_diff): New function.
20362 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20363 and associate_pointerplus_diff.
20365 2014-01-29 Richard Biener <rguenther@suse.de>
20367 * lto-streamer.h (LTO_major_version): Bump to 3.
20368 (LTO_minor_version): Reset to 0.
20370 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20372 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20373 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20374 (arm_file_start): Generate correct asm header for armv7ve.
20375 * config/arm/bpabi.h: Add multilib support for armv7ve.
20376 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20377 and cortex-a15 to armv7ve.
20378 * config/arm/t-aprofile: Add multilib support for armv7ve.
20379 * doc/invoke.texi: Document -march=armv7ve.
20381 2014-01-29 Richard Biener <rguenther@suse.de>
20383 PR tree-optimization/58742
20384 * tree-ssa-forwprop.c (associate_plusminus): Return true
20385 if we changed sth, defer EH cleanup to ...
20386 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20387 (simplify_mult): New function.
20389 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20391 PR middle-end/59917
20392 PR tree-optimization/59920
20393 * tree.c (build_common_builtin_nodes): Remove
20394 __builtin_setjmp_dispatcher initialization.
20395 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20396 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20397 instead of gsi_after_labels + manually skipping debug stmts.
20398 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20399 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20400 * tree-inline.c (copy_edges_for_bb): Remove
20401 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20402 argument. Ignore computed_goto_p stmts. Don't call
20403 make_abnormal_goto_edges. If a call might need abnormal edges
20404 for non-local gotos, see if it already has an edge to
20405 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20406 with true argument, don't do anything then, otherwise add
20407 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20408 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20410 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20411 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20412 (lower_stmt): Don't set data->calls_builtin_setjmp.
20413 (lower_builtin_setjmp): Adjust comment.
20414 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20415 * tree-cfg.c (found_computed_goto): Remove.
20416 (factor_computed_gotos): Remove.
20417 (make_goto_expr_edges): Return bool, true for computed gotos.
20418 Don't call make_abnormal_goto_edges.
20419 (build_gimple_cfg): Don't set found_computed_goto, don't call
20420 factor_computed_gotos.
20421 (computed_goto_p): No longer static.
20422 (make_blocks): Don't set found_computed_goto.
20423 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20424 (make_edges): If make_goto_expr_edges returns true, push bb
20425 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20426 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20427 vector. Record mapping between bbs and OpenMP regions if there
20428 are any, adjust make_gimple_omp_edges caller. Call
20429 handle_abnormal_edges.
20430 (make_abnormal_goto_edges): Remove.
20431 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20432 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20433 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20434 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20435 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20436 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20437 filling *region also set *region_idx to (*region)->entry->index.
20440 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20441 For REGs set ORIGINAL_REGNO.
20443 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20445 * doc/md.texi: Mention that a target shouldn't implement
20446 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20449 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20451 PR tree-optimization/59594
20452 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20453 a copy of the datarefs vector rather than the vector itself.
20455 2014-01-28 Jason Merrill <jason@redhat.com>
20458 * dwarf2out.c (auto_die): New static.
20459 (gen_type_die_with_usage): Handle C++1y 'auto'.
20460 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20463 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20466 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20467 (SPEC_X32): Likewise.
20468 (SPEC_64): Likewise.
20469 * config/i386/i386.c (ix86_option_override_internal): Turn off
20470 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20472 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20473 * config/i386/i386.h (TARGET_16BIT): New macro.
20474 (TARGET_16BIT_P): Likewise.
20475 * config/i386/i386.opt: Add m16.
20476 * doc/invoke.texi: Document -m16.
20478 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20480 PR preprocessor/59935
20481 * input.c (location_get_source_line): Bail out on when line number
20482 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20484 2014-01-28 Richard Biener <rguenther@suse.de>
20486 PR tree-optimization/58742
20487 * tree-ssa-forwprop.c (associate_plusminus): Handle
20488 pointer subtraction of the form (T)(P + A) - (T)P.
20490 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20492 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20495 2014-01-28 Richard Biener <rguenther@suse.de>
20498 2014-01-28 Richard Biener <rguenther@suse.de>
20500 PR rtl-optimization/45364
20501 PR rtl-optimization/59890
20502 * var-tracking.c (local_get_addr_clear_given_value): Handle
20503 already cleared slot.
20504 (val_reset): Handle not allocated local_get_addr_cache.
20505 (vt_find_locations): Use post-order on the inverted CFG.
20507 2014-01-28 Richard Biener <rguenther@suse.de>
20509 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20511 2014-01-28 Richard Biener <rguenther@suse.de>
20513 PR rtl-optimization/45364
20514 PR rtl-optimization/59890
20515 * var-tracking.c (local_get_addr_clear_given_value): Handle
20516 already cleared slot.
20517 (val_reset): Handle not allocated local_get_addr_cache.
20518 (vt_find_locations): Use post-order on the inverted CFG.
20520 2014-01-28 Alan Modra <amodra@gmail.com>
20522 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20523 * configure.ac <recursive call for build != host>: Define
20524 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20525 and LD_FOR_BUILD too.
20526 * configure: Regenerate.
20528 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20530 * config/i386/i386.c (get_builtin_code_for_version): Separate
20531 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20532 Broadwell from Haswell.
20534 2014-01-27 Steve Ellcey <sellcey@mips.com>
20536 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20537 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20538 * config/mips/mips.c (mips_option_override): Change setting
20540 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20541 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20542 Change from Mask to Var.
20544 2014-01-27 Jeff Law <law@redhat.com>
20546 * ipa-inline.c (inline_small_functions): Fix typo.
20548 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20550 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20551 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20552 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20553 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20554 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20555 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20556 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20557 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20558 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20559 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20560 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20561 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20562 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20563 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20564 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20565 (_mm512_storeu_epi64): Ditto.
20566 (_mm512_cmpge_epi32_mask): Ditto.
20567 (_mm512_cmpge_epu32_mask): Ditto.
20568 (_mm512_cmpge_epi64_mask): Ditto.
20569 (_mm512_cmpge_epu64_mask): Ditto.
20570 (_mm512_cmple_epi32_mask): Ditto.
20571 (_mm512_cmple_epu32_mask): Ditto.
20572 (_mm512_cmple_epi64_mask): Ditto.
20573 (_mm512_cmple_epu64_mask): Ditto.
20574 (_mm512_cmplt_epi32_mask): Ditto.
20575 (_mm512_cmplt_epu32_mask): Ditto.
20576 (_mm512_cmplt_epi64_mask): Ditto.
20577 (_mm512_cmplt_epu64_mask): Ditto.
20578 (_mm512_cmpneq_epi32_mask): Ditto.
20579 (_mm512_cmpneq_epu32_mask): Ditto.
20580 (_mm512_cmpneq_epi64_mask): Ditto.
20581 (_mm512_cmpneq_epu64_mask): Ditto.
20582 (_mm512_expand_pd): Ditto.
20583 (_mm512_expand_ps): Ditto.
20584 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20585 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20586 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20587 * config/i386/i386.c (ix86_builtins): Add
20588 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20589 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20590 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20591 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20592 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20593 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20594 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20595 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20596 IX86_BUILTIN_PMOVUSQW512_MEM.
20597 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20598 __builtin_ia32_pmovsqd512mem_mask,
20599 __builtin_ia32_pmovqd512mem_mask,
20600 __builtin_ia32_pmovusqw512mem_mask,
20601 __builtin_ia32_pmovsqw512mem_mask,
20602 __builtin_ia32_pmovqw512mem_mask,
20603 __builtin_ia32_pmovusdw512mem_mask,
20604 __builtin_ia32_pmovsdw512mem_mask,
20605 __builtin_ia32_pmovdw512mem_mask,
20606 __builtin_ia32_pmovqb512mem_mask,
20607 __builtin_ia32_pmovusqb512mem_mask,
20608 __builtin_ia32_pmovsqb512mem_mask,
20609 __builtin_ia32_pmovusdb512mem_mask,
20610 __builtin_ia32_pmovsdb512mem_mask,
20611 __builtin_ia32_pmovdb512mem_mask.
20612 (bdesc_args): Add __builtin_ia32_expanddf512,
20613 __builtin_ia32_expandsf512.
20614 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20615 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20616 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20617 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20618 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20619 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20620 (avx512f_<code>v8div16qi2_mask_store): This.
20621 (avx512f_expand<mode>): New.
20623 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20625 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20627 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20628 (_mm512_prefetch_i32scatter_pd): Ditto.
20629 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20630 (_mm512_prefetch_i64scatter_pd): Ditto.
20631 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20632 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20633 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20634 (_mm512_prefetch_i32scatter_ps): Ditto.
20635 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20636 (_mm512_prefetch_i64scatter_ps): Ditto.
20637 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20638 * config/i386/i386-builtin-types.def: Define
20639 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20640 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20641 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20642 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20643 IX86_BUILTIN_SCATTERPFQPD.
20644 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20645 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20646 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20647 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20648 __builtin_ia32_scatterpfqps.
20649 (ix86_expand_builtin): Expand new built-ins.
20650 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20651 fix memory access data type.
20652 (*avx512pf_gatherpf<mode>_mask): Ditto.
20653 (*avx512pf_gatherpf<mode>): Ditto.
20654 (avx512pf_scatterpf<mode>): Ditto.
20655 (*avx512pf_scatterpf<mode>_mask): Ditto.
20656 (*avx512pf_scatterpf<mode>): Ditto.
20657 (GATHER_SCATTER_SF_MEM_MODE): New.
20658 (avx512pf_gatherpf<mode>df): Ditto.
20659 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20660 (*avx512pf_scatterpf<mode>df): Ditto.
20662 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20665 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20666 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20669 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20671 * common/config/arm/arm-common.c
20672 (arm_rewrite_mcpu): Handle multiple names.
20674 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20676 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20678 * gimple-builder.h (create_gimple_tmp): Delete.
20680 2014-01-27 Christian Bruel <christian.bruel@st.com>
20682 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20685 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20687 * config/pa/pa.md (call): Generate indirect long calls to non-local
20688 functions when outputing 32-bit code.
20689 (call_value): Likewise except for special call to buggy powf function.
20691 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20692 portable runtime and PIC indirect calls.
20693 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20694 and PIC call sequences. Use ldo instead of blr to set return register
20695 in PIC call sequence.
20697 2014-01-25 Walter Lee <walt@tilera.com>
20699 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20700 avoid clobbering a live register.
20702 2014-01-25 Walter Lee <walt@tilera.com>
20704 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20705 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20706 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20707 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20709 2014-01-25 Walter Lee <walt@tilera.com>
20711 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20712 arguments on even registers.
20713 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20715 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20716 (BIGGEST_ALIGNMENT): Ditto.
20717 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20719 2014-01-25 Walter Lee <walt@tilera.com>
20721 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20722 insns before bundling.
20723 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20725 2014-01-25 Walter Lee <walt@tilera.com>
20727 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20728 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20729 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20731 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20733 * config/mips/constraints.md (kl): Delete.
20734 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20735 define expands, using...
20736 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20737 instructions for MIPS16.
20738 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20739 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20741 2014-01-25 Walter Lee <walt@tilera.com>
20743 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20747 2014-01-25 Walter Lee <walt@tilera.com>
20749 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20750 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20752 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20754 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20757 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20759 * print-rtl.c (in_call_function_usage): New var.
20760 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20761 EXPR_LIST mode as mode and not as reg note name.
20763 PR middle-end/59561
20764 * cfgloopmanip.c (copy_loop_info): If
20765 loop->warned_aggressive_loop_optimizations, make sure
20766 the flag is set in target loop too.
20768 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20770 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20772 * builtins.def: Likewise.
20773 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20774 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20775 * ira.c (ira_setup_eliminable_regset): Likewise.
20776 * omp-low.c (gate_expand_omp): Likewise.
20777 (execute_lower_omp): Likewise.
20778 (diagnose_sb_0): Likewise.
20779 (gate_diagnose_omp_blocks): Likewise.
20780 (simd_clone_clauses_extract): Likewise.
20783 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20785 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20786 correction for little endian...
20787 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20790 2014-01-24 Jeff Law <law@redhat.com>
20792 PR tree-optimization/59919
20793 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20794 for non-returning calls.
20796 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20798 * common/config/aarch64/aarch64-common.c
20799 (aarch64_rewrite_mcpu): Handle multiple names.
20800 * config/aarch64/aarch64.h
20801 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20803 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20805 * input.c (add_file_to_cache_tab): Handle the case where fopen
20808 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20811 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20812 from push operand if code of push isn't PRE_DEC.
20814 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20817 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20818 -mquad-memory-atomic. Update -mquad-memory documentation to say
20819 it is only used for non-atomic loads/stores.
20821 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20822 -mquad-memory or -mquad-memory-atomic switches.
20824 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20825 -mquad-memory-atomic to ISA 2.07 support.
20827 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20828 to separate support of normal quad word memory operations (ldq, stq)
20829 from the atomic quad word memory operations.
20831 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20832 support to separate non-atomic quad word operations from atomic
20833 quad word operations. Disable non-atomic quad word operations in
20834 little endian mode so that we don't have to swap words after the
20835 load and before the store.
20836 (quad_load_store_p): Add comment about atomic quad word support.
20837 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20838 options printed with -mdebug=reg.
20840 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20841 -mquad-memory-atomic as the test for whether we have quad word
20842 atomic instructions.
20843 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20844 or -mp8-vector are used, allow byte/half-word atomic operations.
20846 * config/rs6000/sync.md (load_lockedti): Insure that the address
20847 is a proper indexed or indirect address for the lqarx instruction.
20848 On little endian systems, swap the hi/lo registers after the lqarx
20850 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20851 insure the address is valid for the lqarx instruction.
20852 (store_conditionalti): Insure that the address is a proper indexed
20853 or indirect address for the stqcrx. instruction. On little endian
20854 systems, swap the hi/lo registers before doing the stqcrx.
20856 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20857 insure the address is valid for the stqcrx. instruction.
20859 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20860 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20861 type of quad memory support is available.
20863 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20865 PR regression/59915
20866 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20867 there is a danger of looping.
20869 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20871 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20872 force flag_ira_loop_pressure if set via command line.
20874 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20876 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20877 (ashr_simd): New builtin handling DI mode.
20878 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20879 (aarch64_sshr_simddi): New match pattern.
20880 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20881 (vshrd_n_s64): Likewise.
20882 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20884 2014-01-23 Nick Clifton <nickc@redhat.com>
20886 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20887 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20888 favour of mcu specific scripts.
20889 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20892 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20893 Alex Velenko <Alex.Velenko@arm.com>
20895 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20896 (vaddv_s16): Likewise.
20897 (vaddv_s32): Likewise.
20898 (vaddv_u8): Likewise.
20899 (vaddv_u16): Likewise.
20900 (vaddv_u32): Likewise.
20901 (vaddvq_s8): Likewise.
20902 (vaddvq_s16): Likewise.
20903 (vaddvq_s32): Likewise.
20904 (vaddvq_s64): Likewise.
20905 (vaddvq_u8): Likewise.
20906 (vaddvq_u16): Likewise.
20907 (vaddvq_u32): Likewise.
20908 (vaddvq_u64): Likewise.
20909 (vaddv_f32): Likewise.
20910 (vaddvq_f32): Likewise.
20911 (vaddvq_f64): Likewise.
20912 (vmaxv_f32): Likewise.
20913 (vmaxv_s8): Likewise.
20914 (vmaxv_s16): Likewise.
20915 (vmaxv_s32): Likewise.
20916 (vmaxv_u8): Likewise.
20917 (vmaxv_u16): Likewise.
20918 (vmaxv_u32): Likewise.
20919 (vmaxvq_f32): Likewise.
20920 (vmaxvq_f64): Likewise.
20921 (vmaxvq_s8): Likewise.
20922 (vmaxvq_s16): Likewise.
20923 (vmaxvq_s32): Likewise.
20924 (vmaxvq_u8): Likewise.
20925 (vmaxvq_u16): Likewise.
20926 (vmaxvq_u32): Likewise.
20927 (vmaxnmv_f32): Likewise.
20928 (vmaxnmvq_f32): Likewise.
20929 (vmaxnmvq_f64): Likewise.
20930 (vminv_f32): Likewise.
20931 (vminv_s8): Likewise.
20932 (vminv_s16): Likewise.
20933 (vminv_s32): Likewise.
20934 (vminv_u8): Likewise.
20935 (vminv_u16): Likewise.
20936 (vminv_u32): Likewise.
20937 (vminvq_f32): Likewise.
20938 (vminvq_f64): Likewise.
20939 (vminvq_s8): Likewise.
20940 (vminvq_s16): Likewise.
20941 (vminvq_s32): Likewise.
20942 (vminvq_u8): Likewise.
20943 (vminvq_u16): Likewise.
20944 (vminvq_u32): Likewise.
20945 (vminnmv_f32): Likewise.
20946 (vminnmvq_f32): Likewise.
20947 (vminnmvq_f64): Likewise.
20949 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20951 * config/aarch64/aarch64-simd.md
20952 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20953 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20954 (*aarch64_mul3_elt<mode>): Likewise.
20955 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20956 (*aarch64_mul3_elt_to_64v2df): Likewise.
20957 (*aarch64_mla_elt<mode>): Likewise.
20958 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20959 (*aarch64_mls_elt<mode>): Likewise.
20960 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20961 (*aarch64_fma4_elt<mode>): Likewise.
20962 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20963 (*aarch64_fma4_elt_to_64v2df): Likewise.
20964 (*aarch64_fnma4_elt<mode>): Likewise.
20965 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20966 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20967 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20968 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20969 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20970 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20971 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20972 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20973 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20975 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20977 * config/aarch64/aarch64-simd.md
20978 (aarch64_be_checked_get_lane<mode>): New define_expand.
20979 * config/aarch64/aarch64-simd-builtins.def
20980 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20981 New builtin definition.
20982 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20983 Use new safe be builtin.
20985 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20987 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20989 (aarch64_be_st1<mode>): Likewise.
20990 (aarch_ld1<VALL:mode>): Define_expand modified.
20991 (aarch_st1<VALL:mode>): Likewise.
20992 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20993 (UNSPEC_ST1): Likewise.
20995 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20997 * config/microblaze/microblaze.md: Add trap insn and attribute
20999 2014-01-23 Dodji Seketeli <dodji@redhat.com>
21001 PR preprocessor/58580
21002 * input.h (location_get_source_line): Take an additional line_size
21004 (void diagnostics_file_cache_fini): Declare new function.
21005 * input.c (struct fcache): New type.
21006 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
21007 New static constants.
21008 (diagnostic_file_cache_init, total_lines_num)
21009 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
21010 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
21011 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
21012 (get_next_line, read_next_line, goto_next_line, read_line_num):
21013 New static function definitions.
21014 (diagnostic_file_cache_fini): New function.
21015 (location_get_source_line): Take an additional output line_len
21016 parameter. Re-write using lookup_or_add_file_to_cache_tab and
21018 * diagnostic.c (diagnostic_finish): Call
21019 diagnostic_file_cache_fini.
21020 (adjust_line): Take an additional input parameter for the length
21021 of the line, rather than calculating it with strlen.
21022 (diagnostic_show_locus): Adjust the use of
21023 location_get_source_line and adjust_line with respect to their new
21024 signature. While displaying a line now, do not stop at the first
21025 null byte. Rather, display the zero byte as a space and keep
21026 going until we reach the size of the line.
21027 * Makefile.in: Add vec.o to OBJS-libcommon
21029 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21030 Ilya Tocar <ilya.tocar@intel.com>
21032 * config/i386/avx512fintrin.h (_mm512_kmov): New.
21033 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
21034 (__builtin_ia32_kmov16): Ditto.
21035 * config/i386/i386.md (UNSPEC_KMOV): New.
21038 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21040 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
21041 (_mm512_storeu_si512): Ditto.
21043 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
21046 * rtl.h (get_referenced_operands): Declare.
21047 * recog.c (get_referenced_operands): New function.
21048 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
21049 operands have been referenced when recording LO_SUM references.
21051 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
21053 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
21055 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21057 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
21058 Enable for generic and recent AMD targets.
21060 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21062 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
21063 ARG_SIZE note when adjustment was eliminated.
21065 2014-01-22 Jeff Law <law@redhat.com>
21067 PR tree-optimization/59597
21068 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
21069 in file. Accept new argument REGISTERING and use it to modify
21070 dump output appropriately.
21071 (register_jump_thread): Corresponding changes.
21072 (mark_threaded_blocks): Reinstate code to cancel unprofitable
21073 thread paths involving joiner blocks. Add code to dump cancelled
21074 jump threading paths.
21076 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
21078 PR rtl-optimization/59477
21079 * lra-constraints.c (inherit_in_ebb): Process call for living hard
21080 regs. Update reloads_num and potential_reload_hard_regs for all insns.
21082 2014-01-22 Tom Tromey <tromey@redhat.com>
21084 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
21086 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
21088 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21090 PR rtl-optimization/59896
21091 * lra-constraints.c (process_alt_operands): Check unused note for
21092 matched operands of insn with no output reloads.
21094 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
21096 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
21097 (mips_move_from_gpr_cost): Likewise.
21099 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21101 PR rtl-optimization/59858
21102 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
21103 ira_class_hard_regs_num.
21104 (process_alt_operands): Increase reject for dying matched operand.
21106 2014-01-21 Jakub Jelinek <jakub@redhat.com>
21109 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
21110 smaller than size, perform several stores or loads and stores
21111 at dst + count - size to store or copy all of size bytes, rather
21112 than just last modesize bytes.
21114 2014-01-20 DJ Delorie <dj@redhat.com>
21116 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
21117 that CLOBBERs are REGs before propogating their values.
21119 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
21121 PR middle-end/59789
21122 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
21123 (cgraph_inline_failed_type): New function.
21124 * cgraph.h (DEFCIFCODE): Add type.
21125 (cgraph_inline_failed_type_t): New enum.
21126 (cgraph_inline_failed_type): New prototype.
21127 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
21128 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21129 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
21130 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
21131 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
21132 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
21133 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
21134 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
21135 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
21136 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
21137 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
21138 OPTIMIZATION_MISMATCH.
21139 * tree-inline.c (expand_call_inline): Emit errors during
21140 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
21142 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21145 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
21146 mode attribute in insn output.
21148 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
21150 * output.h (output_constant): Delete.
21151 * varasm.c (output_constant): Make private.
21153 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
21155 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
21157 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21159 PR middle-end/59860
21160 * tree.h (fold_builtin_strcat): New prototype.
21161 * builtins.c (fold_builtin_strcat): No longer static. Add len
21162 argument, if non-NULL, don't call c_strlen. Optimize
21163 directly into __builtin_memcpy instead of __builtin_strcpy.
21164 (fold_builtin_2): Adjust fold_builtin_strcat caller.
21165 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
21167 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21169 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21170 for SImode_address_operand operands, having only a REG argument.
21172 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
21174 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
21175 loader name using mbig-endian.
21176 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
21178 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21180 * doc/invoke.texi (-march): Clarify documentation for AArch64.
21181 (-mtune): Likewise.
21184 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
21186 * config/aarch64/aarch64-protos.h
21187 (aarch64_cannot_change_mode_class_ptr): Declare.
21188 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
21189 aarch64_cannot_change_mode_class_ptr): New.
21190 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
21191 backend hook aarch64_cannot_change_mode_class.
21193 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21195 * common/config/aarch64/aarch64-common.c
21196 (aarch64_handle_option): Don't handle any option order logic here.
21197 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
21198 selected_cpu, warn on architecture version mismatch.
21199 (aarch64_override_options): Fix parsing order for option strings.
21201 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21202 Iain Sandoe <iain@codesourcery.com>
21205 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
21206 warning. Amend comment to reflect current functionality.
21208 2014-01-20 Richard Biener <rguenther@suse.de>
21210 PR middle-end/59860
21211 * builtins.c (fold_builtin_strcat): Remove case better handled
21212 by tree-ssa-strlen.c.
21214 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
21216 * config/aarch64/aarch64.opt
21217 (mcpu, march, mtune): Make case-insensitive.
21219 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21222 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21223 if operands[1] is a REG or ZERO_EXTEND of a REG.
21225 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
21227 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
21229 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
21231 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
21232 long non-pic millicode calls.
21234 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21236 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
21238 2014-01-19 Kito Cheng <kito@0xlab.org>
21240 * builtins.c (expand_movstr): Check movstr expand done or fail.
21242 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21243 H.J. Lu <hongjiu.lu@intel.com>
21246 * config/i386/i386.md (*lea<mode>): Zero-extend return register
21247 to DImode for zero-extended addresses.
21249 2014-01-19 Jakub Jelinek <jakub@redhat.com>
21251 PR rtl-optimization/57763
21252 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
21253 on the new indirect jump_insn and increment LABEL_NUSES (label).
21255 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
21259 * config.gcc (x86_archs): New variable.
21260 (x86_64_archs): Likewise.
21261 (x86_cpus): Likewise.
21262 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
21263 --with-arch/--with-cpu= options.
21264 Support --with-arch=/--with-cpu={nehalem,westmere,
21265 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
21267 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21269 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
21270 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
21272 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21274 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
21276 2014-01-18 Jakub Jelinek <jakub@redhat.com>
21279 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
21280 clear cpp_get_options (parse_in)->warn_unused_macros for
21281 ix86_target_macros_internal with cpp_define.
21283 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
21285 * jump.c (delete_related_insns): Keep (use (insn))s.
21286 * reorg.c (redundant_insn): Check for barriers too.
21288 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21290 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
21292 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
21294 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
21295 call to $$dyncall when TARGET_LONG_CALLS is true.
21297 2014-01-17 Jeff Law <law@redhat.com>
21299 * ree.c (combine_set_extension): Temporarily disable test for
21300 changing number of hard registers.
21302 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21304 PR middle-end/58125
21305 * ipa-inline-analysis.c (inline_free_summary):
21306 Do not free summary of aliases.
21308 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21310 PR middle-end/59706
21311 * gimplify.c (gimplify_expr): Use create_tmp_var
21312 instead of create_tmp_var_raw. If cond doesn't have
21313 integral type, don't add the IFN_ANNOTATE builtin at all.
21315 2014-01-17 Martin Jambor <mjambor@suse.cz>
21318 * ipa-cp.c (prev_edge_clone): New variable.
21319 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
21320 Also resize prev_edge_clone vector.
21321 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
21322 (ipcp_edge_removal_hook): New function.
21323 (ipcp_driver): Register ipcp_edge_removal_hook.
21325 2014-01-17 Andrew Pinski <apinski@cavium.com>
21326 Steve Ellcey <sellcey@mips.com>
21329 * config/mips/mips.c (mips_print_operand): Check operand mode instead
21332 2014-01-17 Jeff Law <law@redhat.com>
21334 PR middle-end/57904
21335 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
21336 so that pass_ccp runs first.
21338 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21340 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
21341 (ix86_adjust_cost): Use !TARGET_XXX.
21342 (do_reorder_for_imul): Likewise.
21343 (swap_top_of_ready_list): Likewise.
21344 (ix86_sched_reorder): Likewise.
21346 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21348 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21349 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
21350 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
21351 (intel_memset): New. Duplicate slm_memset.
21352 (intel_cost): New. Duplicate slm_cost.
21353 (m_INTEL): New macro.
21354 (processor_target_table): Add "intel".
21355 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
21356 with PROCESSOR_INTEL for "intel".
21357 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
21358 PROCESSOR_SILVERMONT.
21359 (ix86_issue_rate): Likewise.
21360 (ix86_adjust_cost): Likewise.
21361 (ia32_multipass_dfa_lookahead): Likewise.
21362 (swap_top_of_ready_list): Likewise.
21363 (ix86_sched_reorder): Likewise.
21364 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21365 instead of TARGET_OPT_AGU.
21366 * config/i386/i386.h (TARGET_INTEL): New.
21367 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21368 (processor_type): Add PROCESSOR_INTEL.
21369 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21370 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21372 2014-01-17 Marek Polacek <polacek@redhat.com>
21375 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21378 2014-01-17 Richard Biener <rguenther@suse.de>
21380 PR tree-optimization/46590
21381 * opts.c (default_options_table): Add entries for
21382 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21383 all enabled at -O1 but not for -Og.
21384 * common.opt (fbranch-count-reg): Remove Init(1).
21385 (fmove-loop-invariants): Likewise.
21386 (ftree-pta): Likewise.
21388 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21390 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21391 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21392 decls to at least the GCC 4.8 used alignments.
21395 * tree-nested.c (convert_nonlocal_reference_stmt,
21396 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21397 of GIMPLE_BIND stmts, adjust associated decls.
21399 2014-01-17 Richard Biener <rguenther@suse.de>
21401 PR tree-optimization/46590
21402 * vec.h (vec<>::bseach): New member function implementing
21403 binary search according to C89 bsearch.
21404 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21405 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21406 bitmap pointer again. Make accesses_in_loop a flat array.
21407 (mem_ref_obstack): New global.
21408 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21409 (mark_ref_stored): Likewise.
21410 (ref_indep_loop_p_2): Likewise.
21411 (set_ref_stored_in_loop): New helper function.
21412 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21413 (memref_free): Adjust.
21414 (record_mem_ref_loc): Simplify.
21415 (gather_mem_refs_stmt): Adjust.
21416 (sort_locs_in_loop_postorder_cmp): New function.
21417 (analyze_memory_references): Sort accesses_in_loop after
21418 loop postorder number.
21419 (find_ref_loc_in_loop_cmp): New function.
21420 (for_all_locs_in_loop): Find relevant cluster of locs in
21421 accesses_in_loop and iterate without recursion.
21422 (execute_sm): Avoid uninit warning.
21423 (struct ref_always_accessed): Simplify.
21424 (ref_always_accessed::operator ()): Likewise.
21425 (ref_always_accessed_p): Likewise.
21426 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21427 loop postorder numbers here.
21428 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21431 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21434 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21435 on decls for which assemble_alias has been called.
21437 2014-01-17 Nick Clifton <nickc@redhat.com>
21439 * config/msp430/msp430.opt: (mcpu): New option.
21440 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21441 (msp430_option_override): Parse target_cpu. If the MCU name
21442 matches a generic string, clear target_mcu.
21443 (msp430_attr): Allow numeric interrupt values up to 63.
21444 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21445 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21447 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21449 * config/msp430/msp430.md (popm): Use %J rather than %I.
21450 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21451 (addhi_cy_i): Use immediate_operand for operand 2.
21452 * doc/invoke.texi: Document -mcpu option.
21454 2014-01-17 Richard Biener <rguenther@suse.de>
21456 PR rtl-optimization/38518
21457 * df.h (df_analyze_loop): Declare.
21458 * df-core.c: Include cfgloop.h.
21459 (df_analyze_1): Split out main part of df_analyze.
21460 (df_analyze): Adjust.
21461 (loop_inverted_post_order_compute): New function.
21462 (loop_post_order_compute): Likewise.
21463 (df_analyze_loop): New function avoiding whole-function
21464 postorder computes.
21465 * loop-invariant.c (find_defs): Use df_analyze_loop.
21466 (find_invariants): Adjust.
21467 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21469 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21471 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21472 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21474 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21476 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21477 traversal when removing references.
21479 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21482 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21484 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21486 PR middle-end/56791
21487 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21488 pushing a reload for an autoinc when we had previously reloaded an
21489 inner part of the address.
21491 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21493 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21495 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21496 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21497 when not giving up or versioning for alias only because of
21499 (vect_analyze_data_ref_dependences): Set to true.
21500 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21502 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21503 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21506 PR middle-end/58344
21507 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21510 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21511 operand 0 predicate for gathers, use a new pseudo as subtarget.
21513 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21515 PR middle-end/59609
21516 * lra-constraints.c (process_alt_operands): Add printing debug info.
21517 Check absence of input/output reloads for matched operands too.
21519 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21521 PR rtl-optimization/59835
21522 * ira.c (ira_init_register_move_cost): Increase cost for
21525 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21527 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21529 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21532 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21533 non-register objects. Use gen_(high/low)part more consistently.
21536 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21539 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21540 endian support, remove tests for WORDS_BIG_ENDIAN.
21541 (p8_mfvsrd_3_<mode>): Likewise.
21542 (reload_gpr_from_vsx<mode>): Likewise.
21543 (reload_gpr_from_vsxsf): Likewise.
21544 (p8_mfvsrd_4_disf): Likewise.
21546 2014-01-16 Richard Biener <rguenther@suse.de>
21548 PR rtl-optimization/46590
21549 * lcm.c (compute_antinout_edge): Use postorder iteration.
21550 (compute_laterin): Use inverted postorder iteration.
21552 2014-01-16 Nick Clifton <nickc@redhat.com>
21554 PR middle-end/28865
21555 * varasm.c (output_constant): Return the number of bytes actually
21557 (output_constructor_array_range): Update the field size with the
21558 number of bytes emitted by output_constant.
21559 (output_constructor_regular_field): Likewise. Also do not
21560 complain if the total number of bytes emitted is now greater
21561 than the expected fieldpos.
21562 * output.h (output_constant): Update prototype and descriptive comment.
21564 2014-01-16 Marek Polacek <polacek@redhat.com>
21566 PR middle-end/59827
21567 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21568 it is error_mark_node.
21570 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21572 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21573 VALID_AVX256_REG_OR_OI_MODE.
21575 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21577 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21578 current procedure should be profiled.
21580 2014-01-15 Andrew Pinski <apinski@cavium.com>
21582 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21583 of moving from/to the STACK_REG register class.
21585 2014-01-15 Richard Henderson <rth@redhat.com>
21588 * reginfo.c (global_regs_decl): Globalize.
21589 * rtl.h (global_regs_decl): Declare.
21590 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21591 reserved via global_regs.
21593 2014-01-15 Teresa Johnson <tejohnson@google.com>
21595 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21597 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21599 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21600 and vmulosh rather than call gen_vec_widen_smult_*.
21601 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21602 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21603 (vec_widen_smult_even_v16qi): Likewise.
21604 (vec_widen_umult_even_v8hi): Likewise.
21605 (vec_widen_smult_even_v8hi): Likewise.
21606 (vec_widen_umult_odd_v16qi): Likewise.
21607 (vec_widen_smult_odd_v16qi): Likewise.
21608 (vec_widen_umult_odd_v8hi): Likewise.
21609 (vec_widen_smult_odd_v8hi): Likewise.
21610 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21611 vmuloub rather than call gen_vec_widen_umult_*.
21612 (vec_widen_umult_lo_v16qi): Likewise.
21613 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21614 vmulosb rather than call gen_vec_widen_smult_*.
21615 (vec_widen_smult_lo_v16qi): Likewise.
21616 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21617 rather than call gen_vec_widen_umult_*.
21618 (vec_widen_umult_lo_v8hi): Likewise.
21619 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21620 rather than call gen_vec_widen_smult_*.
21621 (vec_widen_smult_lo_v8hi): Likewise.
21623 2014-01-15 Jeff Law <law@redhat.com>
21625 PR tree-optimization/59747
21626 * ree.c (find_and_remove_re): Properly handle case where a second
21627 eliminated extension requires widening a copy created for elimination
21628 of a prior extension.
21629 (combine_set_extension): Ensure that the number of hard regs needed
21630 for a destination register does not change when we widen it.
21632 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21634 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21635 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21636 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21637 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21638 (avr-*-rtems*): Likewise.
21639 (bfin*-rtems*): Likewise.
21640 (moxie-*-rtems*): Likewise.
21641 (h8300-*-rtems*): Likewise.
21642 (i[34567]86-*-rtems*): Likewise.
21643 (lm32-*-rtems*): Likewise.
21644 (m32r-*-rtems*): Likewise.
21645 (m68k-*-rtems*): Likewise.
21646 (microblaze*-*-rtems*): Likewise.
21647 (mips*-*-rtems*): Likewise.
21648 (powerpc-*-rtems*): Likewise.
21649 (sh-*-rtems*): Likewise.
21650 (sparc-*-rtems*): Likewise.
21651 (sparc64-*-rtems*): Likewise.
21652 (v850-*-rtems*): Likewise.
21653 (m32c-*-rtems*): Likewise.
21655 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21657 PR rtl-optimization/59511
21658 * ira.c (ira_init_register_move_cost): Use memory costs for some
21659 cases of register move cost calculations.
21660 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21661 instead of BB frequency.
21662 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21663 * lra-assigns.c (find_hard_regno_for): Ditto.
21665 2014-01-15 Richard Biener <rguenther@suse.de>
21667 PR tree-optimization/59822
21668 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21669 (vectorizable_load): Use it to hoist defs of uses of invariant
21670 loads out of the loop.
21672 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21673 Kugan Vivekanandarajah <kuganv@linaro.org>
21676 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21679 2014-01-15 Richard Biener <rguenther@suse.de>
21681 PR rtl-optimization/59802
21682 * lcm.c (compute_available): Use inverted postorder to seed
21683 the initial worklist.
21685 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21688 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21689 ADDR_REGS for invalid symrefs in non-PIC code.
21691 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21694 * builtins.c (determine_block_size): Initialize *probable_max_size
21695 even if len_rtx is CONST_INT.
21697 2014-01-14 Andrew Pinski <apinski@cavium.com>
21699 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21700 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21701 (cortexa53_tunings): Likewise.
21702 (aarch64_sched_issue_rate): New function.
21703 (TARGET_SCHED_ISSUE_RATE): Define.
21705 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21707 * ira-costs.c (find_costs_and_classes): Add missed
21708 ira_init_register_move_cost_if_necessary.
21710 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21713 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21715 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21718 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21719 to indicate if type is used for function return value. Warn ABI
21720 change if the vector mode isn't available for function return value.
21721 (ix86_function_arg_advance): Pass false to type_natural_mode.
21722 (ix86_function_arg): Likewise.
21723 (ix86_gimplify_va_arg): Likewise.
21724 (function_arg_32): Don't warn ABI change.
21725 (ix86_function_value): Pass true to type_natural_mode.
21726 (ix86_return_in_memory): Likewise.
21727 (ix86_struct_value_rtx): Removed.
21728 (TARGET_STRUCT_VALUE_RTX): Likewise.
21730 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21732 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21733 converting a conditional jump into a conditional return.
21735 2014-01-14 Richard Biener <rguenther@suse.de>
21737 PR tree-optimization/58921
21738 PR tree-optimization/59006
21739 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21740 hoisting invariant stmts.
21741 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21742 invariant loads on the preheader edge if possible.
21744 2014-01-14 Joey Ye <joey.ye@arm.com>
21746 * doc/plugin.texi (Building GCC plugins): Update to C++.
21748 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21750 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21751 (_mm_rcp28_round_ss): Ditto.
21752 (_mm_rsqrt28_round_sd): Ditto.
21753 (_mm_rsqrt28_round_ss): Ditto.
21754 (_mm_rcp28_sd): Ditto.
21755 (_mm_rcp28_ss): Ditto.
21756 (_mm_rsqrt28_sd): Ditto.
21757 (_mm_rsqrt28_ss): Ditto.
21758 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21759 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21760 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21761 (IX86_BUILTIN_RCP28SD): Ditto.
21762 (IX86_BUILTIN_RCP28SS): Ditto.
21763 (IX86_BUILTIN_RSQRT28SD): Ditto.
21764 (IX86_BUILTIN_RSQRT28SS): Ditto.
21765 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21766 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21767 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21768 (ix86_expand_special_args_builtin): Expand new FTYPE.
21769 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21770 (srcp14<mode>): Make insn unary.
21771 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21772 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21773 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21774 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21775 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21776 Fix rounding: make it SAE only.
21777 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21779 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21781 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21782 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21783 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21784 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21785 (round_saeonly_mask_scalar_operand4): Ditto.
21786 (round_saeonly_mask_scalar_op3): Ditto.
21787 (round_saeonly_mask_scalar_op4): Ditto.
21789 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21791 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21792 Implement -maltivec=be for vec_insert and vec_extract.
21794 2014-01-10 DJ Delorie <dj@redhat.com>
21796 * config/msp430/msp430.md (call_internal): Don't allow memory
21797 references with SP as the base register.
21798 (call_value_internal): Likewise.
21799 * config/msp430/constraints.md (Yc): New. For memory references
21800 that don't use SP as a base register.
21802 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21803 "an integer without a # prefix"
21804 * config/msp430/msp430.md (epilogue_helper): Use it.
21806 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21809 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21810 AVX512F gather builtins.
21811 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21812 on gather decls with INTEGER_TYPE masktype.
21813 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21814 directly into the builtin rather than hoisting it before loop.
21816 PR tree-optimization/59387
21817 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21818 (scev_const_prop): If folded_casts and type has undefined overflow,
21819 use force_gimple_operand instead of force_gimple_operand_gsi and
21820 for each added stmt if it is assign with
21821 arith_code_with_undefined_signed_overflow, call
21822 rewrite_to_defined_overflow.
21823 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21824 gimple-fold.h instead.
21825 (arith_code_with_undefined_signed_overflow,
21826 rewrite_to_defined_overflow): Moved to ...
21827 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21828 rewrite_to_defined_overflow): ... here. No longer static.
21829 Include gimplify-me.h.
21830 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21831 rewrite_to_defined_overflow): New prototypes.
21833 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21835 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21837 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21839 * builtins.c (get_object_alignment_2): Minor tweak.
21840 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21842 2014-01-13 Christian Bruel <christian.bruel@st.com>
21844 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21845 optimized non constant lengths.
21847 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21850 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21851 load as __atomic_load_N if possible.
21853 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21855 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21857 (rs6000_expand_builtin): Adjust call.
21859 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21862 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21863 * config/rs6000/rs6000.c: Include target-globals.h.
21864 (rs6000_set_current_function): Instead of doing target_reinit
21865 unconditionally, use save_target_globals_default_opts and
21866 restore_target_globals.
21868 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21870 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21871 (rs6000_expand_builtin): Handle mffs and mtfsf.
21872 (rs6000_init_builtins): Define mffs and mtfsf.
21873 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21874 (rs6000_mffs): New pattern.
21875 (rs6000_mtfsf): New pattern.
21877 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21879 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21880 Start narrowing with START. Apply candidate-use pair
21881 and check overall cost in narrowing.
21882 (iv_ca_prune): Pass new argument.
21884 2014-01-10 Jeff Law <law@redhat.com>
21886 PR middle-end/59743
21887 * ree.c (combine_reaching_defs): Ensure the defining statement
21888 occurs before the extension when optimizing extensions with
21889 different source and destination hard registers.
21891 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21894 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21895 vtables into the type inheritance graph.
21897 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21899 PR rtl-optimization/59754
21900 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21901 modes in the REGNO != REGNO case.
21903 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21905 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21907 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21909 PR tree-optimization/59745
21910 * tree-predcom.c (tree_predictive_commoning_loop): Call
21911 free_affine_expand_cache if giving up because components is NULL.
21913 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21914 GC in payload of target_globals struct instead of allocating them on
21915 the heap and the larger structs separately using GC.
21916 * target-globals.h (struct target_globals): Make regs, hard_regs,
21917 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21918 of GTY((skip)) and change type to void *.
21919 (reset_target_globals): Cast loads from those fields to corresponding
21922 2014-01-10 Steve Ellcey <sellcey@mips.com>
21925 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21926 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21927 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21929 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21932 * aarch64-modes.def (CC_Zmode): New flags mode.
21933 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21934 represents an equality.
21935 (aarch64_get_condition_code): Handle CC_Zmode.
21936 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21938 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21940 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21941 extraction in good case.
21943 2014-01-10 Richard Biener <rguenther@suse.de>
21945 PR tree-optimization/59374
21946 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21947 checking after SLP discovery. Mark stmts not participating
21948 in any SLP instance properly.
21950 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21952 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21953 when handling a SET rtx.
21955 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21957 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21958 (cortex-a57): Likewise.
21959 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21961 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21963 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21964 non-iwmmxt builtins.
21966 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21970 * ipa-devirt.c record_target_from_binfo): Take as argument
21971 stack of binfos and lookup matching one for virtual inheritance.
21972 (possible_polymorphic_call_targets_1): Update.
21974 2014-01-10 Huacai Chen <chenhc@lemote.com>
21976 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21977 kernel strings for Loongson-2E/2F/3A.
21979 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21981 PR middle-end/59670
21982 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21983 is_gimple_call before calling gimple_call_internal_p.
21985 2014-01-09 Steve Ellcey <sellcey@mips.com>
21987 * Makefile.in (TREE_FLOW_H): Remove.
21988 (TREE_SSA_H): Add file names from tree-flow.h.
21989 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21990 * tree.h: Remove tree-flow.h reference.
21991 * hash-table.h: Remove tree-flow.h reference.
21992 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21993 reference with tree-ssa-loop.h.
21995 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21997 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21998 default element-order behavior for -maltivec.
21999 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
22000 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
22001 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
22002 when targeting big endian, at least for now.
22003 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
22005 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22007 PR middle-end/47735
22008 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
22009 var satisfies use_register_for_decl, just take into account type
22010 alignment, rather than decl alignment.
22012 PR tree-optimization/59622
22013 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
22014 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
22015 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
22016 Don't devirtualize for inplace at all. For targets.length () == 1,
22017 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
22019 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22021 * config/i386/i386.md (cpu): Remove the unused btver1.
22023 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22025 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22027 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22030 * tree-core.h (struct target_globals): New forward declaration.
22031 (struct tree_target_option): Add globals field.
22032 * tree.h (TREE_TARGET_GLOBALS): Define.
22033 (prepare_target_option_nodes_for_pch): New prototype.
22034 * target-globals.h (struct target_globals): Define even if
22035 !SWITCHABLE_TARGET.
22036 * tree.c (prepare_target_option_node_for_pch,
22037 prepare_target_option_nodes_for_pch): New functions.
22038 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
22039 * config/i386/i386.c: Include target-globals.h.
22040 (ix86_set_current_function): Instead of doing target_reinit
22041 unconditionally, use save_target_globals_default_opts and
22042 restore_target_globals.
22044 2014-01-09 Richard Biener <rguenther@suse.de>
22046 PR tree-optimization/59715
22047 * tree-cfg.h (split_critical_edges): Declare.
22048 * tree-cfg.c (split_critical_edges): Export.
22049 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
22051 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
22053 * cfgexpand.c (expand_stack_vars): Optionally disable
22054 asan stack protection.
22055 (expand_used_vars): Likewise.
22056 (partition_stack_vars): Likewise.
22057 * asan.c (asan_emit_stack_protection): Optionally disable
22058 after return stack usage.
22059 (instrument_derefs): Optionally disable memory access instrumentation.
22060 (instrument_builtin_call): Likewise.
22061 (instrument_strlen_call): Likewise.
22062 (asan_protect_global): Optionally disable global variables protection.
22063 * doc/invoke.texi: Added doc for new options.
22064 * params.def: Added new options.
22065 * params.h: Likewise.
22067 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22069 PR rtl-optimization/59724
22070 * ifcvt.c (cond_exec_process_if_block): Don't call
22071 flow_find_head_matching_sequence with 0 longest_match.
22072 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
22073 non-active insns if !stop_after.
22074 (try_head_merge_bb): Revert 2014-01-07 changes.
22076 2014-01-08 Jeff Law <law@redhat.com>
22078 * ree.c (get_sub_rtx): New function, extracted from...
22079 (merge_def_and_ext): Here.
22080 (combine_reaching_defs): Use get_sub_rtx.
22082 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
22084 * cgraph.h (varpool_variable_node): Do not choke on null node.
22086 2014-01-08 Catherine Moore <clm@codesourcery.com>
22088 * config/mips/mips.md (simple_return): Attempt to use JRC
22090 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
22092 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22094 PR rtl-optimization/59137
22095 * reorg.c (steal_delay_list_from_target): Call update_block for
22097 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
22099 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22101 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22102 two duplicate entries.
22104 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22107 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
22109 * config/mips/mips.c (mips_truncated_op_cost): New function.
22110 (mips_rtx_costs): Adjust test for BADDU.
22111 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
22113 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
22115 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
22116 (*baddu_si): ...this new pattern.
22118 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22121 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
22123 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22125 PR middle-end/57748
22126 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
22128 (expand_expr, expand_normal): Adjust.
22129 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
22130 inner_reference_p. Use inner_reference_p to expand inner references.
22131 (store_expr): Adjust.
22132 * cfgexpand.c (expand_call_stmt): Adjust.
22134 2014-01-08 Rong Xu <xur@google.com>
22136 * gcov-io.c (gcov_var): Move from gcov-io.h.
22137 (gcov_position): Ditto.
22138 (gcov_is_error): Ditto.
22139 (gcov_rewrite): Ditto.
22140 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
22141 only part to libgcc/libgcov.h.
22143 2014-01-08 Marek Polacek <polacek@redhat.com>
22145 PR middle-end/59669
22146 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
22148 2014-01-08 Marek Polacek <polacek@redhat.com>
22151 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
22153 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22155 PR rtl-optimization/59649
22156 * stor-layout.c (get_mode_bounds): For BImode return
22157 0 and STORE_FLAG_VALUE.
22159 2014-01-08 Richard Biener <rguenther@suse.de>
22161 PR middle-end/59630
22162 * gimple.h (is_gimple_builtin_call): Remove.
22163 (gimple_builtin_call_types_compatible_p): New.
22164 (gimple_call_builtin_p): New overload.
22165 * gimple.c (is_gimple_builtin_call): Remove.
22166 (validate_call): Rename to ...
22167 (gimple_builtin_call_types_compatible_p): ... this and export. Also
22168 check return types.
22169 (validate_type): New static function.
22170 (gimple_call_builtin_p): New overload and adjust.
22171 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
22172 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
22173 (gimple_fold_stmt_to_constant_1): Likewise.
22174 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
22176 2014-01-08 Richard Biener <rguenther@suse.de>
22178 PR middle-end/59471
22179 * gimplify.c (gimplify_expr): Gimplify register-register type
22180 VIEW_CONVERT_EXPRs to separate stmts.
22182 2014-01-07 Jeff Law <law@redhat.com>
22184 PR middle-end/53623
22185 * ree.c (combine_set_extension): Handle case where source
22186 and destination registers in an extension insn are different.
22187 (combine_reaching_defs): Allow source and destination registers
22188 in extension to be different under limited circumstances.
22189 (add_removable_extension): Remove restriction that the
22190 source and destination registers in the extension are the same.
22191 (find_and_remove_re): Emit a copy from the extension's
22192 destination to its source after the defining insn if
22193 the source and destination registers are different.
22195 PR middle-end/59285
22196 * ifcvt.c (merge_if_block): If we are merging a block with more than
22197 one successor with a block with no successors, remove any BARRIER
22198 after the second block.
22200 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
22202 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
22204 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
22207 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
22208 for 14-bit register offsets when INT14_OK_STRICT is false.
22210 2014-01-07 Roland Stigge <stigge@antcom.de>
22211 Michael Meissner <meissner@linux.vnet.ibm.com>
22214 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22215 Only check TFmode for SPE constants. Don't check TImode or TDmode.
22217 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
22219 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
22222 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
22224 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
22225 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
22226 rtx is const0_rtx or not.
22228 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
22231 * target-globals.c (save_target_globals): Remove this_fn_optab
22233 * toplev.c: Include optabs.h.
22234 (target_reinit): Temporarily restore the global options if another
22235 set of options are in force.
22237 2014-01-07 Jakub Jelinek <jakub@redhat.com>
22239 PR rtl-optimization/58668
22240 * cfgcleanup.c (flow_find_cross_jump): Don't count
22241 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
22242 to determine what is counted.
22243 (flow_find_head_matching_sequence): Use active_insn_p to determine
22245 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
22247 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
22248 determine what is counted.
22250 PR tree-optimization/59643
22251 * tree-predcom.c (split_data_refs_to_components): If one dr is
22252 read and one write, determine_offset fails and the write isn't
22253 in the bad component, just put the read into the bad component.
22255 2014-01-07 Mike Stump <mikestump@comcast.net>
22256 Jakub Jelinek <jakub@redhat.com>
22259 * tree-core.h (struct tree_optimization_option): Change optabs
22260 type from unsigned char * to void *.
22261 * optabs.c (init_tree_optimization_optabs): Adjust
22262 TREE_OPTIMIZATION_OPTABS initialization.
22264 2014-01-06 Jakub Jelinek <jakub@redhat.com>
22267 * config/i386/i386.h (struct machine_function): Add
22268 no_drap_save_restore field.
22269 * config/i386/i386.c (ix86_save_reg): Use
22270 !cfun->machine->no_drap_save_restore instead of
22271 crtl->stack_realign_needed.
22272 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
22273 this function clears frame_pointer_needed. Set
22274 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
22275 and DRAP reg is needed.
22277 2014-01-06 Marek Polacek <polacek@redhat.com>
22280 * doc/implement-c.texi: Mention that other integer types are
22281 permitted as bit-field types in strictly conforming mode.
22283 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
22285 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
22286 is newly allocated.
22288 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
22290 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
22292 2014-01-06 Martin Jambor <mjambor@suse.cz>
22295 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
22297 * ipa-prop.c (ipa_print_node_params): Fix indentation.
22299 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
22303 * var-tracking.c (add_stores): Preserve the value of the source even if
22304 we don't record the store.
22306 2014-01-06 Terry Guo <terry.guo@arm.com>
22308 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
22310 2014-01-05 Iain Sandoe <iain@codesourcery.com>
22313 * config/darwin.c (darwin_function_section): Adjust return values to
22314 correspond to optimisation changes made in r206070.
22316 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
22318 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
22319 from prefetch_block tune setting.
22320 (nocona_cost): Correct size of prefetch block to 64.
22322 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
22324 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
22325 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
22326 used to save the static chain register in the computation of the offset
22327 from which the FP registers need to be restored.
22329 2014-01-04 Jakub Jelinek <jakub@redhat.com>
22331 PR tree-optimization/59519
22332 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
22333 ICE if get_current_def (current_new_name) is already non-NULL, as long
22334 as it is a phi result of some other phi in *new_exit_bb that has
22337 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
22338 or vmovdqu* for misaligned_operand.
22339 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
22340 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
22341 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
22342 aligned_mem for AVX512F masked aligned load and store builtins and for
22343 non-temporal moves.
22345 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
22347 PR tree-optimization/59651
22348 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22349 Address range for negative step should be added by TYPE_SIZE_UNIT.
22351 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
22353 * config/m68k/m68k.c (handle_move_double): Handle pushes with
22354 overlapping registers also for registers other than the stack pointer.
22356 2014-01-03 Marek Polacek <polacek@redhat.com>
22359 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22362 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22365 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22368 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22369 (push splitter): Use <P:MODE_SIZE> instead of
22370 GET_MODE_SIZE (<P:MODE>mode).
22371 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22372 (mov -1, reg peephole2): Likewise.
22373 * config/i386/sse.md (*mov<mode>_internal,
22374 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22375 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22376 *<code><mode>3, *andnot<mode>3<mask_name>,
22377 <mask_codefor><code><mode>3<mask_name>): Likewise.
22378 * config/i386/subst.md (mask_mode512bit_condition,
22379 sd_mask_mode512bit_condition): Likewise.
22381 2014-01-02 Xinliang David Li <davidxl@google.com>
22383 PR tree-optimization/59303
22384 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22385 (dump_predicates): Better output format.
22386 (pred_equal_p): New function.
22387 (is_neq_relop_p): Ditto.
22388 (is_neq_zero_form_p): Ditto.
22389 (pred_expr_equal_p): Ditto.
22390 (pred_neg_p): Ditto.
22391 (simplify_pred): Ditto.
22392 (simplify_preds_2): Ditto.
22393 (simplify_preds_3): Ditto.
22394 (simplify_preds_4): Ditto.
22395 (simplify_preds): Ditto.
22396 (push_pred): Ditto.
22397 (push_to_worklist): Ditto.
22398 (get_pred_info_from_cmp): Ditto.
22399 (is_degenerated_phi): Ditto.
22400 (normalize_one_pred_1): Ditto.
22401 (normalize_one_pred): Ditto.
22402 (normalize_one_pred_chain): Ditto.
22403 (normalize_preds): Ditto.
22404 (normalize_cond_1): Remove function.
22405 (normalize_cond): Ditto.
22406 (is_gcond_subset_of): Ditto.
22407 (is_subset_of_any): Ditto.
22408 (is_or_set_subset_of): Ditto.
22409 (is_and_set_subset_of): Ditto.
22410 (is_norm_cond_subset_of): Ditto.
22411 (pred_chain_length_cmp): Ditto.
22412 (convert_control_dep_chain_into_preds): Type change.
22413 (find_predicates): Ditto.
22414 (find_def_preds): Ditto.
22415 (destroy_predicates_vecs): Ditto.
22416 (find_matching_predicates_in_rest_chains): Ditto.
22417 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22418 (is_pred_expr_subset): Ditto.
22419 (is_pred_chain_subset_of): Ditto.
22420 (is_included_in): Ditto.
22421 (is_superset_of): Ditto.
22423 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22425 Update copyright years.
22427 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22429 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22430 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22431 config/arc/arc.md, config/arc/arc.opt,
22432 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22433 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22434 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22435 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22436 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22437 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22438 vtable-verify.c, vtable-verify.h: Use the standard form for the
22441 2014-01-02 Tobias Burnus <burnus@net-b.de>
22443 * gcc.c (process_command): Update copyright notice dates.
22444 * gcov-dump.c: Ditto.
22446 * doc/cpp.texi: Bump @copying's copyright year.
22447 * doc/cppinternals.texi: Ditto.
22448 * doc/gcc.texi: Ditto.
22449 * doc/gccint.texi: Ditto.
22450 * doc/gcov.texi: Ditto.
22451 * doc/install.texi: Ditto.
22452 * doc/invoke.texi: Ditto.
22454 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22456 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22458 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22460 * config/i386/sse.md (*mov<mode>_internal): Guard
22461 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22463 PR rtl-optimization/59647
22464 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22465 new_rtx into UNSIGNED_FLOAT rtxes.
22467 Copyright (C) 2014 Free Software Foundation, Inc.
22469 Copying and distribution of this file, with or without modification,
22470 are permitted in any medium without royalty provided the copyright
22471 notice and this notice are preserved.