1 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
4 from rtx to rtx_insn *.
5 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
6 (code_motion_path_driver): Likewise for local "last_insn".
7 (simplify_changed_insns): Likewise for local "insn".
9 2014-08-26 David Malcolm <dmalcolm@redhat.com>
11 * rtl.h (push_to_sequence): Strengthen param from rtx to
13 (push_to_sequence2): Likewise for both params.
14 (delete_insns_since): Likewise for param.
15 (reorder_insns_nobb): Likewise for all three params.
16 (set_new_first_and_last_insn): Likewise for both params.
18 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
19 rtx_insn *. Remove now-redundant cast.
20 (set_last_insn): Likewise.
22 * builtins.c (expand_builtin_return): Strengthen local
23 "call_fusage" from rtx to rtx_insn *.
24 * cfgrtl.c (create_basic_block_structure): Likewise for local
26 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
27 "first", "last" and local "insn".
28 (delete_insns_since): Likewise for param "from".
29 (reorder_insns_nobb): Likewise for params "from", "to", "after"
31 (push_to_sequence): Likewise for param "first" and local "last".
32 (push_to_sequence2): Likewise for params "first" and "last".
33 * lra.c (emit_add3_insn): Likewise for local "last".
34 (lra_emit_add): Likewise.
35 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
37 (process_address_1): Likewise for locals "insn", last".
38 * modulo-sched.c (ps_first_note): Likewise for return type.
39 * optabs.c (expand_binop_directly): Likewise for param "last".
41 2014-08-26 David Malcolm <dmalcolm@redhat.com>
43 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
45 * emit-rtl.c (get_last_insn_anywhere): Likewise.
47 2014-08-26 David Malcolm <dmalcolm@redhat.com>
49 * function.h (struct sequence_stack): Strengthen fields "first"
50 and "last" from rtx to rtx_insn *.
51 (struct emit_status): Likewise for fields "x_first_insn" and
54 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
55 (set_first_insn): Add checked cast.
56 (get_last_insn): Remove now-redundant checked cast.
57 (set_last_insn): Add checked cast.
59 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
60 "saved_first" and "saved_last" from rtx to rtx_insn *.
62 2014-08-26 David Malcolm <dmalcolm@redhat.com>
64 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
65 (unlink_insn_chain): Strengthen both params from rtx to
68 * cfgrtl.c (cfg_layout_function_header): Likewise for this
70 (unlink_insn_chain): Likewise for params "first" and "last".
71 Remove now-redundant checked cast.
72 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
73 (fixup_reorder_chain): Strengthen local "insn" from rtx to
75 * emit-rtl.c (link_insn_into_chain): Likewise for all three
77 (add_insn): Likewise for param "insn" and local "prev".
78 (add_insn_after_nobb): Likewise for both params and local "next".
79 (add_insn_before_nobb): Likewise for both params and local "prev".
80 (add_insn_after): Rename param "after" to "uncast_after",
81 introducing local "after" with another checked cast.
82 (add_insn_before): Rename params "insn" and "before", giving them
83 "uncast_" prefixes, adding the old names back using checked casts.
84 (emit_note_after): Likewise for param "after".
85 (emit_note_before): Likewise for param "before".
86 (emit_label): Add a checked cast.
88 2014-08-26 David Malcolm <dmalcolm@redhat.com>
90 * cselib.h (cselib_record_sets_hook): Strengthen initial param
91 "insn" from rtx to rtx_insn *.
93 * cselib.c (cselib_record_sets_hook): Likewise.
95 * var-tracking.c (add_with_sets): Likewise, renaming back from
96 "uncast_insn" to "insn" and eliminating the checked cast from rtx
99 2014-08-26 David Malcolm <dmalcolm@redhat.com>
101 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
102 and "header_" from rtx to rtx_insn *.
103 (struct basic_block_d): Likewise for field "head_" within "x"
104 field of union basic_block_il_dependent.
105 (BB_HEAD): Drop function...
106 (SET_BB_HEAD): ...and this function in favor of...
107 (BB_HEAD): ...reinstate macro.
108 (BB_END): Drop function...
109 (SET_BB_END): ...and this function in favor of...
110 (BB_END): ...reinstate macro.
111 (BB_HEADER): Drop function...
112 (SET_BB_HEADER): ...and this function in favor of...
113 (BB_HEADER): ...reinstate macro.
115 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
116 (fix_crossing_unconditional_branches): Likewise.
117 * caller-save.c (save_call_clobbered_regs): Likewise.
118 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
119 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
120 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
121 (merge_blocks_move_successor_nojumps): Likewise.
122 (outgoing_edges_match): Update use of for_each_rtx to
123 for_each_rtx_in_insn.
124 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
125 (expand_gimple_cond): Likewise.
126 (expand_gimple_tailcall): Likewise.
127 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
129 (construct_exit_block): Drop use of SET_BB_END.
130 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
132 (delete_insn): Rename param "insn" to "uncast_insn", introducing
133 a new local "insn" with a checked cast to rtx_insn *. Drop use of
134 SET_BB_HEAD and SET_BB_END.
135 (create_basic_block_structure): Drop use of SET_BB_HEAD and
137 (rtl_delete_block): Drop use of SET_BB_HEAD.
138 (rtl_split_block): Drop use of SET_BB_END.
139 (emit_nop_for_unique_locus_between): Likewise.
140 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
141 (block_label): Drop use of SET_BB_HEAD.
142 (fixup_abnormal_edges): Drop use of SET_BB_END.
143 (record_effective_endpoints): Drop use of SET_BB_HEADER.
144 (relink_block_chain): Likewise.
145 (fixup_reorder_chain): Drop use of SET_BB_END.
146 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
147 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
148 rtx_insn **. Drop use of SET_BB_HEADER.
149 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
151 (BB_HEAD): Delete this function.
152 (SET_BB_HEAD): Likewise.
154 (SET_BB_END): Likewise.
155 (BB_HEADER): Likewise.
156 (SET_BB_HEADER): Likewise.
157 * emit-rtl.c (add_insn_after): Rename param "insn" to
158 "uncast_insn", adding a new local "insn" and a checked cast to
159 rtx_insn *. Drop use of SET_BB_END.
160 (remove_insn): Strengthen locals "next" and "prev" from rtx to
161 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
162 (reorder_insns): Drop use of SET_BB_END.
163 (emit_insn_after_1): Strengthen param "first" and locals "last",
164 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
165 (emit_pattern_after_noloc): Add checked cast.
166 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
167 (restore_other_notes): Likewise.
168 (move_insn): Likewise.
169 (sched_extend_bb): Likewise.
170 (fix_jump_move): Likewise.
171 * ifcvt.c (noce_process_if_block): Likewise.
172 (dead_or_predicable): Likewise.
173 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
174 * reg-stack.c (change_stack): Drop use of SET_BB_END.
175 * sel-sched-ir.c (sel_move_insn): Likewise.
176 * sel-sched.c (move_nop_to_previous_block): Likewise.
178 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
180 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
182 2014-08-26 David Malcolm <dmalcolm@redhat.com>
184 * basic-block.h (create_basic_block_structure): Strengthen params
185 1 "head" and 2 "end" from rtx to rtx_insn *.
186 * cfgrtl.c (create_basic_block_structure): Likewise.
187 (rtl_create_basic_block): Update casts from void * to rtx to
188 rtx_insn *, so that we can pass them as rtx_insn * to
189 create_basic_block_structure.
190 * sel-sched-ir.c (sel_create_basic_block): Likewise.
192 2014-08-26 David Malcolm <dmalcolm@redhat.com>
194 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
196 (check_for_inc_dec): Strengthen param "insn" from rtx to
199 * cselib.h (cselib_process_insn): Likewise.
201 * cselib.c (cselib_record_sets): Likewise.
202 (cselib_process_insn): Likewise.
204 * dse.c (struct insn_info): Likewise for field "insn".
205 (check_for_inc_dec_1): Likewise for local "insn".
206 (check_for_inc_dec): Likewise for param "insn".
207 (scan_insn): Likewise.
208 (dse_step1): Likewise for local "insn".
210 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
211 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
213 2014-08-26 David Malcolm <dmalcolm@redhat.com>
215 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
216 from rtx to rtx_insn *.
217 (DEP_PRO): Delete this function and...
218 (SET_DEP_PRO): ...this function in favor of...
219 (DEP_PRO): ...reinstate this macro.
220 (DEP_CON): Delete this function and...
221 (SET_DEP_CON): ...this function in favor of...
222 (DEP_CON): ...reinstate this old macro.
223 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
224 (init_dep): Likewise.
225 (set_priorities): Likewise for both params.
226 (sd_copy_back_deps): Likewise for params 1 and 2.
228 * haifa-sched.c (priority): Likewise for param "insn" and local
230 (set_priorities): Likewise for params "head" and "tail" and local
232 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
234 (add_to_speculative_block): Add a checked cast.
235 (create_check_block_twin): Drop use of SET_DEP_CON.
236 (add_jump_dependencies): Strengthen params "insn" and "jump" from
239 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
240 Drop use of SET_DEP_PRO
241 (init_dep): Strengthen params "pro" and "con" from rtx to
243 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
247 (SET_DEP_PRO): Delete.
248 (SET_DEP_CON): Delete.
250 2014-08-26 David Malcolm <dmalcolm@redhat.com>
252 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
253 from rtx to rtx_insn *.
254 (VINSN_INSN_RTX): Eliminate rvalue function and...
255 (SET_VINSN_INSN): ...lvalue function in favor of...
256 (VINSN_INSN_RTX): reinstate this old macro.
258 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
259 in favor of VINSN_INSN_RTX.
260 (VINSN_INSN_RTX): Delete this function.
261 (SET_VINSN_INSN_RTX): Likewise.
263 2014-08-26 David Malcolm <dmalcolm@redhat.com>
265 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
266 (BND_TO): Delete this function and...
267 (SET_BND_TO): ...this functions in favor of...
268 (BND_TO): ...reinstating this macro.
269 (struct _fence): Strengthen field "executing_insns" from
270 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
271 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
272 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
273 and param "insn" from rtx to insn_t.
274 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
277 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
279 (rtx_vec_t): Likewise.
280 (struct sched_deps_info_def): Strengthen param of "start_insn"
281 callback from rtx to rtx_insn *. Likewise for param "insn2" of
282 "note_mem_dep" callback and first param of "note_dep" callback.
284 * haifa-sched.c (add_to_speculative_block): Strengthen param
285 "insn" from rtx to rtx_insn *.
286 (clear_priorities): Likewise.
287 (calc_priorities): Likewise for local "insn".
289 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
290 Remove redundant checked cast.
291 (haifa_note_mem_dep): Likewise for param "pending_insn".
292 (haifa_note_dep): Likewise for param "elem".
293 (note_mem_dep): Likewise for param "e".
294 (sched_analyze_1): Add checked casts.
295 (sched_analyze_2): Likewise.
297 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
298 from rtx to rtx_insn *.
299 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
300 from vec<rtx> * to vec<rtx_insn *> *.
302 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
304 (flist_add): Strengthen param "executing_insns" from
305 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
306 (advance_deps_context): Remove now-redundant checked cast.
307 (init_fences): Replace uses of NULL_RTX with NULL.
308 (merge_fences): Strengthen params "last_scheduled_insn" and
309 "sched_next" from rtx to rtx_insn * and "executing_insns" from
310 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
311 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
312 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
313 an instruction, rather than doing double-duty as a pattern.
314 (return_nop_to_pool): Update for change of insn_t.
315 (deps_init_id): Remove now-redundant checked cast.
316 (struct sched_scan_info_def): Strengthen param of "init_insn"
317 callback from rtx to insn_t.
318 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
319 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
321 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
322 "end" from rtx to rtx_insn *.
323 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
324 (rtx insn_rtx, bool force_unique_p)
325 (BND_TO): Delete function.
326 (SET_BND_TO): Delete function.
328 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
330 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
331 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
333 (undo_transformations): Likewise for param "insn".
334 (update_liveness_on_insn): Likewise.
335 (compute_live_below_insn): Likewise for param "insn" and local
337 (update_data_sets): Likewise for param "insn".
338 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
339 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
340 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
342 (move_cond_jump): Likewise for param "insn".
343 (move_cond_jump): Drop use of SET_BND_TO.
344 (compute_av_set_on_boundaries): Likewise.
345 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
346 (update_and_record_unavailable_insns): Strengthen local "bb_end"
347 from rtx to rtx_insn *.
348 (maybe_emit_renaming_copy): Likewise for param "insn".
349 (maybe_emit_speculative_check): Likewise.
350 (handle_emitting_transformations): Likewise.
351 (remove_insn_from_stream): Likewise.
352 (code_motion_process_successors): Strengthen local "succ" from rtx
355 2014-08-26 David Malcolm <dmalcolm@redhat.com>
357 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
358 ilist_t, not _xlist_t;
359 (ILIST_INSN): Define in terms of new union field "insn".
360 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
362 (struct _list_node): Add new field "insn" to the union, of type
364 (ilist_add): Replace macro with an inline function, requiring an
366 (ilist_remove): Define this macro directly in terms of
367 _list_remove, rather than indirectly via _xlist_remove.
368 (ilist_clear): Likewise, in terms of _list_clear rather than
370 (ilist_is_in_p): Replace macro with an inline function, requiring
372 (_list_iter_cond_insn): New function.
373 (ilist_iter_remove): Define this macro directly in terms of
374 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
375 (ilist_iterator): Define directly in terms of _list_iterator
376 rather than indirectly through _xlist_iterator.
377 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
378 than in terms of _FOR_EACH_X.
379 (FOR_EACH_INSN_1): Likewise.
381 2014-08-26 Joseph Myers <joseph@codesourcery.com>
385 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
386 DECL_HARD_REGISTER and return for invalid register specifications.
387 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
388 DECL_HARD_REGISTER, call expand_one_error_var.
389 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
390 CC_REGNUM with non-MODE_CC modes.
391 (arm_regno_class): Return NO_REGS for PC_REGNUM.
393 2014-08-26 Marek Polacek <polacek@redhat.com>
396 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
398 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
400 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
401 qi cost; add di cost.
402 (cortexa57_addrcost_table): Likewise.
404 2014-08-26 Marek Polacek <polacek@redhat.com>
407 * expr.c (is_aligning_offset): Remove logical not.
409 2014-08-26 Marek Polacek <polacek@redhat.com>
412 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
413 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
415 2014-08-26 Richard Biener <rguenther@suse.de>
417 PR tree-optimization/62175
418 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
419 expand possibly trapping operations.
421 2014-08-26 David Malcolm <dmalcolm@redhat.com>
423 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
424 "insn" from rtx to rtx_insn *.
425 (permute_load): Likewise for param "insn".
426 (permute_store): Likewise.
427 (handle_special_swappables): Likewise for local "insn".
428 (replace_swap_with_copy): Likewise for locals "insn" and
430 (rs6000_analyze_swaps): Likewise for local "insn".
432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
434 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
437 2014-08-25 David Malcolm <dmalcolm@redhat.com>
439 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
440 "note_list" from rtx to rtx_insn *.
441 (BB_NOTE_LIST): Replace this function and...
442 (SET_BB_NOTE_LIST): ...this function with...
443 (BB_NOTE_LIST): ...the former macro implementation.
445 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
446 local "from_start" from rtx to rtx_insn *. Strengthen param
447 "to_endp" from rtx * to rtx_insn **.
449 * haifa-sched.c (concat_note_lists): Likewise.
450 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
452 (sel_restore_notes): Likewise.
453 (move_bb_info): Likewise.
454 (BB_NOTE_LIST): Delete this function.
455 (SET_BB_NOTE_LIST): Delete this function.
456 * sel-sched.c (create_block_for_bookkeeping): Eliminate
457 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
459 2014-08-25 David Malcolm <dmalcolm@redhat.com>
461 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
462 from rtx * to rtx_insn **.
463 (reorder2): Likewise.
464 (dependencies_evaluation_hook): Strengthen params "head", "tail"
465 from rtx to rtx_insn *.
467 * doc/tm.texi: Update mechanically for above change to target.def.
469 * sched-int.h (note_list): Strengthen this variable from rtx to
471 (remove_notes): Likewise for both params.
472 (restore_other_notes): Likewise for return type and first param.
473 (struct ready_list): Strengthen field "vec" from rtx * to
475 (struct dep_replacement): Strenghten field "insn" from rtx to
477 (struct deps_desc): Likewise for fields "last_debug_insn",
479 (struct haifa_sched_info): Likewise for callback field
480 "can_schedule_ready_p"'s param, for first param of "new_ready"
481 callback field, for both params of "rank" callback field, for
482 first field of "print_insn" callback field (with a const), for
483 both params of "contributes_to_priority" callback, for param
484 of "insn_finishes_block_p" callback, for fields "prev_head",
485 "next_tail", "head", "tail", for first param of "add_remove_insn"
486 callback, for first param of "begin_schedule_ready" callback, for
487 both params of "begin_move_insn" callback, and for second param
488 of "advance_target_bb" callback.
489 (add_dependence): Likewise for params 1 and 2.
490 (sched_analyze): Likewise for params 2 and 3.
491 (deps_analyze_insn): Likewise for param 2.
492 (ready_element): Likewise for return type.
493 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
494 (try_ready): Strenghten param from rtx to rtx_insn *.
495 (sched_emit_insn): Likewise for return type.
496 (record_delay_slot_pair): Likewise for params 1 and 2.
497 (add_delay_dependencies): Likewise for param.
498 (contributes_to_priority): Likewise for both params.
499 (find_modifiable_mems): Likewise.
501 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
502 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
503 "first_older_only_insn" from rtx to rtx_insn *.
504 (arm_sched_reorder): Strengthen param "ready" from rtx * to
507 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
508 "last_scheduled_iter0" from rtx to rtx_insn *.
509 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
510 (c6x_sched_reorder_1): Strengthen param "ready" and locals
511 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
512 "insn" from rtx to rtx_insn *.
513 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
515 (c6x_sched_reorder2): Strengthen param "ready" and locals
516 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
517 "insn" from rtx to rtx_insn *.
518 (c6x_variable_issue): Add a checked cast when assigning from insn
519 to ss.last_scheduled_iter0.
520 (split_delayed_branch): Strengthen param "insn" and local "i1"
521 from rtx to rtx_insn *.
522 (split_delayed_nonbranch): Likewise.
523 (undo_split_delayed_nonbranch): Likewise for local "insn".
524 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
525 "entry_after", "end_packet", "head_insn", "tail_insn",
526 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
527 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
528 to rtx_insn **. Remove now-redundant checked cast on last_insn,
529 but add a checked cast on loop->start_label. Consolidate calls to
530 avoid assigning result of gen_spkernel to "insn", now an
533 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
534 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
536 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
537 rtx_insn **. Strengthen locals "top", "next" from rtx to
539 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
540 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
541 (add_parameter_dependencies): Strengthen params "call", "head" and
542 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
543 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
544 (add_dependee_for_func_arg): Likewise for param "arg" and local
546 (ix86_dependencies_evaluation_hook): Likewise for params "head",
547 "tail" and locals "insn", "first_arg".
549 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
550 for params "head", "tail" and locals "insn", "next", "next_tail".
551 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
552 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
553 "insn", "lowest", "highest" from rtx to rtx_insn *.
554 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
556 (ia64_sched_reorder2): Likewise.
558 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
559 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
560 from rtx * to rtx_insn **.
561 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
563 (mep_print_sched_insn): Strengthen param "insn" from rtx to
565 (mep_sched_reorder): Strengthen param "ready" from rtx * to
566 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
569 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
570 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
572 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
573 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
574 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
576 (vr4130_reorder): Likewise.
577 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
579 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
581 (mips_sched_reorder): Likewise.
582 (mips_sched_reorder2): Likewise.
584 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
586 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
587 Strengthen local "tmp" from rtx to rtx_insn *.
588 (rs6000_sched_reorder2): Likewise.
590 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
591 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
592 (s390_sched_reorder): Strengthen param "ready" from rtx * to
593 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
595 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
596 "tmp2" from rtx to rtx_insn *.
597 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
598 Strengthen local "insn" from rtx to rtx_insn *.
599 (ready_reorder): Strengthen param "ready" from rtx * to
600 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
601 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
602 (sh_reorder2): Likewise.
604 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
605 local "insn" from rtx to rtx_insn *.
607 * haifa-sched.c (note_list): Strengthen this variable from rtx to
609 (scheduled_insns): Strengthen this variable from vec<rtx> to
611 (set_modulo_params): Likewise for locals "i1", "i2".
612 (record_delay_slot_pair): Likewise for params "i1", "i2".
613 (add_delay_dependencies): Likewise for param "insn".
614 (cond_clobbered_p): Likewise.
615 (recompute_todo_spec): Likewise for local "prev".
616 (last_scheduled_insn): Likewise for this variable.
617 (nonscheduled_insns_begin): Likewise.
618 (model_set_excess_costs): Strengthen param "insns" from rtx * to
620 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
622 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
623 Strengthen local "insn" from rtx to rtx_insn *.
624 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
625 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
626 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
627 (ready_remove_first): Likewise for return type and local "t".
628 (ready_element): Likewise for return type.
629 (ready_remove): Likewise for return type and local "t".
630 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
631 (check_clobbered_conditions): Strengthen local "x" from rtx to
632 rtx_insn *, adding a checked cast.
633 (schedule_insn): Likewise for param "insn".
634 (remove_notes): Likewise for params "head", "tail" and locals
635 "next_tail", "insn", "next".
636 (struct haifa_saved_data): Likewise for fields
637 "last_scheduled_insn", "nonscheduled_insns_begin".
638 (save_backtrack_point): Update for change to field "vec" of
640 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
642 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
643 from rtx to rtx_insn *
644 (resolve_dependencies): Strengthen param "insn" from rtx to
646 (restore_other_notes): Likewise for return type, for param "head"
647 and local "note_head".
648 (undo_all_replacements): Likewise for local "insn".
649 (first_nonscheduled_insn): Likewise for return type and local "insn".
650 (queue_to_ready): Likewise for local "insn", adding checked casts.
651 (early_queue_to_ready): Likewise for local "insn".
652 (debug_ready_list_1): Strengthen local "p" from rtx * to
654 (move_insn): Strengthen param "insn" and local "note" from rtx to
656 (insn_finishes_cycle_p): Likewise for param "insn".
657 (max_issue): Likewise for local "insn".
658 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
660 (commit_schedule): Strengthen param "prev_head" and local "insn"
661 from rtx to rtx_insn *
662 (prune_ready_list): Likewise for local "insn".
663 (schedule_block): Likewise for locals "prev_head", "head", "tail",
664 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
665 (set_priorities): Likewise for local "prev_head".
666 (try_ready): Likewise for param "next".
667 (fix_tick_ready): Likewise.
668 (change_queue_index): Likewise.
669 (sched_extend_ready_list): Update for change to field "vec" of
671 (generate_recovery_code): Strengthen param "insn" from rtx to
673 (begin_speculative_block): Likewise.
674 (create_check_block_twin): Likewise for param "insn" and locals
675 "label", "check", "twin". Introduce local "check_pat" to avoid
676 "check" being used as a plain rtx before being used as an insn.
677 (fix_recovery_deps): Add a checked cast to rtx_insn * when
678 extracting elements from ready_list.
679 (sched_remove_insn): Strengthen param "insn" from rtx to
681 (sched_emit_insn): Likewise for return type.
682 (ready_remove_first_dispatch): Likewise for return type and local
685 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
687 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
690 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
691 from rtx to rtx_insn *.
692 (add_dependence_list): Likewise for param "insn". Add a checked
694 (add_dependence_list_and_free): Strengthen param "insn" from rtx
695 to rtx_insn *. Strengthen param "list_p" from rtx * to
697 (chain_to_prev_insn): Strengthen param "insn" and locals
698 "prec_nonnote", "i" from rtx to rtx_insn *.
699 (flush_pending_lists): Likewise for param "insn".
700 (cur_insn): Likewise for this variable.
701 (haifa_start_insn): Add a checked cast.
702 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
703 (sched_analyze_reg): Likewise for param "insn".
704 (sched_analyze_1): Likewise.
705 (sched_analyze_2): Likewise. Add checked casts.
706 (sched_analyze_insn): Likewise. Also for local "prev".
707 (deps_analyze_insn): Likewise for param "insn".
708 (sched_analyze): Likewise for params "head", "tail" and local "insn".
709 (add_dependence_1): Likewise for params "insn", "elem".
710 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
711 (parse_add_or_inc): Likewise for param "insn".
712 (find_inc): Likewise for local "inc_cand".
713 (find_modifiable_mems): Likewise for params "head", "tail" and
714 locals "insn", "next_tail".
716 * sched-ebb.c (init_ready_list): Likewise for local "insn".
717 (begin_schedule_ready): Likewise for param "insn".
718 (begin_move_insn): Likewise for params "insn" and "last".
719 (ebb_print_insn): Strengthen param "insn" from const_rtx to
721 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
722 (ebb_contributes_to_priority): Likewise for params "next", "insn".
723 (ebb_add_remove_insn): Likewise for param "insn".
724 (advance_target_bb): Likewise.
726 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
728 (check_live): Likewise for param "insn".
729 (init_ready_list): Likewise for local "insn".
730 (can_schedule_ready_p): Likewise for param "insn".
731 (begin_schedule_ready): Likewise.
732 (new_ready): Likewise for param "next".
733 (rgn_print_insn): Likewise for param "insn".
734 (rgn_rank): Likewise for params "insn1", "insn2".
735 (contributes_to_priority): Likewise for params "next", "insn".
736 (rgn_insn_finishes_block_p): Likewise for param "insn".
737 (add_branch_dependences): Likewise for params "head", "tail" and
738 locals "insn", "last".
739 (rgn_add_remove_insn): Likewise for param "insn".
740 (advance_target_bb): Likewise.
742 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
743 const_rtx to const rtx_insn *.
745 * sel-sched-dump.h (sel_print_insn): Likewise.
747 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
748 (deps_init_id): Likewise.
750 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
751 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
754 2014-08-25 David Malcolm <dmalcolm@redhat.com>
756 * output.h (final_start_function): Strengthen param 1 from rtx to
759 * final.c (final_start_function): Likewise, renaming back from
760 "uncast_first" to "first", and dropping the checked cast from rtx
763 2014-08-25 David Malcolm <dmalcolm@redhat.com>
765 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
766 * final.c (final): Likewise. Rename param back from
767 "uncast_first" to "first" and eliminate the checked cast from rtx
770 2014-08-25 David Malcolm <dmalcolm@redhat.com>
772 * output.h (shorten_branches): Strengthen param from rtx to
775 * final.c (shorten_branches): Likewise, renaming param back from
776 "uncast_first" to "first", and dropping the checked cast from rtx
779 * genattr.c (gen_attr): Likewise when writing out the prototype of
782 2014-08-25 David Malcolm <dmalcolm@redhat.com>
784 * sched-int.h (struct haifa_sched_info): Strengthen fields
785 "prev_head" and "next_tail" from rtx to rtx_insn *.
787 2014-08-25 David Malcolm <dmalcolm@redhat.com>
789 * rtl.h (rtx_jump_table_data::get_labels): New method.
790 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
791 with use of the new rtx_jump_table_data::get_labels method.
792 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
793 to rtx_jump_table_data *. Simplify by using get_labels method.
794 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
795 a dyn_cast, introducing local "table", using it to replace
796 label-lookup logic with a get_labels method call.
797 (patch_jump_insn): Simplify using get_labels method.
798 * dwarf2cfi.c (create_trace_edges): Likewise.
799 * rtlanal.c (label_is_jump_target_p): Likewise.
801 2014-08-25 David Malcolm <dmalcolm@redhat.com>
803 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
806 * emit-rtl.c (unshare_all_rtl_1): Likewise.
807 (unshare_all_rtl_again): Likewise, also for local "p".
809 2014-08-25 David Malcolm <dmalcolm@redhat.com>
811 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
813 * cfgrtl.c (delete_insn_and_edges): Likewise.
815 2014-08-25 David Malcolm <dmalcolm@redhat.com>
817 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
818 from rtx to rtx_insn *.
820 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
822 2014-08-25 David Malcolm <dmalcolm@redhat.com>
824 * function.c (thread_prologue_and_epilogue_insns): Likewise for
825 locals "returnjump", "epilogue_end", "insn", "next".
827 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
828 "returnjump" from rtx * to rtx_insn **.
829 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
831 2014-08-25 David Malcolm <dmalcolm@redhat.com>
833 * basic-block.h (struct edge_def). Strengthen "r" within
834 union edge_def_insns from rtx to rtx_insn *.
836 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
837 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
839 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
840 from rtx to rtx_insn *.
841 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
843 * postreload-gcse.c (reg_killed_on_edge): Likewise.
844 (reg_used_on_edge): Likewise.
845 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
846 (gt_pch_nx): New overload for rtx_insn *&.
847 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
848 from rtx to rtx_insn *.
850 2014-08-25 David Malcolm <dmalcolm@redhat.com>
852 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
853 from rtx to rtx_insn *.
854 (BB_FOOTER): Replace function with access macro.
855 (SET_BB_FOOTER): Delete.
857 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
859 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
860 (emit_barrier_after_bb): Likewise.
861 (record_effective_endpoints): Likewise.
862 (relink_block_chain): Likewise.
863 (fixup_fallthru_exit_predecessor): Likewise.
864 (cfg_layout_duplicate_bb): Likewise.
865 (cfg_layout_split_block): Likewise.
866 (cfg_layout_delete_block): Likewise.
867 (cfg_layout_merge_blocks): Likewise.
868 (BB_FOOTER): Delete function.
869 (SET_BB_FOOTER): Delete function.
870 * combine.c (update_cfg_for_uncondjump): Replace uses of
871 SET_BB_FOOTER with BB_FOOTER.
873 2014-08-25 David Malcolm <dmalcolm@redhat.com>
875 * except.h (struct eh_landing_pad_d): Strengthen field
876 "landing_pad" from rtx to rtx_code_label *.
878 * except.c (sjlj_emit_dispatch_table): Likewise for param
880 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
882 2014-08-25 David Malcolm <dmalcolm@redhat.com>
884 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
885 first param from rtx to rtx_insn *.
886 * config/xtensa/xtensa.c (struct machine_function): Likewise for
887 field "set_frame_ptr_insn".
888 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
889 "csend" from rtx to rtx_code_label *.
890 (xtensa_expand_atomic): Likewise for local "csloop".
891 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
893 (xtensa_call_tls_desc): Likewise for return type and locals
894 "call_insn", "insns".
895 (xtensa_legitimize_tls_address): Likewise for local "insns".
896 (xtensa_expand_prologue): Likewise for locals "insn", "first".
898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
900 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
901 first param from rtx to rtx_insn *.
902 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
905 2014-08-25 David Malcolm <dmalcolm@redhat.com>
907 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
908 Strengthen param 1 from rtx to rtx_insn *.
909 (tilepro_output_cbranch): Likewise.
910 (tilepro_adjust_insn_length): Likewise.
911 (tilepro_final_prescan_insn): Likewise for sole param.
913 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
914 Likewise for local "last".
915 (cbranch_predicted_p): Likewise for param "insn".
916 (tilepro_output_simple_cbranch_with_opcode): Likewise.
917 (tilepro_output_cbranch_with_opcode): Likewise.
918 (tilepro_output_cbranch): Likewise.
919 (frame_emit_load): Likewise for return type and locals "seq",
921 (emit_sp_adjust): Likewise for return type and local "insn".
922 (tilepro_expand_epilogue): Likewise for locals "last_insn",
924 (tilepro_adjust_insn_length): Likewise for param "insn".
925 (next_insn_to_bundle): Likewise for return type and params
927 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
928 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
930 (match_addli_pcrel): Likewise for param "insn".
931 (replace_addli_pcrel): Likewise.
932 (match_auli_pcrel): Likewise.
933 (replace_auli_pcrel): Likewise.
934 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
936 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
937 "queue", "next_queue", "prev".
938 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
939 (tilepro_final_prescan_insn): Likewise for param "insn".
941 2014-08-25 David Malcolm <dmalcolm@redhat.com>
943 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
944 Strengthen param 1 from rtx to rtx_insn *.
945 (tilegx_output_cbranch): Likewise.
946 (tilegx_adjust_insn_length): Likewise.
947 (tilegx_final_prescan_insn): Likewise for sole param.
949 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
951 (cbranch_predicted_p): Likewise for param "insn".
952 (tilegx_output_simple_cbranch_with_opcode): Likewise.
953 (tilegx_output_cbranch_with_opcode): Likewise.
954 (tilegx_output_cbranch): Likewise.
955 (frame_emit_load): Likewise for return type.
956 (set_frame_related_p): Likewise for locals "seq", "insn".
957 (emit_sp_adjust): Likewise for return type, and for local "insn".
958 Introduce local "pat" for use in place of "insn" where the latter
959 isn't an instruction.
960 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
961 from rtx to rtx_insn *.
962 (tilegx_adjust_insn_length): Likewise for param "insn".
963 (next_insn_to_bundle): Likewise for return type and params "r" and
965 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
967 (replace_insns): Likewise for params "old_insn", "new_insns".
968 (replace_mov_pcrel_step1): Likewise for param "insn" and local
970 (replace_mov_pcrel_step2): Likewise.
971 (replace_mov_pcrel_step3): Likewise.
972 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
974 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
975 "queue", "next_queue", "prev".
976 (tilegx_output_mi_thunk): Likewise for local "insn".
977 (tilegx_final_prescan_insn): Likewise for param "insn".
979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
981 * config/spu/spu.c (frame_emit_store): Strengthen return type from
983 (frame_emit_load): Likewise.
984 (frame_emit_add_imm): Likewise, also for local "insn".
985 (spu_expand_prologue): Likewise for local "insn".
986 (struct spu_bb_info): Likewise for field "prop_jump".
987 (emit_nop_for_insn): Likewise for param "insn" and local
989 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
991 (spu_emit_branch_hint): Likewise for params "before", "branch" and
992 locals "hint", "insn".
993 (get_branch_target): Likewise for param "branch".
994 (insn_clobbers_hbr): Likewise for param "insn".
995 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
996 locals "insn", "before_4", "before_16".
997 (insert_hbrp): Likewise for local "insn".
998 (spu_machine_dependent_reorg): Likewise for locals "branch",
999 "insn", "next", "bbend".
1000 (uses_ls_unit): Likewise for param "insn".
1001 (get_pipe): Likewise.
1002 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1003 introducing a checked cast.
1004 (spu_sched_adjust_cost): Likewise for params "insn" and
1006 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1007 (spu_sms_res_mii): Likewise.
1009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1011 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1012 from rtx to rtx_insn *.
1013 (output_cbranch): Likewise for param 6.
1014 (output_return): Likewise for param 1.
1015 (output_sibcall): Likewise.
1016 (output_v8plus_shift): Likewise.
1017 (output_v8plus_mult): Likewise.
1018 (output_v9branch): Likewise for param 7.
1019 (output_cbcond): Likewise for param 3.
1021 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1023 (sparc_legitimize_pic_address): Likewise.
1024 (sparc_emit_call_insn): Likewise.
1025 (emit_save_or_restore_regs): Likewise.
1026 (emit_window_save): Likewise for return type and local "insn".
1027 (sparc_expand_prologue): Likewise for local "insn".
1028 (sparc_flat_expand_prologue): Likewise.
1029 (output_return): Likewise for param "insn".
1030 (output_sibcall): Likewise for param "insn" and local "delay".
1031 (output_ubranch): Likewise for param "insn".
1032 (output_cbranch): Likewise.
1033 (output_cbcond): Likewise.
1034 (output_v9branch): Likewise.
1035 (output_v8plus_shift): Likewise.
1036 (sparc_output_mi_thunk): Likewise for local "insn".
1037 (get_some_local_dynamic_name): Likewise.
1038 (output_v8plus_mult): Likewise for param "insn".
1040 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1042 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1043 from rtx to rtx_insn *.
1044 (output_branchy_insn): Likewise for param 3.
1045 (output_far_jump): Likewise for param 1.
1046 (final_prescan_insn): Likewise.
1047 (sh_insn_length_adjustment): Likewise for sole param.
1049 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1050 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1052 (sh_emit_compare_and_set): Likewise for local "lab".
1053 (output_far_jump): Strengthen param "insn" and local "prev" from
1055 (output_branchy_insn): Likewise for param "insn" and local
1057 (output_ieee_ccmpeq): Likewise for param "insn".
1058 (struct label_ref_list_d): Strengthen field "label" from rtx to
1060 (pool_node): Likewise.
1061 (pool_window_label): Likewise for this global.
1062 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1063 (dump_table): Strengthen params "start", "barrier" and local
1064 "scan" from rtx to rtx_insn *.
1065 (broken_move): Likewise for param "insn".
1066 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1067 Strengthen param "first_mova" from rtx * to rtx_insn **.
1068 (mova_p): Likewise for param "insn".
1069 (fixup_mova): Likewise for param "mova".
1070 (find_barrier): Likewise for return type, params "mova" and
1071 "from", and locals "barrier_before_mova", "found_barrier",
1072 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1073 "label" from rtx to rtx_code_label *.
1074 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1076 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1077 (split_branches): Likewise for param "first" and local "insn".
1078 (final_prescan_insn): Likewise for param "insn".
1079 (sequence_insn_p): Likewise for locals "prev", "next".
1080 (sh_insn_length_adjustment): Likewise for param "insn".
1081 (sh_can_redirect_branch): Likewise for local "insn".
1082 (find_r0_life_regions): Likewise for locals "end", "insn".
1083 (sh_output_mi_thunk): Likewise for local "insns".
1085 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1087 * config/score/score.c (score_output_mi_thunk): Strengthen local
1088 "insn" from rtx to rtx_insn *.
1089 (score_prologue): Likewise.
1091 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1093 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1094 1 from rtx to rtx_insn *.
1095 (s390_emit_jump): Likewise for return type.
1096 (s390_emit_call): Likewise.
1097 (s390_load_got): Likewise.
1099 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1101 (s390_match_ccmode): Likewise for param "insn".
1102 (s390_emit_jump): Likewise for return type.
1103 (s390_split_branches): Likewise for local "label".
1104 (struct constant): Strengthen field "label" from rtx to
1106 (struct constant_pool): Likewise for field "label". Strengthen
1107 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1109 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1111 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1112 (s390_end_pool): Likewise.
1113 (s390_dump_pool): Likewise for local "insn".
1114 (s390_mainpool_start): Likewise.
1115 (s390_chunkify_start): Likewise.
1116 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1117 with insns. Strengthen locals "label", "jump", "barrier", "next",
1118 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1119 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1121 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1122 "jump", "label", "next_insn".
1123 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1124 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1126 (s390_load_got): Likewise for return type and local "insns".
1127 (s390_save_gprs_to_fprs): Likewise for local "insn".
1128 (s390_restore_gprs_from_fprs): Likewise.
1129 (pass_s390_early_mach::execute): Likewise.
1130 (s390_emit_prologue): Likewise for local "insns".
1131 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1133 (s390_emit_call): Strengthen return type and local "insn" from
1135 (s390_emit_tpf_eh_return): Likewise for local "insn".
1136 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1137 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1138 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1140 (s390_non_addr_reg_read_p): Likewise for param "insn".
1141 (find_cond_jump): Likewise for return type and param "insn".
1142 (s390_swap_cmp): Likewise for param "insn".
1143 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1144 "prev_insn", "next_insn".
1145 (s390_reorg): Likewise for locals "insn", "target".
1146 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1147 (s390_sched_variable_issue): For now, rename param "insn" to
1148 "uncast_insn", introducing a checked cast.
1149 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1151 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1152 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1156 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1157 param from rtx to rtx_insn *.
1158 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1162 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1163 4 from rtx to rtx_insn *.
1164 (rs6000_final_prescan_insn): Likewise for first param.
1165 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1167 (rs6000_get_some_local_dynamic_name): Likewise.
1168 (output_cbranch): Likewise for param "insn".
1169 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1170 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1171 (rs6000_emit_allocate_stack): Likewise for local "insn".
1172 (load_cr_save): Likewise.
1173 (restore_saved_cr): Likewise.
1174 (restore_saved_lr): Likewise.
1175 (emit_cfa_restores): Likewise.
1176 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1177 "deleted_debug_label".
1178 (rs6000_output_mi_thunk): Likewise for local "insn".
1179 (rs6000_final_prescan_insn): Likewise for param "insn".
1181 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1183 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1184 Strengthen param "insn" from rtx to rtx_insn *.
1185 * config/picochip/picochip.c (picochip_current_prescan_insn):
1186 Likewise for this variable.
1187 (picochip_final_prescan_insn): Likewise for param "insn".
1189 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1191 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1192 from rtx to rtx_insn *.
1193 (pa_output_indirect_call): Likewise.
1194 (pa_adjust_insn_length): Likewise.
1195 (pa_attr_length_millicode_call): Likewise.
1196 (pa_attr_length_call): Likewise.
1197 (pa_attr_length_indirect_call): Likewise.
1199 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1201 (pa_attr_length_millicode_call): Likewise.
1202 (pa_attr_length_call): Likewise.
1203 (pa_output_call): Likewise.
1204 (pa_attr_length_indirect_call): Likewise.
1205 (pa_output_indirect_call): Likewise.
1207 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1209 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1210 Strengthen first param from rtx to rtx_insn *.
1211 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1214 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1216 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1217 type from rtx to rtx_insn *.
1218 (mips_expand_call): Likewise.
1219 (mips_adjust_insn_length): Likewise for first param.
1220 (mips_output_conditional_branch): Likewise.
1221 (mips_output_order_conditional_branch): Likewise.
1222 (mips_final_prescan_insn): Likewise.
1224 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1225 rtx_insn * for the SEQUENCE case.
1226 (SEQ_END): Likewise.
1227 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1228 (mips_emit_call_insn): Likewise, also for local "insn".
1229 (mips16_gp_pseudo_reg): Likewise for local "scan".
1230 (mips16_build_call_stub): Likewise for return type and for local
1231 "insn". Introduce a new local "pattern" so that "insn" can indeed
1233 (mips_expand_call): Strengthen return type and local "insn" from
1235 (mips_block_move_loop): Strengthen local "label" from rtx to
1237 (mips_expand_synci_loop): Likewise for locals "label",
1239 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1241 (mips16e_collect_argument_saves): Likewise for locals "insn",
1243 (mips_find_gp_ref): Likewise for param of callback for "pred"
1244 param, and for local "insn".
1245 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1246 (mips_insn_has_flexible_gp_ref_p): Likewise.
1247 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1249 (mips_epilogue_set_cfa): Likewise for local "insn".
1250 (mips_expand_epilogue): Likewise.
1251 (mips_adjust_insn_length): Likewise for param "insn".
1252 (mips_output_conditional_branch): Likewise.
1253 (mips_output_order_conditional_branch): Likewise.
1254 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1255 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1256 "falu2_turn_enabled_insn".
1257 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1258 "done_label" from rtx to rtx_code_label *.
1259 (struct mips16_constant): Likewise for field "label".
1260 (mips16_add_constant): Likewise for return type.
1261 (mips16_emit_constants_1): Strengthen return type and param "insn"
1262 from rtx to rtx_insn *.
1263 (mips16_emit_constants): Likewise for param "insn".
1264 (mips16_insn_length): Likewise.
1265 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1266 to rtx_code_label *.
1267 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1268 from rtx to rtx_insn *.
1269 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1270 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1271 (r10k_simplify_address): Strengthen param "insn" and local
1272 "def_insn" from rtx to rtx_insn *.
1273 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1275 (r10k_needs_protection_p_1): Update target type of cast of data
1276 from to rtx to rtx_insn *.
1277 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1278 rtx * to rtx_insn **.
1279 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1281 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1282 (mips_call_expr_from_insn): Likewise for param "insn".
1283 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1284 (mips_find_pic_call_symbol): Likewise for param "insn".
1285 (mips_annotate_pic_calls): Likewise for local "insn".
1286 (mips_sim_insn): Likewise for this variable.
1287 (struct mips_sim): Likewise for field "insn" within elements of
1289 (mips_sim_wait_reg): Likewise for param "insn".
1290 (mips_sim_wait_regs): Likewise.
1291 (mips_sim_wait_units): Likewise.
1292 (mips_sim_wait_insn): Likewise.
1293 (mips_sim_issue_insn): Likewise.
1294 (mips_sim_finish_insn): Likewise.
1295 (mips_seq_time): Likewise for param "seq" and local "insn".
1296 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1297 locals "first", "second".
1298 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1299 "last", "last2", "next".
1300 (mips_avoid_hazard): Likewise for params "after", "insn".
1301 (mips_reorg_process_insns): Likewise for locals "insn",
1302 "last_insn", "subinsn", "next_insn".
1303 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1304 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1306 (mips_output_mi_thunk): Likewise for local "insn".
1307 (mips_final_prescan_insn): Likewise for param "insn".
1309 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1311 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1312 Strengthen return type and local "insns" from rtx to rtx_insn *.
1313 (microblaze_legitimize_tls_address): Likewise for local "insns".
1314 (microblaze_block_move_loop): Strengthen local "label" from rtx
1315 to rtx_code_label *.
1316 (microblaze_expand_prologue): Strengthen two locals named "insn"
1317 from rtx to rtx_insn *.
1318 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1319 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1320 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1321 to rtx_code_label *.
1323 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1325 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1326 param from rtx to rtx_insn *.
1327 (mep_reuse_lo): Likewise for third param.
1328 (mep_use_post_modify_p): Likewise for first param.
1329 (mep_core_address_length): Likewise.
1330 (mep_cop_address_length): Likewise.
1331 (mep_final_prescan_insn): Likewise.
1332 (mep_store_data_bypass_p): Likewise for both params.
1333 (mep_mul_hilo_bypass_p): Likewise.
1334 (mep_ipipe_ldc_p): Likewise for param.
1336 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1337 (mep_rewrite_mult): Likewise.
1338 (mep_rewrite_mulsi3): Likewise.
1339 (mep_rewrite_maddsi3): Likewise.
1340 (mep_reuse_lo_p_1): Likewise.
1341 (mep_reuse_lo_p): Likewise.
1342 (mep_frame_expr): Likewise.
1343 (mep_make_parallel): Likewise for both params.
1344 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1346 (mep_use_post_modify_p): Likewise for param "insn".
1347 (mep_core_address_length): Likewise.
1348 (mep_cop_address_length): Likewise.
1349 (mep_reg_set_in_function): Likewise for local "insn".
1350 (mep_asm_without_operands_p): Likewise.
1351 (F): Likewise for return type and param "x".
1352 (add_constant): Likewise for local "insn".
1353 (maybe_dead_move): Likewise for return type and local "insn".
1354 (mep_expand_prologue): Likewise for local "insn".
1355 (mep_final_prescan_insn): Likewise for param "insn".
1356 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1357 "next", "follow", "x".
1358 (mep_insert_repeat_label_last): Likewise for return type, param
1359 "last_insn", and locals "next", "prev". Strengthen param "label"
1360 from rtx to rtx_code_label *.
1361 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1363 (struct mep_doloop_end): Likewise for fields "insn" and
1365 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1366 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1367 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1369 (mep_invert_branch): Likewise for params "insn" and "after".
1370 (mep_reorg_erepeat): Likewise for param "insns" and locals
1371 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1372 "l" from rtx to rtx_code_label *.
1373 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1374 from rtx to rtx_insn *.
1375 (mep_reorg_addcombine): Likewise for param "insns" and locals
1377 (add_sp_insn_p): Likewise for param "insn".
1378 (mep_reorg_noframe): Likewise for param "insns" and locals
1379 "start_frame_insn", "end_frame_insn", "next".
1380 (mep_reorg): Likewise for local "insns".
1381 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1383 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1384 (mep_mul_hilo_bypass_p): Likewise.
1385 (mep_ipipe_ldc_p): Likewise for param "insn".
1386 (mep_make_bundle): Likewise for return type, param "cop" and local
1387 "insn", splitting out the latter into a new local "seq" for when it
1388 is a SEQUENCE rather than an insn.
1389 (core_insn_p): Likewise for param "insn".
1390 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1391 "last", "first", "note", "prev", "core_insn".
1393 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1395 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1397 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1398 (m68k_final_prescan_insn): Likewise for first param.
1400 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
1401 (m68k_set_frame_related): Likewise for param "insn".
1402 (output_btst): Likewise for param "insn".
1403 (m68k_final_prescan_insn): Likewise.
1404 (m68k_move_to_reg): Likewise for local "insn".
1405 (m68k_call_tls_get_addr): Likewise for local "insns".
1406 (m68k_call_m68k_read_tp): Likewise.
1407 (strict_low_part_peephole_ok): Likewise for param "first_insn".
1408 (m68k_output_mi_thunk): Likewise for local "insn".
1410 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1412 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
1413 first param from rtx to rtx_insn *.
1414 (iq2000_adjust_insn_length): Likewise.
1415 (iq2000_output_conditional_branch): Likewise.
1416 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
1417 "insn" and local "nop_insn".
1418 (iq2000_annotate_frame_insn): Likewise for param "insn".
1419 (iq2000_expand_prologue): Likewise for both locals "insn".
1420 (iq2000_adjust_insn_length): Likewise for param "insn".
1421 (iq2000_output_conditional_branch): Likewise.
1423 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1425 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
1426 "insns" from rtx to rtx_insn *.
1427 (ia64_emit_cond_move): Likewise for locals "insn", "first".
1428 (struct spill_fill_data): Likewise for field "init_after" and for
1429 elements of array field "prev_insn".
1430 (spill_restore_mem): Likewise for locals "insn", "first".
1431 (do_spill): Likewise for local "insn".
1432 (do_restore): Likewise.
1433 (ia64_expand_prologue): Likewise.
1434 (ia64_expand_epilogue): Likewise.
1435 (emit_insn_group_barriers): Likewise for locals "insn",
1437 (emit_all_insn_group_barriers): Likewise for locals "insn",
1439 (dfa_stop_insn): Likewise for this global.
1440 (dfa_pre_cycle_insn): Likewise.
1441 (ia64_nop): Likewise.
1442 (final_emit_insn_group_barriers): Likewise for locals "insn",
1444 (emit_predicate_relation_info): Likewise for locals "head", "n",
1446 (ia64_reorg): Likewise for local "insn".
1447 (ia64_output_mi_thunk): Likewise.
1448 (expand_vec_perm_interleave_2): Likewise for local "seq".
1450 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1452 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
1453 param 1 "insn" from rtx to rtx_insn *.
1454 (ix86_use_lea_for_mov): Likewise.
1455 (ix86_avoid_lea_for_addr): Likewise.
1456 (ix86_split_lea_for_addr): Likewise.
1457 (ix86_lea_for_add_ok): Likewise.
1458 (ix86_output_call_insn): Likewise.
1460 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
1461 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
1462 (ix86_output_function_epilogue): Likewise for locals "insn",
1463 "deleted_debug_label".
1464 (legitimize_tls_address): Likewise for local "insn".
1465 (get_some_local_dynamic_name): Likewise.
1466 (increase_distance): Likewise for params "prev", "next".
1467 (distance_non_agu_define_in_bb): Likewise for params "insn",
1468 "start" and locals "prev", "next".
1469 (distance_non_agu_define): Likewise for param "insn".
1470 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
1471 locals "next", "prev".
1472 (distance_agu_use): Likewise for param "insn".
1473 (ix86_lea_outperforms): Likewise.
1474 (ix86_ok_to_clobber_flags): Likewise.
1475 (ix86_avoid_lea_for_add): Likewise.
1476 (ix86_use_lea_for_mov): Likewise.
1477 (ix86_avoid_lea_for_addr): Likewise.
1478 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
1479 (ix86_split_lea_for_addr): Likewise for param "insn".
1480 (ix86_lea_for_add_ok): Likewise for param "insn".
1481 (ix86_expand_carry_flag_compare): Likewise for local
1483 (ix86_expand_int_movcc): Likewise.
1484 (ix86_output_call_insn): Likewise for param "insn".
1485 (ix86_output_call_insn): Likewise for local "i".
1486 (x86_output_mi_thunk): Introduce local "insn", using it in place
1487 of "tmp" when dealing with insns.
1488 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
1490 (ix86_pad_returns): Likewise for locals "ret", "prev".
1491 (ix86_count_insn_bb): Likewise for local "insn".
1492 (ix86_pad_short_function): Likewise for locals "ret", "insn".
1493 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
1494 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
1495 (expand_vec_perm_interleave2): Likewise for local "seq".
1496 (expand_vec_perm_vperm2f128_vblend): Likewise.
1497 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
1498 call to for_each_rtx with for_each_rtx_in_insn.
1500 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1502 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
1503 "label" from rtx to rtx_code_label *.
1504 (ix86_expand_prologue): Likewise.
1505 (ix86_expand_split_stack_prologue): Likewise for locals "label",
1507 (ix86_split_idivmod): Likewise for locals "end_label" and
1509 (ix86_expand_branch): Likewise for local "label2".
1510 (ix86_expand_aligntest): Likewise for return type and local "label".
1511 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
1513 (expand_movmem_epilogue): Likewise for the various locals named
1515 (expand_setmem_epilogue): Likewise.
1516 (expand_small_movmem_or_setmem): Likewise for local "label".
1517 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1518 Strengthen param "done_label" from rtx * to rtx_code_label **.
1519 Strengthen locals "loop_label" and "label" from rtx to
1521 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1522 Likewise for locals "loop_label", "label".
1523 (ix86_expand_set_or_movmem): Likewise for locals "label",
1524 "jump_around_label", "hot_label".
1525 (ix86_expand_strlensi_unroll_1): Likewise for locals
1526 "align_2_label", align_3_label", "align_4_label", "end_0_label",
1528 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
1529 (void ix86_emit_i387_log1p): Likewise for locals "label1",
1530 "label2", "jump_label".
1531 (ix86_expand_sse_compare_and_jump): Likewise for return type and
1533 (ix86_expand_lfloorceil): Likewise for local "label".
1534 (ix86_expand_rint): Likewise.
1535 (ix86_expand_floorceildf_32): Likewise.
1536 (ix86_expand_floorceil): Likewise.
1537 (ix86_expand_rounddf_32): Likewise.
1538 (ix86_expand_trunc): Likewise.
1539 (ix86_expand_truncdf_32): Likewise.
1540 (ix86_expand_round): Likewise.
1542 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1544 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
1545 first param from rtx to rtx_insn *.
1546 (h8300_insn_length_from_table): Likewise.
1547 * config/h8300/h8300.c (F): Likewise for return type and param
1549 (Fpa): Add a checked cast to rtx_insn *.
1550 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
1552 (final_prescan_insn): Likewise for param "insn".
1553 (h8300_binary_length): Likewise.
1554 (h8300_insn_length_from_table): Likewise.
1556 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1558 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
1559 Strengthen first param "insn" from rtx to rtx_insn *.
1561 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
1563 (frame_insn): Likewise for return type. Introduce local "insn"
1564 for use in place of local "x" for use as an rtx_insn *.
1565 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
1566 (epiphany_expand_prologue): Likewise for local "insn".
1567 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
1568 * config/epiphany/resolve-sw-modes.c
1569 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
1572 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1574 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
1575 param from rtx to rtx_insn *.
1576 (c6x_final_prescan_insn): Likewise for first param.
1578 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
1579 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
1580 (c6x_expand_compare): Strengthen local "insns" from rtx to
1582 (c6x_get_unit_specifier): Likewise for param "insn".
1583 (c6x_print_unit_specifier_field): Likewise.
1584 (c6x_final_prescan_insn): Likewise.
1585 (emit_add_sp_const): Likewise for local "insn".
1586 (c6x_expand_prologue): Likewise.
1588 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1590 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
1591 param 1 from rtx to rtx_insn *.
1592 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
1593 the various locals named "insn".
1594 (expand_epilogue_reg_restore): Likewise.
1595 (frame_related_constant_load): Likewise.
1596 (add_to_reg): Likewise.
1597 (emit_link_insn): Likewise.
1598 (do_link): Likewise.
1599 (expand_interrupt_handler_prologue): Likewise.
1600 (branch_dest): Likewise for param "branch".
1601 (asm_conditional_branch): Likewise for param "insn".
1602 (gen_one_bundle): Likewise for elements of param "slot" and local
1604 (bfin_gen_bundles): Likewise for locals "insn", "next" and
1605 elements of local "slot".
1606 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1607 "queue", "next_queue", "prev".
1608 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
1609 (add_sched_insns_for_speculation): Likewise for local "insn".
1611 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1613 * config/avr/avr-protos.h (output_movqi): Strengthen first param
1614 from rtx to rtx_insn *.
1615 (output_movhi): Likewise.
1616 (output_movsisf): Likewise.
1617 (avr_out_tstsi): Likewise.
1618 (avr_out_tsthi): Likewise.
1619 (avr_out_tstpsi): Likewise.
1620 (avr_out_compare): Likewise.
1621 (avr_out_compare64): Likewise.
1622 (avr_out_movpsi): Likewise.
1623 (ashlqi3_out): Likewise.
1624 (ashlhi3_out): Likewise.
1625 (ashlsi3_out): Likewise.
1626 (ashrqi3_out): Likewise.
1627 (ashrhi3_out): Likewise.
1628 (ashrsi3_out): Likewise.
1629 (lshrqi3_out): Likewise.
1630 (lshrhi3_out): Likewise.
1631 (lshrsi3_out): Likewise.
1632 (avr_out_ashlpsi3): Likewise.
1633 (avr_out_ashrpsi3): Likewise.
1634 (avr_out_lshrpsi3): Likewise.
1635 (avr_out_fract): Likewise.
1636 (avr_out_sbxx_branch): Likewise.
1637 (avr_out_round): Likewise.
1638 (avr_out_xload): Likewise.
1639 (avr_out_movmem): Likewise.
1640 (adjust_insn_length): Likewise.
1641 (avr_out_lpm): Likewise.
1642 (reg_unused_after): Likewise.
1643 (_reg_unused_after): Likewise.
1644 (avr_jump_mode): Likewise for second param.
1645 (jump_over_one_insn): Likewise for first param.
1646 (avr_final_prescan_insn): Likewise.
1647 (out_shift_with_cnt): Likewise for second param.
1649 * config/avr/avr.c (get_sequence_length): Likewise for param
1650 "insns" and local "insn".
1651 (emit_push_byte): Likewise for local "insn".
1652 (emit_push_sfr): Likewise.
1653 (avr_prologue_setup_frame): Likewise for locals "insn",
1654 "fp_plus_insns", "sp_plus_insns".
1655 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
1657 (avr_jump_mode): Likewise for param "insn".
1658 (avr_final_prescan_insn): Likewise.
1659 (avr_find_unused_d_reg): Likewise.
1660 (avr_out_lpm_no_lpmx): Likewise.
1661 (avr_out_lpm): Likewise.
1662 (avr_out_xload): Likewise.
1663 (output_movqi): Likewise.
1664 (output_movhi): Likewise.
1665 (out_movqi_r_mr): Likewise.
1666 (out_movhi_r_mr): Likewise.
1667 (out_movsi_r_mr): Likewise.
1668 (out_movsi_mr_r): Likewise.
1669 (output_movsisf): Likewise.
1670 (avr_out_load_psi): Likewise.
1671 (avr_out_store_psi): Likewise.
1672 (avr_out_movpsi): Likewise.
1673 (out_movqi_mr_r): Likewise.
1674 (avr_out_movhi_mr_r_xmega): Likewise.
1675 (out_movhi_mr_r): Likewise.
1676 (compare_condition): Likewise for param "insn" and local "next".
1677 (compare_sign_p): Likewise for param "insn".
1678 (compare_diff_p): Likewise.
1679 (compare_eq_p): Likewise.
1680 (avr_out_compare): Likewise.
1681 (avr_out_compare64): Likewise.
1682 (avr_out_tsthi): Likewise.
1683 (avr_out_tstpsi): Likewise.
1684 (avr_out_tstsi): Likewise.
1685 (out_shift_with_cnt): Likewise.
1686 (ashlqi3_out): Likewise.
1687 (ashlhi3_out): Likewise.
1688 (avr_out_ashlpsi3): Likewise.
1689 (ashlsi3_out): Likewise.
1690 (ashrqi3_out): Likewise.
1691 (ashrhi3_out): Likewise.
1692 (avr_out_ashrpsi3): Likewise.
1693 (ashrsi3_out): Likewise.
1694 (lshrqi3_out): Likewise.
1695 (lshrhi3_out): Likewise.
1696 (avr_out_lshrpsi3): Likewise.
1697 (lshrsi3_out): Likewise.
1698 (avr_out_fract): Likewise.
1699 (avr_out_round): Likewise.
1700 (avr_adjust_insn_length): Likewise.
1701 (reg_unused_after): Likewise.
1702 (_reg_unused_after): Likewise.
1703 (avr_compare_pattern): Likewise.
1704 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
1705 and locals "branch1", "branch2", "insn2", "jump".
1706 (avr_reorg): Likewise for local "insn".
1707 (avr_2word_insn_p): Likewise for param "insn".
1708 (jump_over_one_insn_p): Likewise.
1709 (avr_out_sbxx_branch): Likewise.
1710 (avr_out_movmem): Likewise.
1712 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1714 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
1715 param from rtx to rtx_insn *.
1716 (thumb1_final_prescan_insn): Likewise.
1717 (thumb2_final_prescan_insn): Likewise.
1719 * config/arm/arm.c (emit_set_insn): Strengthen return type from
1721 (struct minipool_node): Likewise for field "insn".
1722 (dump_minipool): Likewise for param "scan".
1723 (create_fix_barrier): Likewise for local "from". Strengthen local
1724 "label" from rtx to rtx_code_label *.
1725 (push_minipool_barrier): Strengthen param "insn" from rtx to
1727 (push_minipool_fix): Likewise.
1728 (note_invalid_constants): Likewise.
1729 (thumb2_reorg): Likewise for local "insn".
1730 (arm_reorg): Likewise.
1731 (thumb2_final_prescan_insn): Likewise for param
1732 "insn" and local "first_insn".
1733 (arm_final_prescan_insn): Likewise for param "insn" and locals
1734 "start_insn", "this_insn".
1735 (arm_debugger_arg_offset): Likewise for param "insn".
1736 (thumb1_emit_multi_reg_push): Likewise for return type and local
1738 (thumb1_final_prescan_insn): Likewise for param "insn".
1739 (thumb_far_jump_used_p): Likewise for local "insn".
1740 (thumb1_expand_prologue): Likewise.
1741 (arm_expand_epilogue_apcs_frame): Likewise.
1742 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
1743 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
1744 from rtx to rtx_code_label *.
1745 (arm_split_atomic_op): Likewise for local "label".
1746 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
1748 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1750 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
1751 first param from rtx to rtx_insn *.
1752 (arc_verify_short): Likewise.
1753 (arc_short_long): Likewise.
1754 (arc_need_delay): Likewise.
1756 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
1758 (arc_ccfsm_advance): Likewise for param "insn" and locals
1759 "start_insn", "this_insn".
1760 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
1761 (arc_ccfsm_post_advance): Likewise for param "insn".
1762 (arc_next_active_insn): Likewise for return type and param "insn".
1763 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
1764 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
1765 (output_short_suffix): Likewise for local "insn".
1766 (arc_final_prescan_insn): Likewise for param "insn". Remove
1767 now-redundant checked cast.
1768 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
1769 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
1770 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
1771 for use where lc_set became an insn.
1772 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
1774 (arc_get_insn_variants): Likewise for local "prev".
1775 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
1777 (arc_predicate_delay_insns): Likewise for local "insn".
1778 (arc_pad_return): Likewise for local "prev". For now, add a
1779 checked cast when extracting the insn from "final_sequence".
1780 (arc_short_long): Likewise for param "insn".
1781 (arc_need_delay): Likewise for param "insn" and local "next".
1782 (arc_label_align): Likewise for locals "prev", "next".
1784 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1786 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
1787 "insn" from rtx to rtx_insn *.
1788 (alpha_gp_save_rtx): Likewise for local "seq".
1789 (alpha_instantiate_decls): Likewise for local "top".
1790 (get_some_local_dynamic_name): Likewise for local "insn".
1791 (alpha_does_function_need_gp): Likewise.
1792 (set_frame_related_p): Likewise for return type and for locals
1794 (emit_frame_store_1): Likewise for local "insn".
1795 (alpha_expand_prologue): Likewise for locals "insn", "seq".
1796 (alpha_end_function): Likewise for local "insn".
1797 (alpha_output_mi_thunk_osf): Likewise.
1798 (alphaev4_insn_pipe): Likewise for param "insn".
1799 (alphaev5_insn_pipe): Likewise.
1800 (alphaev4_next_group): Likewise for return type and param 1
1802 (alphaev5_next_group): Likewise.
1803 (alpha_align_insns_1): Likewise for return type and param 1 of
1804 callback param "next_group", and for locals "i", "next", "prev",
1805 "where", "where2", "insn".
1807 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
1809 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
1810 rather than modifying the stmt.
1812 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1814 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
1815 cgraph_state conversion.
1817 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1819 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1820 Strengthen local "insns" from rtx to rtx_insn *.
1821 (aarch64_set_frame_expr): Likewise for local "insn".
1822 (aarch64_save_or_restore_fprs): Likewise.
1823 (aarch64_save_or_restore_callee_save_registers): Likewise.
1824 (aarch64_expand_prologue): Likewise.
1825 (aarch64_expand_epilogue): Likewise.
1826 (aarch64_output_mi_thunk): Likewise.
1827 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
1828 "label2" from rtx to rtx_code_label *.
1829 (aarch64_split_atomic_op): Likewise for local "label".
1831 2014-08-25 Martin Liska <mliska@suse.cz>
1833 * cgraph.h (symtab_node):
1834 (bool needed_p (void)): created from decide_is_symbol_needed
1835 (bool referred_to_p (void)): created from referred_to_p
1836 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
1837 * cgraph.h (cgraph_node):
1838 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
1839 (void expand (void)): created from expand_function
1840 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
1841 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
1842 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
1843 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
1844 * cgraph.h (varpool_node):
1845 (static void add (tree decl): created from varpool_add_new_variable
1846 * cgraph.h (cgraph_edge):
1848 (void remove_caller (void)): created from cgraph_edge_remove_caller
1849 (void remove_callee (void)): created from cgraph_edge_remove_callee
1850 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
1851 created from cgraph_set_call_stmt
1852 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
1853 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
1854 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
1855 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
1856 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
1857 created from cgraph_speculative_call_info
1858 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
1859 int freq_scale, bool update_original)): created from cgraph_clone_edge
1860 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
1861 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
1862 (bool recursive_p (void)): created from cgraph_edge_recursive_p
1863 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
1864 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
1865 (static void rebuild_references (void)): created from cgraph_rebuild_references
1866 * cgraph.h (symbol_table):
1867 (create_reference): renamed from add_reference
1868 (maybe_create_reference): renamed from maybe_add_reference
1869 (void register_symbol (symtab_node *node)): new function
1870 (void clear_asm_symbols (void)): new function
1871 (void unregister (symtab_node *node)): new function
1872 (void release_symbol (cgraph_node *node, int uid)): new function
1873 (cgraph_node * allocate_cgraph_symbol (void)): new function
1874 (void initialize (void)): created from cgraph_init
1875 (symtab_node *first_symbol (void)):new function
1876 (asm_node *first_asm_symbol (void)):new function
1877 (symtab_node *first_defined_symbol (void)):new function
1878 (varpool_node *first_variable (void)):new function
1879 (varpool_node *next_variable (varpool_node *node)):new function
1880 (varpool_node *first_static_initializer (void)):new function
1881 (varpool_node *next_static_initializer (varpool_node *node)):new function
1882 (varpool_node *first_defined_variable (void)):new function
1883 (varpool_node *next_defined_variable (varpool_node *node)):new function
1884 (cgraph_node *first_defined_function (void)):new function
1885 (cgraph_node *next_defined_function (cgraph_node *node)):new function
1886 (cgraph_node *first_function (void)):new function
1887 (cgraph_node *next_function (cgraph_node *node)):new function
1888 (cgraph_node *first_function_with_gimple_body (void)):new function
1889 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
1890 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
1891 created from symtab_remove_unreachable_nodes
1892 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
1893 (void process_new_functions (void)): created from cgraph_process_new_functions
1894 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
1895 (bool output_variables (void)): created from varpool_node::output_variables
1896 (void output_asm_statements (void)): created from output_asm_statements
1897 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
1898 (void compile (void)): created from compile
1899 (void output_weakrefs (void)): created from output_weakrefs
1900 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
1901 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
1902 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
1903 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
1904 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
1905 created from cgraph_next_function_with_gimple_body
1906 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
1907 created from cgraph_remove_edge_removal_hook
1908 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
1909 created from cgraph_add_node_removal_hook
1910 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
1911 created from cgraph_remove_node_removal_hook
1912 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
1913 created from varpool_add_node_removal_hook
1914 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
1915 created from varpool_remove_node_removal_hook
1916 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
1917 created from cgraph_add_function_insertion_hook
1918 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
1919 created from cgraph_remove_function_insertion_hook
1920 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
1921 created from varpool_add_variable_insertion_hook
1922 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
1923 created from varpool_remove_variable_insertion_hook
1924 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
1925 created from cgraph_add_edge_duplication_hook
1926 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
1927 created from cgraph_remove_edge_duplication_hook
1928 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
1929 created from cgraph_add_node_duplication_hook
1930 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
1931 created from cgraph_remove_node_duplication_hook
1932 (void call_edge_removal_hooks (cgraph_edge *e)):
1933 created from cgraph_call_edge_removal_hooks
1934 (void call_cgraph_insertion_hooks (cgraph_node *node)):
1935 created from call_function_insertion_hooks
1936 (void call_cgraph_removal_hooks (cgraph_node *node)):
1937 created from cgraph_call_node_removal_hooks
1938 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
1939 created from cgraph_node::call_duplication_hooks
1940 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
1941 created from cgraph_call_edge_duplication_hooks
1942 (void call_varpool_removal_hooks (varpool_node *node)):
1943 created from varpool_call_node_removal_hooks
1944 (void call_varpool_insertion_hooks (varpool_node *node)):
1945 created from varpool_call_variable_insertion_hooks
1946 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
1947 created from insert_to_assembler_name_hash
1948 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
1949 created from unlink_from_assembler_name_hash
1950 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
1951 created from symtab_prevail_in_asm_name_hash
1952 (void symtab_initialize_asm_name_hash (void)):
1953 created from symtab_initialize_asm_name_hash
1954 (void change_decl_assembler_name (tree decl, tree name)):
1955 created from change_decl_assembler_name
1956 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
1957 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
1958 created from decl_assembler_name_hash
1959 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
1960 created from decl_assembler_name_equal
1961 (static hashval_t hash_node_by_assembler_name (const void *p)):
1962 created from hash_node_by_assembler_name
1963 (static int eq_assembler_name (const void *p1, const void *p2)):
1964 created from eq_assembler_name
1966 2014-08-25 Marek Polacek <polacek@redhat.com>
1968 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
1970 2014-08-25 Petr Murzin <petr.murzin@intel.com>
1972 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
1973 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
1974 SWI1248_AVX512BW mode iterator.
1976 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
1979 * config/sh/predicates.md (general_extend_operand): Disable
1980 TRUNCATE before reload completes.
1982 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
1984 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
1986 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
1989 * config/sh/sh.opt (musermode): Allow negative form.
1990 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
1991 targets that don't support it.
1992 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
1993 Document -mno-usermode option.
1995 2014-08-24 Kito Cheng <kito@0xlab.org>
1997 * system.h (CALLER_SAVE_PROFITABLE): Poison.
1998 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
1999 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2000 * doc/tm.texi: Regenerate.
2002 2014-08-24 Kito Cheng <kito@0xlab.org>
2004 * ira.c: Fix typo in comment.
2006 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2008 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2009 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2011 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2014 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2015 last_address when the current function is a thunk.
2016 (pa_asm_output_mi_thunk): When we don't have named sections or they
2017 are not being used, check that thunk can reach the stub table with a
2020 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2022 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2024 (pass_web::execute): Likewise for local "insn".
2026 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2028 * var-tracking.c (struct micro_operation_def): Strengthen field
2029 "insn" from rtx to rtx_insn *.
2030 (struct emit_note_data_def): Likewise.
2031 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2032 (vt_stack_adjustments): Likewise for local "insn".
2033 (adjust_insn): Likewise for param "insn".
2034 (val_store): Likewise.
2035 (val_resolve): Likewise.
2036 (struct count_use_info): Likewise for field "insn".
2037 (log_op_type): Likewise for param "insn".
2038 (reverse_op): Likewise.
2039 (prepare_call_arguments): Likewise.
2040 (add_with_sets): The initial param takes an insn, but we can't
2041 yet strengthen it from rtx to rtx_insn * since it's used as a
2042 cselib_record_sets_hook callback. For now rename initial param
2043 from "insn" to "uncast_insn", and introduce a local "insn" of
2044 the stronger rtx_insn * type, with a checked cast.
2045 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2047 (emit_note_insn_var_location): Likewise.
2048 (emit_notes_for_changes): Likewise.
2049 (emit_notes_for_differences): Likewise.
2050 (next_non_note_insn_var_location): Likewise for return type and
2052 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2053 (vt_initialize): Likewise for local "insn".
2054 (delete_debug_insns): Likewise for locals "insn" and "next".
2056 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2058 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2060 (mark_constant_pool): Likewise for local "insn".
2062 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2064 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2066 (dead_debug_promote_uses): Likewise.
2067 (dead_debug_insert_temp): Likewise.
2069 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2071 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2072 from const_rtx to const rtx_insn *.
2073 (store_killed_after): Likewise. Strengthen locals "last", "act"
2074 from rtx to rtx_insn *.
2075 (store_killed_before): Strengthen param "insn" from const_rtx to
2076 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2077 (find_moveable_store): Strengthen param "insn" from rtx to
2079 (compute_store_table): Likewise for local "insn".
2080 (insert_insn_start_basic_block): Likewise for param "insn" and
2081 locals "prev", "before", "insn".
2082 (insert_store): For now, add a checked cast to rtx_insn * on the
2083 result of gen_move_insn.
2084 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2086 (replace_store_insn): Likewise. For now, add a checked cast to
2087 rtx_insn * on the result of gen_move_insn.
2089 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2091 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2093 (expand_sjlj_dispatch_table): Likewise.
2095 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2097 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2098 "insn" from rtx to rtx_insn *.
2100 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2102 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2103 "insn" from rtx to rtx_insn *.
2104 (dup_block_and_redirect): Likewise for param 3 "before".
2106 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2107 from rtx to rtx_insn *.
2108 (move_insn_for_shrink_wrap): Likewise.
2109 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2110 (dup_block_and_redirect): Likewise for param "before" and local
2112 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2114 (convert_to_simple_return): Likewise for local "start".
2116 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2117 Strengthen local "insn" from rtx to rtx_insn *, for use when
2118 invoking requires_stack_frame_p.
2120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2122 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2124 (speculate_expr): Likewise for locals "orig_insn_rtx",
2126 (eq_transformed_insns): Likewise for locals "i1", "i2".
2127 (check_for_new_jump): Likewise for return type and local "end".
2128 (find_new_jump): Likewise for return type and local "jump".
2129 (sel_split_edge): Likewise for local "jump".
2130 (sel_create_recovery_block): Likewise.
2131 (sel_redirect_edge_and_branch_force): Likewise.
2132 (sel_redirect_edge_and_branch): Likewise.
2134 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2136 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2137 "new_insn" from rtx to rtx_insn *.
2138 (create_insn_rtx_with_rhs): Likewise for return type and for local
2140 (create_insn_rtx_with_lhs): Likewise.
2141 (create_speculation_check): Likewise for local "insn_rtx".
2142 (implicit_clobber_conflict_p): Likewise for local "insn".
2143 (get_expr_cost): Likewise.
2144 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2145 (move_cond_jump): Likewise for locals "next", "prev", "link",
2146 "head", "from", "to".
2148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2150 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2151 "next" from rtx to rtx_insn *.
2152 (find_conditional_protection): Likewise for local "next".
2153 (is_conditionally_protected): Likewise for local "insn1".
2154 (is_pfree): Likewise for locals "insn1", "insn2".
2156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2158 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2159 from rtx to rtx_insn *.
2161 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2162 locals "insn1", "insn2" from rtx to rtx_insn *.
2163 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2164 locals "insn", "prev", "last_jump", "next_tail".
2165 (schedule_ebb): Likewise for params "head", "tail".
2166 (schedule_ebbs): Likewise for locals "tail", "head".
2168 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2169 to rtx_insn on "last_insn" in one of the invocations of
2172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2174 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2175 "elem", "insn" from rtx to rtx_insn *.
2176 (change_spec_dep_to_hard): Likewise.
2177 (get_back_and_forw_lists): Likewise for local "con".
2178 (sd_add_dep): Likewise for locals "elem", "insn".
2179 (sd_resolve_dep): Likewise for locals "pro", "con".
2180 (sd_unresolve_dep): Likewise.
2181 (sd_delete_dep): Likewise.
2182 (chain_to_prev_insn): Likewise for local "pro".
2183 (find_inc): Likewise for locals "pro", "con".
2185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2187 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2189 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2191 (modified_between_p): Strengthen local "insn" from rtx to
2193 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2194 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2197 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2199 * resource.c (next_insn_no_annul): Strengthen local "next" from
2201 (mark_referenced_resources): Likewise for local "insn".
2203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2205 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2207 (find_reloads): Likewise for param 1.
2208 (subst_reloads): Likewise for sole param.
2209 (find_equiv_reg): Likwise for param 2.
2210 (regno_clobbered_p): Likwise for param 2.
2211 (reload): Likewise for param 1.
2213 * caller-save.c (save_call_clobbered_regs): Strengthen local
2214 "insn" from rtx to rtx_insn *.
2215 (insert_one_insn): Likewise for local "insn".
2217 * reload.c (this_insn): Likewise for this global.
2218 (find_reloads): Likewise for param "insn".
2219 (find_reloads_toplev): Likewise.
2220 (find_reloads_address): Likewise.
2221 (subst_reg_equivs): Likewise.
2222 (update_auto_inc_notes): Likewise.
2223 (find_reloads_address_1): Likewise.
2224 (find_reloads_subreg_address): Likewise.
2225 (subst_reloads): Likewise.
2226 (find_equiv_reg): Likewise, also for local "p".
2227 (regno_clobbered_p): Likewise for param "insn".
2229 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2231 (spill_reg_store): Likewise for the elements of this array.
2232 (remove_init_insns): Likewise for local "equiv_insn".
2233 (will_delete_init_insn_p): Likewise for param "insn".
2234 (reload): Likewise for param ""first" and local "insn".
2235 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2237 (calculate_elim_costs_all_insns): Likewise.
2238 (delete_caller_save_insns): Likewise.
2239 (spill_failure): Likewise for param "insn".
2240 (delete_dead_insn): Likewise.
2241 (set_label_offsets): Likewise.
2242 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2244 (elimination_costs_in_insn): Likewise for param "insn".
2245 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2246 when referring to an insn.
2247 (set_initial_label_offsets): Likewise.
2248 (set_offsets_for_label): Strengthen param "insn" from rtx to
2250 (init_eliminable_invariants): Likewise for param "first" and local
2252 (fixup_eh_region_note): Likewise for param "insn".
2253 (reload_as_needed): Likewise for locals "prev", "insn",
2254 "old_next", "old_prev", "next".
2255 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2257 (reload_inheritance_insn): Strengthen elements of this array from
2259 (failed_reload): Likewise for param "insn".
2260 (choose_reload_regs): Likewise for local "insn". Replace use of
2261 NULL_RTX with NULL when referring to an insn.
2262 (input_reload_insns): Strengthen elements of this array from rtx
2264 (other_input_address_reload_insns): Likewise for this global.
2265 (other_input_reload_insns): Likewise for this global.
2266 (input_address_reload_insns): Likwise for the elements of this
2268 (inpaddr_address_reload_insns): Likwise for the elements of this
2270 (output_reload_insns): Likewise for the elements of this array.
2271 (output_address_reload_insns): Likewise for the elements of this
2273 (outaddr_address_reload_insns): Likewise for the elements of this
2275 (operand_reload_insns): Likewise for this global.
2276 (other_operand_reload_insns): Likewise for this global.
2277 (other_output_reload_insns): Likewise for the elements of this
2279 (new_spill_reg_store): Likewise for the elements of this
2281 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2282 Strengthen local "where" from rtx * to rtx_insn **.
2283 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2284 from rtx to rtx_insn *.
2285 (do_input_reload): Likewise for local "insn".
2286 (do_output_reload): Likewise for local "insn".
2287 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2288 (emit_insn_if_valid_for_reload): Likewise for return type and local
2289 "last". Add checked cast to rtx_insn when returning "insn" since
2290 this has been through emit_insn.
2291 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2292 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2293 returning "insn" since it's been through
2294 emit_insn_if_valid_for_reload at this point.
2295 (delete_output_reload): Strengthen param "insn" and locals
2296 "output_reload_insn", "i2" from rtx to rtx_insn *.
2297 (delete_address_reloads): Likewise for params "dead_insn",
2298 "current_insn" and locals "prev", "next".
2299 (delete_address_reloads_1): Likewise for params "dead_insn",
2300 "current_insn" and locals "prev", "i2".
2301 (inc_for_reload): Likewise for locals "last", "add_insn".
2302 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2305 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2306 param of this duplicate of the prototype from reload.h
2308 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2310 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2312 (regstat_bb_compute_calls_crossed): Likewise.
2314 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2316 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2318 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2320 (regrename_analyze): Strengthen local "insn" from rtx to
2322 (scan_rtx_reg): Likewise for param "insn".
2323 (scan_rtx_address): Likewise.
2324 (scan_rtx): Likewise.
2325 (restore_operands): Likewise.
2326 (record_out_operands): Likewise.
2327 (build_def_use): Likewise for local "insn". Replace use of
2328 NULL_RTX with NULL when dealing with an insn.
2330 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2332 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2333 * reginfo.c (reg_scan): Likewise, also for local "insn".
2334 (reg_scan_mark_refs): Likewise for param "insn".
2335 (init_subregs_of_mode): Likewise for local "insn".
2337 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2339 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2340 "insn" from rtx to rtx_insn *.
2341 (replace_oldest_value_reg): Likewise for param "insn".
2342 (replace_oldest_value_addr): Likewise.
2343 (replace_oldest_value_mem): Likewise.
2344 (apply_debug_insn_changes): Likewise for local "last_insn".
2345 (copyprop_hardreg_forward_1): Likewise for local "insn".
2347 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2349 * reg-stack.c (next_flags_user): Strengthen return type and param
2350 "insn" from rtx to rtx_insn *.
2351 (straighten_stack): Likewise for param "insn".
2352 (check_asm_stack_operands): Likewise.
2353 (remove_regno_note): Likewise.
2354 (emit_pop_insn): Likewise for return type, param "insn", local
2356 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2357 "limit" from rtx to rtx_insn *.
2358 (swap_to_top): Likewise for param "insn".
2359 (move_for_stack_reg): Likewise.
2360 (move_nan_for_stack_reg): Likewise.
2361 (swap_rtx_condition): Likewise.
2362 (compare_for_stack_reg): Likewise.
2363 (subst_all_stack_regs_in_debug_insn): Likewise.
2364 (subst_stack_regs_pat): Likewise, and local "insn2".
2365 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2367 (subst_stack_regs): Likewise.
2368 (change_stack): Likewise.
2369 (convert_regs_1): Likewise for locals "insn", "next".
2371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2373 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2375 (combine_set_extension): Likewise for param "curr_insn".
2376 (transform_ifelse): Likewise for param "def_insn".
2377 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2378 from vec<rtx> * to vec<rtx_insn *> *.
2379 (is_cond_copy_insn): Likewise for param "insn".
2380 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2382 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2383 local "def_insn" from rtx to rtx_insn *.
2384 (get_sub_rtx): Likewise for param "def_insn".
2385 (merge_def_and_ext): Likewise.
2386 (combine_reaching_defs): Likewise.
2387 (add_removable_extension): Likewise for param "insn".
2388 (find_removable_extensions): Likewise for local "insn".
2389 (find_and_remove_re): Likewise for locals "curr_insn" and
2390 "def_insn". Strengthen locals "reinsn_del_list" and
2391 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2395 * recog.c (split_insn): Strengthen param "insn" and locals
2396 "first", "last" from rtx to rtx_insn *.
2397 (split_all_insns): Likewise for locals "insn", "next".
2398 (split_all_insns_noflow): Likewise.
2400 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2402 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
2404 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2405 (debug_rtx_find): Likewise for param 1 "x".
2407 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
2408 const_rtx to const rtx_insn *. Likewise for local "insn".
2409 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2410 (debug_rtx_find): Likewise for param 1 "x".
2411 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
2412 from const_rtx to const rtx_insn * within the appropriate cases of
2413 the switch statement.
2415 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
2416 Strengthen local "insns" from rtx to rtx_insn * since this is
2417 passed to a call to debug_rtx_list.
2419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2421 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
2424 * function.c (stack_protect_epilogue): Add checked cast to
2425 rtx_insn for now when invoking predict_insn_def.
2427 * predict.c (predict_insn): Strengthen param "insn" from rtx to
2429 (predict_insn_def): Likewise.
2430 (rtl_predict_edge): Likewise for local "last_insn".
2431 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
2433 (combine_predictions_for_insn): Strengthen param "insn" from rtx
2435 (bb_estimate_probability_locally): Likewise for local "last_insn".
2436 (expensive_function_p): Likewise for local "insn".
2438 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
2439 local "jmp", since this is used when invoking predict_insn_def.
2441 2014-08-22 Marek Polacek <polacek@redhat.com>
2444 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
2446 2014-08-22 Marek Polacek <polacek@redhat.com>
2449 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
2450 a comparison in parens.
2451 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
2454 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2456 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
2459 * cprop.c (fis_get_condition): Likewise.
2461 * postreload.c (reload_cse_regs): Likewise for param "first".
2462 (reload_cse_simplify): Likewise for param "insn".
2463 (reload_cse_regs_1): Likewise for local "insn".
2464 (reload_cse_simplify_set): Likewise for param "insn".
2465 (reload_cse_simplify_operands): Likewise.
2466 (struct reg_use): Likewise for field "insn".
2467 (reload_combine_purge_insn_uses): Likewise for param "insn".
2468 (fixup_debug_insns): Likewise for params "from", "to" and local
2470 (try_replace_in_use): Likewise for local "use_insn".
2471 (reload_combine_recognize_const_pattern): Likewise for param
2472 "insn" and locals "add_moved_after_insn", "use_insn".
2473 (reload_combine_recognize_pattern): Likewise for param "insn" and
2475 (reload_combine): Likewise for locals "insn", "prev".
2476 (reload_combine_note_use): Likewise for param "insn".
2477 (move2add_use_add2_insn): Likewise.
2478 (move2add_use_add3_insn): Likewise.
2479 (reload_cse_move2add): Likewise, also for local "next".
2480 (move2add_note_store): Likewise for local "insn".
2482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2484 * postreload-gcse.c (struct occr): Strengthen field "insn" from
2486 (struct unoccr): Likewise.
2487 (struct modifies_mem): Likewise.
2488 (alloc_mem): Likewise for local "insn".
2489 (insert_expr_in_table): Likewise for param "insn".
2490 (dump_expr_hash_table_entry): Likewise for local "insn".
2491 (oprs_unchanged_p): Likewise for param "insn".
2492 (load_killed_in_block_p): Likewise for local "setter".
2493 (record_last_reg_set_info): Likewise for param "insn".
2494 (record_last_reg_set_info_regno): Likewise.
2495 (record_last_mem_set_info): Likewise.
2496 (record_last_set_info): Likewise for local "last_set_insn".
2497 (record_opr_changes): Likewise for param "insn".
2498 (hash_scan_set): Likewise.
2499 (compute_hash_table): Likewise for local "insn".
2500 (get_avail_load_store_reg): Likewise for param "insn".
2501 (eliminate_partially_redundant_load): Likewise, also for locals
2502 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
2504 (eliminate_partially_redundant_loads): Likewise for local "insn".
2506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2508 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
2510 (expand_binop): Likewise for locals "entry_last", "last", "insns"
2511 (expand_twoval_unop): Likewise for locals entry_last", "last".
2512 (expand_twoval_binop): Likewise.
2513 (expand_twoval_binop_libfunc): Likewise for local "insns".
2514 (widen_leading): Likewise for local "last".
2515 (expand_doubleword_clz): Likewise for local "seq". Strengthen
2516 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
2517 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
2518 (expand_parity): Likewise for locals "last" and "seq".
2519 (expand_ffs): Likewise for local "seq". Strengthen local
2520 "nonzero_label" from rtx to rtx_code_label *.
2521 (expand_absneg_bit): Strengthen local "insns" from rtx to
2523 (expand_unop_direct): Likewise for local "last".
2524 (expand_unop): Likewise for locals "last", "insns".
2525 (expand_abs_nojump): Likewise for local "last".
2526 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
2527 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
2529 (expand_copysign_absneg): Strengthen local "label" from rtx to
2531 (expand_copysign_bit): Strengthen local "insns" from rtx to
2533 (struct no_conflict_data): Likewise for fields "first", "insn".
2534 (emit_libcall_block_1): Likewise for param "insns" and locals
2535 "next", "last", "insn".
2536 (emit_libcall_block): For now, add a checked cast to rtx_insn *
2537 on "insns" when invoking emit_libcall_block_1. Ultimately we
2538 want to strengthen insns itself.
2539 (prepare_cmp_insn): Strengthen local "last" from rtx to
2541 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
2542 (prepare_float_lib_cmp): Likewise for local "insns".
2543 (emit_conditional_move): Likewise for local "last".
2544 (emit_conditional_add): Likewise.
2545 (have_sub2_insn): Likewise for local "seq".
2546 (expand_float): Likewise for local "insns". Strengthen locals
2547 "label", "neglabel" from rtx to rtx_code_label *.
2548 (expand_fix): Likewise for locals "last", "insn", "insns" (to
2549 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
2550 (expand_fixed_convert): Likewise for local "insns" (to
2552 (expand_sfix_optab): Likewise for local "last".
2553 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
2554 to rtx_code_label *.
2555 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
2556 from rtx to rtx_insn *.
2557 (expand_atomic_fetch_op): Likewise for local "insn".
2558 (maybe_legitimize_operand_same_code): Likewise for local "last".
2559 (maybe_legitimize_operands): Likewise.
2561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2563 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
2564 "insn" from rtx to rtx_insn *.
2565 (ps_rtl_insn): Likewise for return type.
2566 (doloop_register_get): Likewise for params "head", "tail" and
2567 locals "insn", "first_insn_not_to_check".
2568 (schedule_reg_move): Likewise for local "this_insn".
2569 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
2570 of gen_move_insn for now.
2571 (reset_sched_times): Strengthen local "insn" from rtx to
2573 (permute_partial_schedule): Likewise.
2574 (duplicate_insns_of_cycles): Likewise for local "u_insn".
2575 (dump_insn_location): Likewise for param "insn".
2576 (loop_canon_p): Likewise for local "insn".
2577 (sms_schedule): Likewise.
2578 (print_partial_schedule): Likewise.
2579 (ps_has_conflicts): Likewise.
2581 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2583 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
2584 "tailp" from rtx * to rtx_insn **.
2586 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
2587 from rtx to rtx_insn *.
2588 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
2589 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
2590 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
2592 * modulo-sched.c (const_iteration_count): Strengthen return type
2593 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
2594 use of NULL_RTX with NULL when working with insns.
2595 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
2597 (sms_schedule): Likewise.
2598 * sched-rgn.c (init_ready_list): Likewise, also for locals
2599 "src_head" and "src_next_tail".
2600 (compute_block_dependences): Likewise.
2601 (free_block_dependencies): Likewise.
2602 (debug_rgn_dependencies): Likewise.
2603 (free_rgn_deps): Likewise.
2604 (compute_priorities): Likewise.
2605 (schedule_region): Likewise.
2606 * sel-sched.c (find_ebb_boundaries): Likewise.
2608 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
2609 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
2611 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2613 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
2614 from rtx to rtx_insn *.
2615 (new_seginfo): Likewise for param "insn".
2616 (create_pre_exit): Likewise for locals "last_insn",
2617 "before_return_copy", "return_copy".
2618 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
2621 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2623 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
2624 from rtx to rtx_insn *.
2625 (lra_push_insn): Likewise for 1st param.
2626 (lra_push_insn_and_update_insn_regno_info): Likewise.
2627 (lra_pop_insn): Likewise for return type.
2628 (lra_invalidate_insn_data): Likewise for 1st param.
2629 (lra_set_insn_deleted): Likewise.
2630 (lra_delete_dead_insn): Likewise.
2631 (lra_process_new_insns): Likewise for first 3 params.
2632 (lra_set_insn_recog_data): Likewise for 1st param.
2633 (lra_update_insn_recog_data): Likewise.
2634 (lra_set_used_insn_alternative): Likewise.
2635 (lra_invalidate_insn_regno_info): Likewise.
2636 (lra_update_insn_regno_info): Likewise.
2637 (lra_former_scratch_operand_p): Likewise.
2638 (lra_eliminate_regs_1): Likewise.
2639 (lra_get_insn_recog_data): Likewise.
2641 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
2644 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
2646 (substitute_within_insn): New.
2647 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
2648 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
2649 Replace call to "substitute" with call to substitute_within_insn.
2651 * lra-constraints.c (curr_insn): Strengthen from rtx to
2653 (get_equiv_with_elimination): Likewise for param "insn".
2654 (match_reload): Strengthen params "before" and "after" from rtx *
2656 (emit_spill_move): Likewise for return type. Add a checked cast
2657 to rtx_insn * on result of gen_move_insn for now.
2658 (check_and_process_move): Likewise for local "before". Replace
2659 NULL_RTX with NULL when referring to insns.
2660 (process_addr_reg): Strengthen params "before" and "after" from
2661 rtx * to rtx_insn **.
2662 (insert_move_for_subreg): Likewise.
2663 (simplify_operand_subreg): Strengthen locals "before" and "after"
2664 from rtx to rtx_insn *.
2665 (process_address_1): Strengthen params "before" and "after" from
2666 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
2668 (process_address): Strengthen params "before" and "after" from
2669 rtx * to rtx_insn **.
2670 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
2671 (curr_insn_transform): Strengthen locals "before" and "after"
2672 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
2674 (loc_equivalence_callback): Update cast of "data", changing
2675 resulting type from rtx to rtx_insn *.
2676 (substitute_pseudo_within_insn): New.
2677 (inherit_reload_reg): Strengthen param "insn" from rtx to
2678 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
2679 NULL when referring to insns. Add a checked cast to rtx_insn *
2680 when using usage_insn to invoke lra_update_insn_regno_info.
2681 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
2682 likewise for locals "restore", "save". Add checked casts to
2683 rtx_insn * when using usage_insn to invoke
2684 lra_update_insn_regno_info and lra_process_new_insns. Replace
2685 NULL_RTX with NULL when referring to insns.
2686 (split_if_necessary): Strengthen param "insn" from rtx to
2688 (update_ebb_live_info): Likewise for params "head", "tail" and local
2690 (get_last_insertion_point): Likewise for return type and local "insn".
2691 (get_live_on_other_edges): Likewise for local "last".
2692 (inherit_in_ebb): Likewise for params "head", "tail" and locals
2693 "prev_insn", "next_insn", "restore".
2694 (remove_inheritance_pseudos): Likewise for local "prev_insn".
2695 (undo_optional_reloads): Likewise for local "insn".
2697 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
2699 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
2701 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
2703 (spill_pseudos): Likewise for local "insn".
2704 (init_elimination): Likewise.
2705 (process_insn_for_elimination): Likewise for param "insn".
2707 * lra-lives.c (curr_insn): Likewise.;
2709 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
2710 (remove_pseudos): Likewise for param "insn".
2711 (spill_pseudos): Likewise for local "insn".
2712 (lra_final_code_change): Likewise for locals "insn", "curr".
2714 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
2715 (lra_set_insn_deleted): Likewise.
2716 (lra_delete_dead_insn): Likewise, and for local "prev".
2717 (new_insn_reg): Likewise for param "insn".
2718 (lra_set_insn_recog_data): Likewise.
2719 (lra_update_insn_recog_data): Likewise.
2720 (lra_set_used_insn_alternative): Likewise.
2721 (get_insn_freq): Likewise.
2722 (invalidate_insn_data_regno_info): Likewise.
2723 (lra_invalidate_insn_regno_info): Likewise.
2724 (lra_update_insn_regno_info): Likewise.
2725 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
2727 (lra_push_insn_1): Strengthen param "insn" from rtx to
2729 (lra_push_insn): Likewise.
2730 (lra_push_insn_and_update_insn_regno_info): Likewise.
2731 (lra_pop_insn): Likewise for return type and local "insn".
2732 (push_insns): Likewise for params "from", "to", and local "insn".
2733 (setup_sp_offset): Likewise for params "from", "last" and locals
2735 (lra_process_new_insns): Likewise for params "insn", "before",
2736 "after" and local "last".
2737 (struct sloc): Likewise for field "insn".
2738 (lra_former_scratch_operand_p): Likewise for param "insn".
2739 (remove_scratches): Likewise for locals "insn", "last".
2740 (check_rtl): Likewise for local "insn".
2741 (add_auto_inc_notes): Likewise for param "insn".
2742 (update_inc_notes): Likewise for local "insn".
2743 (lra): Replace NULL_RTX with NULL when referring to insn.
2745 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2747 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
2749 (resolve_reg_notes): Likewise.
2750 (resolve_simple_move): Likewise for return type, param "insn", and
2751 locals "insns", "minsn".
2752 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
2753 (resolve_use): Likewise.
2754 (resolve_debug): Likewise.
2755 (find_decomposable_shift_zext): Likewise.
2756 (resolve_shift_zext): Likewise for return type, param "insn", and
2757 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
2758 (decompose_multiword_subregs): Likewise for local "insn",
2759 "orig_insn", "decomposed_shift", "end".
2761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2763 * basic-block.h (basic_block split_edge_and_insert): Strengthen
2764 param "insns" from rtx to rtx_insn *.
2766 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
2768 (struct iv_to_split): Likewise.
2769 (loop_exit_at_end_p): Likewise for local "insn".
2770 (split_edge_and_insert): Likewise for param "insns".
2771 (compare_and_jump_seq): Likewise for return type, param "cinsn",
2772 and locals "seq", "jump".
2773 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
2774 "branch_code"; update invocations of compare_and_jump_seq to
2775 eliminate NULL_RTX in favor of NULL.
2776 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
2778 (reset_debug_uses_in_loop): Likewise.
2779 (analyze_insn_to_expand_var): Likewise for param "insn".
2780 (analyze_iv_to_split_insn): Likewise.
2781 (analyze_insns_in_loop): Likewise for local "insn".
2782 (insert_base_initialization): Likewise for param
2783 "insn" and local "seq".
2784 (split_iv): Likewise for param "insn" and local "seq".
2785 (expand_var_during_unrolling): Likewise for param "insn".
2786 (insert_var_expansion_initialization): Likewise for local "seq".
2787 (combine_var_copies_in_loop_exit): Likewise.
2788 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
2790 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
2791 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
2794 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2796 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
2798 (iv_analyze_result): Likewise.
2799 (iv_analyze_expr): Likewise.
2802 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
2803 local "def_insn" from rtx to rtx_insn *.
2804 (get_biv_step_1): Likewise for local "insn".
2805 (iv_analyze_expr): Likewise for param "insn".
2806 (iv_analyze_def): Likewise for local "insn".
2807 (iv_analyze_op): Likewise for param "insn".
2808 (iv_analyze): Likewise.
2809 (iv_analyze_result): Likewise.
2811 (suitable_set_for_replacement): Likewise.
2812 (simplify_using_initial_values): Likewise for local "insn".
2813 (iv_number_of_iterations): Likewise for param "insn".
2814 (check_simple_exit): Add checked cast to rtx_insn when invoking
2815 iv_number_of_iterations for now (until get_condition is
2818 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
2819 "insn" from rtx to rtx_insn *.
2820 (analyze_insns_in_loop): Likewise for local "insn".
2822 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2824 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
2826 (struct invariant): Likewise.
2827 (hash_invariant_expr_1): Likewise for param "insn".
2828 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
2829 (find_exits): Likewise for local "insn".
2830 (create_new_invariant): Likewise for param "insn".
2831 (check_dependencies): Likewise.
2832 (find_invariant_insn): Likewise.
2833 (record_uses): Likewise.
2834 (find_invariants_insn): Likewise.
2835 (find_invariants_bb): Likewise for local "insn".
2836 (get_pressure_class_and_nregs): Likewise for param "insn".
2837 (calculate_loop_reg_pressure): Likewise for local "insn".
2839 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2841 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
2843 (add_test): Likewise for locals "seq", "jump".
2844 (doloop_modify): Likewise for locals "sequence", "jump_insn".
2846 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2848 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
2850 (rebuild_jump_labels_chain): Likewise for param "chain".
2852 * cfgexpand.c (pass_expand::execute): Add checked cast to
2853 rtx_insn * when calling rebuild_jump_labels_chain in region where
2854 we know e->insns.r is non-NULL.
2856 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
2858 (rebuild_jump_labels): Likewise.
2859 (rebuild_jump_labels_chain): Likewise for param "chain".
2860 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
2861 (init_label_info): Likewise for param "f".
2862 (maybe_propagate_label_ref): Likewise for params "jump_insn",
2863 "prev_nonjump_insn".
2864 (mark_all_labels): Likewise for param "f" and locals "insn",
2865 "prev_nonjump_insn".
2867 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2869 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
2870 from rtx to rtx_insn *insn.
2871 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
2872 (ira_add_allocno_copy): Likewise.
2873 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
2875 (ira_create_copy): Likewise.
2876 (ira_add_allocno_copy): Likewise.
2877 (create_bb_allocnos): Likewise for local "insn".
2878 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
2879 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
2880 process_regs_for_copy for rtx_insn * param.
2881 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
2882 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
2883 process_regs_for_copy for rtx_insn * param.
2884 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
2885 * ira-costs.c (record_reg_classes): Likewise for param "insn".
2886 (record_operand_costs): Likewise.
2887 (scan_one_insn): Likewise for return type, and for param "insn".
2888 (process_bb_for_costs): Likewise for local "insn".
2889 (process_bb_node_for_hard_reg_moves): Likewise.
2890 * ira-emit.c (struct move): Likewise for field "insn".
2891 (create_move): Eliminate use of NULL_RTX when dealing with an
2893 (emit_move_list): Strengthen return type and locals "result",
2894 "insn" from rtx to rtx_insn *insn.
2895 (emit_moves): Likewise for locals "insns", "tmp".
2896 (ira_emit): Likewise for local "insn".
2897 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
2899 (find_call_crossed_cheap_reg): Likewise.
2900 (process_bb_node_lives): Likewise for local "insn".
2901 * ira.c (decrease_live_ranges_number): Likewise.
2902 (compute_regs_asm_clobbered): Likewise.
2903 (build_insn_chain): Likewise.
2904 (find_moveable_pseudos): Likewise, also locals "def_insn",
2905 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
2906 to rtx_insn **. Add a checked cast when assigning from
2907 "closest_use" into closest_uses array in a region where we know
2908 it's a non-NULL insn.
2909 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
2911 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
2912 "last_interesting_insn", "uin".
2913 (move_unallocated_pseudos): Likewise for locals "def_insn",
2914 "move_insn", "newinsn".
2916 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2918 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
2919 Strengthen locals "done_label", "do_error" from rtx to
2921 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
2922 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
2924 (ubsan_expand_si_overflow_neg_check): Likewise for locals
2925 "done_label", "do_error" to rtx_code_label * and local "last" to
2927 (ubsan_expand_si_overflow_mul_check): Likewise for locals
2928 "done_label", "do_error", "large_op0", "small_op0_large_op1",
2929 "one_small_one_large", "both_ops_large", "after_hipart_neg",
2930 "after_lopart_neg", "do_overflow", "hipart_different" to
2931 rtx_code_label * and local "last" to rtx_insn *.
2933 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2935 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
2936 "insn" and "move_insn" from rtx to rtx_insn *.
2938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2940 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
2942 (cheap_bb_rtx_cost_p): Likewise.
2943 (first_active_insn): Likewise for return type and local "insn".
2944 (last_active_insn): Likewise for return type and locals "insn",
2946 (struct noce_if_info): Likewise for fields "jump", "insn_a",
2948 (end_ifcvt_sequence): Likewise for return type and locals "insn",
2950 (noce_try_move): Likewise for local "seq".
2951 (noce_try_store_flag): Likewise.
2952 (noce_try_store_flag_constants): Likewise.
2953 (noce_try_addcc): Likewise.
2954 (noce_try_store_flag_mask): Likewise.
2955 (noce_try_cmove): Likewise.
2956 (noce_try_minmax): Likewise.
2957 (noce_try_abs): Likewise.
2958 (noce_try_sign_mask): Likewise.
2959 (noce_try_bitop): Likewise.
2960 (noce_can_store_speculate_p): Likewise for local "insn".
2961 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
2963 (check_cond_move_block): Likewise for local "insn".
2964 (cond_move_convert_if_block): Likewise.
2965 (cond_move_process_if_block): Likewise for locals "seq",
2967 (noce_find_if_block): Likewise for local "jump".
2968 (merge_if_block): Likewise for local "last".
2969 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
2970 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
2971 (block_has_only_trap): Likewise for return type and local "trap".
2972 (find_if_case_1): Likewise for local "jump".
2973 (dead_or_predicable): Likewise for locals "head", "end", "jump",
2976 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2978 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
2979 "last_insn", "loop_end" from rtx to rtx_insn *.
2981 * hw-doloop.c (scan_loop): Likewise for local "insn".
2982 (discover_loop): Likewise for param "tail_insn".
2983 (discover_loops): Likewise for local "tail".
2985 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
2986 cast to rtx_insn * when assigning from an rtx local to a
2987 hwloop_info's "last_insn" field.
2989 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2991 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
2992 (add_delay_dependencies): Strengthen local "pro" from rtx to
2994 (recompute_todo_spec): Likewise.
2995 (dep_cost_1): Likewise for locals "insn", "used".
2996 (schedule_insn): Likewise for local "dbg".
2997 (schedule_insn): Likewise for locals "pro", "next".
2998 (unschedule_insns_until): Likewise for local "con".
2999 (restore_pattern): Likewise for local "next".
3000 (estimate_insn_tick): Likewise for local "pro".
3001 (resolve_dependencies): Likewise for local "next".
3002 (fix_inter_tick): Likewise.
3003 (fix_tick_ready): Likewise for local "pro".
3004 (add_to_speculative_block): Likewise for locals "check", "twin",
3006 (sched_extend_bb): Likewise for locals "end", "insn".
3007 (init_before_recovery): Likewise for local "x".
3008 (sched_create_recovery_block): Likewise for local "barrier".
3009 (create_check_block_twin): Likewise for local "pro".
3010 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3012 (unlink_bb_notes): Update for change to type of bb_header.
3013 Strengthen locals "prev", "label", "note", "next" from rtx to
3015 (clear_priorities): Likewise for local "pro".
3017 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3019 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3021 (test_insn): Likewise for this global.
3022 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3024 (oprs_anticipatable_p): Likewise.
3025 (oprs_available_p): Likewise.
3026 (insert_expr_in_table): Strengthen param "insn" from rtx to
3028 (hash_scan_set): Likewise.
3029 (hash_scan_clobber): Likewise.
3030 (hash_scan_call): Likewise.
3031 (hash_scan_insn): Likewise.
3032 (compute_hash_table_work): Likewise for local "insn".
3033 (process_insert_insn): Likewise for return type and local "pat".
3034 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3035 "pat", "pat_end", "maybe_cc0_setter".
3036 (pre_edge_insert): Likewise for local "insn".
3037 (pre_insert_copy_insn): Likewise for param "insn".
3038 (pre_insert_copies): Likewise for local "insn".
3039 (struct set_data): Likewise for field "insn".
3040 (single_set_gcse): Likewise for param "insn".
3041 (gcse_emit_move_after): Likewise.
3042 (pre_delete): Likewise for local "insn".
3043 (update_bb_reg_pressure): Likewise for param "from" and local
3045 (should_hoist_expr_to_dom): Likewise for param "from".
3046 (hoist_code): Likewise for local "insn".
3047 (get_pressure_class_and_nregs): Likewise for param "insn".
3048 (calculate_bb_reg_pressure): Likewise for local "insn".
3049 (compute_ld_motion_mems): Likewise.
3051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3053 * genpeep.c (main): Rename param back from "uncast_ins1" to
3054 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3057 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3059 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3062 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3063 documentation to state it is only for VSX operations.
3065 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3066 constraint only active if VSX.
3068 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3069 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3072 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3074 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3075 Strengthen local "insn" from rtx to rtx_insn *.
3076 (use_killed_between): Likewise for param "target_insn".
3077 (all_uses_available_at): Likewise for param "target_insn" and
3079 (update_df_init): Likewise for params "def_insn", "insn".
3080 (update_df): Likewise for param "insn".
3081 (try_fwprop_subst): Likewise for param "def_insn" and local
3083 (free_load_extend): Likewise for param "insn".
3084 (forward_propagate_subreg): Likewise for param "def_insn" and
3086 (forward_propagate_asm): Likewise for param "def_insn" and local
3088 (forward_propagate_and_simplify): Likewise for param "def_insn"
3089 and local "use_insn".
3090 (forward_propagate_into): Likewise for locals "def_insn" and
3093 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3095 * function.c (emit_initial_value_sets): Strengthen local "seq"
3096 from rtx to rtx_insn *.
3097 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3099 (instantiate_virtual_regs): Likewise for local "insn".
3100 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3101 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3102 (expand_function_end): Likewise for locals "insn" and "seq".
3103 (epilogue_done): Likewise for local "insn".
3104 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3106 (reposition_prologue_and_epilogue_notes): Likewise for locals
3107 "insn", "last", "note", "first".
3108 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3109 (pass_match_asm_constraints::execute): Likewise for local "insn".
3111 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3113 * output.h (final_scan_insn): Strengthen return type from rtx to
3115 (final_forward_branch_p): Likewise for param.
3116 (current_output_insn): Likewise for this global.
3118 * final.c (rtx debug_insn): Likewise for this variable.
3119 (current_output_insn): Likewise.
3120 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3121 adding "insn" back in as an rtx_insn * with a checked cast, so
3122 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3124 (compute_alignments): Strengthen local "label" from rtx to
3126 (shorten_branches): Rename param from "first" to "uncast_first",
3127 introducing a new local rtx_insn * "first" using a checked cast to
3128 effectively strengthen "first" from rtx to rtx_insn * without
3129 affecting the type signature. Strengthen locals "insn", "seq",
3130 "next", "label" from rtx to rtx_insn *.
3131 (change_scope): Strengthen param "orig_insn" and local "insn" from
3133 (final_start_function): Rename param from "first" to "uncast_first",
3134 introducing a new local rtx_insn * "first" using a checked cast to
3135 effectively strengthen "first" from rtx to rtx_insn * without
3136 affecting the type signature. Strengthen local "insn" from rtx to
3138 (dump_basic_block_info): Strengthen param "insn" from rtx to
3140 (final): Rename param from "first" to "uncast_first",
3141 introducing a new local rtx_insn * "first" using a checked cast to
3142 effectively strengthen "first" from rtx to rtx_insn * without
3143 affecting the type signature. Strengthen locals "insn", "next"
3144 from rtx to rtx_insn *.
3145 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3147 (call_from_call_insn): Strengthen param "insn" from rtx to
3149 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3150 introducing a new local rtx_insn * "insn" using a checked cast to
3151 effectively strengthen "insn" from rtx to rtx_insn * without
3152 affecting the type signature. Strengthen return type and locals
3153 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3154 now-redundant checked cast to rtx_insn * from both invocations of
3155 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3156 introducing a local "call_insn" for use when invoking
3157 call_from_call_insn.
3158 (notice_source_line): Strengthen param "insn" from rtx to
3160 (leaf_function_p): Likewise for local "insn".
3161 (final_forward_branch_p): Likewise.
3162 (leaf_renumber_regs): Likewise for param "first".
3163 (rest_of_clean_state): Likewise for locals "insn" and "next".
3164 (self_recursive_call_p): Likewise for param "insn".
3165 (collect_fn_hard_reg_usage): Likewise for local "insn".
3166 (get_call_fndecl): Likewise for param "insn".
3167 (get_call_cgraph_rtl_info): Likewise.
3168 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3169 introducing a new local rtx_insn * "insn" using a checked cast to
3170 effectively strengthen "insn" from rtx to rtx_insn * without
3171 affecting the type signature.
3173 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3174 cast when assigning from param "insn" to current_output_insn.
3175 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3176 so that we can assign it back to current_output_insn.
3178 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3180 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3181 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3182 atmxt540s and atmxt540sreva devices.
3183 * config/avr/avr-tables.opt: Regenerate.
3184 * config/avr/t-multilib: Regenerate.
3185 * doc/avr-mmcu.texi: Regenerate.
3187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3189 * expr.c (convert_move): Strengthen local "insns" from rtx to
3191 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3192 "top_label" from rtx to rtx_code_label *.
3193 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3195 (emit_single_push_insn): Likewise for locals "prev", "last".
3196 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3197 to rtx_code_label *.
3198 (store_constructor): Likewise for locals "loop_start", "loop_end".
3199 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3201 (expand_expr_real_2): Likewise.
3202 (expand_expr_real_1): Strengthen local "label" from rtx to
3205 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3207 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3208 from rtx to rtx_insn *.
3209 (store_bit_field_1): Likewise.
3210 (extract_bit_field_1): Likewise.
3211 (expand_mult_const): Likewise for local "insns".
3212 (expmed_mult_highpart): Strengthen local "label" from rtx to
3214 (expand_smod_pow2): Likewise.
3215 (expand_sdiv_pow2): Likewise.
3216 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3217 rtx_insn *. Strengthen locals "label", "label1", "label2",
3218 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3219 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3220 (emit_store_flag): Likewise.
3221 (emit_store_flag_force): Strengthen local "label" from rtx to
3223 (do_cmp_and_jump): Likewise for param "label".
3225 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3227 * explow.c (force_reg): Strengthen local "insn" from rtx to
3229 (adjust_stack_1): Likewise.
3230 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3231 "final_label", "available_label", "space_available" from rtx to
3233 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3234 (anti_adjust_stack_and_probe): Likewise.
3236 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3238 * except.h (sjlj_emit_function_exit_after): Strengthen param
3239 "after" from rtx to rtx_insn *. This is only called with
3240 result of get_last_insn (in function.c) so type-change should be
3243 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3244 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3245 to rtx_insn *. These fields are only used from except.c so this
3246 type-change should be self-contained to this patch.
3248 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3249 local "last" from rtx to rtx_insn *.
3250 (dw2_build_landing_pads): Likewise for local "seq".
3251 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3252 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3253 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3255 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3257 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3258 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3259 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3260 referring to an insn. Strengthen local "dispatch_label" from
3261 rtx to rtx_code_label *.
3262 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3264 (expand_eh_return): Strengthen local "around_label" from
3265 rtx to rtx_code_label *.
3266 (convert_to_eh_region_ranges): Strengthen locals "iter",
3267 "last_action_insn", "first_no_action_insn",
3268 "first_no_action_insn_before_switch",
3269 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3271 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3273 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3274 from rtx to rtx_insn *.
3275 (cached_next_real_insn): Likewise.
3276 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3278 (dwarf2out_var_location): Strengthen locals "next_real",
3279 "next_note", "expected_next_loc_note", "last_start", "insn" from
3282 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3284 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3285 from rtx to rtx_insn *.
3286 (create_pseudo_cfg): Likewise for local "insn".
3288 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3290 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3291 from rtx to rtx_insn *.
3292 (df_bb_regno_last_def_find): Likewise.
3294 * df-problems.c (df_rd_bb_local_compute): Likewise.
3295 (df_lr_bb_local_compute): Likewise.
3296 (df_live_bb_local_compute): Likewise.
3297 (df_chain_remove_problem): Likewise.
3298 (df_chain_create_bb): Likewise.
3299 (df_word_lr_bb_local_compute): Likewise.
3300 (df_remove_dead_eq_notes): Likewise for param "insn".
3301 (df_note_bb_compute): Likewise for local "insn".
3302 (simulate_backwards_to_point): Likewise.
3303 (df_md_bb_local_compute): Likewise.
3305 * df-scan.c (df_scan_free_bb_info): Likewise.
3306 (df_scan_start_dump): Likewise.
3307 (df_scan_start_block): Likewise.
3308 (df_install_ref_incremental): Likewise for local "insn".
3309 (df_insn_rescan_all): Likewise.
3310 (df_reorganize_refs_by_reg_by_insn): Likewise.
3311 (df_reorganize_refs_by_insn_bb): Likewise.
3312 (df_recompute_luids): Likewise.
3313 (df_bb_refs_record): Likewise.
3314 (df_update_entry_exit_and_calls): Likewise.
3315 (df_bb_verify): Likewise.
3317 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3319 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3320 "first_note" from rtx to rtx_insn *.
3321 (get_node_of_insn): Likewise for param 2 "insn".
3322 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3324 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3326 (mem_write_insn_p): Likewise.
3327 (mem_access_insn_p): Likewise.
3328 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3329 (def_has_ccmode_p): Likewise for param "insn".
3330 (add_cross_iteration_register_deps): Likewise for locals
3331 "def_insn" and "use_insn".
3332 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3333 (build_intra_loop_deps): Likewise for local "src_insn".
3334 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3336 (get_node_of_insn): Likewise for param "insn".
3338 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3340 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3341 (deletable_insn_p): Strengthen param "insn" from rtx to
3342 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3343 find_call_stack_args, since this is guarded by CALL_P (insn).
3344 (marked_insn_p): Strengthen param "insn" from rtx to
3346 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3347 invoking find_call_stack_args, since this is guarded by
3349 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3350 rtx_insn *; we know this is an insn since this was called by
3352 (mark_nonreg_stores_2): Likewise.
3353 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3355 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3356 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3358 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3359 from rtx to rtx_insn *.
3360 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3362 (delete_unmarked_insns): Likewise for locals "insn", "next".
3363 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3364 (mark_reg_dependencies): Likewise for param "insn".
3365 (rest_of_handle_ud_dce): Likewise for local "insn".
3366 (word_dce_process_block): Likewise.
3367 (dce_process_block): Likewise.
3369 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3371 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3372 from rtx to rtx_insn *.
3373 (struct change_cc_mode_args): Likewise for field "insn".
3374 (this_insn): Strengthen from rtx to rtx_insn *.
3375 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3377 (validate_canon_reg): Strengthen param "insn" from rtx to
3379 (canon_reg): Likewise.
3380 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3382 (record_jump_equiv): Strengthen param "insn" from rtx to
3384 (try_back_substitute_reg): Likewise, also for locals "prev",
3386 (find_sets_in_insn): Likewise for param "insn".
3387 (canonicalize_insn): Likewise.
3388 (cse_insn): Likewise. Add a checked cast.
3389 (invalidate_from_clobbers): Likewise for param "insn".
3390 (invalidate_from_sets_and_clobbers): Likewise.
3391 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3393 (cse_prescan_path): Strengthen local "insn" from rtx to
3395 (cse_extended_basic_block): Likewise for locals "insn" and
3397 (cse_main): Likewise for param "f".
3398 (check_for_label_ref): Likewise for local "insn".
3399 (set_live_p): Likewise for second param ("insn").
3400 (insn_live_p): Likewise for first param ("insn") and for local
3402 (cse_change_cc_mode_insn): Likewise for first param "insn".
3403 (cse_change_cc_mode_insns): Likewise for first and second params
3405 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
3407 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
3410 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3411 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3412 Anna Tikhonova <anna.tikhonova@intel.com>
3413 Ilya Tocar <ilya.tocar@intel.com>
3414 Andrey Turetskiy <andrey.turetskiy@intel.com>
3415 Ilya Verbin <ilya.verbin@intel.com>
3416 Kirill Yukhin <kirill.yukhin@intel.com>
3417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3419 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
3421 * config/i386/sse.md
3422 (define_mode_iterator VI248_AVX2): Delete.
3423 (define_mode_iterator VI2_AVX2_AVX512BW): New.
3424 (define_mode_iterator VI48_AVX2): Ditto.
3425 (define_insn <shift_insn><mode>3): Delete.
3426 (define_insn "<shift_insn><mode>3<mask_name>" with
3427 VI2_AVX2_AVX512BW): New.
3428 (define_insn "<shift_insn><mode>3<mask_name>" with
3431 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3432 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3433 Anna Tikhonova <anna.tikhonova@intel.com>
3434 Ilya Tocar <ilya.tocar@intel.com>
3435 Andrey Turetskiy <andrey.turetskiy@intel.com>
3436 Ilya Verbin <ilya.verbin@intel.com>
3437 Kirill Yukhin <kirill.yukhin@intel.com>
3438 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3440 * config/i386/sse.md
3441 (define_mode_iterator VI4F_BRCST32x2): New.
3442 (define_mode_attr 64x2_mode): Ditto.
3443 (define_mode_attr 32x2mode): Ditto.
3444 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
3445 with VI4F_BRCST32x2): Ditto.
3446 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
3447 with V16FI mode iterator): Ditto.
3448 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3450 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3451 with VI8F_BRCST64x2): Ditto.
3453 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3454 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3455 Anna Tikhonova <anna.tikhonova@intel.com>
3456 Ilya Tocar <ilya.tocar@intel.com>
3457 Andrey Turetskiy <andrey.turetskiy@intel.com>
3458 Ilya Verbin <ilya.verbin@intel.com>
3459 Kirill Yukhin <kirill.yukhin@intel.com>
3460 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3462 * config/i386/sse.md
3463 (define_mode_iterator VI8_AVX512VL): New.
3464 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
3466 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3468 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
3469 (define_mode_iterator V48_AVX512VL): New.
3470 (define_mode_iterator V12_AVX512VL): Ditto.
3471 (define_insn <avx512>_load<mode>_mask): Split into two similar
3472 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
3473 Refactor output template.
3474 (define_insn "<avx512>_store<mode>_mask"): Ditto.
3476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3478 * cprop.c (struct occr): Strengthen field "insn" from rtx to
3480 (reg_available_p): Likewise for param "insn".
3481 (insert_set_in_table): Likewise.
3482 (hash_scan_set): Likewise.
3483 (hash_scan_insn): Likewise.
3484 (make_set_regs_unavailable): Likewise.
3485 (compute_hash_table_work): Likewise for local "insn".
3486 (reg_not_set_p): Strengthen param "insn" from const_rtx to
3488 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
3489 (try_replace_reg): Likewise.
3490 (find_avail_set): Likewise.
3491 (cprop_jump): Likewise for params "setcc", "jump".
3492 (constprop_register): Likewise for param "insn".
3493 (cprop_insn): Likewise.
3494 (do_local_cprop): Likewise.
3495 (local_cprop_pass): Likewise for local "insn".
3496 (bypass_block): Likewise for params "setcc" and "jump".
3497 (bypass_conditional_jumps): Likewise for locals "setcc" and
3499 (one_cprop_pass): Likewise for local "insn".
3501 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3503 * compare-elim.c (struct comparison_use): Strengthen field "insn"
3504 from rtx to rtx_insn *.
3505 (struct comparison): Likewise, also for field "prev_clobber".
3506 (conforming_compare): Likewise for param "insn".
3507 (arithmetic_flags_clobber_p): Likewise.
3508 (find_flags_uses_in_insn): Likewise.
3509 (find_comparison_dom_walker::before_dom_children): Likewise for
3510 locals "insn", "next", "last_clobber".
3511 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
3513 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3515 * combine-stack-adj.c (struct csa_reflist): Strengthen field
3516 "insn" from rtx to rtx_insn *.
3517 (single_set_for_csa): Likewise for param "insn".
3518 (record_one_stack_ref): Likewise.
3519 (try_apply_stack_adjustment): Likewise.
3520 (struct record_stack_refs_data): Likewise for field "insn".
3521 (maybe_move_args_size_note): Likewise for params "last" and "insn".
3522 (prev_active_insn_bb): Likewise for return type and param "insn".
3523 (next_active_insn_bb): Likewise.
3524 (force_move_args_size_note): Likewise for params "prev" and "last"
3525 and locals "test", "next_candidate", "prev_candidate".
3526 (combine_stack_adjustments_for_block): Strengthen locals
3527 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
3530 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3532 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
3533 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
3534 (subst_insn): Likewise for this variable.
3535 (added_links_insn): Likewise.
3536 (struct insn_link): Likewise for field "insn".
3537 (alloc_insn_link): Likewise for param "insn".
3538 (struct undobuf): Likewise for field "other_insn".
3539 (find_single_use): Likewise for param "insn" and local "next".
3540 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
3541 (delete_noop_moves): Likewise for locals "insn", "next".
3542 (create_log_links): Likewise for locals "insn", "use_insn".
3543 Strengthen local "next_use" from rtx * to rtx_insn **.
3544 (insn_a_feeds_b): Likewise for params "a", "b".
3545 (combine_instructions): Likewise for param "f" and locals "insn",
3546 "next", "prev", "first", "last_combined_insn", "link", "link1",
3547 "temp". Replace use of NULL_RTX with NULL when referring to
3549 (setup_incoming_promotions): Likewise for param "first"
3550 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
3551 (can_combine_p): Likewise for params "insn", "i3", "pred",
3552 "pred2", "succ", "succ2" and for local "p".
3553 (combinable_i3pat): Likewise for param "i3".
3554 (cant_combine_insn_p): Likewise for param "insn".
3555 (likely_spilled_retval_p): Likewise.
3556 (adjust_for_new_dest): Likewise.
3557 (update_cfg_for_uncondjump): Likewise, also for local "insn".
3558 (try_combine): Likewise for return type and for params "i3", "i2",
3559 "i1", "i0", "last_combined_insn", and for locals "insn",
3560 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
3561 "i0_insn". Eliminate local "tem" in favor of new locals
3562 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
3563 checked cast for now to rtx_insn * on the return type of
3564 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
3566 (find_split_point): Strengthen param "insn" from rtx to
3568 (simplify_set): Likewise for local "other_insn".
3569 (recog_for_combine): Likewise for param "insn".
3570 (record_value_for_reg): Likewise.
3571 (record_dead_and_set_regs_1): Likewise for local
3573 (record_dead_and_set_regs): Likewise for param "insn".
3574 (record_promoted_value): Likewise.
3575 (check_promoted_subreg): Likewise.
3576 (get_last_value_validate): Likewise.
3577 (reg_dead_at_p): Likewise.
3578 (move_deaths): Likewise for param "to_insn".
3579 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
3580 and locals "place", "place2", "cc0_setter". Eliminate local "tem
3581 in favor of new locals "tem_note" and "tem_insn", the latter being
3583 (distribute_links): Strengthen locals "place", "insn" from rtx to
3586 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3588 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
3590 (can_delete_label_p): Require a const rtx_code_label * rather than
3592 (delete_insn): Add checked cast to rtx_code_label * when we know
3593 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
3595 (delete_insn_chain): Strengthen locals "prev" and "current" from
3596 rtx to rtx_insn *. Add a checked cast when assigning from
3597 "finish" (strengthening the params will come later). Add a
3598 checked cast to rtx_note * in region where we know
3600 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
3602 (compute_bb_for_insn): Likewise.
3603 (free_bb_for_insn): Likewise for local "insn".
3604 (compute_bb_for_insn): Likewise.
3605 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
3606 local "insn" from rtx to rtx_insn *
3607 (flow_active_insn_p): Require a const rtx_insn * rather than a
3609 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
3611 (can_fallthru): Likewise for locals "insn" and "insn2".
3612 (bb_note): Likewise for local "note".
3613 (first_insn_after_basic_block_note): Likewise for local "note" and
3615 (rtl_split_block): Likewise for locals "insn" and "next".
3616 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
3618 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
3619 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
3621 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
3622 them), "kill_from", "barrier", "new_insn".
3623 (patch_jump_insn): Likewise for params "insn", "old_label".
3624 (redirect_branch_edge): Likewise for locals "old_label", "insn".
3625 (force_nonfallthru_and_redirect): Likewise for locals "insn",
3626 "old_label", "new_label".
3627 (rtl_tidy_fallthru_edge): Likewise for local "q".
3628 (rtl_split_edge): Likewise for locals "before", "last".
3629 (commit_one_edge_insertion): Likewise for locals "before",
3630 "after", "insns", "tmp", "last", adding a checked cast where
3631 currently necessary.
3632 (commit_edge_insertions): Likewise.
3633 (rtl_dump_bb): Likewise for locals "insn", "last".
3634 (print_rtl_with_bb): Likewise for local "x".
3635 (rtl_verify_bb_insns): Likewise for local "x".
3636 (rtl_verify_bb_pointers): Likewise for local "insn".
3637 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
3639 (rtl_verify_fallthru): Likewise for local "insn".
3640 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
3641 (purge_dead_edges): Likewise for local "insn".
3642 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
3643 (skip_insns_after_block): Likewise for return type and for locals
3644 "insn", "last_insn", "next_head", "prev".
3645 (record_effective_endpoints): Likewise for locals "next_insn",
3647 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
3648 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
3649 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
3650 (duplicate_insn_chain): For now, add checked cast from rtx to
3651 rtx_insn * when returning insn.
3652 (cfg_layout_duplicate_bb): Likewise for local "insn".
3653 (cfg_layout_delete_block): Likewise for locals "insn", "next",
3655 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
3656 (rtl_block_empty_p): Likewise.
3657 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
3658 "split_point", "last".
3659 (rtl_block_ends_with_call_p): Likewise for local "insn".
3660 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
3662 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
3663 "split_at_insn" from rtx to rtx_insn *.
3664 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
3665 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
3666 to const rtx_insn *.
3667 (rtl_account_profile_record): Likewise.
3669 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3671 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
3673 (average_num_loop_insns): Likewise.
3674 (init_set_costs): Likewise for local "seq".
3675 (seq_cost): Likewise for param "seq", from const_rtx to const
3678 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3680 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
3683 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3685 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
3686 "f1" and "f2" from rtx * to rtx_insn **.
3687 (flow_find_head_matching_sequence): Likewise.
3689 * cfgcleanup.c (try_simplify_condjump): Strengthen local
3690 "cbranch_insn" from rtx to rtx_insn *.
3691 (thread_jump): Likewise for local "insn".
3692 (try_forward_edges): Likewise for local "last".
3693 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
3694 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
3696 (can_replace_by): Likewise for params "i1", "i2".
3697 (old_insns_match_p): Likewise.
3698 (merge_notes): Likewise.
3699 (walk_to_nondebug_insn): Likewise for param "i1".
3700 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
3701 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
3702 "afterlast1", "afterlast2" from rtx to rtx_insn *.
3703 (flow_find_head_matching_sequence): Strengthen params "f1" and
3704 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
3705 "last1", "last2", "beforelast1", "beforelast2" from rtx to
3707 (outgoing_edges_match): Likewise for locals "last1", "last2".
3708 (try_crossjump_to_edge): Likewise for local "insn".
3709 Replace call to for_each_rtx with for_each_rtx_in_insn.
3711 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
3712 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
3713 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
3714 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
3715 (try_optimize_cfg): Strengthen local "last" from rtx to
3717 (delete_dead_jumptables): Likewise for locals "insn", "next",
3720 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
3721 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
3722 "rtx else_first_tail", to reflect the basic-block.h changes above.
3724 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3726 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
3728 (purge_dead_tablejump_edges): Likewise.
3729 (find_bb_boundaries): Likewise for locals "insn", "end",
3730 "flow_transfer_insn".
3732 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3734 * caller-save.c (save_call_clobbered_regs): Strengthen locals
3735 "ins" and "prev" from rtx to rtx_insn *.
3737 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3739 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
3741 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
3742 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
3744 (load_register_parameters): Likewise for local "before_arg".
3745 (check_sibcall_argument_overlap): Likewise for param "insn".
3746 (expand_call): Likewise for locals "normal_call_insns",
3747 "tail_call_insns", "insns", "before_call", "after_args",
3748 "before_arg", "last", "prev". Strengthen one of the "last" from
3749 rtx to rtx_call_insn *.
3750 (fixup_tail_calls): Strengthen local "insn" from rtx to
3752 (emit_library_call_value_1): Likewise for locals "before_call" and
3755 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3757 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
3758 and "last" from rtx to rtx_insn *.
3759 (expand_builtin_nonlocal_goto): Likewise for local "insn".
3760 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
3762 (expand_errno_check): Strengthen local "lab" from rtx to
3764 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
3766 (expand_builtin_mathfn_2): Likewise.
3767 (expand_builtin_mathfn_ternary): Likewise.
3768 (expand_builtin_mathfn_3): Likewise.
3769 (expand_builtin_interclass_mathfn): Likewise for local "last".
3770 (expand_builtin_int_roundingfn): Likewise for local "insns".
3771 (expand_builtin_int_roundingfn_2): Likewise.
3772 (expand_builtin_strlen): Likewise for local "before_strlen".
3773 (expand_builtin_strncmp): Likewise for local "seq".
3774 (expand_builtin_signbit): Likewise for local "last".
3775 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
3776 from rtx to rtx_code_label *.
3777 (expand_stack_restore): Strengthen local "prev" from rtx to
3780 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3782 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
3784 (struct btr_def_s): Likewise.
3785 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
3787 (add_btr_def): Likewise.
3788 (new_btr_user): Likewise.
3789 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
3791 (link_btr_uses): Likewise.
3792 (move_btr_def): Likewise for locals "insp", "old_insn",
3793 "new_insn". Add checked cast to rtx_insn * for now on result of
3795 (can_move_up): Strengthen param "insn" from const_rtx to
3798 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3800 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
3802 (get_uncond_jump_length): Likewise for locals "label", "jump".
3803 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
3805 (add_labels_and_missing_jumps): Likewise for local "new_jump".
3806 (fix_up_fall_thru_edges): Likewise for local "old_jump".
3807 (find_jump_block): Likewise for local "insn".
3808 (fix_crossing_conditional_branches): Likewise for locals
3809 "old_jump", "new_jump".
3810 (fix_crossing_unconditional_branches): Likewise for locals
3811 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
3812 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
3814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3816 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
3818 (struct mem_insn): Likewise for field "insn".
3819 (reg_next_use): Strengthen from rtx * to rtx_insn **.
3820 (reg_next_inc_use): Likewise.
3821 (reg_next_def): Likewise.
3822 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
3823 from rtx to rtx_insn *.
3824 (move_insn_before): Likewise for param "next_insn" and local "insns".
3825 (attempt_change): Likewise for local "mov_insn".
3826 (try_merge): Likewise for param "last_insn".
3827 (get_next_ref): Likewise for return type and local "insn".
3828 Strengthen param "next_array" from rtx * to rtx_insn **.
3829 (parse_add_or_inc): Strengthen param "insn" from rtx to
3831 (find_inc): Likewise for locals "insn" and "other_insn" (three of
3833 (merge_in_block): Likewise for locals "insn", "curr",
3835 (pass_inc_dec::execute): Update allocations of the arrays to
3836 reflect the stronger types.
3838 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3840 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
3841 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
3842 from rtx to rtx_code_label *.
3844 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3846 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
3849 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3851 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
3852 generated a warning and prevented bootstrapping the compiler.
3854 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3856 * rtl.h (delete_related_insns): Strengthen return type from rtx to
3859 * jump.c (delete_related_insns): Likewise, also for locals "next"
3862 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3864 * genautomata.c (output_internal_insn_latency_func): When writing
3865 the function "internal_insn_latency" to insn-automata.c,
3866 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
3867 allowing the optional guard function of (define_bypass) clauses to
3868 expect a pair of rtx_insn *, rather than a pair of rtx.
3869 (output_insn_latency_func): When writing the function
3870 "insn_latency", add an "uncast_" prefix to params "insn" and
3871 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
3872 using checked casts from the params, thus enabling the above
3873 change to the generated "internal_insn_latency" function.
3875 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
3877 PR tree-optimization/62091
3878 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
3879 handle correctly arrays.
3880 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
3882 (record_known_type): Walk into inner type.
3883 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
3884 condition on no type changes.
3886 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3888 * genattrtab.c (write_attr_get): Within the generated get_attr_
3889 functions, rename param "insn" to "uncast_insn" and reintroduce
3890 "insn" as an local rtx_insn * using a checked cast, so that "insn"
3891 is an rtx_insn * within insn-attrtab.c
3893 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3895 * output.h (peephole): Strengthen return type from rtx to
3897 * rtl.h (delete_for_peephole): Likewise for both params.
3898 * genpeep.c (main): In generated "peephole" function, strengthen
3899 return type and local "insn" from rtx to rtx_insn *. For now,
3900 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
3901 rtx_insn *, with a checked cast.
3902 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
3903 locals "insn", "next", "prev" from rtx to rtx_insn *.
3905 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
3907 PR tree-optimization/62112
3908 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
3909 * gimple-iterator.h (gsi_replace): Return bool.
3910 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
3911 moved from ref_may_alias_global_p.
3912 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
3914 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
3915 (stmt_kills_ref_p_1): Rename...
3916 (stmt_kills_ref_p): ... to this.
3917 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
3918 stmt_kills_ref_p): Declare.
3919 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
3920 Move the self-assignment case...
3921 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
3923 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3925 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
3927 * emit-rtl.c (try_split): Likewise, also for locals "before" and
3928 "after". For now, don't strengthen param "trial", which requires
3929 adding checked casts when returning it.
3931 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3933 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
3934 "label" from rtx to rtx_code_label *. Strengthen param 1 of
3935 "var_location" hook from rtx to rtx_insn *.
3936 (debug_nothing_rtx): Delete in favor of...
3937 (debug_nothing_rtx_code_label): New prototype.
3938 (debug_nothing_rtx_rtx): Delete unused prototype.
3939 (debug_nothing_rtx_insn): New prototype.
3941 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
3942 invoking debug_hooks->var_location (in two places, one in a NOTE
3943 case of a switch statement, the other guarded by a CALL_P
3944 conditional. Add checked cast to rtx_code_label * when invoking
3945 debug_hooks->label (within CODE_LABEL case of switch statement).
3947 * dbxout.c (dbx_debug_hooks): Update "label" hook from
3948 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3949 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
3950 (xcoff_debug_hooks): Likewise.
3951 * debug.c (do_nothing_debug_hooks): Likewise.
3952 (debug_nothing_rtx): Delete in favor of...
3953 (debug_nothing_rtx_insn): New function.
3954 (debug_nothing_rtx_rtx): Delete unused function.
3955 (debug_nothing_rtx_code_label): New function.
3956 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
3957 debug_nothing_rtx to debug_nothing_rtx_code_label.
3958 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
3960 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
3961 debug_nothing_rtx to debug_nothing_rtx_insn.
3962 (sdbout_label): Strengthen param "insn" from rtx to
3964 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
3965 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3966 "var_location" hook from debug_nothing_rtx to
3967 debug_nothing_rtx_insn.
3969 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3971 * recog.h (insn_output_fn): Update this function typedef to match
3972 the changes below to the generated output functions, strengthening
3973 the 2nd param from rtx to rtx_insn *.
3975 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
3976 insn when invoking an output function, to match the new signature
3977 of insn_output_fn with a stronger second param.
3979 * genconditions.c (write_header): In the generated code for
3980 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
3981 to match the other changes in this patch.
3983 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
3984 the generated "gen_" functions from rtx to rtx_insn * within their
3987 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
3988 the subfunctions within the generated "recog_", "split", "peephole2"
3989 function trees from rtx to rtx_insn *. For now, the top-level
3990 generated functions ("recog", "split", "peephole2") continue to
3991 take a plain rtx for "insn", to avoid introducing dependencies on
3992 other patches. Rename this 2nd param from "insn" to
3993 "uncast_insn", and reintroduce "insn" as a local variable of type
3994 rtx_insn *, initialized at the top of the generated function with
3995 a checked cast on "uncast_insn".
3996 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
3997 the generated "gen_" functions from rtx to rtx_insn * within their
4000 * genoutput.c (process_template): Strengthen the 2nd param within
4001 the generated "output_" functions "insn" from rtx to rtx_insn *.
4003 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4005 * tree-profile.c (tree_profiling): Skip external functions
4006 when doing coverage instrumentation.
4007 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4009 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4011 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4012 (vec_mergee): Likewise.
4013 (vec_mergeo): Likewise.
4014 (vec_cntlz): Likewise.
4015 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4016 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4017 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4019 * doc/extend.texi: Document various forms of vec_cpsgn,
4020 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4021 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4022 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4023 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4024 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4026 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4028 * config/rs6000/rs6000.c (context.h): New include.
4029 (tree-pass.h): Likewise.
4030 (make_pass_analyze_swaps): New decl.
4031 (rs6000_option_override): Register pass_analyze_swaps.
4032 (swap_web_entry): New subsclass of web_entry_base (df.h).
4033 (special_handling_values): New enum.
4034 (union_defs): New function.
4035 (union_uses): Likewise.
4036 (insn_is_load_p): Likewise.
4037 (insn_is_store_p): Likewise.
4038 (insn_is_swap_p): Likewise.
4039 (rtx_is_swappable_p): Likewise.
4040 (insn_is_swappable_p): Likewise.
4041 (chain_purpose): New enum.
4042 (chain_contains_only_swaps): New function.
4043 (mark_swaps_for_removal): Likewise.
4044 (swap_const_vector_halves): Likewise.
4045 (adjust_subreg_index): Likewise.
4046 (permute_load): Likewise.
4047 (permute_store): Likewise.
4048 (handle_special_swappables): Likewise.
4049 (replace_swap_with_copy): Likewise.
4050 (dump_swap_insn_table): Likewise.
4051 (rs6000_analyze_swaps): Likewise.
4052 (pass_data_analyze_swaps): New pass_data.
4053 (pass_analyze_swaps): New rtl_opt_pass.
4054 (make_pass_analyze_swaps): New function.
4055 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4057 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4059 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4060 type from rtx to rtx_insn *.
4061 (create_copy_of_insn_rtx): Likewise.
4062 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4063 (create_copy_of_insn_rtx): Likewise, also for local "res".
4065 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4067 * rtl.h (find_first_parameter_load): Strengthen return type from
4069 * rtlanal.c (find_first_parameter_load): Strengthen return type
4070 from rtx to rtx_insn *. Add checked cast for now, to postpone
4071 strengthening the params.
4073 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4076 * diagnostic.c: Set default caret.
4077 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4079 * diagnostic.h (struct diagnostic_context):
4081 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4083 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4084 (sel_bb_head): Strengthen return type insn_t (currently just an
4086 (sel_bb_end): Likewise.
4088 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4089 (sel_bb_head): Strengthen return type and local "head" from
4090 insn_t (currently just an rtx) to rtx_insn *.
4091 (sel_bb_end): Likewise for return type.
4092 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4095 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4097 * basic-block.h (get_last_bb_insn): Strengthen return type from
4099 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4102 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4105 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4107 (diagnostic_report_diagnostic): ... from here.
4108 * toplev.c (general_init): Move code to c-family.
4110 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4112 * df.h (web_entry_base): Replace existing struct web_entry with a
4113 new class web_entry_base with only the predecessor member.
4114 (unionfind_root): Remove declaration and move to class member.
4115 (unionfind_union): Remove declaration and move to friend
4117 (union_defs): Remove declaration.
4118 * web.c (web_entry_base::unionfind_root): Modify to be member
4119 function and adjust accessors.
4120 (unionfind_union): Modify to be friend function and adjust
4122 (web_entry): New subclass of web_entry_base containing the reg
4124 (union_match_dups): Modify for struct -> class changes.
4125 (union_defs): Likewise.
4126 (entry_register): Likewise.
4127 (pass_web::execute): Likewise.
4129 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4131 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4132 builtin define __VEC_ELEMENT_REG_ORDER__.
4134 2014-08-20 Martin Jambor <mjambor@suse.cz>
4135 Wei Mi <wmi@google.com>
4139 * tree-ssa-operands.c (update_stmt_operands): Remove
4140 MODIFIED_NORETURN_CALLS.
4141 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4142 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4143 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4144 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4145 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4146 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4147 (gimple_call_set_ctrl_altering): New func.
4148 (gimple_call_ctrl_altering_p): Ditto.
4149 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4150 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4151 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4152 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4153 remove MODIFIED_NORETURN_CALLS.
4155 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4157 * coverage.c (coverage_compute_profile_id): Return non-0;
4158 also handle symbols with unique name.
4159 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4161 2014-08-20 Steve Ellcey <sellcey@mips.com>
4164 * doc/sourcebuild.texi (non_strict_align): New.
4166 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4168 * cgraphunit.c (ipa_passes, compile): Reshedule
4169 symtab_remove_unreachable_nodes passes; update comments.
4170 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4171 TODO_remove_functions before the pass; the functions ought to be
4173 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4174 TODO_remove_functions.
4175 * passes.c (pass_data_early_local_passes): Do not schedule function
4177 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4179 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4182 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4183 before setting the option.
4184 * diagnostic.c (diagnostic_classify_diagnostic): Record
4185 command-line status.
4187 2014-08-20 Richard Biener <rguenther@suse.de>
4190 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4191 to build uint{16,32,64}_type_node.
4193 2014-08-20 Terry Guo <terry.guo@arm.com>
4195 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4196 with immediate_operand.
4198 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4200 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4201 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4204 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4206 PR preprocessor/51303
4207 * incpath.c (remove_duplicates): Use cpp_warning.
4209 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4213 * doc/options.texi (CPP): Document it.
4214 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4215 * optc-gen.awk: Handle CPP.
4216 * opth-gen.awk: Likewise.
4218 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4220 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4222 (duplicate_insn_chain): Likewise.
4223 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4224 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4225 checked cast for now (until we can strengthen the params in the
4227 (duplicate_insn_chain): Likewise.
4229 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4231 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4233 (prev_cc0_setter): Likewise.
4235 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4236 rtx_insn *, adding checked casts for now as necessary.
4237 (prev_cc0_setter): Likewise.
4239 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4241 * expr.h (emit_move_insn): Strengthen return type from rtx to
4243 (emit_move_insn_1): Likewise.
4244 (emit_move_complex_push): Likewise.
4245 (emit_move_complex_parts): Likewise.
4247 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4248 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4250 (emit_move_complex_push): Strengthen return type from rtx to
4252 (emit_move_complex): Likewise, also for local "ret".
4253 (emit_move_ccmode): Likewise.
4254 (emit_move_multi_word): Likewise for return type and locals
4256 (emit_move_insn_1): Likewise for return type and locals "result",
4258 (emit_move_insn): Likewise for return type and local "last_insn".
4259 (compress_float_constant): Likewise.
4261 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4263 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4264 from rtx to rtx_insn *.
4266 * rtl.h (emit_insn_before): Likewise.
4267 (emit_insn_before_noloc): Likewise.
4268 (emit_insn_before_setloc): Likewise.
4269 (emit_jump_insn_before): Likewise.
4270 (emit_jump_insn_before_noloc): Likewise.
4271 (emit_jump_insn_before_setloc): Likewise.
4272 (emit_call_insn_before): Likewise.
4273 (emit_call_insn_before_noloc): Likewise.
4274 (emit_call_insn_before_setloc): Likewise.
4275 (emit_debug_insn_before): Likewise.
4276 (emit_debug_insn_before_noloc): Likewise.
4277 (emit_debug_insn_before_setloc): Likewise.
4278 (emit_label_before): Likewise.
4279 (emit_insn_after): Likewise.
4280 (emit_insn_after_noloc): Likewise.
4281 (emit_insn_after_setloc): Likewise.
4282 (emit_jump_insn_after): Likewise.
4283 (emit_jump_insn_after_noloc): Likewise.
4284 (emit_jump_insn_after_setloc): Likewise.
4285 (emit_call_insn_after): Likewise.
4286 (emit_call_insn_after_noloc): Likewise.
4287 (emit_call_insn_after_setloc): Likewise.
4288 (emit_debug_insn_after): Likewise.
4289 (emit_debug_insn_after_noloc): Likewise.
4290 (emit_debug_insn_after_setloc): Likewise.
4291 (emit_label_after): Likewise.
4292 (emit_insn): Likewise.
4293 (emit_debug_insn): Likewise.
4294 (emit_jump_insn): Likewise.
4295 (emit_call_insn): Likewise.
4296 (emit_label): Likewise.
4297 (gen_clobber): Likewise.
4298 (emit_clobber): Likewise.
4299 (gen_use): Likewise.
4300 (emit_use): Likewise.
4303 (emit_barrier_before): Strengthen return type from rtx to
4305 (emit_barrier_after): Likewise.
4306 (emit_barrier): Likewise.
4308 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4309 from rtx to rtx_insn *. Add checked casts for now when converting
4310 "last" from rtx to rtx_insn *.
4311 (emit_insn_before_noloc): Likewise for return type.
4312 (emit_jump_insn_before_noloc): Likewise.
4313 (emit_call_insn_before_noloc): Likewise.
4314 (emit_debug_insn_before_noloc): Likewise.
4315 (emit_barrier_before): Strengthen return type and local "insn"
4316 from rtx to rtx_barrier *.
4317 (emit_label_before): Strengthen return type from rtx to
4318 rtx_insn *. Add checked cast for now when returning param
4319 (emit_pattern_after_noloc): Strengthen return type from rtx to
4320 rtx_insn *. Add checked casts for now when converting "last" from
4322 (emit_insn_after_noloc): Strengthen return type from rtx to
4324 (emit_jump_insn_after_noloc): Likewise.
4325 (emit_call_insn_after_noloc): Likewise.
4326 (emit_debug_insn_after_noloc): Likewise.
4327 (emit_barrier_after): Strengthen return type from rtx to
4329 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4330 Add checked cast for now when converting "label" from rtx to
4332 (emit_pattern_after_setloc): Strengthen return type from rtx to
4333 rtx_insn *. Add checked casts for now when converting "last" from
4335 (emit_pattern_after): Strengthen return type from rtx to
4337 (emit_insn_after_setloc): Likewise.
4338 (emit_insn_after): Likewise.
4339 (emit_jump_insn_after_setloc): Likewise.
4340 (emit_jump_insn_after): Likewise.
4341 (emit_call_insn_after_setloc): Likewise.
4342 (emit_call_insn_after): Likewise.
4343 (emit_debug_insn_after_setloc): Likewise.
4344 (emit_debug_insn_after): Likewise.
4345 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4346 when converting "last" from rtx to rtx_insn *.
4347 (emit_pattern_before): Strengthen return type from rtx to
4349 (emit_insn_before_setloc): Likewise.
4350 (emit_insn_before): Likewise.
4351 (emit_jump_insn_before_setloc): Likewise.
4352 (emit_jump_insn_before): Likewise.
4353 (emit_call_insn_before_setloc): Likewise.
4354 (emit_call_insn_before): Likewise.
4355 (emit_debug_insn_before_setloc): Likewise.
4356 (emit_debug_insn_before): Likewise.
4357 (emit_insn): Strengthen return type and locals "last", "insn",
4358 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4359 within cases where we know we have an insn.
4360 (emit_debug_insn): Likewise.
4361 (emit_jump_insn): Likewise.
4362 (emit_call_insn): Strengthen return type and local "insn" from rtx
4364 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4365 a checked cast to rtx_insn * for now on "label".
4366 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4367 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4368 (emit_use): Likewise.
4369 (gen_use): Likewise, also for local "seq".
4370 (emit): Likewise for return type and local "insn".
4371 (rtx_insn): Likewise for return type and local "new_rtx".
4373 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4374 from rtx to rtx_barrier *.
4376 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4377 changed return type from rtx to rtx_insn *, we must update
4378 "emit_fn" type, and this in turn means updating...
4379 (frame_insn): ...this. Strengthen return type from rtx to
4380 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4382 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4384 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4385 rtx to rtx_jump_table_data *. Also for local.
4386 * rtl.h (emit_jump_table_data): Likewise.
4388 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4390 * basic-block.h (create_basic_block_structure): Strengthen third
4391 param "bb_note" from rtx to rtx_note *.
4392 * rtl.h (emit_note_before): Strengthen return type from rtx to
4394 (emit_note_after): Likewise.
4395 (emit_note): Likewise.
4396 (emit_note_copy): Likewise. Also, strengthen param similarly.
4397 * function.h (struct rtl_data): Strengthen field
4398 "x_stack_check_probe_note" from rtx to rtx_note *.
4400 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
4401 from rtx to rtx_note *.
4402 * cfgrtl.c (create_basic_block_structure): Strengthen third param
4403 "bb_note" from rtx to rtx_note *.
4404 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
4405 when calling emit_note_copy.
4406 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
4408 (emit_note_after): Likewise.
4409 (emit_note_before): Likewise.
4410 (emit_note_copy): Likewise. Also, strengthen param similarly.
4411 (emit_note): Likewise.
4412 * except.c (emit_note_eh_region_end): Likewise for return type.
4413 Strengthen local "next" from rtx to rtx_insn *.
4414 (convert_to_eh_region_ranges): Strengthen local "note"
4415 from rtx to rtx_note *.
4416 * final.c (change_scope): Likewise.
4417 (reemit_insn_block_notes): Likewise, for both locals named "note".
4418 Also, strengthen local "insn" from rtx to rtx_insn *.
4419 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
4421 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
4422 strengthen local "seq" from rtx to rtx_insn *.
4423 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
4425 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
4427 (get_bb_note_from_pool): Strengthen return type from rtx to
4429 (sel_create_basic_block): Strengthen local "new_bb_note" from
4430 insn_t to rtx_note *.
4431 * var-tracking.c (emit_note_insn_var_location): Strengthen local
4432 "note" from rtx to rtx_note *.
4433 (emit_notes_in_bb): Likewise.
4435 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4437 * function.h (struct rtl_data): Strengthen field
4438 "x_parm_birth_insn" from rtx to rtx_insn *.
4439 * function.c (struct assign_parm_data_all): Strengthen fields
4440 "first_conversion_insn" and "last_conversion_insn" from rtx to
4443 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4445 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
4446 to rtx_insn *; also for local "var_end_seq".
4447 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
4448 (maybe_cleanup_end_of_block): Likewise for param "last" and local
4450 (expand_gimple_cond): Likewise for locals "last2" and "last".
4451 (mark_transaction_restart_calls): Likewise for local "insn".
4452 (expand_gimple_stmt): Likewise for return type and locals "last"
4454 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
4455 (avoid_complex_debug_insns): Likewise for param "insn".
4456 (expand_debug_locations): Likewise for locals "insn", "last",
4457 "prev_insn" and "insn2".
4458 (expand_gimple_basic_block): Likewise for local "last".
4459 (construct_exit_block): Likewise for locals "head", "end",
4461 (pass_expand::execute): Likewise for locals "var_seq",
4462 "var_ret_seq", "next".
4464 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4466 * asan.h (asan_emit_stack_protection): Strengthen return type from
4468 * asan.c (asan_emit_stack_protection): Likewise. Add local
4469 "insns" to hold the return value.
4471 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4473 * basic-block.h (bb_note): Strengthen return type from rtx to
4475 * sched-int.h (bb_note): Likewise.
4476 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
4478 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4480 * rtl.h (make_insn_raw): Strengthen return type from rtx to
4483 * emit-rtl.c (make_insn_raw): Strengthen return type and local
4484 "insn" from rtx to rtx_insn *.
4485 (make_debug_insn_raw): Strengthen return type from rtx to
4486 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
4487 (make_jump_insn_raw): Strengthen return type from rtx to
4488 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
4489 (make_call_insn_raw): Strengthen return type from rtx to
4490 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
4491 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
4492 callback from rtx to rtx_insn *; likewise for local "insn" and
4493 "next", adding a checked cast to rtx_insn in the relevant cases of
4494 the switch statement.
4495 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
4496 callback from rtx to rtx_insn *.
4497 (emit_pattern_after_setloc): Likewise.
4498 (emit_pattern_after): Likewise.
4499 (emit_pattern_before_setloc): Likewise.
4500 (emit_pattern_before): Likewise.
4502 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4504 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
4506 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
4507 accepting an rtx_insn *.
4508 (last_call_insn): Strengthen return type from rtx to
4511 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4513 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
4514 "insns" from rtx to rtx_insn *.
4515 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
4516 locals "insn" and "prev".
4518 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4520 * rtl.h (tablejump_p): Strengthen third param from rtx * to
4521 rtx_jump_table_data **.
4523 * cfgbuild.c (make_edges): Introduce local "table", using it in
4524 place of "tmp" for jump table data.
4525 (find_bb_boundaries): Strengthen local "table" from rtx to
4526 rtx_jump_table_data *.
4527 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4528 (outgoing_edges_match): Likewise for locals "table1" and "table2".
4529 (try_crossjump_to_edge): Likewise.
4530 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
4532 (patch_jump_insn): Introduce local "table", using it in place of
4533 "tmp" for jump table data.
4534 (force_nonfallthru_and_redirect): Introduce local "table", so that
4535 call to tablejump_p can receive an rtx_jump_table_data **. Update
4536 logic around the call to overwrite "note" appropriately if
4537 tablejump_p returns non-zero.
4538 (get_last_bb_insn): Introduce local "table", using it in place of
4539 "tmp" for jump table data.
4540 * dwarf2cfi.c (create_trace_edges): Likewise.
4542 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
4543 from rtx to rtx_jump_table_data *.
4544 (create_fix_barrier): Strengthen local "tmp" from rtx to
4545 rtx_jump_table_data *.
4546 (arm_reorg): Likewise for local "table".
4548 * config/s390/s390.c (s390_chunkify_start): Likewise.
4550 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4552 * jump.c (delete_related_insns): Strengthen local "lab_next" from
4553 rtx to rtx_jump_table_data *.
4555 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
4556 rtx_jump_table_data **. Add a checked cast when writing through
4557 the pointer: we know there that local "table" is non-NULL and that
4558 JUMP_TABLE_DATA_P (table) holds.
4559 (label_is_jump_target_p): Introduce local "table", using it in
4560 place of "tmp" for jump table data.
4562 2014-08-19 Marek Polacek <polacek@redhat.com>
4565 * doc/invoke.texi: Document -Wbool-compare.
4567 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4569 * rtl.h (entry_of_function): Strengthen return type from rtx to
4571 * cfgrtl.c (entry_of_function): Likewise.
4573 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4575 * emit-rtl.h (get_insns): Strengthen return type from rtx to
4576 rtx_insn *, adding a checked cast for now.
4577 (get_last_insn): Likewise.
4579 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4581 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
4584 * emit-rtl.c (gen_label_rtx): Likewise.
4586 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4588 * rtl.h (previous_insn): Strengthen return type from rtx to
4590 (next_insn): Likewise.
4591 (prev_nonnote_insn): Likewise.
4592 (prev_nonnote_insn_bb): Likewise.
4593 (next_nonnote_insn): Likewise.
4594 (next_nonnote_insn_bb): Likewise.
4595 (prev_nondebug_insn): Likewise.
4596 (next_nondebug_insn): Likewise.
4597 (prev_nonnote_nondebug_insn): Likewise.
4598 (next_nonnote_nondebug_insn): Likewise.
4599 (prev_real_insn): Likewise.
4600 (next_real_insn): Likewise.
4601 (prev_active_insn): Likewise.
4602 (next_active_insn): Likewise.
4604 * emit-rtl.c (next_insn): Strengthen return type from rtx to
4605 rtx_insn *, adding a checked cast.
4606 (previous_insn): Likewise.
4607 (next_nonnote_insn): Likewise.
4608 (next_nonnote_insn_bb): Likewise.
4609 (prev_nonnote_insn): Likewise.
4610 (prev_nonnote_insn_bb): Likewise.
4611 (next_nondebug_insn): Likewise.
4612 (prev_nondebug_insn): Likewise.
4613 (next_nonnote_nondebug_insn): Likewise.
4614 (prev_nonnote_nondebug_insn): Likewise.
4615 (next_real_insn): Likewise.
4616 (prev_real_insn): Likewise.
4617 (next_active_insn): Likewise.
4618 (prev_active_insn): Likewise.
4620 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
4621 param "stepfunc" so that it returns an rtx_insn * rather than an
4622 rtx, to track the change to prev_nonnote_insn_bb, which is the
4623 only function this is called with.
4624 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
4626 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
4628 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
4631 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4633 * coretypes.h (class rtx_debug_insn): Add forward declaration.
4634 (class rtx_nonjump_insn): Likewise.
4635 (class rtx_jump_insn): Likewise.
4636 (class rtx_call_insn): Likewise.
4637 (class rtx_jump_table_data): Likewise.
4638 (class rtx_barrier): Likewise.
4639 (class rtx_code_label): Likewise.
4640 (class rtx_note): Likewise.
4642 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
4643 adding the invariant DEBUG_INSN_P (X).
4644 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
4645 the invariant NONJUMP_INSN_P (X).
4646 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
4647 the invariant JUMP_P (X).
4648 (class rtx_call_insn): New, a subclass of rtx_insn, adding
4649 the invariant CALL_P (X).
4650 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
4651 invariant JUMP_TABLE_DATA_P (X).
4652 (class rtx_barrier): New, a subclass of rtx_insn, adding the
4653 invariant BARRIER_P (X).
4654 (class rtx_code_label): New, a subclass of rtx_insn, adding
4655 the invariant LABEL_P (X).
4656 (class rtx_note): New, a subclass of rtx_insn, adding
4657 the invariant NOTE_P(X).
4658 (is_a_helper <rtx_debug_insn *>::test): New.
4659 (is_a_helper <rtx_nonjump_insn *>::test): New.
4660 (is_a_helper <rtx_jump_insn *>::test): New.
4661 (is_a_helper <rtx_call_insn *>::test): New.
4662 (is_a_helper <rtx_jump_table_data *>::test): New functions,
4663 overloaded for both rtx and rtx_insn *.
4664 (is_a_helper <rtx_barrier *>::test): New.
4665 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
4666 for both rtx and rtx_insn *.
4667 (is_a_helper <rtx_note *>::test): New.
4669 2014-08-19 Marek Polacek <polacek@redhat.com>
4671 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
4672 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4673 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
4674 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4676 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4678 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
4679 rtx_insn *. To help with transition, for now, convert from an
4680 access macro into a pair of functions: BND_TO, returning an
4682 (SET_BND_TO): New function, for use where BND_TO is used as an
4685 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
4687 (BND_TO): New function, adding a checked cast.
4688 (SET_BND_TO): New function.
4690 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
4692 (compute_av_set_on_boundaries): Likewise.
4694 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4696 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
4697 destination if it is used in source.
4698 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
4699 (*popcount<mode>2_falsedep_1): Likewise.
4701 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4704 * configure.ac: Set install_gold_as_default to no first.
4705 * configure: Regenerated.
4707 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4709 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
4710 "note_list" field will eventually be an rtx_insn *. To help with
4711 transition, for now, convert from an access macro into a pair of
4712 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
4713 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
4716 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
4717 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
4719 * sel-sched-ir.c (init_bb): Likewise.
4720 (sel_restore_notes): Likewise.
4721 (move_bb_info): Likewise.
4722 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
4723 (SET_BB_NOTE_LIST): New function.
4725 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4727 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
4728 field will eventually be an rtx_insn *. To help with transition,
4729 for now, convert from an access macro into a pair of functions:
4730 VINSN_INSN_RTX, returning an rtx_insn *, and...
4731 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
4732 is used as an lvalue.
4734 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
4735 SET_VINSN_INSN_RTX where it's used as an lvalue.
4736 (VINSN_INSN_RTX): New function.
4737 (SET_VINSN_INSN_RTX): New function.
4739 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4741 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
4742 eventually be rtx_insn *, but to help with transition, for now,
4743 convert from an access macro into a pair of functions: DEP_PRO
4744 returning an rtx_insn * and...
4745 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
4746 lvalue, returning an rtx&.
4747 (DEP_CON): Analogous changes to DEP_PRO above.
4748 (SET_DEP_CON): Likewise.
4750 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
4751 an lvalue to SET_DEP_CON.
4752 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
4753 (sd_copy_back_deps): Likewise for DEP_CON.
4754 (DEP_PRO): New function, adding a checked cast for now.
4755 (DEP_CON): Likewise.
4756 (SET_DEP_PRO): New function.
4757 (SET_DEP_CON): Likewise.
4759 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4761 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
4762 (extra_options): Add i386/cygwin.opt.
4763 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
4764 (CPP_SPEC): Accept -pthread.
4766 (GOMP_SELF_SPECS): Update comment.
4767 * config/i386/cygwin.opt: New file for -pthread flag.
4769 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4771 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
4772 * df.h (DF_REF_INSN): Convert from a macro to a function, so
4773 that we can return an rtx_insn *.
4775 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4777 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
4778 when building executables, not DLLs. Add --large-address-aware
4779 under the same conditions.
4780 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
4781 when building executables, not DLLs. Add --large-address-aware
4782 under the same conditions when using -m32.
4784 * config/i386/cygwin-stdint.h: Throughout, make type
4785 definitions dependent on target architecture, not host.
4787 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4789 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
4790 the return type from rtx to rtx_insn *, which will enable various
4791 conversions in followup patches. For now this is is done by a
4793 (NEXT_INSN): Likewise.
4794 (SET_PREV_INSN): Convert to an inline function. This is intended
4795 for use as an lvalue, and so returns an rtx& to allow in-place
4797 (SET_NEXT_INSN): Likewise.
4799 2014-07-08 Mark Wielaard <mjw@redhat.com>
4802 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
4804 2014-08-19 Marek Polacek <polacek@redhat.com>
4807 * cgraphunit.c (handle_alias_pairs): Fix condition.
4809 2014-08-19 Richard Biener <rguenther@suse.de>
4811 * gimple-fold.c (fold_gimple_assign): Properly build a
4812 null-pointer constant when devirtualizing addresses.
4814 2014-07-07 Mark Wielaard <mjw@redhat.com>
4816 * dwarf2out.c (decl_quals): New function.
4817 (modified_type_die): Take one cv_quals argument instead of two,
4818 one for const and one for volatile.
4819 (add_type_attribute): Likewise.
4820 (generic_parameter_die): Call add_type_attribute with one modifier
4822 (base_type_for_mode): Likewise.
4823 (add_bounds_info): Likewise.
4824 (add_subscript_info): Likewise.
4825 (gen_array_type_die): Likewise.
4826 (gen_descr_array_type_die): Likewise.
4827 (gen_entry_point_die): Likewise.
4828 (gen_enumeration_type_die): Likewise.
4829 (gen_formal_parameter_die): Likewise.
4830 (gen_subprogram_die): Likewise.
4831 (gen_variable_die): Likewise.
4832 (gen_const_die): Likewise.
4833 (gen_field_die): Likewise.
4834 (gen_pointer_type_die): Likewise.
4835 (gen_reference_type_die): Likewise.
4836 (gen_ptr_to_mbr_type_die): Likewise.
4837 (gen_inheritance_die): Likewise.
4838 (gen_subroutine_type_die): Likewise.
4839 (gen_typedef_die): Likewise.
4840 (force_type_die): Likewise.
4842 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4844 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
4846 * configure: Regenerate.
4848 2014-08-19 Richard Biener <rguenther@suse.de>
4850 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
4851 DECL_EXTERNALs in BLOCKs as non-references.
4852 * tree-streamer-out.c (streamer_write_chain): Likewise.
4854 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
4855 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4856 Anna Tikhonova <anna.tikhonova@intel.com>
4857 Ilya Tocar <ilya.tocar@intel.com>
4858 Andrey Turetskiy <andrey.turetskiy@intel.com>
4859 Ilya Verbin <ilya.verbin@intel.com>
4860 Kirill Yukhin <kirill.yukhin@intel.com>
4861 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4863 * config/i386/sse.md
4864 (define_mode_iterator VI48_AVX512F): Delete.
4865 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
4866 (define_mode_iterator VI2_AVX512VL): Ditto.
4867 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
4870 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
4872 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
4873 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
4874 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4875 with VI48_AVX512F_AVX512VL): New.
4876 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4877 with VI2_AVX512VL): Ditto.
4879 2014-08-19 Marek Polacek <polacek@redhat.com>
4881 * doc/invoke.texi: Document -Wc99-c11-compat.
4883 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4885 * rtl.h (PREV_INSN): Split macro in two: the existing one,
4887 (SET_PREV_INSN): New macro, for use as an lvalue.
4888 (NEXT_INSN, SET_NEXT_INSN): Likewise.
4890 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
4891 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
4892 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4893 (fixup_abnormal_edges): Likewise.
4894 (unlink_insn_chain): Likewise.
4895 (fixup_reorder_chain): Likewise.
4896 (cfg_layout_delete_block): Likewise.
4897 (cfg_layout_merge_blocks): Likewise.
4898 * combine.c (update_cfg_for_uncondjump): Likewise.
4899 * emit-rtl.c (link_insn_into_chain): Likewise.
4900 (remove_insn): Likewise.
4901 (delete_insns_since): Likewise.
4902 (reorder_insns_nobb): Likewise.
4903 (emit_insn_after_1): Likewise.
4904 * final.c (rest_of_clean_state): Likewise.
4905 (final_scan_insn): Likewise.
4906 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
4907 * haifa-sched.c (concat_note_lists): Likewise.
4908 (remove_notes): Likewise.
4909 (restore_other_notes): Likewise.
4910 (move_insn): Likewise.
4911 (unlink_bb_notes): Likewise.
4912 (restore_bb_notes): Likewise.
4913 * jump.c (delete_for_peephole): Likewise.
4914 * optabs.c (emit_libcall_block_1): Likewise.
4915 * reorg.c (emit_delay_sequence): Likewise.
4916 (fill_simple_delay_slots): Likewise.
4917 * sel-sched-ir.c (sel_move_insn): Likewise.
4918 (sel_remove_insn): Likewise.
4919 (get_bb_note_from_pool): Likewise.
4920 * sel-sched.c (move_nop_to_previous_block): Likewise.
4922 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
4923 * config/c6x/c6x.c (gen_one_bundle): Likewise.
4924 (c6x_gen_bundles): Likewise.
4925 (hwloop_optimize): Likewise.
4926 * config/frv/frv.c (frv_function_prologue): Likewise.
4927 (frv_register_nop): Likewise.
4928 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
4929 (ia64_reorg): Likewise.
4930 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
4931 (mep_make_bundle): Likewise.
4932 (mep_bundle_insns): Likewise.
4933 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
4934 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
4935 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
4937 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4939 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
4940 return type from rtx to rtx_insn *.
4942 (BB_HEADER): Likewise.
4943 (BB_FOOTER): Likewise.
4944 (SET_BB_HEAD): Convert to a function.
4945 (SET_BB_END): Likewise.
4946 (SET_BB_HEADER): Likewise.
4947 (SET_BB_FOOTER): Likewise.
4949 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
4950 Strengthen the return type from rtx to rtx_insn *. For now, this
4951 is done by adding a checked cast, but this will eventually
4952 become a field lookup.
4954 (BB_HEADER): Likewise.
4955 (BB_FOOTER): Likewise.
4956 (SET_BB_HEAD): New function, from macro of same name. This is
4957 intended for use as an lvalue, and so returns an rtx& to allow
4958 in-place modification.
4959 (SET_BB_END): Likewise.
4960 (SET_BB_HEADER): Likewise.
4961 (SET_BB_FOOTER): Likewise.
4963 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4965 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
4967 (SET_BB_HEAD): New macro, for use as a lvalue.
4968 (BB_END, SET_BB_END): Likewise.
4969 (BB_HEADER, SET_BB_HEADER): Likewise.
4970 (BB_FOOTER, SET_BB_FOOTER): Likewise.
4972 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
4973 of BB_* macros into SET_BB_* macros.
4974 (fix_crossing_unconditional_branches): Likewise.
4975 * caller-save.c (save_call_clobbered_regs): Likewise.
4976 (insert_one_insn): Likewise.
4977 * cfgbuild.c (find_bb_boundaries): Likewise.
4978 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4979 (outgoing_edges_match): Likewise.
4980 (try_optimize_cfg): Likewise.
4981 * cfgexpand.c (expand_gimple_cond): Likewise.
4982 (expand_gimple_tailcall): Likewise.
4983 (expand_gimple_basic_block): Likewise.
4984 (construct_exit_block): Likewise.
4985 * cfgrtl.c (delete_insn): Likewise.
4986 (create_basic_block_structure): Likewise.
4987 (rtl_delete_block): Likewise.
4988 (rtl_split_block): Likewise.
4989 (emit_nop_for_unique_locus_between): Likewise.
4990 (rtl_merge_blocks): Likewise.
4991 (block_label): Likewise.
4992 (try_redirect_by_replacing_jump): Likewise.
4993 (emit_barrier_after_bb): Likewise.
4994 (fixup_abnormal_edges): Likewise.
4995 (record_effective_endpoints): Likewise.
4996 (relink_block_chain): Likewise.
4997 (fixup_reorder_chain): Likewise.
4998 (fixup_fallthru_exit_predecessor): Likewise.
4999 (cfg_layout_duplicate_bb): Likewise.
5000 (cfg_layout_split_block): Likewise.
5001 (cfg_layout_delete_block): Likewise.
5002 (cfg_layout_merge_blocks): Likewise.
5003 * combine.c (update_cfg_for_uncondjump): Likewise.
5004 * emit-rtl.c (add_insn_after): Likewise.
5005 (remove_insn): Likewise.
5006 (reorder_insns): Likewise.
5007 (emit_insn_after_1): Likewise.
5008 * haifa-sched.c (get_ebb_head_tail): Likewise.
5009 (restore_other_notes): Likewise.
5010 (move_insn): Likewise.
5011 (sched_extend_bb): Likewise.
5012 (fix_jump_move): Likewise.
5013 * ifcvt.c (noce_process_if_block): Likewise.
5014 (dead_or_predicable): Likewise.
5015 * ira.c (update_equiv_regs): Likewise.
5016 * reg-stack.c (change_stack): Likewise.
5017 * sel-sched-ir.c (sel_move_insn): Likewise.
5018 * sel-sched.c (move_nop_to_previous_block): Likewise.
5020 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5021 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5023 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5025 * rtl.h (for_each_rtx_in_insn): New function.
5026 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5028 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5030 * coretypes.h (class rtx_insn): Add forward declaration.
5032 * rtl.h: Include is-a.h.
5033 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5034 workaround to ensure gengtype knows inheritance is occurring,
5035 whilst continuing to use the pre-existing special-casing for
5037 (class rtx_insn): New subclass of rtx_def, adding the
5038 invariant that we're dealing with something we can sanely use
5039 INSN_UID, NEXT_INSN, PREV_INSN on.
5040 (is_a_helper <rtx_insn *>::test): New.
5041 (is_a_helper <const rtx_insn *>::test): New.
5043 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5045 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5047 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5049 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5052 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5054 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5055 to BUILT_IN_UNREACHABLE.
5057 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5060 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5062 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5063 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5064 (ffs<mode>2): Do not expand with tzcnt for
5065 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5066 (ffssi2_no_cmove): Ditto.
5067 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5068 (ctz<mode>2): New expander.
5069 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5070 (*ctz<mode>2_falsedep): New insn.
5071 (*ctz<mode>2): Rename from ctz<mode>2.
5072 (clz<mode>2_lzcnt): New expander.
5073 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5074 (*clz<mode>2_lzcnt_falsedep): New insn.
5075 (*clz<mode>2): Rename from ctz<mode>2.
5076 (popcount<mode>2): New expander.
5077 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5078 (*popcount<mode>2_falsedep): New insn.
5079 (*popcount<mode>2): Rename from ctz<mode>2.
5080 (*popcount<mode>2_cmp): Remove.
5081 (*popcountsi2_cmp_zext): Ditto.
5083 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5085 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5086 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5087 * config/microblaze/microblaze.h
5088 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5090 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5093 * configure.ac: Set install_gold_as_default to no for
5095 * configure: Regenerated.
5097 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5099 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5100 * config.in: Add undef of HAVE_isl.
5101 * configure: Regenerate.
5102 * configure.ac: Add definition of HAVE_isl.
5103 * graphite-blocking.c: Add checking of HAVE_isl.
5104 * graphite-dependences.c: Likewise.
5105 * graphite-interchange.c: Likewise.
5106 * graphite-isl-ast-to-gimple.c: Likewise.
5107 * graphite-optimize-isl.c: Likewise.
5108 * graphite-poly.c: Likewise.
5109 * graphite-scop-detection.c: Likewise.
5110 * graphite-sese-to-poly.c: Likewise.
5111 * graphite.c: Likewise.
5112 * toplev.c: Replace the checking of HAVE_cloog with the checking
5115 2014-08-18 Richard Biener <rguenther@suse.de>
5117 PR tree-optimization/62090
5118 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5119 (fold_builtin_3): Do not fold snprintf.
5120 (fold_builtin_4): Likewise.
5121 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5122 moved from builtins.c.
5123 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5124 (gimple_fold_builtin): Do not fold sprintf here.
5126 2014-08-18 Richard Biener <rguenther@suse.de>
5128 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5130 (maybe_canonicalize_mem_ref_addr): ... this function.
5131 (fold_stmt_1): Apply it here before all simplification.
5133 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5136 * cgraph.h (cgraph_node::create_indirect_edge): Add
5137 compute_indirect_info param.
5138 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5139 indirect_info only when it is required.
5140 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5141 indirect_info fore cloned indirect edge.
5143 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5144 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5145 Anna Tikhonova <anna.tikhonova@intel.com>
5146 Ilya Tocar <ilya.tocar@intel.com>
5147 Andrey Turetskiy <andrey.turetskiy@intel.com>
5148 Ilya Verbin <ilya.verbin@intel.com>
5149 Kirill Yukhin <kirill.yukhin@intel.com>
5150 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5152 * config/i386/sse.md
5153 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5154 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5156 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5157 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5158 Anna Tikhonova <anna.tikhonova@intel.com>
5159 Ilya Tocar <ilya.tocar@intel.com>
5160 Andrey Turetskiy <andrey.turetskiy@intel.com>
5161 Ilya Verbin <ilya.verbin@intel.com>
5162 Kirill Yukhin <kirill.yukhin@intel.com>
5163 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5165 * config/i386/sse.md
5166 (define_mode_iterator VF1_AVX512VL): New.
5167 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5168 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5171 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5172 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5173 Anna Tikhonova <anna.tikhonova@intel.com>
5174 Ilya Tocar <ilya.tocar@intel.com>
5175 Andrey Turetskiy <andrey.turetskiy@intel.com>
5176 Ilya Verbin <ilya.verbin@intel.com>
5177 Kirill Yukhin <kirill.yukhin@intel.com>
5178 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5180 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5181 * config/i386/i386.md
5182 (define_code_iterator any_float): New.
5183 (define_code_attr floatsuffix): New.
5184 * config/i386/sse.md
5185 (define_mode_iterator VF1_128_256VL): New.
5186 (define_mode_iterator VF2_512_256VL): New.
5187 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5189 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5190 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5192 (define_mode_attr qq2pssuff): New.
5193 (define_mode_attr sselongvecmode): New.
5194 (define_mode_attr sselongvecmodelower): New.
5195 (define_mode_attr sseintvecmode3): New.
5196 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5198 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5199 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5200 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5201 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5203 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5204 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5205 Anna Tikhonova <anna.tikhonova@intel.com>
5206 Ilya Tocar <ilya.tocar@intel.com>
5207 Andrey Turetskiy <andrey.turetskiy@intel.com>
5208 Ilya Verbin <ilya.verbin@intel.com>
5209 Kirill Yukhin <kirill.yukhin@intel.com>
5210 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5212 * config/i386/sse.md
5213 (define_mode_iterator VF2_AVX512VL): New.
5214 (define_mode_attr sseintvecmode2): New.
5215 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5216 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5217 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5219 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5221 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5223 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5226 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5227 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5228 Anna Tikhonova <anna.tikhonova@intel.com>
5229 Ilya Tocar <ilya.tocar@intel.com>
5230 Andrey Turetskiy <andrey.turetskiy@intel.com>
5231 Ilya Verbin <ilya.verbin@intel.com>
5232 Kirill Yukhin <kirill.yukhin@intel.com>
5233 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5235 * config/i386/i386.md
5236 (define_insn "*movoi_internal_avx"): Add evex version.
5237 (define_insn "*movti_internal"): Ditto.
5239 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5240 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5241 Anna Tikhonova <anna.tikhonova@intel.com>
5242 Ilya Tocar <ilya.tocar@intel.com>
5243 Andrey Turetskiy <andrey.turetskiy@intel.com>
5244 Ilya Verbin <ilya.verbin@intel.com>
5245 Kirill Yukhin <kirill.yukhin@intel.com>
5246 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5248 * config/i386/i386.md
5249 (define_attr "isa"): Add avx512dq, noavx512dq.
5250 (define_attr "enabled"): Ditto.
5251 * config/i386/sse.md
5252 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5254 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5255 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5256 Anna Tikhonova <anna.tikhonova@intel.com>
5257 Ilya Tocar <ilya.tocar@intel.com>
5258 Andrey Turetskiy <andrey.turetskiy@intel.com>
5259 Ilya Verbin <ilya.verbin@intel.com>
5260 Kirill Yukhin <kirill.yukhin@intel.com>
5261 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5263 * config/i386/i386.c
5264 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5265 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5266 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5267 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5268 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5269 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5270 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5271 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5272 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5273 * config/i386/sse.md
5274 (define_mode_iterator VMOVE): Allow V4TI mode.
5275 (define_mode_iterator V_AVX512VL): New.
5276 (define_mode_iterator V): New handling for AVX512VL.
5277 (define_insn "avx512f_load<mode>_mask"): Delete.
5278 (define_insn "<avx512>_load<mode>_mask"): New.
5279 (define_insn "avx512f_store<mode>_mask"): Delete.
5280 (define_insn "<avx512>_store<mode>_mask"): New.
5283 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5286 * asan.c (instrument_derefs): Fix bitfield check.
5288 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5290 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5291 * config/rs6000/htm.md (ttest): Remove clobber.
5292 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5293 (and_operand): Reformat.
5294 (and_2rld_operand): New predicate.
5295 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5297 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5298 parameter. Handle AND directly.
5299 (rs6000_split_logical_di): Remove last parameter.
5300 (rs6000_split_logical): Remove last parameter. Remove obsolete
5302 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5303 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5304 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5305 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5306 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5307 and 5 anonymous splitters): Delete.
5308 (and<mode>3): New expander.
5309 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5310 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5311 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5312 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5313 (floatdisf2_internal1): Remove clobbers.
5314 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5315 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5316 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5317 (and<mode>3 for BOOL_128): Remove clobber.
5318 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5319 rs6000_split_logical.
5320 (*bool<mode>3_internal for BOOL_128): Adjust call of
5321 rs6000_split_logical.
5322 (*boolc<mode>3_internal1 for BOOL_128,
5323 *boolc<mode>3_internal2 for BOOL_128,
5324 *boolcc<mode>3_internal1 for BOOL_128,
5325 *boolcc<mode>3_internal2 for BOOL_128,
5326 *eqv<mode>3_internal1 for BOOL_128,
5327 *eqv<mode>3_internal2 for BOOL_128,
5328 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5329 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5331 (*vec_reload_and_reg_<mptrsize>): Delete.
5333 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5335 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5336 and split, *boolccsi3_internal3 and split): Delete.
5337 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5338 *boolccdi3_internal3 and split): Delete.
5339 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5340 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5342 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5344 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5345 and split, *boolcsi3_internal3 and split): Delete.
5346 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5347 *boolcdi3_internal3 and split): Delete.
5348 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5350 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5352 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5353 <'u'>: Also support printing the low-order 16 bits.
5354 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5355 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5356 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5357 *booldi3_internal3 and split): Delete.
5358 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5359 *bool<mode>3_dot2): New.
5360 (two anonymous define_splits for non_logical_cint_operand): Merge.
5362 2014-08-17 Marek Polacek <polacek@redhat.com>
5363 Manuel López-Ibáñez <manu@gcc.gnu.org>
5366 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5367 (diagnostic_show_locus): Don't print caret diagnostic
5368 if a column is larger than the line_width.
5370 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5372 * common.opt: Make the ISL AST generator to be the main code generator
5375 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5377 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5379 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5382 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5384 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5385 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5386 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5388 * config/pa/pa.md (begin_brtab): Delete insn.
5389 (end_brtab): Likewise.
5391 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5393 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5395 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
5397 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5398 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5399 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5400 (get_dynamic_type): Remove.
5401 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
5402 (clear_speculation): Bring to ipa-deivrt.h
5403 (get_class_context): Rename to ...
5404 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
5405 (contains_type_p): Update.
5406 (get_dynamic_type): Rename to ...
5407 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
5408 (possible_polymorphic_call_targets): UPdate.
5409 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
5410 * ipa-prop.c (ipa_analyze_call_uses): Update.
5412 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
5414 * doc/invoke.texi (SH options): Document missing processor variant
5415 options. Remove references to Hitachi. Undocument deprecated mspace
5418 2014-08-15 Jason Merrill <jason@redhat.com>
5420 * tree.c (type_hash_canon): Uncomment assert.
5422 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5424 * input.h (in_system_header_at): Add comment.
5426 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5429 * diagnostic.c (build_message_string): Make it extern.
5430 * diagnostic.h (build_message_string): Make it extern.
5432 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
5434 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
5435 load/store from/to non-floating class pseudo.
5437 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5439 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
5441 2014-08-15 Richard Biener <rguenther@suse.de>
5443 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
5444 (get_constraint_for_ssa_var): Remove dead code.
5445 (get_constraint_for_1): Adjust.
5446 (find_what_var_points_to): Likewise.
5447 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
5449 2014-08-15 Ilya Tocar <tocarip@gmail.com>
5452 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
5453 (_mm512_mask_cmpge_epu32_mask): Ditto.
5454 (_mm512_cmpge_epu32_mask): Ditto.
5455 (_mm512_mask_cmpge_epi64_mask): Ditto.
5456 (_mm512_cmpge_epi64_mask): Ditto.
5457 (_mm512_mask_cmpge_epu64_mask): Ditto.
5458 (_mm512_cmpge_epu64_mask): Ditto.
5459 (_mm512_mask_cmple_epi32_mask): Ditto.
5460 (_mm512_cmple_epi32_mask): Ditto.
5461 (_mm512_mask_cmple_epu32_mask): Ditto.
5462 (_mm512_cmple_epu32_mask): Ditto.
5463 (_mm512_mask_cmple_epi64_mask): Ditto.
5464 (_mm512_cmple_epi64_mask): Ditto.
5465 (_mm512_mask_cmple_epu64_mask): Ditto.
5466 (_mm512_cmple_epu64_mask): Ditto.
5467 (_mm512_mask_cmplt_epi32_mask): Ditto.
5468 (_mm512_cmplt_epi32_mask): Ditto.
5469 (_mm512_mask_cmplt_epu32_mask): Ditto.
5470 (_mm512_cmplt_epu32_mask): Ditto.
5471 (_mm512_mask_cmplt_epi64_mask): Ditto.
5472 (_mm512_cmplt_epi64_mask): Ditto.
5473 (_mm512_mask_cmplt_epu64_mask): Ditto.
5474 (_mm512_cmplt_epu64_mask): Ditto.
5475 (_mm512_mask_cmpneq_epi32_mask): Ditto.
5476 (_mm512_mask_cmpneq_epu32_mask): Ditto.
5477 (_mm512_cmpneq_epu32_mask): Ditto.
5478 (_mm512_mask_cmpneq_epi64_mask): Ditto.
5479 (_mm512_cmpneq_epi64_mask): Ditto.
5480 (_mm512_mask_cmpneq_epu64_mask): Ditto.
5481 (_mm512_cmpneq_epu64_mask): Ditto.
5482 (_mm512_castpd_ps): Ditto.
5483 (_mm512_castpd_si512): Ditto.
5484 (_mm512_castps_pd): Ditto.
5485 (_mm512_castps_si512): Ditto.
5486 (_mm512_castsi512_ps): Ditto.
5487 (_mm512_castsi512_pd): Ditto.
5488 (_mm512_castpd512_pd128): Ditto.
5489 (_mm512_castps512_ps128): Ditto.
5490 (_mm512_castsi512_si128): Ditto.
5491 (_mm512_castpd512_pd256): Ditto.
5492 (_mm512_castps512_ps256): Ditto.
5493 (_mm512_castsi512_si256): Ditto.
5494 (_mm512_castpd128_pd512): Ditto.
5495 (_mm512_castps128_ps512): Ditto.
5496 (_mm512_castsi128_si512): Ditto.
5497 (_mm512_castpd256_pd512): Ditto.
5498 (_mm512_castps256_ps512): Ditto.
5499 (_mm512_castsi256_si512): Ditto.
5500 (_mm512_cmpeq_epu32_mask): Ditto.
5501 (_mm512_mask_cmpeq_epu32_mask): Ditto.
5502 (_mm512_mask_cmpeq_epu64_mask): Ditto.
5503 (_mm512_cmpeq_epu64_mask): Ditto.
5504 (_mm512_cmpgt_epu32_mask): Ditto.
5505 (_mm512_mask_cmpgt_epu32_mask): Ditto.
5506 (_mm512_mask_cmpgt_epu64_mask): Ditto.
5507 (_mm512_cmpgt_epu64_mask): Ditto.
5508 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
5509 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
5510 * config/i386/i386.c (enum ix86_builtins): Add
5511 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
5512 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
5513 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
5514 (bdesc_args): Add __builtin_ia32_si512_256si,
5515 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
5516 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
5517 __builtin_ia32_pd512_pd.
5518 (ix86_expand_args_builtin): Handle new FTYPEs.
5519 * config/i386/sse.md (castmode): Add 512-bit modes.
5520 (AVX512MODE2P): New.
5521 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
5522 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
5524 2014-08-15 Richard Biener <rguenther@suse.de>
5526 * fold-const.c (tree_swap_operands_p): Put all constants
5527 last, also strip sign-changing NOPs when considering further
5528 canonicalization. Canonicalize also when optimizing for size.
5530 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5532 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
5533 one_match > zero_match case to just before simple_sequence.
5535 2014-08-15 Richard Biener <rguenther@suse.de>
5537 * data-streamer.h (streamer_string_index, string_for_index):
5539 * data-streamer-out.c (streamer_string_index): Make static.
5540 * data-streamer-in.c (string_for_index): Likewise.
5541 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
5542 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
5544 2014-08-15 Richard Biener <rguenther@suse.de>
5546 PR tree-optimization/62031
5547 * tree-data-ref.c (dr_analyze_indices): Do not set
5548 DR_UNCONSTRAINED_BASE.
5549 (dr_may_alias_p): All indirect accesses have to go the
5550 formerly DR_UNCONSTRAINED_BASE path.
5551 * tree-data-ref.h (struct indices): Remove
5552 unconstrained_base member.
5553 (DR_UNCONSTRAINED_BASE): Remove.
5555 2014-08-15 Jakub Jelinek <jakub@redhat.com>
5558 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
5559 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
5560 in OMP_CLAUSE_MAP in some outer target region.
5562 2014-08-15 Bin Cheng <bin.cheng@arm.com>
5564 * tree-ssa-loop-ivopts.c (ivopts_data): New field
5565 name_expansion_cache.
5566 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
5567 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
5568 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
5569 (difference_cannot_overflow_p): New parameter. Use affine
5570 expansion for equality check.
5571 (iv_elimination_compare_lt): Pass new argument.
5573 2014-08-14 DJ Delorie <dj@redhat.com>
5575 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
5576 variables to the accumulator.
5578 * config/rl78/predicates.md (rl78_near_mem_operand): New.
5579 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
5580 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
5583 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
5584 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
5585 (umulqihi3_virt): Likewise.
5586 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
5587 (umulqihi3_real): Likewise.
5589 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
5591 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5593 PR tree-optimization/62091
5594 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
5595 function_entry_reached.
5596 (walk_aliased_vdefs): Clear it here.
5597 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
5599 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5601 * ipa-utils.h (compare_virtual_tables): Declare.
5602 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
5604 2014-08-14 Marek Polacek <polacek@redhat.com>
5607 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
5608 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
5610 2014-08-14 Tom de Vries <tom@codesourcery.com>
5612 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
5614 2014-08-14 Tom de Vries <tom@codesourcery.com>
5616 PR rtl-optimization/62004
5617 PR rtl-optimization/62030
5618 * ifcvt.c (rtx_interchangeable_p): New function.
5619 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
5620 * emit-rtl.h (mem_attrs_eq_p): Declare.
5622 2014-08-14 Roman Gareev <gareevroman@gmail.com>
5624 * graphite-scop-detection.c:
5625 Add inclusion of cp-tree.h.
5626 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
5627 in case they are pointers to object types
5629 2014-08-14 Richard Biener <rguenther@suse.de>
5631 * BASE-VER: Change to 5.0.0
5633 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5634 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5635 Anna Tikhonova <anna.tikhonova@intel.com>
5636 Ilya Tocar <ilya.tocar@intel.com>
5637 Andrey Turetskiy <andrey.turetskiy@intel.com>
5638 Ilya Verbin <ilya.verbin@intel.com>
5639 Kirill Yukhin <kirill.yukhin@intel.com>
5640 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5642 * config/i386/sse.md (define_mode_attr avx512): New.
5643 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
5645 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
5646 (define_mode_attr ssse3_avx2): Ditto.
5647 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
5648 (define_mode_attr avx2_avx512bw): New.
5649 (define_mode_attr ssedoublemodelower): New.
5650 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
5652 (define_mode_attr ssebytemode): Allow V8DI modes.
5653 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
5654 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
5655 (define_mode_attr ssePSmode2): New.
5656 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
5658 (define_mode_attr dbpsadbwmode): New.
5659 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
5660 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
5661 (vi8_sse4_1_avx2_avx512): New.
5662 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
5664 (define_mode_attr blendbits): Move before its immediate use.
5666 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5667 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5668 Anna Tikhonova <anna.tikhonova@intel.com>
5669 Ilya Tocar <ilya.tocar@intel.com>
5670 Andrey Turetskiy <andrey.turetskiy@intel.com>
5671 Ilya Verbin <ilya.verbin@intel.com>
5672 Kirill Yukhin <kirill.yukhin@intel.com>
5673 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5675 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
5676 * config/i386/subst.md
5677 (define_mode_iterator SUBST_V): Update.
5678 (define_mode_iterator SUBST_A): Ditto.
5679 (define_subst_attr "mask_operand7"): New.
5680 (define_subst_attr "mask_operand10"): New.
5681 (define_subst_attr "mask_operand_arg34") : New.
5682 (define_subst_attr "mask_expand_op3"): New.
5683 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
5684 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
5685 (define_subst_attr "mask_avx512vl_condition"): New.
5686 (define_subst_attr "round_mask_operand4"): Ditto.
5687 (define_subst_attr "round_mask_scalar_op3"): Delete.
5688 (define_subst_attr "round_mask_op4"): New.
5689 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
5691 (define_subst_attr "round_modev8sf_condition"): New.
5692 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
5694 (define_subst_attr "round_saeonly_mask_operand4"): New.
5695 (define_subst_attr "round_saeonly_mask_op4"): New.
5696 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
5697 V8DImode, V16SImode.
5698 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
5699 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
5700 (define_subst_attr "mask_expand4_args"): New.
5701 (define_subst "mask_expand4"): New.
5703 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5705 Anna Tikhonova <anna.tikhonova@intel.com>
5706 Ilya Tocar <ilya.tocar@intel.com>
5707 Andrey Turetskiy <andrey.turetskiy@intel.com>
5708 Ilya Verbin <ilya.verbin@intel.com>
5709 Kirill Yukhin <kirill.yukhin@intel.com>
5710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5712 * config/i386/i386.md
5713 (define_attr "isa"): Add avx512bw,noavx512bw.
5714 (define_attr "enabled"): Ditto.
5715 (define_split): Add 32/64-bit mask logic.
5716 (define_insn "*k<logic>qi"): New.
5717 (define_insn "*k<logic>hi"): New.
5718 (define_insn "*anddi_1"): Add mask version.
5719 (define_insn "*andsi_1"): Ditto.
5720 (define_insn "*<code><mode>_1"): Ditto.
5721 (define_insn "*<code>hi_1"): Ditto.
5722 (define_insn "kxnor<mode>"): New.
5723 (define_insn "kunpcksi"): New.
5724 (define_insn "kunpckdi"): New.
5725 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
5726 (define_insn "*one_cmplhi2_1"): Ditto.
5728 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5729 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5730 Anna Tikhonova <anna.tikhonova@intel.com>
5731 Ilya Tocar <ilya.tocar@intel.com>
5732 Andrey Turetskiy <andrey.turetskiy@intel.com>
5733 Ilya Verbin <ilya.verbin@intel.com>
5734 Kirill Yukhin <kirill.yukhin@intel.com>
5735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5737 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
5740 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5742 Anna Tikhonova <anna.tikhonova@intel.com>
5743 Ilya Tocar <ilya.tocar@intel.com>
5744 Andrey Turetskiy <andrey.turetskiy@intel.com>
5745 Ilya Verbin <ilya.verbin@intel.com>
5746 Kirill Yukhin <kirill.yukhin@intel.com>
5747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5749 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
5751 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
5752 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
5753 xmm/ymm16+ when availble.
5754 * config/i386/i386.h
5755 (HARD_REGNO_NREGS): Add mask regs.
5756 (VALID_AVX512F_REG_MODE): Ditto.
5757 (VALID_AVX512F_REG_MODE) : Define.
5758 (VALID_MASK_AVX512BW_MODE): Ditto.
5759 (reg_class) (MASK_REG_P(X)): Define.
5760 * config/i386/i386.md: Do not split long moves with mask register,
5761 use kmovb if avx512bw is availible.
5762 (movdi_internal): Handle mask registers.
5764 2014-08-14 Richard Biener <rguenther@suse.de>
5766 PR tree-optimization/62081
5767 * tree-ssa-loop.c (pass_fix_loops): New pass.
5768 (pass_tree_loop::gate): Do not fixup loops here.
5769 * tree-pass.h (make_pass_fix_loops): Declare.
5770 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
5772 2014-08-14 Richard Biener <rguenther@suse.de>
5774 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
5775 (type_hash_canon): ... this and avoid 2nd lookup for the add.
5777 2014-08-14 Richard Biener <rguenther@suse.de>
5779 PR tree-optimization/62090
5780 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
5781 (fold_builtin_2): Do not fold sprintf.
5782 (fold_builtin_3): Likewise.
5783 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
5784 moved from builtins.c.
5785 (gimple_fold_builtin): Fold sprintf.
5787 2014-08-14 Richard Biener <rguenther@suse.de>
5789 PR rtl-optimization/62079
5790 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
5793 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5795 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
5796 current_function_decl.
5798 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5800 * cgraph.c (cgraph_node::function_symbol): Fix wrong
5801 cgraph_function_node to cgraph_node::function_symbol
5804 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
5806 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
5807 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
5809 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
5811 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
5814 2014-08-13 Roman Gareev <gareevroman@gmail.com>
5816 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
5819 2014-08-12 Jakub Jelinek <jakub@redhat.com>
5822 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
5823 any registers that are used in mem_insn.
5825 2014-08-12 Steve Ellcey <sellcey@mips.com>
5827 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
5829 2014-08-12 Steve Ellcey <sellcey@mips.com>
5831 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
5832 (MULTILIB_DIRNAMES): Ditto.
5833 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
5834 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
5835 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
5836 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
5837 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
5838 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
5840 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5843 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
5844 of __ARM_SIZEOF_WCHAR_T.
5846 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5849 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
5850 Remove unnecessary attributes.
5852 2014-08-12 Yury Gribov <y.gribov@samsung.com>
5854 * internal-fn.c (init_internal_fns): Fix off-by-one.
5856 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5857 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5858 Anna Tikhonova <anna.tikhonova@intel.com>
5859 Ilya Tocar <ilya.tocar@intel.com>
5860 Andrey Turetskiy <andrey.turetskiy@intel.com>
5861 Ilya Verbin <ilya.verbin@intel.com>
5862 Kirill Yukhin <kirill.yukhin@intel.com>
5863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5865 * config/i386/i386.c (standard_sse_constant_opcode): Use
5866 vpxord/vpternlog if avx512 is availible.
5868 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
5871 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
5872 bitfields, that is when size doesn't match the size of type or the
5873 size of the constructor.
5875 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5877 * config/rs6000/constraints.md (wh constraint): New constraint,
5878 for FP registers if direct move is available.
5879 (wi constraint): New constraint, for VSX/FP registers that can
5880 handle 64-bit integers.
5881 (wj constraint): New constraint for VSX/FP registers that can
5882 handle 64-bit integers for direct moves.
5883 (wk constraint): New constraint for VSX/FP registers that can
5884 handle 64-bit doubles for direct moves.
5885 (wy constraint): Make documentation match implementation.
5887 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
5888 scalar_in_vmx_p field to simplify tests of whether SFmode or
5889 DFmode can go in the Altivec registers.
5890 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
5891 (rs6000_setup_reg_addr_masks): Likewise.
5892 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
5893 field, and wh/wi/wj/wk constraints.
5894 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
5895 the wh/wi/wj/wk constraints.
5896 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
5897 upper registers, prefer VSX registers unless the operation is a
5898 memory operation with REG+OFFSET addressing.
5900 * config/rs6000/vsx.md (VSr mode attribute): Add support for
5901 DImode. Change SFmode to use ww constraint instead of d to allow
5902 SF registers in the upper registers.
5905 (VSr5): Fix thinko in comment.
5906 (VSa): New mode attribute that is an alternative to wa, that
5907 returns the VSX register class that a mode can go in, but may not
5908 be the preferred register class.
5909 (VS_64dm): New mode attribute for appropriate register classes for
5910 referencing 64-bit elements of vectors for direct moves and normal
5912 (VS_64reg): Likewise.
5913 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
5914 register allocator to only registers the data type can handle.
5915 (vsx_le_perm_load_<mode>): Likewise.
5916 (vsx_le_perm_store_<mode>): Likewise.
5917 (vsx_xxpermdi2_le_<mode>): Likewise.
5918 (vsx_xxpermdi4_le_<mode>): Likewise.
5919 (vsx_lxvd2x2_le_<mode>): Likewise.
5920 (vsx_lxvd2x4_le_<mode>): Likewise.
5921 (vsx_stxvd2x2_le_<mode>): Likewise.
5922 (vsx_add<mode>3): Likewise.
5923 (vsx_sub<mode>3): Likewise.
5924 (vsx_mul<mode>3): Likewise.
5925 (vsx_div<mode>3): Likewise.
5926 (vsx_tdiv<mode>3_internal): Likewise.
5927 (vsx_fre<mode>2): Likewise.
5928 (vsx_neg<mode>2): Likewise.
5929 (vsx_abs<mode>2): Likewise.
5930 (vsx_nabs<mode>2): Likewise.
5931 (vsx_smax<mode>3): Likewise.
5932 (vsx_smin<mode>3): Likewise.
5933 (vsx_sqrt<mode>2): Likewise.
5934 (vsx_rsqrte<mode>2): Likewise.
5935 (vsx_tsqrt<mode>2_internal): Likewise.
5936 (vsx_fms<mode>4): Likewise.
5937 (vsx_nfma<mode>4): Likewise.
5938 (vsx_eq<mode>): Likewise.
5939 (vsx_gt<mode>): Likewise.
5940 (vsx_ge<mode>): Likewise.
5941 (vsx_eq<mode>_p): Likewise.
5942 (vsx_gt<mode>_p): Likewise.
5943 (vsx_ge<mode>_p): Likewise.
5944 (vsx_xxsel<mode>): Likewise.
5945 (vsx_xxsel<mode>_uns): Likewise.
5946 (vsx_copysign<mode>3): Likewise.
5947 (vsx_float<VSi><mode>2): Likewise.
5948 (vsx_floatuns<VSi><mode>2): Likewise.
5949 (vsx_fix_trunc<mode><VSi>2): Likewise.
5950 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
5951 (vsx_x<VSv>r<VSs>i): Likewise.
5952 (vsx_x<VSv>r<VSs>ic): Likewise.
5953 (vsx_btrunc<mode>2): Likewise.
5954 (vsx_b2trunc<mode>2): Likewise.
5955 (vsx_floor<mode>2): Likewise.
5956 (vsx_ceil<mode>2): Likewise.
5957 (vsx_<VS_spdp_insn>): Likewise.
5958 (vsx_xscvspdp): Likewise.
5959 (vsx_xvcvspuxds): Likewise.
5960 (vsx_float_fix_<mode>2): Likewise.
5961 (vsx_set_<mode>): Likewise.
5962 (vsx_extract_<mode>_internal1): Likewise.
5963 (vsx_extract_<mode>_internal2): Likewise.
5964 (vsx_extract_<mode>_load): Likewise.
5965 (vsx_extract_<mode>_store): Likewise.
5966 (vsx_splat_<mode>): Likewise.
5967 (vsx_xxspltw_<mode>): Likewise.
5968 (vsx_xxspltw_<mode>_direct): Likewise.
5969 (vsx_xxmrghw_<mode>): Likewise.
5970 (vsx_xxmrglw_<mode>): Likewise.
5971 (vsx_xxsldwi_<mode>): Likewise.
5972 (vsx_xscvdpspn): Tighten constraints to only use register classes
5974 (vsx_xscvspdpn): Likewise.
5975 (vsx_xscvdpspn_scalar): Likewise.
5977 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
5978 wj, and wk constraints.
5979 (GPR_REG_CLASS_P): New helper macro for register classes targeting
5980 general purpose registers.
5982 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
5984 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
5985 DImode instead of wm. Use wk constraint for direct move of DFmode
5987 (extendsidi2_lfiwax): Likewise.
5990 (movdi_internal64): Likewise.
5992 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
5993 wk constraints. Make the wy constraint documentation match them
5996 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
5998 Replacement of isl_int by isl_val
5999 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6000 (compute_bounds_for_param): use isl_val instead of isl_int
6001 (compute_bounds_for_loop): likewise
6002 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6003 (build_linearized_memory_access): use isl_val instead of isl_int
6004 (pdr_stride_in_loop): likewise
6005 * graphite-optimize-isl.c:
6006 (getPrevectorMap): use isl_val instead of isl_int
6008 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6009 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6010 (extern the_isl_ctx): declare
6011 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6012 (extract_affine_gmp): likewise
6014 (build_loop_iteration_domains): likewise
6015 (add_param_constraints): likewise
6017 2014-08-11 Richard Biener <rguenther@suse.de>
6019 PR tree-optimization/62075
6020 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6021 handle uses in patterns.
6023 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6024 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6025 Anna Tikhonova <anna.tikhonova@intel.com>
6026 Ilya Tocar <ilya.tocar@intel.com>
6027 Andrey Turetskiy <andrey.turetskiy@intel.com>
6028 Ilya Verbin <ilya.verbin@intel.com>
6029 Kirill Yukhin <kirill.yukhin@intel.com>
6030 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6032 * common/config/i386/i386-common.c
6033 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6034 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6035 (ix86_handle_option): Handle OPT_mavx512vl.
6036 * config/i386/cpuid.h (bit_AVX512VL): Define.
6037 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6038 set -mavx512vl accordingly.
6039 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6040 OPTION_MASK_ISA_AVX512VL.
6041 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6042 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6043 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6044 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6045 * config/i386/i386.h (TARGET_AVX512VL): Define.
6046 (TARGET_AVX512VL_P(x)): Ditto.
6047 * config/i386/i386.opt: Add mavx512vl.
6049 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6051 PR tree-optimization/62073
6052 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6055 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6056 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6057 Anna Tikhonova <anna.tikhonova@intel.com>
6058 Ilya Tocar <ilya.tocar@intel.com>
6059 Andrey Turetskiy <andrey.turetskiy@intel.com>
6060 Ilya Verbin <ilya.verbin@intel.com>
6061 Kirill Yukhin <kirill.yukhin@intel.com>
6062 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6064 * common/config/i386/i386-common.c
6065 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6066 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6067 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6068 (ix86_handle_option): Handle OPT_mavx512bw.
6069 * config/i386/cpuid.h (bit_AVX512BW): Define.
6070 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6071 set -mavx512bw accordingly.
6072 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6073 OPTION_MASK_ISA_AVX512BW.
6074 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6075 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6076 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6077 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6078 * config/i386/i386.h (TARGET_AVX512BW): Define.
6079 (TARGET_AVX512BW_P(x)): Ditto.
6080 * config/i386/i386.opt: Add mavx512bw.
6082 2014-08-11 Richard Biener <rguenther@suse.de>
6084 PR tree-optimization/62070
6085 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6086 Remove SSA checking.
6088 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6090 * asan.c (asan_check_flags): New enum.
6091 (build_check_stmt_with_calls): Removed function.
6092 (build_check_stmt): Split inlining logic to
6093 asan_expand_check_ifn.
6094 (instrument_derefs): Rename parameter.
6095 (instrument_mem_region_access): Rename parameter.
6096 (instrument_strlen_call): Likewise.
6097 (asan_expand_check_ifn): New function.
6098 (asan_instrument): Remove old code.
6099 (pass_sanopt::execute): Change handling of
6100 asan-instrumentation-with-call-threshold.
6101 (asan_clear_shadow): Fix formatting.
6102 (asan_function_start): Likewise.
6103 (asan_emit_stack_protection): Likewise.
6104 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6106 * internal-fn.c (expand_ASAN_CHECK): New function.
6107 * internal-fn.def (ASAN_CHECK): New internal function.
6108 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6110 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6111 * tree.c: Small comment fix.
6113 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6115 * gimple.c (gimple_call_fnspec): Support internal functions.
6116 (gimple_call_return_flags): Use const.
6117 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6118 * internal-fn.def: Add fnspec information.
6119 * internal-fn.h (internal_fn_fnspec): New function.
6120 (init_internal_fns): Declare new function.
6121 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6122 (init_internal_fns): New function.
6123 * tree-core.h: Update macro call.
6124 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6126 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6128 * lto-streamer.h (struct output_block::symbol): Change from
6129 struct symtab_node to plain symtab_node.
6130 (referenced_from_this_partition_p): Change first parameter
6131 from struct symtab_node to plain symtab_node.
6133 2014-08-10 Marek Polacek <polacek@redhat.com>
6136 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6138 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6140 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6141 DECL correctly; do not give up on types in static storage.
6143 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6145 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6147 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6149 * graphite-isl-ast-to-gimple.c:
6150 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6152 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6154 2014-08-08 Guozhi Wei <carrot@google.com>
6156 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6158 2014-08-08 Cary Coutant <ccoutant@google.com>
6160 * dwarf2out.c (get_skeleton_type_unit): Remove.
6161 (output_skeleton_debug_sections): Remove skeleton type units.
6162 (output_comdat_type_unit): Likewise.
6163 (dwarf2out_finish): Likewise.
6165 2014-08-07 Yi Yang <ahyangyi@google.com>
6167 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6169 2014-08-08 Richard Biener <rguenther@suse.de>
6171 * lto-streamer.h (struct lto_input_block): Make it a class
6173 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6174 (struct lto_function_header, struct lto_simple_header,
6175 struct lto_simple_header_with_strings,
6176 struct lto_decl_header, struct lto_function_header): Make
6177 a simple inheritance hieararchy. Remove unused fields.
6178 (struct lto_asm_header): Remove.
6179 * lto-streamer-out.c (produce_asm): Adjust.
6180 (lto_output_toplevel_asms): Likewise.
6181 (produce_asm_for_decls): Likewise.
6182 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6183 * data-streamer-in.c (string_for_index): Likewise.
6184 * ipa-inline-analysis.c (inline_read_section): Likewise.
6185 * ipa-prop.c (ipa_prop_read_section): Likewise.
6186 (read_replacements_section): Likewise.
6187 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6188 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6189 (lto_destroy_simple_input_block): Likewise.
6190 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6191 (lto_input_toplevel_asms): Likewise.
6193 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6194 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6195 Anna Tikhonova <anna.tikhonova@intel.com>
6196 Ilya Tocar <ilya.tocar@intel.com>
6197 Andrey Turetskiy <andrey.turetskiy@intel.com>
6198 Ilya Verbin <ilya.verbin@intel.com>
6199 Kirill Yukhin <kirill.yukhin@intel.com>
6200 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6202 * common/config/i386/i386-common.c
6203 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6204 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6205 (ix86_handle_option): Handle OPT_mavx512dq.
6206 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6207 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6208 set -mavx512dq accordingly.
6209 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6210 OPTION_MASK_ISA_AVX512DQ.
6211 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6212 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6213 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6214 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6215 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6216 (TARGET_AVX512DQ_P(x)): Ditto.
6217 * config/i386/i386.opt: Add mavx512dq.
6219 2014-08-08 Richard Biener <rguenther@suse.de>
6221 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6222 target_percent, target_percent_s): Export.
6223 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6224 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6225 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6226 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6227 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6228 Move to gimple-fold.c.
6229 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6231 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6232 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6233 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6234 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6235 (rewrite_call_expr_array): Remove.
6236 (fold_builtin_sprintf_chk): Likewise.
6237 (fold_builtin_snprintf_chk): Likewise.
6238 (fold_builtin_varargs): Remove handling of sprintf_chk,
6239 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6240 (gimple_fold_builtin_sprintf_chk): Remove.
6241 (gimple_fold_builtin_snprintf_chk): Likewise.
6242 (gimple_fold_builtin_varargs): Likewise.
6243 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6244 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6245 * gimple.c (gimple_seq_add_seq_without_update): New function.
6246 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6247 * gimple-fold.c: Include output.h.
6248 (gsi_replace_with_seq_vops): New function, split out from ...
6249 (gimplify_and_update_call_from_tree): ... here.
6250 (replace_call_with_value): New function.
6251 (replace_call_with_call_and_fold): Likewise.
6252 (var_decl_component_p): Moved from builtins.c.
6253 (gimple_fold_builtin_memory_op): Moved from builtins.c
6254 fold_builtin_memory_op and rewritten to GIMPLE.
6255 (gimple_fold_builtin_memset): Likewise.
6256 (gimple_fold_builtin_strcpy): Likewise.
6257 (gimple_fold_builtin_strncpy): Likewise.
6258 (gimple_fold_builtin_strcat): Likewise.
6259 (gimple_fold_builtin_fputs): Likewise.
6260 (gimple_fold_builtin_memory_chk): Likewise.
6261 (gimple_fold_builtin_stxcpy_chk): Likewise.
6262 (gimple_fold_builtin_stxncpy_chk): Likewise.
6263 (gimple_fold_builtin_snprintf_chk): Likewise.
6264 (gimple_fold_builtin_sprintf_chk): Likewise.
6265 (gimple_fold_builtin_strlen): New function.
6266 (gimple_fold_builtin_with_strlen): New function split out from
6267 gimple_fold_builtin.
6268 (gimple_fold_builtin): Change signature and handle
6269 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6270 here. Call gimple_fold_builtin_with_strlen.
6271 (gimple_fold_call): Adjust.
6273 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6275 * calls.c (precompute_arguments): Check
6276 promoted_for_signed_and_unsigned_p and set the promoted mode.
6277 (promoted_for_signed_and_unsigned_p): New function.
6278 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6279 and set the promoted mode.
6280 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6281 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6282 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6285 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6287 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6288 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6289 (expand_call): Likewise.
6290 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6291 to get promoted mode.
6292 * combine.c (record_promoted_value): Skip > 0 comparison with
6293 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6294 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6295 of SUBREG_PROMOTED_UNSIGNED_P.
6296 (convert_modes): Likewise.
6297 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6298 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6299 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6300 SUBREG_PROMOTED_UNSIGNED_SET.
6301 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6302 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6303 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6304 SUBREG_PROMOTED_SET.
6305 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6306 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6307 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6308 of SUBREG_PROMOTED_UNSIGNED_P.
6309 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6310 (SUBREG_PROMOTED_SET): New define.
6311 (SUBREG_PROMOTED_GET): Likewise.
6312 (SUBREG_PROMOTED_SIGN): Likewise.
6313 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6314 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6315 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6316 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6317 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6318 (nonzero_bits1): Skip > 0 comparison with the results as
6319 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6320 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6321 of !SUBREG_PROMOTED_UNSIGNED_P.
6322 * simplify-rtx.c (simplify_unary_operation_1): Use new
6323 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6324 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6325 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6326 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6328 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6330 * ipa-devirt.c: Include gimple-pretty-print.h
6331 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6333 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6334 (get_polymorphic_call_info): Fix return value
6335 (type_change_info): New sturcture based on ipa-prop
6337 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6338 based on ipa-prop variant.
6339 (extr_type_from_vtbl_ptr_store): New function
6340 based on ipa-prop variant.
6341 (record_known_type): New function.
6342 (check_stmt_for_type_change): New function.
6343 (get_dynamic_type): New function.
6344 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6345 * tree-ssa-pre.c: ipa-utils.h
6346 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6347 machinery; sanity check with ipa-prop devirtualization.
6348 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6351 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6353 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6354 * alias.c, cfgexpand.c, cgraphbuild.c,
6355 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6356 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6357 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6358 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6359 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6360 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6361 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6362 dse.c, except.c, gengtype.c, gimple-expr.c,
6363 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6364 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6365 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6366 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6367 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6368 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6370 * pointer-set.c: Remove file.
6371 * pointer-set.h: Remove file.
6373 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6375 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6376 * config/arm/types.md (f_sels, f_seld): Delete.
6378 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6380 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6381 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6382 (aarch64_movdi_<mode>high): Likewise.
6383 (aarch64_mov<mode>high_di): Likewise.
6384 (aarch64_movdi_<mode>low): Likewise.
6385 (aarch64_mov<mode>low_di): Likewise.
6386 (aarch64_movtilow_tilow): Likewise.
6387 Add comment explaining usage of fp,simd attributes and of
6388 TARGET_FLOAT and TARGET_SIMD.
6390 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6391 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6393 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6394 Use MOVN when one of the half-words is 0xffff.
6396 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6398 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6400 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6402 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
6403 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
6404 (rfs_str): String corresponding to RFS_* constants.
6405 (rank_for_schedule_stats_t): New typedef.
6406 (rank_for_schedule_stats): New static variable.
6407 (rfs_result): New static function.
6408 (rank_for_schedule): Track statistics for deciding heuristics.
6409 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
6411 (ready_sort): Use them for debug printouts.
6412 (schedule_block): Init statistics state. Print statistics on
6413 rank_for_schedule decisions.
6415 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6417 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
6419 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
6421 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
6424 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6426 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
6427 function to not conflict.
6428 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
6429 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
6430 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
6431 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
6432 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
6435 2014-08-07 Marek Polacek <polacek@redhat.com>
6437 * fold-const.c (fold_binary_loc): Add folding of
6438 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
6440 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
6442 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
6443 instead of type size.
6444 (ASM_FINISH_DECLARE_OBJECT): Likewise.
6446 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6448 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
6449 (*thumb1_movqi_insn): Likewise.
6450 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
6452 2014-08-07 Tom de Vries <tom@codesourcery.com>
6454 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6455 (glibc_2_11_or_earlier): Remove effective-target keywords.
6457 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6459 * config/arm/arm.c (bdesc_2arg): Fix typo.
6460 (arm_atomic_assign_expand_fenv): Remove The default implementation.
6462 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
6464 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
6466 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
6469 * haifa-sched.c (advance_one_cycle): Fix dump.
6470 (schedule_block): Don't advance cycle if we are already at the
6471 beginning of the cycle.
6473 2014-08-06 Martin Jambor <mjambor@suse.cz>
6476 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
6478 2014-08-06 Richard Biener <rguenther@suse.de>
6481 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
6483 (lto_input_tree): Pop SCCs here.
6485 2014-08-06 Richard Biener <rguenther@suse.de>
6487 PR tree-optimization/61320
6488 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
6489 handle misaligned loads.
6491 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
6493 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
6494 (aarch64_expand_vec_perm_const): Check for dup before zip.
6496 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6498 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
6499 CONST_INT_P instead of GET_CODE and compare.
6500 (aarch64_select_cc_mode): Likewise.
6501 (aarch64_print_operand): Likewise.
6502 (aarch64_rtx_costs): Likewise.
6503 (aarch64_simd_valid_immediate): Likewise.
6504 (aarch64_simd_check_vect_par_cnst_half): Likewise.
6505 (aarch64_simd_emit_pair_result_insn): Likewise.
6507 2014-08-05 David Malcolm <dmalcolm@redhat.com>
6509 * gdbhooks.py (find_gcc_source_dir): New helper function.
6510 (class PassNames): New class, locating and parsing passes.def.
6511 (class BreakOnPass): New command "break-on-pass".
6513 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
6515 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
6518 2014-08-05 Richard Biener <rguenther@suse.de>
6520 PR rtl-optimization/61672
6521 * emit-rtl.h (mem_attrs_eq_p): Declare.
6522 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
6523 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
6524 * cfgcleanup.c (merge_memattrs): Likewise.
6527 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6529 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
6530 rather than singleton vectors.
6531 (vqdmlsls_lane_s32): Likewise.
6533 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6535 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
6536 Use VSDQ_HSI mode iterator.
6537 (aarch64_sqrdmulh_laneq<mode>): Likewise.
6538 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
6539 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
6540 Use BUILTIN_VDQHS macro.
6541 (sqrdmulh_laneq): Likewise.
6542 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
6543 (vqdmlals_laneq_s32): Likewise.
6544 (vqdmlslh_laneq_s16): Likewise.
6545 (vqdmlsls_laneq_s32): Likewise.
6546 (vqdmulhh_laneq_s16): Likewise.
6547 (vqdmulhs_laneq_s32): Likewise.
6548 (vqrdmulhh_laneq_s16): Likewise.
6549 (vqrdmulhs_laneq_s32): Likewise.
6551 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6553 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
6554 (vmuld_laneq_f64): Likewise.
6555 (vmuls_laneq_f32): Likewise.
6556 (vmul_n_f64): Likewise.
6557 (vmuld_lane_f64): Reimplement in C.
6558 (vmuls_lane_f32): Likewise.
6560 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6562 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
6564 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6566 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6568 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
6569 (rbitsi2): Likewise.
6570 (*arm_rev): Set predicable and predicable_short_it attributes.
6572 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6574 * convert.c (convert_to_integer): Guard transformation to lrint by
6577 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6579 * config/aarch64/aarch64-builtins.c
6580 (aarch64_simd_builtin_type_mode): Delete.
6581 (v8qi_UP): Remap to V8QImode.
6582 (v4hi_UP): Remap to V4HImode.
6583 (v2si_UP): Remap to V2SImode.
6584 (v2sf_UP): Remap to V2SFmode.
6585 (v1df_UP): Remap to V1DFmode.
6586 (di_UP): Remap to DImode.
6587 (df_UP): Remap to DFmode.
6588 (v16qi_UP):V16QImode.
6589 (v8hi_UP): Remap to V8HImode.
6590 (v4si_UP): Remap to V4SImode.
6591 (v4sf_UP): Remap to V4SFmode.
6592 (v2di_UP): Remap to V2DImode.
6593 (v2df_UP): Remap to V2DFmode.
6594 (ti_UP): Remap to TImode.
6595 (ei_UP): Remap to EImode.
6596 (oi_UP): Remap to OImode.
6597 (ci_UP): Map to CImode.
6598 (xi_UP): Remap to XImode.
6599 (si_UP): Remap to SImode.
6600 (sf_UP): Remap to SFmode.
6601 (hi_UP): Remap to HImode.
6602 (qi_UP): Remap to QImode.
6603 (aarch64_simd_builtin_datum): Make mode a machine_mode.
6604 (VAR1): Build builtin name.
6605 (aarch64_init_simd_builtins): Remove dead code.
6607 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6609 * graphite-isl-ast-to-gimple.c:
6610 (set_options): New function.
6611 (scop_to_isl_ast): Add calling of set_options.
6613 2014-08-05 Jakub Jelinek <jakub@redhat.com>
6615 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
6616 (analyze_iv_to_split_insn): Don't initialize them.
6617 (get_ivts_expr): Removed.
6618 (allocate_basic_variable, insert_base_initialization): Use
6619 SET_SRC instead of *get_ivts_expr.
6620 (split_iv): Use &SET_SRC instead of get_ivts_expr.
6622 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6624 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
6625 (translate_isl_ast_for_loop): Add checking of the
6626 flag_loop_parallelize_all.
6627 (ast_build_before_for): New function.
6628 (scop_to_isl_ast): Add checking of the
6629 flag_loop_parallelize_all.
6630 * graphite-dependences.c: Move the defenition of the
6631 scop_get_dependences from graphite-optimize-isl.c to this file.
6632 (apply_schedule_on_deps): Add checking of the ux's emptiness.
6633 (carries_deps): Add checking of the x's value.
6634 * graphite-optimize-isl.c: Move the defenition of the
6635 scop_get_dependences to graphite-dependences.c.
6636 * graphite-poly.h: Add declarations of scop_get_dependences
6639 2014-08-04 Rohit <rohitarulraj@freescale.com>
6642 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
6644 (alt_reg_names): Likewise.
6645 (rs6000_dwarf_register_span): For SPE high registers, replace
6646 dwarf register numbers with GCC hard register numbers.
6647 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
6648 (rs6000_dbx_register_number): For SPE high registers, return dwarf
6649 register number for the corresponding GCC hard register number.
6650 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
6651 newly added GCC hard register numbers for SPE high registers.
6652 (DWARF_FRAME_REGISTERS): Likewise.
6653 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
6654 (DWARF_FRAME_REGNUM): Likewise.
6655 (FIXED_REGISTERS): Likewise.
6656 (CALL_USED_REGISTERS): Likewise.
6657 (CALL_REALLY_USED_REGISTERS): Likewise.
6658 (REG_ALLOC_ORDER): Likewise.
6659 (enum reg_class): Likewise.
6660 (REG_CLASS_NAMES): Likewise.
6661 (REG_CLASS_CONTENTS): Likewise.
6662 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
6664 2014-08-04 Richard Biener <rguenther@suse.de>
6666 * gimple-fold.h (gimple_fold_builtin): Remove.
6667 * gimple-fold.c (gimple_fold_builtin): Make static.
6668 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
6669 fold_stmt, not gimple_fold_builtin.
6671 2014-08-04 Martin Liska <mliska@suse.cz>
6673 * cgraph.h (csi_end_p): Removed.
6674 (csi_next): Likewise.
6675 (csi_node): Likewise.
6676 (csi_start): Likewise.
6677 (cgraph_node_in_set_p): Likewise.
6678 (cgraph_node_set_size): Likewise.
6679 (vsi_end_p): Likewise.
6680 (vsi_next): Likewise.
6681 (vsi_node): Likewise.
6682 (vsi_start): Likewise.
6683 (varpool_node_set_size): Likewise.
6684 (cgraph_node_set_nonempty_p): Likewise.
6685 (varpool_node_set_nonempty_p): Likewise.
6686 * cgraphunit.c (cgraph_process_new_functions): vec replaces
6688 * ipa-inline-transform.c: Likewise.
6689 * ipa-utils.c (cgraph_node_set_new): Removed.
6690 (cgraph_node_set_add): Likewise.
6691 (cgraph_node_set_remove): Likewise.
6692 (cgraph_node_set_find): Likewise.
6693 (dump_cgraph_node_set): Likewise.
6694 (debug_cgraph_node_set): Likewise.
6695 (free_cgraph_node_set): Likewise.
6696 (varpool_node_set_new): Likewise.
6697 (varpool_node_set_add): Likewise.
6698 (varpool_node_set_remove): Likewise.
6699 (varpool_node_set_find): Likewise.
6700 (dump_varpool_node_set): Likewise.
6701 (free_varpool_node_set): Likewise.
6702 (debug_varpool_node_set): Likewise.
6703 * tree-emutls.c (struct tls_var_data):
6704 (emutls_index): Removed.
6705 (emutls_decl): Likewise.
6706 (gen_emutls_addr): Function implementation uses newly added
6707 hash_map<varpool_node *, tls_var_data>.
6708 (clear_access_vars): Likewise.
6709 (create_emultls_var): Likewise.
6710 (ipa_lower_emutls): Likewise.
6711 (reset_access): New function.
6713 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6715 * config/i386/i386.c (ix86_option_override_internal): Add
6716 PTA_RDRND and PTA_MOVBE for bdver4.
6718 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6719 James Greenhalgh <james.greenhalgh@arm.com>
6721 * doc/md.texi (clrsb): Document.
6722 (clz): Change reference to x into operand 1.
6724 (popcount): Likewise.
6726 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6729 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
6730 move to subtarget in serial version if result is ignored.
6732 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6733 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6735 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
6736 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
6737 (sched_analyze_insn): Update use of try_group_insn to
6738 sched_macro_fuse_insns.
6739 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
6740 arguments that are not conditional jumps.
6742 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6744 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
6745 family information. Handle BTVER2 cpu with cpuid family value.
6747 2014-08-04 Tom de Vries <tom@codesourcery.com>
6749 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6750 (glibc_2_11_or_earlier): Document effective-target keywords.
6752 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6754 * ipa-devirt.c (odr_type_warn_count): Add type.
6755 (possible_polymorphic_call_targets): Set it.
6756 (ipa_devirt): Use it.
6758 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6760 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
6762 * ipa-devirt.c: Include hash-map.h
6763 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
6764 (clear_speculation): Break out of ...
6765 (get_class_context): ... here; speed up handling obviously useless
6767 (odr_type_warn_count, decl_warn_count): New structures.
6768 (final_warning_record): New structure.
6769 (final_warning_records): New static variable.
6770 (possible_polymorphic_call_targets): Cleanup handling of
6771 speculative info; do not build speculation when user do not care;
6772 record info about warnings when asked for.
6773 (add_decl_warning): New function.
6774 (type_warning_cmp): New function.
6775 (decl_warning_cmp): New function.
6776 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
6777 (gate): Enable pass when warnings are requested.
6778 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
6781 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6783 * hash-map.h (default_hashmap_traits::mark_key_deleted):
6785 (hash_map::remove): New method.
6786 (hash_map::traverse): New method.
6787 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
6788 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
6789 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
6790 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
6791 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
6792 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
6795 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6797 * hash-set.h: new File.
6798 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
6799 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
6800 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
6801 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
6802 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
6803 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
6804 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
6805 varpool.c: Use hash_set instead of pointer_set.
6807 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
6809 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
6811 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6813 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
6814 for frame access when strict_p is false.
6816 2014-08-01 Renlin Li <renlin.li@arm.com>
6817 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6819 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
6820 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
6821 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
6823 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
6825 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
6826 aarch64_mem_pair_offset.
6828 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6830 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
6832 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
6833 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
6835 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
6837 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
6839 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
6842 * cgraphunit.c (analyze_functions): Use get_create rather than get
6843 for decls which are clones of abstract functions.
6845 2014-08-01 Martin Liska <mliska@suse.cz>
6847 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
6848 * ipa-prop.h (count_formal_params): Global function created from static.
6849 * ipa-prop.c (count_formal_params): Likewise.
6850 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
6851 profiles for semantically equivalent functions.
6852 * passes.c (do_per_function): If we load body of a function
6853 during WPA, this condition should behave same.
6854 * varpool.c (ctor_for_folding): More tolerant assert for variable
6855 aliases created during WPA.
6857 2014-08-01 Martin Liska <mliska@suse.cz>
6859 * doc/invoke.texi (Options That Control Optimization): Documentation
6860 for -foptimize-strlen introduced. Optimization levels default options
6863 2014-08-01 Jakub Jelinek <jakub@redhat.com>
6865 * opts.c (common_handle_option): Handle -fsanitize=alignment.
6866 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
6867 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
6869 * stor-layout.h (min_align_of_type): New prototype.
6870 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
6871 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
6873 * ubsan.c: Include builtins.h.
6874 (ubsan_expand_bounds_ifn): Change return type to bool,
6876 (ubsan_expand_null_ifn): Change return type to bool, change
6877 argument to gimple_stmt_iterator *. Handle both null and alignment
6878 sanitization, take type from ckind argument's type rather than
6880 (instrument_member_call): Removed.
6881 (instrument_mem_ref): Remove t argument, add mem and base arguments.
6882 Handle both null and alignment sanitization, don't say whole
6883 struct access is member access. Build 3 argument IFN_UBSAN_NULL
6884 call instead of 2 argument.
6885 (instrument_null): Adjust instrument_mem_ref caller. Don't
6886 instrument calls here.
6887 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
6889 * stor-layout.c (min_align_of_type): New function.
6890 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
6891 Or it into SANITIZE_UNDEFINED.
6892 * doc/invoke.texi (-fsanitize=alignment): Document.
6894 2014-07-31 Andi Kleen <ak@linux.intel.com>
6896 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
6898 2014-07-31 Andi Kleen <ak@linux.intel.com>
6900 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
6902 (vn_reference_compute_hash): Dito.
6903 (vn_nary_op_compute_hash): Dito.
6904 (vn_phi_compute_hash): Dito.
6905 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
6907 2014-07-31 Andi Kleen <ak@linux.intel.com>
6909 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
6910 Rename to inchash:add_expr_commutative. Convert to inchash.
6911 (iterative_hash_hashable_expr): Rename to
6912 inchash:add_hashable_expr. Convert to inchash.
6913 (avail_expr_hash): Dito.
6915 2014-07-31 Andi Kleen <ak@linux.intel.com>
6917 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
6920 2014-07-31 Andi Kleen <ak@linux.intel.com>
6922 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
6924 2014-07-31 Andi Kleen <ak@linux.intel.com>
6926 * Makefile.in (OBJS): Add rtlhash.o
6927 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
6928 (loc_checksum): Dito.
6929 (loc_checksum_ordered): Dito.
6930 (hash_loc_operands): Dito.
6932 (hash_loc_list): Dito.
6933 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
6934 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
6935 * rtlhash.c: New file.
6936 * rtlhash.h: New file.
6938 2014-07-31 Andi Kleen <ak@linux.intel.com>
6940 * inchash.h (inchash): Change inchash class to namespace.
6941 (class hash): ... Rename from inchash.
6942 (add_object): Move from macro to class template.
6943 * lto-streamer-out.c (hash_tree): Change inchash
6945 * tree.c (build_type_attribute_qual_variant): Dito.
6946 (type_hash_list): Dito.
6947 (attribute_hash_list): Dito.
6948 (iterative_hstate_expr): Rename to inchash::add_expr
6949 (build_range_type_1): Change inchash to inchash::hash
6950 and use hash::add_expr.
6951 (build_array_type_1): Dito.
6952 (build_function_type): Dito
6953 (build_method_type_directly): Dito.
6954 (build_offset_type): Dito.
6955 (build_complex_type): Dito.
6956 (make_vector_type): Dito.
6957 * tree.h (iterative_hash_expr): Dito.
6959 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
6961 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
6963 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6965 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
6966 correct alphabetical position.
6967 (vpaddd_f64): Rewrite using builtins.
6968 (vpaddd_s64): Move to correct alphabetical position.
6971 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
6974 * config/sh/sh.c (sh_legitimate_address_p,
6975 sh_legitimize_reload_address): Handle reg+reg address modes when
6976 ALLOW_INDEXED_ADDRESS is false.
6977 * config/sh/predicates.md (general_movsrc_operand,
6978 general_movdst_operand): Likewise.
6980 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6982 * config/aarch64/aarch64-builtins.c
6983 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
6986 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6988 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
6989 the generated mask based on BYTES_BIG_ENDIAN.
6990 (aarch64_simd_check_vect_par_cnst_half): New.
6991 * config/aarch64/aarch64-protos.h
6992 (aarch64_simd_check_vect_par_cnst_half): New.
6993 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
6994 the check out to aarch64_simd_check_vect_par_cnst_half.
6995 (vect_par_cnst_lo_half): Likewise.
6996 * config/aarch64/aarch64-simd.md
6997 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
6998 (move_hi_quad_<mode>): Always generate a low mask.
7000 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7002 * doc/invoke.texi (AVR Options): Add documentation about
7003 __AVR_DEVICE_NAME__ built-in macro.
7005 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7008 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7009 constraints are satisfied.
7010 (<shift>di3_neon): Likewise.
7012 2014-07-31 Richard Biener <rguenther@suse.de>
7014 PR tree-optimization/61964
7015 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7016 by structural equality.
7018 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7020 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7021 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7022 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7024 * gcc.c (sanitize_spec_function): Support new option.
7025 (SANITIZER_SPEC): Remove now redundant check.
7026 * opts.c (common_handle_option): Support new option.
7027 (finish_options): Check for incompatibilities.
7028 * toplev.c (process_options): Split userspace-specific checks.
7030 2014-07-31 Richard Biener <rguenther@suse.de>
7032 * lto-streamer.h (struct output_block): Remove global.
7033 (struct data_in): Remove labels, num_named_labels and
7035 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7036 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7038 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7041 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7042 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7043 (isolate_path): New argument to avoid inserting a trap.
7044 (find_implicit_erroneous_behaviour): Handle returning the address
7045 of a local variable.
7046 (find_explicit_erroneous_behaviour): Likewise.
7048 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7051 * toplev.c (init_random_seed): Move piece of code never called to
7053 (set_random_seed): see above.
7055 2014-07-31 Tom de Vries <tom@codesourcery.com>
7057 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7059 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7061 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7062 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7064 2014-07-31 Richard Biener <rguenther@suse.de>
7066 * data-streamer.h (streamer_write_data_stream): Declare here,
7068 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7069 * lto-cgraph.c (lto_output_node): Adjust.
7070 (lto_output_varpool_node): Likewise.
7071 * data-streamer-out.c (streamer_string_index): Likewise.
7072 (streamer_write_data_stream, lto_append_block): Move from ...
7073 * lto-section-out.c (lto_output_data_stream,
7074 lto_append_block): ... here.
7076 2014-07-30 Mike Stump <mikestump@comcast.net>
7078 * configure.ac: Also check for popen.
7079 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7080 * configure: Regenerate.
7081 * config.in: Regenerate.
7083 2014-07-30 Martin Jambor <mjambor@suse.cz>
7085 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7086 parameter to gimple.
7088 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7090 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7091 address as second parameter to __tpf_eh_return routine.
7093 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7095 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7098 2014-07-30 Tom Tromey <tromey@redhat.com>
7101 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7102 * doc/extend.texi (Type Attributes): Document designated_init
7105 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7107 * graphite-isl-ast-to-gimple.c:
7108 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7109 (gcc_expression_from_isl_expression): Pass type to
7110 gcc_expression_from_isl_ast_expr_id.
7112 2014-07-30 Richard Biener <rguenther@suse.de>
7114 * lto-streamer.h (lto_write_data): New function.
7115 * langhooks.c (lhd_append_data): Do not free block.
7116 * lto-section-out.c (lto_write_data): New function writing
7117 raw data to the current section.
7118 (lto_write_stream): Adjust for langhook semantic change.
7119 (lto_destroy_simple_output_block): Write header directly.
7120 * lto-opts.c (lto_write_options): Write options directly.
7121 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7122 (lto_output_toplevel_asms): Likewise.
7123 (copy_function_or_variable): Copy data directly.
7124 (write_global_references): Output index table directly.
7125 (lto_output_decl_state_refs): Likewise.
7126 (write_symbol): Write data directly.
7127 (produce_symtab): Adjust.
7128 (produce_asm_for_decls): Output header and refs directly.
7130 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7132 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7133 to speculative_targets
7134 (get_class_context): Fix handling of contextes without outer type;
7135 avoid matching non-polymorphic types in LTO.
7136 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7137 parameter to speculative_targetsp; handle speculation.
7138 (dump_possible_polymorphic_call_targets): Update dumping.
7140 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7142 * common.opt (Wodr): Enable by default.
7144 2014-07-29 Olivier Hainque <hainque@adacore.com>
7146 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7148 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7151 * gengtype.c (strtoken): New function.
7152 (create_user_defined_type): Replace strtok with strtoken.
7154 2014-07-29 Nathan Sidwell <nathan@acm.org>
7156 * gcov-io.c (gcov_var): Make hidden.
7157 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7158 (gcov_do_dump): Declare.
7159 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7161 2014-07-29 Martin Jambor <mjambor@suse.cz>
7163 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7164 parameter to gimple.
7165 (sra_modify_assign): Likewise.
7167 2014-07-29 Richard Biener <rguenther@suse.de>
7170 * expr.c (expand_expr_real_2): Revert last change.
7172 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7174 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7175 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7176 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7178 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7179 (contains_type_p): Forward declare.
7180 (polymorphic_call_target_hasher::hash): Hash speculative info.
7181 (polymorphic_call_target_hasher::equal): Compare speculative info.
7182 (get_class_context): Handle speuclation.
7183 (contains_type_p): Update.
7184 (get_polymorphic_call_info_for_decl): Update.
7185 (walk_ssa_copies): Break out from ...
7186 (get_polymorphic_call_info): ... here; set speculative context
7188 * ipa-prop.c (ipa_write_indirect_edge_info,
7189 ipa_read_indirect_edge_info): Stream speculative context.
7190 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7191 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7192 SPECULATIVE_MAYBE_DERIVED_TYPE).
7193 (possible_polymorphic_call_targets overriders): Update.
7194 (dump_possible_polymorphic_call_targets overriders): Update.
7195 (dump_possible_polymorphic_call_target_p overriders): Update.
7197 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7199 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7200 ipa-devirt path; fix thinko there.
7202 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7204 * config/i386/i386.c (ix86_return_in_memory): Replace one
7205 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7207 2014-07-28 Marek Polacek <polacek@redhat.com>
7209 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7211 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7213 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7214 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7215 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7216 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7217 (USE_LD_AS_NEEDED): Likewise.
7218 (ASM_APP_ON): Likewise.
7219 (ASM_APP_OFF): Likewise.
7220 (TARGET_POSIX_IO): Likewise.
7221 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7222 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7223 (USE_LD_AS_NEEDED): Likewise.
7224 (ASM_APP_ON): Likewise.
7225 (ASM_APP_OFF): Likewise.
7226 (TARGET_POSIX_IO): Likewise.
7228 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7231 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7232 operators other than the equality operators.
7234 2014-07-28 Richard Biener <rguenther@suse.de>
7237 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7238 sure to register SImode ones, not only >= word_mode ones.
7239 * expr.c (expand_expr_real_2): When expanding -ftrapv
7240 binops do not use OPTAB_LIB_WIDEN.
7242 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7245 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7246 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7247 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7248 inserting them in the insn stream.
7250 2014-07-28 Marek Polacek <polacek@redhat.com>
7253 * common.opt (Wodr): Add Var.
7255 2014-07-28 Richard Biener <rguenther@suse.de>
7257 PR tree-optimization/61921
7258 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7259 if there is a varpool node before dereferencing it.
7261 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7263 * graphite-sese-to-poly.c:
7264 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7265 id of the pbb), which contains pointer to the pbb1.
7267 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7269 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7271 * graphite-isl-ast-to-gimple.c:
7272 (graphite_create_new_guard): New function.
7273 (translate_isl_ast_node_if): New function.
7274 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7276 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7278 2014-07-27 Anthony Green <green@moxielogic.com>
7280 * config.gcc: Add moxie-*-moxiebox* configuration.
7281 * config/moxie/moxiebox.h: New file.
7283 2014-07-26 Andrew Pinski <apinski@cavium.com>
7285 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7286 from the read only register.
7288 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7290 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7291 as the allocation class if it isn't likely to be spilled.
7293 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7295 * rtl.h (tls_referenced_p): Declare.
7296 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7297 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7298 (mips_cannot_force_const_mem): Use tls_referenced_p.
7299 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7300 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7301 instead of pa_tls_referenced_p.
7302 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7303 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7304 (pa_legitimate_constant_p): Likewise.
7305 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7306 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7307 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7308 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7309 rs6000_tls_referenced_p.
7310 (rs6000_tls_symbol_ref_1): Delete.
7312 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7315 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7316 Optimize inverse of a VEC_CONCAT.
7318 2014-07-25 Xinliang David Li <davidxl@google.com>
7320 * params.def: New parameter.
7321 * coverage.c (get_coverage_counts): Check new flag.
7322 (coverage_compute_profile_id): Check new flag.
7323 (coverage_begin_function): Check new flag.
7324 (coverage_end_function): Check new flag.
7325 * value-prof.c (coverage_node_map_initialized_p): New function.
7326 (init_node_map): Populate map with all functions.
7327 * doc/invoke.texi: Document new parameter.
7329 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7330 Richard Biener <rguenther@suse.de>
7332 * lto-streamer-out.c (struct sccs): Turn to ...
7333 (class DFS): ... this one; refactor the DFS walk so it can
7334 be re-done on per-SCC basis.
7335 (DFS::DFS): New constructor.
7336 (DFS::~DFS): New destructor.
7337 (hash_tree): Add new MAP argument holding in-SCC hash values;
7338 remove POINTER_TYPE hashing hack.
7339 (scc_entry_compare): Rename to ...
7340 (DFS::scc_entry_compare): ... this one.
7341 (hash_scc): Rename to ...
7342 (DFS::hash_scc): ... this one; pass output_block instead
7343 of streamer_cache; work harder to get unique and stable SCC
7345 (DFS_write_tree): Rename to ...
7346 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7347 (lto_output_tree): Update.
7349 2014-07-25 Andi Kleen <ak@linux.intel.com>
7351 * lto-streamer-out.c (hash_tree): Convert to inchash.
7353 2014-07-25 Andi Kleen <ak@linux.intel.com>
7355 * tree.c (build_type_attribute_qual_variant): Use inchash.
7356 (type_hash_list): Dito.
7357 (attribute_hash_list): Dito
7358 (iterative_hstate_expr): Dito.
7359 (iterative_hash_expr): Dito.
7360 (build_range_type_1): Dito.
7361 (build_array_type_1): Dito.
7362 (build_function_type): Dito.
7363 (build_method_type_directly): Dito.
7364 (build_offset_type): Dito.
7365 (build_complex_type): Dito.
7366 (make_vector_type): Dito.
7367 * tree.h (iterative_hash_expr): Add compat wrapper.
7368 (iterative_hstate_expr): Add.
7370 2014-07-25 Andi Kleen <ak@linux.intel.com>
7372 * Makefile.in (OBJS): Add inchash.o.
7373 (PLUGIN_HEADERS): Add inchash.h.
7374 * ipa-devirt.c: Include inchash.h.
7375 * lto-streamer-out.c: Dito.
7376 * tree-ssa-dom.c: Dito.
7377 * tree-ssa-pre.c: Dito.
7378 * tree-ssa-sccvn.c: Dito.
7379 * tree-ssa-tail-merge.c: Dito.
7381 * tree.c (iterative_hash_hashval_t): Move to ...
7382 (iterative_hash_host_wide_int): Move to ...
7383 * inchash.c: Here. New file.
7384 * tree.h (iterative_hash_hashval_t): Move to ...
7385 (iterative_hash_host_wide_int): Move to ...
7386 * inchash.h: Here. New file.
7388 2014-07-25 Richard Biener <rguenther@suse.de>
7392 * fold-const.c (native_encode_int): Add and handle offset
7393 parameter to do partial encodings of expr.
7394 (native_encode_fixed): Likewise.
7395 (native_encode_real): Likewise.
7396 (native_encode_complex): Likewise.
7397 (native_encode_vector): Likewise.
7398 (native_encode_string): Likewise.
7399 (native_encode_expr): Likewise.
7400 * fold-const.c (native_encode_expr): Add offset parameter
7402 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
7403 (fold_ctor_reference): Handle all reads from tcc_constant
7406 2014-07-25 Richard Biener <rguenther@suse.de>
7408 * tree-inline.c (estimate_move_cost): Mark speed_p argument
7411 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7413 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
7415 2014-07-24 Kyle McMartin <kyle@redhat.com>
7417 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
7419 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7421 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
7423 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
7425 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
7426 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7427 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7429 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7431 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
7432 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
7433 aggregate types. Instead, *all* aggregate types, except for single-
7434 element or homogeneous float/vector aggregates, are quadword-aligned
7435 if required by their type alignment. Issue -Wpsabi note when a type
7436 is now treated differently than before.
7438 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7440 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
7441 does not fit fully into floating-point registers, and there is still
7442 space in the register parameter area, use GPRs to pass those parts
7443 of the argument. Issue -Wpsabi note if any parameter is now treated
7444 differently than before.
7445 (rs6000_arg_partial_bytes): Update.
7447 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
7449 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
7451 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7453 * rtl.h (target_rtl): Remove lang_dependent_initialized.
7454 * toplev.c (initialize_rtl): Don't use it. Move previously
7455 "language-dependent" calls to...
7456 (backend_init): ...here.
7457 (lang_dependent_init_target): Don't set lang_dependent_initialized.
7458 Assert that RTL initialization hasn't happend yet.
7460 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7462 PR rtl-optimization/61629
7463 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
7464 they have already been initialized.
7466 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7469 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
7470 DECL_INCOMING_RTL and entry_parm.
7471 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
7472 * calls.c (load_register_parameters): Likewise argument values.
7473 (emit_library_call_value_1, store_one_arg): Likewise argument
7475 * config/i386/i386.c (assign_386_stack_local): Likewise the local
7477 * explow.c (validize_mem): Modify the argument in-place.
7479 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7481 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
7482 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
7484 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7486 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
7487 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
7489 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7491 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
7492 (aarch64_save_callee_saves): New parameter "skip_wb".
7493 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
7495 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7497 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
7499 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
7501 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7503 * graphite-isl-ast-to-gimple.c:
7504 (graphite_create_new_loop): Add calling of isl_id_free to properly
7505 decrement reference counts.
7507 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
7509 2014-07-24 Martin Liska <mliska@suse.cz>
7510 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
7512 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
7513 (rs6000_code_end): Likewise.
7515 2014-07-24 Martin Liska <mliska@suse.cz>
7517 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
7518 symtab_node funtion used.
7519 (rs6000_xcoff_declare_object_name): Likewise.
7521 2014-07-24 Martin Liska <mliska@suse.cz>
7523 * cgraphunit.c (compile): Correct function used.
7525 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7527 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
7530 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7533 * varasm.c (bss_initializer_p): Handle offlined ctors.
7534 (align_variable, get_variable_align): Likewise.
7535 (make_decl_one_only): Likewise.
7536 (default_binds_local_p_1): Likewise.
7537 (decl_binds_to_current_def_p): Likewise.
7538 (get_variable_section): Get constructor if it is offlined.
7539 (assemble_variable_contents): Sanity check that the caller
7540 streamed in the ctor in LTO.
7542 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7544 * graphite-isl-ast-to-gimple.c:
7545 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
7546 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
7547 isl_ast_op_pdiv_r to the different case.
7549 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
7551 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7554 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
7555 when flag_errno_math is on.
7557 2014-07-24 Martin Liska <mliska@suse.cz>
7559 * cgraph.h (varpool_node):
7560 (availability get_availability (void)):
7561 created from cgraph_variable_initializer_availability
7562 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
7563 created from: cgraph_variable_initializer_availability
7564 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
7565 (void finalize_named_section_flags (void)):
7566 created from varpool_finalize_named_section_flags
7567 (bool assemble_decl (void)): created from varpool_assemble_decl
7568 (void analyze (void)): created from varpool_analyze_node
7569 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
7570 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
7571 (void remove_initializer (void)): created from varpool_remove_initializer
7572 (tree get_constructor (void)): created from varpool_get_constructor
7573 (bool externally_visible_p (void)): created from varpool_externally_visible_p
7574 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
7575 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
7576 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
7577 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
7578 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
7579 (static bool output_variables (void)): created from varpool_output_variables
7580 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
7581 created from varpool_extra_name_alias
7582 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
7583 (static void dump_varpool (FILE *f)): created from dump_varpool
7584 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
7585 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
7586 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
7587 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
7588 (void assemble_aliases (void)): created from assemble_aliases
7590 2014-07-24 Martin Liska <mliska@suse.cz>
7592 * cgraph.h (symtab_node):
7593 (void register_symbol (void)): created from symtab_register_node
7594 (void remove (void)): created from symtab_remove_node
7595 (void dump (FILE *f)): created from dump_symtab_node
7596 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
7597 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
7598 (struct ipa_ref *add_reference (symtab_node *referred_node,
7599 enum ipa_ref_use use_type)): created from add_reference
7600 (struct ipa_ref *add_reference (symtab_node *referred_node,
7601 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
7602 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
7603 gimple stmt)): created from maybe_add_reference
7604 (bool semantically_equivalent_p (symtab_node *target)): created from
7605 symtab_semantically_equivalent_p
7606 (void remove_from_same_comdat_group (void)): created from
7607 remove_from_same_comdat_group
7608 (void add_to_same_comdat_group (symtab_node *old_node)): created from
7609 symtab_add_to_same_comdat_group
7610 (void dissolve_same_comdat_group_list (void)): created from
7611 symtab_dissolve_same_comdat_group_list
7612 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
7613 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
7614 created from symtab_alias_ultimate_target
7615 (inline symtab_node *next_defined_symbol (void)): created from
7616 symtab_next_defined_symbol
7617 (bool resolve_alias (symtab_node *target)): created from
7618 symtab_resolve_alias
7619 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
7620 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
7621 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
7622 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
7623 (void set_section (const char *section)): created from set_section_1
7624 (enum availability get_availability (void)): created from symtab_node_availability
7625 (void make_decl_local (void)): created from symtab_make_decl_local
7626 (bool real_symbol_p (void)): created from symtab_read_node
7627 (can_be_discarded_p (void)): created from symtab_can_be_discarded
7628 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
7629 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
7630 symtab_in_same_comdat_p;
7631 (bool address_taken_from_non_vtable_p (void)): created from
7632 address_taken_from_non_vtable_p
7633 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
7634 (static void dump_table (FILE *)): created from dump_symtab
7635 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
7636 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
7637 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
7638 symtab_used_from_object_file_p
7639 (void dump_base (FILE *)): created from dump_symtab_base
7640 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
7641 (void unregister (void)): created from symtab_unregister_node
7642 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
7643 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
7644 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
7645 symtab_nonoverwritable_alias_1
7646 * cgraph.h (cgraph_node):
7647 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
7648 created from cgraph_remove_node_and_inline_clones
7649 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
7650 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
7651 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
7652 (cgraph_node *function_symbol (enum availability *avail = NULL)):
7653 created from cgraph_function_node
7654 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
7655 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
7656 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
7657 created from cgraph_create_clone
7658 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
7659 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
7660 created from cgraph_create_virtual_clone
7661 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
7662 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
7663 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
7664 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
7665 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
7666 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
7667 created from cgraph_function_version_info
7668 (struct cgraph_function_version_info *insert_new_function_version (void)):
7669 created from insert_new_cgraph_node_version
7670 (struct cgraph_function_version_info *function_version (void)): created from
7671 get_cgraph_node_version
7672 (void analyze (void)): created from analyze_function
7673 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
7674 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
7675 tree real_alias) cgraph_add_thunk
7676 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
7677 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
7678 created from cgraph_function_or_thunk_node
7679 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
7680 created from expand_thunk
7681 (void reset (void)): created from cgraph_reset_node
7682 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
7683 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
7684 (void remove (void)): created from cgraph_remove_node
7685 (void dump (FILE *f)): created from dump_cgraph_node
7686 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
7687 (bool get_body (void)): created from cgraph_get_body
7688 (void release_body (void)): created from cgraph_release_function_body
7689 (void unnest (void)): created from cgraph_unnest_node
7690 (void make_local (void)): created from cgraph_make_node_local
7691 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
7692 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
7693 gcov_type count, int freq)): created from cgraph_create_edge
7694 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
7695 gcov_type count, int freq)): created from cgraph_create_indirect_edge
7696 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
7697 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
7698 created from cgraph_create_edge_including_clones
7699 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
7700 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
7701 (void remove_callers (void)): created from cgraph_node_remove_callers
7702 (void remove_callees (void)): created from cgraph_node_remove_callees
7703 (enum availability get_availability (void)): created from cgraph_function_body_availability
7704 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
7705 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
7706 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
7707 (void call_duplication_hooks (cgraph_node *node2)): created from
7708 cgraph_call_node_duplication_hooks
7709 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
7710 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
7711 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
7712 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
7713 (void call_function_insertion_hooks (void)):
7714 created from cgraph_call_function_insertion_hooks
7715 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
7716 (bool local_p (void)): created from cgraph_local_node
7717 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
7718 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
7719 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
7720 (inline bool only_called_directly_or_aliased_p (void)):
7721 created from cgraph_only_called_directly_or_aliased_p
7722 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
7723 created from cgraph_will_be_removed_from_program_if_no_direct_calls
7724 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
7725 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
7726 (bool can_remove_if_no_direct_calls_p (void)):
7727 created from cgraph_can_remove_if_no_direct_calls_p
7728 (inline bool has_gimple_body_p (void)):
7729 created from cgraph_function_with_gimple_body_p
7730 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
7731 (static void dump_cgraph (FILE *f)): created from dump_cgraph
7732 (static inline void debug_cgraph (void)): created from debug_cgraph
7733 (static void record_function_versions (tree decl1, tree decl2)):
7734 created from record_function_versions
7735 (static void delete_function_version (tree decl)):
7736 created from delete_function_version
7737 (static void add_new_function (tree fndecl, bool lowered)):
7738 created from cgraph_add_new_function
7739 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
7740 (static cgraph_node * create (tree decl)): created from cgraph_create_node
7741 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
7742 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
7743 (static cgraph_node *get_for_asmname (tree asmname)):
7744 created from cgraph_node_for_asm
7745 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
7746 created from cgraph_same_body_alias
7747 (static bool used_from_object_file_p_worker (cgraph_node *node,
7748 void *): new function
7749 (static bool non_local_p (cgraph_node *node, void *)):
7750 created from cgraph_non_local_node_p_1
7751 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
7752 created from verify_cgraph
7753 (static bool make_local (cgraph_node *node, void *)):
7754 created from cgraph_make_node_local
7755 (static cgraph_node *create_alias (tree alias, tree target)):
7756 created from cgraph_create_function_alias
7757 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
7758 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
7759 created from cgraph_create_edge_1
7760 * cgraph.h (varpool_node):
7761 (void remove (void)): created from varpool_remove_node
7762 (void dump (FILE *f)): created from dump_varpool_node
7764 2014-07-24 Richard Biener <rguenther@suse.de>
7767 * tree-ssa-structalias.c (create_variable_info_for_1):
7768 Use varpool_get_constructor.
7769 (create_variable_info_for): Likewise.
7771 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7773 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
7774 subtract outgoing area size when restoring stack_pointer_rtx.
7776 2014-07-24 Nick Clifton <nickc@redhat.com>
7778 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
7779 that operations are taking place in parallel.
7780 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
7782 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
7784 * omp-low.c (extract_omp_for_data): Add missing break statement.
7786 2014-07-24 Richard Biener <rguenther@suse.de>
7788 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
7789 * tree-inline.c (estimate_move_cost): Add speed_p parameter
7790 and adjust MOVE_RATIO query accordingly.
7791 (estimate_num_insns): Adjust callers.
7792 * ipa-prop.c (ipa_populate_param_decls): Likewise.
7793 * ipa-cp.c (gather_context_independent_values,
7794 estimate_local_effects): Likewise.
7795 * ipa-split.c (consider_split): Likewise.
7797 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
7799 * config/i386/driver-i386.c: Remove names of unused arguments and
7800 unnecessary unused attributes.
7801 * config/i386/host-mingw32.c: Likewise.
7802 * config/i386/i386.c: Likewise.
7803 * config/i386/winnt-stubs.c: Likewise.
7804 * config/i386/winnt.c: Likewise.
7806 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7808 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
7809 (aarch64_gen_loadwb_pair): New helper function.
7810 (aarch64_expand_epilogue): Simplify code using new helper functions.
7811 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
7813 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7815 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
7816 (aarch64_gen_storewb_pair): New helper function.
7817 (aarch64_expand_prologue): Simplify code using new helper functions.
7818 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
7820 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7822 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
7823 Rename to aarch64_save_callee_saves, remove restore code.
7824 (aarch64_restore_callee_saves): New function.
7826 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7828 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
7829 (aarch64_save_callee_saves): New function to handle reg save
7830 for both core and vectore regs.
7832 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7834 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
7835 (aarch64_gen_store_pair): New helper function.
7836 (aarch64_save_or_restore_callee_save_registers)
7837 (aarch64_save_or_restore_fprs): Use new helper functions.
7839 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7841 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
7842 (aarch64_save_or_restore_callee_save_registers)
7843 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
7845 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7847 * config/aarch64/aarch64.c
7848 (aarch64_save_or_restore_callee_save_registers)
7849 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
7851 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7853 * config/aarch64/aarch64.c
7854 (aarch64_save_or_restore_callee_save_registers)
7855 (aarch64_save_or_restore_fprs): Remove 'increment'.
7857 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7859 * config/aarch64/aarch64.c
7860 (aarch64_save_or_restore_callee_save_registers)
7861 (aarch64_save_or_restore_fprs): Use register offset in
7862 cfun->machine->frame.reg_offset.
7864 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7866 * config/aarch64/aarch64.c
7867 (aarch64_save_or_restore_callee_save_registers)
7868 (aarch64_save_or_restore_fprs): Remove base_rtx.
7870 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7872 * config/aarch64/aarch64.c
7873 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
7874 to 'start_offset'. Remove local variable 'start_offset'.
7876 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7878 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
7879 type to HOST_WIDE_INT.
7881 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7883 * config/aarch64/aarch64.c (aarch64_expand_prologue)
7884 (aarch64_save_or_restore_fprs)
7885 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
7887 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7889 * config/arm/t-rtems-eabi: Add
7890 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
7891 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
7892 mbig-endian/mthumb/march=armv7-r, and
7893 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
7896 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7897 Chris Johns <chrisj@rtems.org>
7898 Joel Sherrill <joel.sherrill@oarcorp.com>
7900 * config.gcc: Add nios2-*-rtems*.
7901 * config/nios2/rtems.h: New file.
7902 * gcc/config/nios2/t-rtems: New file.
7904 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7907 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
7908 constant numbers, not general constants.
7909 (rs6000_expand_vector_init): Ditto.
7911 2014-07-23 Nathan Sidwell <nathan@acm.org>
7913 * gcov-tool.c (gcov_list): Declare here.
7914 (set_gcov_list): Remove.
7915 (gcov_output_files): Set gcov_list directly.
7917 2014-07-23 Host Schirmeier <horst@schirmeier.com>
7919 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
7921 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7923 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
7924 callee-saved registers are available for padding purpose
7925 and r3 is not mandatory, then prefer use those callee-saved
7928 2014-07-23 Richard Biener <rguenther@suse.de>
7930 * params.def (PARAM_MAX_COMBINE_INSNS): New.
7931 * combine.c: Include statistics.h and params.h.
7932 (combine_instructions): Guard three and four insn combines
7933 with max-combine-insns value. Record statistics for combines
7935 * doc/invoke.texi (max-combine-insns): Document new param.
7937 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7939 * graphite-isl-ast-to-gimple.c:
7940 (translate_isl_ast_node_block): New function.
7941 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
7943 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
7944 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
7946 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7948 * graphite-isl-ast-to-gimple.c:
7949 (get_max_schedule_dimensions): New function.
7950 (extend_schedule): Likewise.
7951 (generate_isl_schedule): Add calling of extend_schedule and
7952 get_max_schedule_dimensions.
7954 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7956 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
7957 (case UNSPEC): Handle UNSPEC_RBIT.
7959 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7961 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
7962 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
7964 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7966 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
7968 2014-07-22 Roman Gareev <gareevroman@gmail.com>
7970 * graphite-isl-ast-to-gimple.c:
7971 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
7973 (build_iv_mapping): New function.
7974 (translate_isl_ast_node_user): Likewise.
7975 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
7977 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
7978 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
7979 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
7981 2014-07-21 Bin Cheng <bin.cheng@arm.com>
7984 * config/arm/arm.md (setmem): New pattern.
7985 * config/arm/arm-protos.h (struct tune_params): New fields.
7986 (arm_gen_setmem): New prototype.
7987 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7988 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7989 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7990 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7991 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7992 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7993 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7994 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7995 (arm_const_inline_cost): New function.
7996 (arm_block_set_max_insns): New function.
7997 (arm_block_set_non_vect_profit_p): New function.
7998 (arm_block_set_vect_profit_p): New function.
7999 (arm_block_set_unaligned_vect): New function.
8000 (arm_block_set_aligned_vect): New function.
8001 (arm_block_set_unaligned_non_vect): New function.
8002 (arm_block_set_aligned_non_vect): New function.
8003 (arm_block_set_vect, arm_gen_setmem): New functions.
8005 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8007 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8009 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8012 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8013 out of #ifdef __OPTIMIZE__.
8015 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8017 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8018 different trapping status if -fnon-call-exceptions is enabled.
8020 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8022 * expr.c (store_field): Handle VOIDmode for calls that return values
8023 in multiple locations.
8025 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8027 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8028 (altivec_vsldoi_<mode>): Likewise.
8030 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8032 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8033 to the number of characters in the line.
8035 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8037 * graphite-isl-ast-to-gimple.c: Add using of
8038 build_nonstandard_integer_type instead of int128_integer_type_node.
8040 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8042 * toplev.c (output_stack_usage): Adjust the location of the warning.
8044 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8046 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8047 (*membar_storeload): Disable for LEON3.
8049 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8051 PR rtl-optimization/61461
8052 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8054 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8057 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8058 Fix instruction constraint.
8059 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8061 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8063 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8065 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8067 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8068 GNU coding standards.
8069 (nds32_register_move_cost): Likewise.
8070 (nds32_memory_move_cost): Likewise.
8071 (nds32_address_cost): Likewise.
8073 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8075 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8077 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8079 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8080 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8081 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8082 (HAVE_sync_compare_and_swapqi): Define.
8083 (HAVE_sync_compare_and_swaphi): Likewise.
8084 (HAVE_sync_compare_and_swapsi): Likewise.
8086 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8088 * config/mips/p5600.md: Add missing cpu tests.
8090 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8092 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8093 (vmla_f64): Likewise.
8094 (vfms_f64): Likewise.
8095 (vmls_f64): Likewise.
8097 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8099 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8100 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8102 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8104 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8105 (vmlal_high_lane_s32): Likewise.
8106 (vmlal_high_lane_u16): Likewise.
8107 (vmlal_high_lane_u32): Likewise.
8108 (vmlsl_high_lane_s16): Likewise.
8109 (vmlsl_high_lane_s32): Likewise.
8110 (vmlsl_high_lane_u16): Likewise.
8111 (vmlsl_high_lane_u32): Likewise.
8113 2014-07-17 Terry Guo <terry.guo@arm.com>
8115 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8116 (alus_reg): Renamed to alus_sreg.
8117 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8118 from alu_reg to alu_sreg. Change type of dsp instructions from
8119 alu_reg to alu_dsp_reg.
8120 * config/arm/thumb1.md: Likewise.
8121 * config/arm/thumb2.md: Likewise.
8122 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8123 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8124 with alu_sreg and alus_sreg.
8125 * config/arm/arm1026ejs.md (alu_op): Likewise.
8126 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8127 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8128 * config/arm/fa526.md (526_alu_op): Likewise.
8129 * config/arm/fa606te.md (606te_alu_op): Likewise.
8130 * config/arm/fa626te.md (626te_alu_op): Likewise.
8131 * config/arm/fa726te.md (726te_alu_op): Likewise.
8132 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8133 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8134 alu_sreg, alu_dsp_reg and alus_sreg.
8135 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8136 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8137 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8138 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8139 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8140 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8141 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8142 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8143 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8144 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8145 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8146 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8147 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8148 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8149 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8150 alus_reg to alus_sreg.
8152 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8154 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8157 2014-07-17 Richard Biener <rguenther@suse.de>
8159 PR rtl-optimization/61801
8160 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8161 don't set reg_pending_barrier if it appears in a debug-insn.
8163 2014-07-16 DJ Delorie <dj@redhat.com>
8165 * config/rx/rx.c (rx_option_override): Fix alignment values.
8166 (rx_align_for_label): Likewise.
8168 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8171 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8172 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8173 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8175 (cris_print_index, cris_print_operand, cris_constant_index_p)
8176 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8177 (cris_address_cost): Ditto last CONSTANT_P.
8178 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8179 callers changed. Yield cris_offsettable_symbol for non-PIC
8180 constant symbolic expressions including labels. Yield cris_unspec
8182 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8183 target to pic_offset_table_rtx for calls that will likely go
8184 through PLT, const0_rtx when they can't. All callers changed.
8185 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8186 symbolic expressions to be PICified. Remove second, redundant,
8187 assert on can_create_pseudo_p returning non-zero. Use
8188 replace_equiv_address_nv, not replace_equiv_address, for final
8190 * config/cris/cris.md ("movsi"): Move variable t to pattern
8191 toplevel. Adjust assert for new cris_symbol_type member. Use
8192 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8193 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8195 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8196 ("call", "call_value"): Use second incoming operand as a marker
8197 for pic-offset-table-register being used.
8198 ("*expanded_call_non_v32", "*expanded_call_v32")
8199 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8200 second incoming operand to CALL, match cris_call_type_marker.
8201 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8202 ("*expanded_call_side"): Ditto. Fix typo in comment.
8203 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8205 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8206 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8207 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8208 users changed. Add members cris_offsettable_symbol and cris_unspec.
8209 (cris_symbol_type): Rename from cris_pic_symbol_type.
8210 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8212 * config/cris/cris-protos.h (cris_symbol_type_of,
8213 cris_expand_pic_call_address): Adjust prototypes.
8214 (cris_legitimate_constant_p): New prototype.
8216 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8217 an existing tmake_file. Don't add t-slibgcc and t-linux.
8219 2014-07-17 Jason Merrill <jason@redhat.com>
8222 * symtab.c (symtab_remove_from_same_comdat_group): Also
8223 set_comdat_group to NULL_TREE.
8224 (verify_symtab): Fix diagnostic.
8226 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8229 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8231 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8233 Support location tracking for built-in macro tokens
8234 * input.h (is_location_from_builtin_token): New function declaration.
8235 * input.c (is_location_from_builtin_token): New function definition.
8236 * toplev.c (general_init): Tell libcpp what the pre-defined
8237 spelling location for built-in tokens is.
8239 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8241 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8242 on the FUNCTION_DECL.
8244 2014-07-16 Richard Biener <rguenther@suse.de>
8247 * doc/extend.texi (always_inline): Clarify.
8249 2014-07-15 Eric Christopher <echristo@gmail.com>
8251 * doc/invoke.texi (Link Options): Document -z option.
8253 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8255 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8256 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8258 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8260 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8262 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8264 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8265 varpool_assemble_decl.
8266 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8269 2014-07-15 Michael Matz <matz@suse.de>
8271 PR rtl-optimization/61772
8272 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8274 2014-07-15 Richard Biener <rguenther@suse.de>
8276 * opts.c (default_options_table): Disable bit-ccp at -Og.
8278 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8280 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8282 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8284 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8285 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8286 call langhook for unknown declaration.
8287 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8288 * tree.h (DECL_ARGUMENTS): Update.
8289 * print-tree.c (print_node): Update.
8290 * tree-core.h (tree_decl_non_common): Remove arguments.
8291 (tree_function_decl): Add arguments.
8293 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8295 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8297 2014-07-14 Richard Biener <rguenther@suse.de>
8299 PR tree-optimization/61779
8300 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8301 simplifying a condition.
8303 2014-07-14 Richard Biener <rguenther@suse.de>
8305 * builtins.c (c_strlen): Make only_value == 2 really only
8306 affect warning generation.
8308 2014-07-14 Richard Biener <rguenther@suse.de>
8310 PR tree-optimization/61757
8311 PR tree-optimization/61783
8312 PR tree-optimization/61787
8313 * tree-ssa-dom.c (record_equality): Revert canonicalization
8314 change and add comment.
8315 (propagate_rhs_into_lhs): Revert previous fix, removing
8316 loop depth restriction again.
8318 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8320 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8321 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8322 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8323 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8324 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8325 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8326 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8328 2014-07-14 Richard Biener <rguenther@suse.de>
8330 * cgraph.h (decl_in_symtab_p): Make inline.
8332 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8335 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8338 * config/i386/i386.c (classify_argument): Don't merge classes above
8341 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8343 * cgraph.h (symtab_node): Add nonzero_address.
8344 (decl_in_symtab_p): Break out from ...
8345 (symtab_get_node): ... here.
8346 * fold-const.c: Include cgraph.h
8347 (tree_single_nonzero_warnv_p): Use symtab to determine
8348 if symbol is non-zero.
8349 * symtab.c (symtab_node::nonzero_address): New method.
8351 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8353 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8354 forgotten in previous commit.
8356 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8358 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8360 * ipa-devirt.c: Include stor-layout.h and intl.h
8361 (odr_subtypes_equivalent_p): New function.
8362 (warn_odr): New function.
8363 (warn_type_mismatch): New function.
8364 (odr_types_equivalent_p): New function.
8365 (add_type_duplicate): Use it.
8366 * common.opt (Wodr): New flag.
8367 * doc/invoke.texi (Wodr): Document new warning.
8369 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8371 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8372 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8373 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8374 (varpool_get_constructor): Push CTORS_IN timevar.
8375 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8377 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8379 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8380 Remove VOID_FTYPE_PUSHORT.
8381 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8382 Change code to USHORT_FTYPE_VOID.
8383 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8384 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8385 (ix86_atomic_assign_expand_fenv): Update for
8386 __builtin_ia32_fnstsw changes.
8387 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8388 (fnstsw): Change operand 0 to nonimmediate operand.
8390 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8392 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8393 (varpool_get_constructor): New function.
8394 (varpool_ctor_useable_for_folding_p): Break out from ...
8395 (ctor_for_folding): ... here; use varpool_get_constructor.
8396 (varpool_assemble_decl): Likewise.
8397 * lto-streamer.h (struct output_block): Turn cgraph_node
8399 (lto_input_variable_constructor): Declare.
8400 * ipa-visibility.c (function_and_variable_visibility): Use
8401 varpool_get_constructor.
8402 * cgraph.h (varpool_get_constructor): Declare.
8403 (varpool_ctor_useable_for_folding_p): New function.
8404 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
8405 parameter; return error_mark_node for non-trivial constructors.
8406 (lto_write_tree_1, DFS_write_tree): Update use of
8407 get_symbol_initial_value.
8408 (output_function): Update initialization of symbol.
8409 (output_constructor): New function.
8410 (copy_function): Rename to ..
8411 (copy_function_or_variable): ... this one; handle vars too.
8412 (lto_output): Output variable sections.
8413 * lto-streamer-in.c (input_constructor): New function.
8414 (lto_read_body): Rename from ...
8415 (lto_read_body_or_constructor): ... this one; handle vars too.
8416 (lto_input_variable_constructor): New function.
8417 * ipa-prop.c (ipa_prop_write_jump_functions,
8418 ipa_prop_write_all_agg_replacement): Update.
8419 * lto-cgraph.c (compute_ltrans_boundary): Use it.
8420 (output_cgraph_opt_summary): Set symbol to NULL.
8422 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8424 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
8425 non-polymorphic types.
8426 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
8427 * ipa-devirt.c (types_same_for_odr): Do not explode when one
8428 of types is not polymorphic.
8430 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
8432 * lra-constraints.c (remove_inheritance_pseudos): Process
8433 destination pseudo too.
8435 2014-07-11 Rong Xu <xur@google.com>
8437 * gcov-tool.c (gcov_output_files): Fix build error introduced in
8440 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8442 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
8443 * config/avr/avr-devices.c (AVR_MCU): Same.
8444 (avr_mcu_types): add text start value to end of device list.
8445 * config/avr/avr-mcus.def: Add text section start for all devices.
8446 (ata5782): Add new avr5 device.
8448 * config/avr/avr-tables.opt: Regenerate.
8449 * config/avr/avr.h: Add declaration for text section start handler.
8450 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
8452 (LINK_SPEC): Include text section start handler to linker spec.
8453 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
8454 pass -Ttext option to linker if the text section start for the device
8456 * config/avr/t-multilib: Regenerate.
8457 * doc/avr-mmcu.texi: Regenerate.
8459 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
8461 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
8462 * config/rs6000/aix52.h (LINK_SPEC): Same.
8463 * config/rs6000/aix53.h (LINK_SPEC): Same.
8464 * config/rs6000/aix61.h (LINK_SPEC): Same.
8465 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
8467 2014-07-11 Roman Gareev <gareevroman@gmail.com>
8469 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
8470 (graphite_verify): New function.
8471 (ivs_params_clear): New function.
8472 (gcc_expression_from_isl_ast_expr_id): New function.
8473 (gcc_expression_from_isl_expr_int): New function.
8474 (binary_op_to_tree): New function.
8475 (ternary_op_to_tree): New function.
8476 (unary_op_to_tree): New function.
8477 (nary_op_to_tree): New function.
8478 (gcc_expression_from_isl_expr_op): New function.
8479 (gcc_expression_from_isl_expression): New function.
8480 (graphite_create_new_loop): New function.
8481 (translate_isl_ast_for_loop): New function.
8482 (get_upper_bound): New function.
8483 (graphite_create_new_loop_guard): New function.
8484 (translate_isl_ast_node_for): New function.
8485 (translate_isl_ast): New function.
8486 (add_parameters_to_ivs_params): New function.
8487 (scop_to_isl_ast): New parameter ip.
8488 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
8490 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8492 * config/xtensa/predicates.md (call expander): Update for
8493 DECL_SECTION_NAME being string.
8495 2014-07-11 Richard Biener <rguenther@suse.de>
8498 * builtins.c (fold_builtin_memory_op): Inline memory moves that
8499 can be implemented with a single load followed by a single store.
8500 (c_strlen): Only warn when only_value is not 2.
8502 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
8504 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
8506 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
8509 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
8510 (*movhi_bytes): Likewise.
8511 (*arm_movqi_insn): Likewise.
8513 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
8516 * config/alpha/alpha.c: Include tree-pass.h, context.h
8518 (pass_data_handle_trap_shadows): New pass.
8519 (pass_handle_trap_shadows::gate): New pass gate function.
8520 (make_pass_handle_trap_shadows): New function.
8521 (rest_of_handle_trap_shadows): Ditto.
8523 (alpha_align_insns_1): Rename from alpha_align_insns.
8524 (pass_data_align_insns): New pass.
8525 (pass_align_insns::gate): New pass gate function.
8526 (make_pass_aling_insns): New function.
8527 (rest_of_align_insns): Ditto.
8528 (alpha_align_insns): Ditto.
8530 (alpha_option_override): Declare handle_trap_shadows info
8531 and align_insns_info. Register handle_trap_shadows and align_insns
8533 (alpha_reorg): Do not call alpha_trap_shadows and
8534 alpha_align_insn from here.
8536 (alpha_pad_function_end): Do not skip BARRIERs.
8538 2014-07-10 Rong Xu <xur@google.com>
8540 Add gcov-tool: an offline gcda profile processing tool support.
8541 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
8542 (gcov_is_error): Ditto.
8543 (gcov_read_string): Ditto.
8544 (gcov_read_sync): Ditto.
8545 * gcov-io.h: Move counter defines to gcov-counter.def.
8546 * gcov-dump.c (tag_counters): Use gcov-counter.def.
8547 * coverage.c: Ditto.
8548 * gcov-tool.c: Offline gcda profile processing tool.
8549 (unlink_gcda_file): Remove one gcda file.
8550 (unlink_profile_dir): Remove gcda files from the profile path.
8551 (gcov_output_files): Output gcda files to an output dir.
8552 (profile_merge): Merge two profiles in directory.
8553 (print_merge_usage_message): Print merge usage.
8554 (merge_usage): Print merge usage and exit.
8555 (do_merge): Driver for profile merge sub-command.
8556 (profile_rewrite): Rewrite profile.
8557 (print_rewrite_usage_message): Print rewrite usage.
8558 (rewrite_usage): Print rewrite usage and exit.
8559 (do_rewrite): Driver for profile rewrite sub-command.
8560 (print_usage): Print gcov-info usage and exit.
8561 (print_version): Print gcov-info version.
8562 (process_args): Process arguments.
8563 (main): Main routine for gcov-tool.
8564 * Makefile.in: Build and install gcov-tool.
8565 * gcov-counter.def: New file split from gcov-io.h.
8566 * doc/gcc.texi: Include gcov-tool.texi.
8567 * doc/gcov-tool.texi: Document for gcov-tool.
8569 2014-07-10 Richard Biener <rguenther@suse.de>
8571 PR tree-optimization/61757
8572 * tree-ssa-dom.c (loop_depth_of_name): Restore.
8573 (propagate_rhs_into_lhs): Revert part of last change.
8575 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
8577 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
8580 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
8583 * function.c (allocate_struct_function): Revert r188667 change.
8585 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
8587 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
8589 * doc/install.texi: Remove links to defunct package providers for
8592 2014-07-09 Tom de Vries <tom@codesourcery.com>
8594 * final.c (get_call_fndecl): Declare.
8595 (self_recursive_call_p): New function.
8596 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
8598 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8600 * ipa-devirt.c (record_node): Walk through aliases.
8602 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8604 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
8606 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8609 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
8611 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8613 * ipa-visibility.c (function_and_variable_visibility): Remove
8614 temporary hack disabling local aliases on AIX.
8616 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8618 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
8619 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
8621 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8623 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
8624 * rs6000/rs6000.c: Inline output of .set instruction.
8625 (declare_alias_data): New struct.
8626 (rs6000_declare_alias): New function.
8627 (rs6000_xcoff_declare_function_name): Use it.
8628 (rs6000_xcoff_declare_object_name): New function.
8629 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
8630 (ASM_OUTPUT_DEF): Turn to empty definition.
8632 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8635 * hash-table.h: use hash_table::value_type instead of
8636 Descriptor::value_type in the return types of several methods.
8638 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8640 * tree-pass.h (pass_data): Remove has_execute member.
8641 * passes.c (execute_one_pass): Don't check pass->has_execute.
8642 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
8643 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
8644 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
8645 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
8646 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
8647 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
8648 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
8649 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
8650 gimple-low.c, gimple-ssa-isolate-paths.c,
8651 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
8652 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
8653 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
8654 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
8655 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8656 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
8657 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
8658 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
8659 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
8660 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
8661 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
8662 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
8663 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8664 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8665 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8666 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
8667 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
8668 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8669 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8670 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
8671 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
8672 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
8673 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
8674 web.c: Remove initializer for pass_data::has_execute.
8676 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8678 * graphite-htab.h: Use hash_map instead of hash_table.
8679 * graphite-clast-to-gimple.c: Adjust.
8680 * passes.c: Use hash_map instead of hash_table.
8682 * sese.h: Remove now unused code.
8684 2014-07-08 Sriraman Tallam <tmsriram@google.com>
8687 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
8690 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8692 PR rtl-optimization/61673
8693 * combine.c (simplify_comparison): Test just mode's sign bit
8694 in tmode rather than the sign bit and any bits above it.
8696 2014-07-08 Roman Gareev <gareevroman@gmail.com>
8698 * graphite-isl-ast-to-gimple.c (generate_isl_context):
8699 Add __isl_give to the declaration.
8700 (generate_isl_schedule): Likewise.
8701 (scop_to_isl_ast): Likewise.
8703 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8705 * config/arm/arm.c (cortexa5_extra_costs): New table.
8706 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
8708 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8710 PR tree-optimization/61725
8711 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
8712 range, use range_includes_zerop_p instead of integer_zerop on
8713 vr0->min, only use log2 of max if min is not negative.
8715 2014-07-08 Richard Biener <rguenther@suse.de>
8717 * tree-ssa-dom.h (loop_depth_of_name): Remove.
8718 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
8719 restriction on loop depth difference.
8720 (record_equality): Likewise.
8721 (propagate_rhs_into_lhs): Likewise. Simplify condition.
8722 (loop_depth_of_name): Remove.
8723 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
8724 restriction on loop depth difference.
8725 (init_copy_prop): Likewise.
8727 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8729 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
8731 (walk_aliased_vdefs): Likewise.
8732 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
8733 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
8734 (detect_type_change_from_memory_writes): Check if entry was reached.
8736 2014-07-08 Richard Biener <rguenther@suse.de>
8738 PR tree-optimization/61681
8739 * tree-ssa-structalias.c (find_what_var_points_to): Expand
8740 NONLOCAL inside ESCAPED.
8742 2014-07-08 Richard Biener <rguenther@suse.de>
8744 PR tree-optimization/61680
8745 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8746 Handle properly all read-write dependences with group accesses.
8748 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8750 PR tree-optimization/61576
8751 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
8752 block containing reduction statement is predecessor of phi basi block.
8754 2014-07-08 Marek Polacek <polacek@redhat.com>
8757 * fold-const.c (round_up_loc): Change the parameter type.
8759 * fold-const.h (round_up_loc): Adjust declaration.
8760 * stor-layout.c (finalize_record_size): Check for too large types.
8762 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
8764 * symtab.c: Include calls.h.
8765 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
8767 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
8769 * config/rs6000/rs6000.c (output_vec_const_move): Handle
8770 little-endian code generation.
8771 * config/rs6000/spe.md (spe_evmergehi): Rename to...
8772 (vec_perm00_v2si): ... this. Handle little-endian code generation.
8773 (spe_evmergehilo): Rename to...
8774 (vec_perm01_v2si): ... this. Handle little-endian code generation.
8775 (spe_evmergelo): Rename to...
8776 (vec_perm11_v2si): ... this. Handle little-endian code generation.
8777 (spe_evmergelohi): Rename to...
8778 (vec_perm10_v2si): ... this. Handle little-endian code generation.
8779 (spe_evmergehi, spe_evmergehilo): New expanders.
8780 (spe_evmergelo, spe_evmergelohi): Likewise.
8781 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
8782 (*frob_tf_ti): Likewise.
8783 (*frob_<mode>_di_2): Likewise.
8784 (*frob_tf_di_8_2): Likewise.
8785 (*frob_di_<mode>): Likewise.
8786 (*frob_ti_tf): Likewise.
8787 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
8788 (*frob_ti_<mode>_8_2): Likewise.
8789 (*frob_ti_tf_2): Likewise.
8790 (mov_si<mode>_e500_subreg0): Rename to...
8791 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
8793 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
8794 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
8795 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
8796 the big endianness only.
8797 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
8798 (*mov_si<mode>_e500_subreg0_2): Rename to...
8799 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
8800 big big endianness only.
8801 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
8802 (*mov_si<mode>_e500_subreg4): Rename to...
8803 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
8805 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
8806 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
8807 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
8808 the big endianness only.
8809 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
8811 (*mov_si<mode>_e500_subreg4_2): Rename to...
8812 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
8814 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
8815 (*mov_sitf_e500_subreg8): Rename to...
8816 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
8818 (*mov_sitf_e500_subreg8_le): New instruction pattern.
8819 (*mov_sitf_e500_subreg8_2): Rename to...
8820 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
8822 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
8823 (*mov_sitf_e500_subreg12): Rename to...
8824 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
8826 (*mov_sitf_e500_subreg12_le): New instruction pattern.
8827 (*mov_sitf_e500_subreg12_2): Rename to...
8828 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
8830 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
8832 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
8834 * asan.c (instrument_strlen_call): Do not instrument first byte
8835 in strlen if already instrumented.
8837 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8839 * config/arm/arm.opt (mwords-little-endian): Delete.
8840 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
8841 of TARGET_LITTLE_WORDS.
8842 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
8843 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
8845 * doc/invoke.texi: Remove references to -mwords-little-endian.
8847 2014-07-07 Jakub Jelinek <jakub@redhat.com>
8849 * expmed.c (struct init_expmed_rtl): Change all fields but
8850 pow2 and cint from struct rtx_def to rtx.
8851 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
8852 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
8855 2014-07-06 Marek Polacek <polacek@redhat.com>
8858 * doc/invoke.texi: Document -Wsizeof-array-argument.
8860 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
8862 * wide-int.h (wide_int_storage): Change declaration from struct
8865 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
8867 * cgraph.c (cgraph_create_indirect_edge): Update call of
8868 get_polymorphic_call_info.
8869 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
8870 (possible_polymorphic_call_targets): Add parameter call.
8871 (decl_maybe_in_construction_p): New predicate.
8872 (get_polymorphic_call_info): Add parameter call;
8873 use decl_maybe_in_construction_p.
8874 * gimple-fold.c (fold_gimple_assign): Update use of
8875 possible_polymorphic_call_targets.
8876 (gimple_fold_call): Likewise.
8877 * ipa-prop.c: Inlcude calls.h
8878 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
8879 (param_type_may_change_p): New predicate.
8880 (detect_type_change_from_memory_writes): Break out from ...
8881 (detect_type_change): ... this one; use param_type_may_change_p.
8882 (detect_type_change_ssa): Use param_type_may_change_p.
8883 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
8885 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
8888 * config/arm/arm-protos.h (arm_legitimate_address_p,
8889 arm_is_constant_pool_ref): Add prototypes.
8890 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
8891 (arm_is_constant_pool_ref) New function.
8892 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
8893 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
8894 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
8895 operand. Remove pool_range and neg_pool_range attributes.
8896 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
8897 pool_range and neg_pool_range attributes.
8898 * config/arm/constraints.md (Uh): New constraint.
8899 (Uq): Don't allow constant pool references.
8901 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
8903 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
8904 (move_lo_quad_internal_be_<mode>): Likewise.
8905 (move_lo_quad_<mode>): Convert to define_expand.
8906 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
8907 (aarch64_simd_move_hi_quad_be_<mode>): New.
8908 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
8909 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
8910 (aarch64_combinez_be<mode>): New.
8911 (aarch64_combine<mode>): Convert to define_expand.
8912 (aarch64_combine_internal<mode>): New.
8913 (aarch64_simd_combine<mode>): Remove bogus RTL description.
8915 2014-07-04 Tom de Vries <tom@codesourcery.com>
8917 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
8918 combination of earlyclobber and read/write modifiers.
8920 2014-07-04 Tom de Vries <tom@codesourcery.com>
8922 * config/aarch64/aarch64-simd.md
8923 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
8925 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
8928 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
8930 2014-07-04 Jakub Jelinek <jakub@redhat.com>
8933 * cgraphunit.c (expand_thunk): Call free_dominance_info.
8935 PR tree-optimization/61684
8936 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
8937 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
8939 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8940 Kito Cheng <kito@0xlab.org>
8941 Monk Chiang <sh.chiang04@gmail.com>
8943 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
8944 (nds32_symbol_load_store_p): Move to ...
8945 (nds32_fp_as_gp_check_available): Move to ...
8946 * config/nds32/nds32-fp-as-gp.c: ... here.
8947 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
8950 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8951 Kito Cheng <kito@0xlab.org>
8952 Monk Chiang <sh.chiang04@gmail.com>
8954 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
8955 (nds32_expand_store_multiple): Move to ...
8956 (nds32_expand_movmemqi): Move to ...
8957 * config/nds32/nds32-memory-manipulation.c: ... here.
8959 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8960 Kito Cheng <kito@0xlab.org>
8961 Monk Chiang <sh.chiang04@gmail.com>
8963 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
8964 (nds32_output_casesi_pc_relative): Move to ...
8965 (nds32_output_casesi): Move to ...
8966 (nds32_mem_format): Move to ...
8967 (nds32_output_16bit_store): Move to ...
8968 (nds32_output_16bit_load): Move to ...
8969 (nds32_output_32bit_store): Move to ...
8970 (nds32_output_32bit_load): Move to ...
8971 (nds32_output_32bit_load_s): Move to ...
8972 (nds32_output_stack_push): Move to ...
8973 (nds32_output_stack_pop): Move to ...
8974 * config/nds32/nds32-md-auxiliary.c: ... here.
8976 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8977 Ling-Hua Tseng <uranus@tinlans.org>
8979 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
8980 the purpose of this file.
8982 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8983 Kito Cheng <kito@0xlab.org>
8984 Monk Chiang <sh.chiang04@gmail.com>
8986 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
8987 (nds32_address_cost): Move implementation to ...
8988 * config/nds32/nds32-cost.c: ... here.
8989 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
8990 (nds32_address_cost_impl): Declare.
8992 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8993 Kito Cheng <kito@0xlab.org>
8994 Monk Chiang <sh.chiang04@gmail.com>
8996 * config/nds32/nds32.c
8997 (nds32_consecutive_registers_load_store_p): Move to ...
8998 (nds32_valid_multiple_load_store): Move to ...
8999 (nds32_valid_stack_push_pop): Move to ...
9000 (nds32_can_use_bclr_p): Move to ...
9001 (nds32_can_use_bset_p): Move to ...
9002 (nds32_can_use_btgl_p): Move to ...
9003 (nds32_can_use_bitci_p): Move to ...
9004 * config/nds32/nds32-predicates.c: ... here.
9006 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9007 Kito Cheng <kito@0xlab.org>
9008 Monk Chiang <sh.chiang04@gmail.com>
9010 * config/nds32/nds32.c
9011 (nds32_expand_builtin_null_ftype_reg): Move to ...
9012 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9013 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9014 (nds32_init_builtins): Move implementation to ...
9015 (nds32_expand_builtin): Move implementation to ...
9016 * config/nds32/nds32-intrinsic.c: ... here.
9017 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9018 (nds32_expand_builtin_impl): Declare.
9020 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9021 Kito Cheng <kito@0xlab.org>
9022 Monk Chiang <sh.chiang04@gmail.com>
9024 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9025 (nds32_emit_section_tail_template): Move to ...
9026 (nds32_emit_isr_jmptbl_section): Move to ...
9027 (nds32_emit_isr_vector_section): Move to ...
9028 (nds32_emit_isr_reset_conten): Move to ...
9029 (nds32_check_isr_attrs_conflict): Move to ...
9030 (nds32_construct_isr_vectors_information): Move to ...
9031 (nds32_asm_file_start): Move implementation to ...
9032 (nds32_asm_file_end): Move implementation to ...
9033 * config/nds32/nds32-isr.c: ... here.
9034 * config/nds32/nds32-protos.h
9035 (nds32_check_isr_attrs_conflict): Declare.
9036 (nds32_construct_isr_vectors_information): Declare.
9037 (nds32_asm_file_start_for_isr): Declare.
9038 (nds32_asm_file_end_for_isr): Declare.
9040 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9041 Kito Cheng <kito@0xlab.org>
9042 Monk Chiang <sh.chiang04@gmail.com>
9044 * config.gcc (nds32*): Add new modules to extra_objs.
9045 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9046 (nds32be-*-*): Likewise.
9047 * config/nds32/nds32-cost.c: New file.
9048 * config/nds32/nds32-fp-as-gp.c: New file.
9049 * config/nds32/nds32-intrinsic.c: New file.
9050 * config/nds32/nds32-isr.c: New file.
9051 * config/nds32/nds32-md-auxiliary.c: New file.
9052 * config/nds32/nds32-memory-manipulation.c: New file.
9053 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9054 * config/nds32/nds32-predicates.c: New file.
9055 * config/nds32/t-nds32: New file.
9057 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9059 PR tree-optimization/61682
9060 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9061 using cases and when one of the operands is equal to 1.
9063 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9065 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9066 ashr<mode>3): Correct mode of operands[2].
9067 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9068 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9069 Correct mode of operands[2]. Fix split condition.
9071 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9073 * arm.md (arch): Add armv6_or_vfpv3.
9074 (arch_enabled): Add test for the above.
9075 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9077 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9079 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9081 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9082 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9083 HWI 1 and negate the unsigned value.
9084 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9085 use AND instead of shift.
9086 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9088 2014-07-03 Marek Polacek <polacek@redhat.com>
9090 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9091 (-fsanitize=float-divide-by-zero): Move to the table with
9092 -fsanitize=undefined suboptions.
9093 (-fsanitize=float-cast-overflow): Likewise.
9095 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9097 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9098 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9101 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9103 * loop-invariant.c (struct invariant): Add a new member: eqno;
9104 (find_identical_invariants): Update eqno;
9105 (create_new_invariant): Init eqno;
9106 (get_inv_cost): Compute comp_cost with eqno;
9108 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9110 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9111 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9112 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9113 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9114 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9116 2014-07-02 Christian Bruel <christian.bruel@st.com>
9120 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9121 (make_preds_opaque): Delete.
9122 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9123 (commit_mode_sets): New function.
9124 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9125 Process all modes at once.
9126 * basic-block.h (pre_edge_lcm_avs): Declare.
9127 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9128 Call clear_aux_for_edges. Fix comments.
9129 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9130 (pre_edge_rev_lcm): Idem.
9131 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9133 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9134 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9136 * config/i386/i386.c (x96_emit_mode_set): Idem.
9137 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9138 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9139 (fpscr_toggle) Disallow from delay slot.
9140 * target.def (emit_mode_set): Add prev_mode parameter.
9141 * doc/tm.texi: Regenerate.
9143 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9145 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9148 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9150 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9151 vtable_pointer_value_to_vtable): Constify.
9152 (contains_polymorphic_type_p): Declare.
9153 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9154 vtable_pointer_value_to_vtable): Constify.
9155 (contains_polymorphic_type_p): New predicate.
9156 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9158 (ipa_set_ancestor_jf): Likewise.
9159 (detect_type_change): Return false in easy cases.
9160 (compute_complex_assign_jump_func): Require type to contain
9162 (compute_known_type_jump_func): Likewise.
9164 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9166 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9168 (type_in_anonymous_namespace_p): Constify argument.
9169 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9170 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9171 (main_odr_variant): New function.
9172 (hash_type_name): Make static; update assert; do not ICE on
9174 (types_same_for_odr): Bring here from tree.c; simplify and remove
9175 old structural comparing code that doesn't work for templates.
9176 (odr_hasher::equal): Update assert.
9177 (add_type_duplicate): Return true when bases should be computed;
9178 replace incomplete loader by complete; do not output duplicated
9179 warnings; do not ICE on non-records; set odr_violated flag.
9180 (get_odr_type): Be ready to replace incomplete type by complete
9181 one; work on ODR variants instead of main variants; reorder item
9182 in array so bases have still smaller indexes.
9183 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9184 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9186 2014-07-01 Cary Coutant <ccoutant@google.com>
9188 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9190 (resolve_addr_in_expr): When replacing the rtx in a location list
9191 entry, get a new address table entry.
9192 (dwarf2out_finish): Call index_location_lists even if there are no
9193 addr_index_table entries yet.
9195 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9197 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9198 change for not being obvious.
9200 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9202 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9205 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9207 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9208 (vcagt_f64): Likewise.
9209 (vcale_f64): Likewise.
9210 (vcaled_f64): Likewise.
9211 (vcales_f32): Likewise.
9212 (vcalt_f64): Likewise.
9213 (vcaltd_f64): Likewise.
9214 (vcalts_f32): Likewise.
9216 2014-07-01 Marek Polacek <polacek@redhat.com>
9218 * doc/invoke.texi: Document -Wint-conversion.
9220 2014-07-01 Marek Polacek <polacek@redhat.com>
9223 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9225 2014-07-01 Martin Liska <mliska@suse.cz>
9227 IPA REF alias refactoring
9228 * cgraph.h (iterate_direct_aliases): New function.
9229 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9230 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9231 FOR_EACH_ALIAS added.
9232 (cgraph_for_node_and_aliases): Likewise.
9233 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9234 * ipa-inline.c (reset_edge_caches): Likewise.
9235 (update_caller_keys): Likewise.
9236 * trans-mem.c (ipa_tm_execute): Likewise.
9237 *varpool.c (varpool_analyze_node): Likewise.
9238 (varpool_for_node_and_aliases): Likewise.
9239 * ipa-ref.h (first_alias): New function.
9240 (last_alias): Likewise.
9241 (has_aliases_p): Likewise.
9242 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9243 is sensitive to IPA_REF_ALIASes.
9244 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9245 are put at the beginning of the list.
9246 (symtab_node::iterate_direct_aliases): New function.
9248 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9251 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9253 (write_ts_type_common_tree_pointers): Do not stream fields not set
9254 for incomplete types; do not stream duplicated fields for variants;
9255 sanity check that variant and type match.
9256 (write_ts_type_non_common_tree_pointers): Likewise.
9257 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9258 TYPE_SIZE whether type is complete.
9259 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9260 write_ts_type_common_tree_pointers
9261 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9263 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9265 * var-tracking.c (add_stores): Return instead of asserting if old
9266 and new values for conditional store are the same.
9268 2014-06-30 Richard Henderson <rth@redhat.com>
9272 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9273 the cfg if there were any changes.
9274 * passes.def: Revert move of peephole2 after reorder_blocks;
9275 move duplicate_computed_gotos before peephole2.
9277 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9279 * except.c (emit_note_eh_region_end): New helper function.
9280 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9281 emit EH_REGION_END note.
9282 * jump.c (cleanup_barriers): Do not split a call and its
9283 corresponding CALL_ARG_LOCATION note.
9285 2014-06-30 Jeff Law <law@redhat.com>
9287 PR tree-optimization/61607
9288 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9289 deeper into the SSA_NAME_VALUE chain.
9291 2014-06-30 Marek Polacek <polacek@redhat.com>
9293 * convert.c (convert_to_integer): Don't instrument conversions if the
9294 function has no_sanitize_undefined attribute.
9295 * ubsan.c: Don't run the ubsan pass if the function has
9296 no_sanitize_undefined attribute.
9298 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9300 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9301 -fsanitize=undefined suboptions.
9303 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9305 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9306 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9307 against bigendian and adjust indices.
9309 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9311 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9313 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9316 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9317 Add alternative; make early clobber. Adjust both split patterns
9318 to use operand 0 as the working register.
9320 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9322 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9323 as ira_object_id_map might be NULL, or 1.
9325 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9327 * loop-invariant.c (get_inv_cost): Handle register class.
9328 (gain_for_invariant): Check the register pressure of the inv
9329 and its overlapped register class, other than all.
9331 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9333 * doc/invoke.texi (Optimize Options): Fix descriptions of
9334 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9336 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9338 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9341 2014-06-29 Tobias Grosser <tobias@grosser.es>
9344 * graphite-isl-ast-to-gimple.c: Add missing guards.
9346 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9348 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9349 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9350 * flag-types.h: Add new enum fgraphite_generator.
9351 * graphite-isl-ast-to-gimple.c: New.
9352 * graphite-isl-ast-to-gimple.h: New.
9353 * graphite.c (graphite_transform_loops): Add choice of Graphite
9354 code generator, which depends on flag_graphite_code_gen.
9356 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9358 * graphite-dependences.c (subtract_commutative_associative_deps):
9359 Add NULL checking of the following variables: must_raw_no_source,
9360 may_raw_no_source, must_war_no_source, may_war_no_source,
9361 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9362 must_war, may_war, must_waw, may_waw.
9364 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9366 * graphite-clast-to-gimple.c: gloog is renamed to
9367 graphite_regenerate_ast_cloog. gloog_error is renamed to
9368 graphite_regenerate_error.
9369 * graphite-clast-to-gimple.h: The definition of the struct
9370 bb_pbb_def is moved to graphite-htab.h.
9371 Add inclusion of the hash-table.h.
9372 * graphite-htab.h: The declaration of the function gloog is moved
9373 to graphite-clast-to-gimple.h and renamed to
9374 graphite_regenerate_ast_cloog.
9375 * graphite.c (graphite_transform_loops): gloog is renamed
9376 to graphite_regenerate_ast_cloog.
9378 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9380 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9382 (write_ts_type_common_tree_pointers): Do not stream fields not set
9383 for incomplete types; do not stream duplicated fields for variants;
9384 sanity check that variant and type match.
9385 (write_ts_type_non_common_tree_pointers): Likewise.
9386 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9387 TYPE_SIZE whether type is complete.
9388 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9389 write_ts_type_common_tree_pointers
9390 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9392 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9394 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9396 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9398 * tree-inline.c (remap_type_1): Do not duplicate fields
9399 that are shared in between type and its main variant.
9401 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9403 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
9405 (ipa_set_ancestor_jf) Likewise.
9406 (check_stmt_for_type_change): Check that we work on main variant.
9407 (detect_type_change): Look into main variant.
9408 (compute_known_type_jump_func): Check that main variant has BINFO.
9410 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9412 * ipa-devirt.c (set_type_binfo): New function.
9413 (add_type_duplicate): Use it.
9414 (get_odr_type): Sanity check that binfos points to main variants.
9415 (get_class_context): Be sure the context's outer_type is main variant.
9416 (contains_type_p): Walk main variant.
9417 (get_polymorphic_call_info_for_decl): Set outer_type to be
9419 (get_polymorphic_call_info): Likewise.
9420 (possible_polymorphic_call_targets): Sanity check that we operate
9423 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9425 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9427 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9429 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
9430 accidental change due to wide-int branch merge.
9432 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9434 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
9435 compressed debug support.
9436 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
9437 * configure: Regenerate.
9438 * config.in: Regenerate.
9439 * common.opt (compressed_debug_sections): New enum.
9440 (gz, gz=): New options.
9441 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
9442 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
9443 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
9444 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
9445 LINK_COMPRESS_DEBUG_SPEC.
9446 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
9447 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
9448 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
9449 (Debugging Options): Document -gz[=type].
9451 2014-06-27 Martin Jambor <mjambor@suse.cz>
9454 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
9455 args_to_skip, use those from node instead. Copy args_to_skip and
9456 combined_args_to_skip from node to the new thunk.
9457 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
9458 (cgraph_create_virtual_clone): Moved computation of
9459 combined_args_to_skip...
9460 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
9462 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
9464 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
9465 redundant diagnostic machinary.
9467 2014-06-27 Richard Biener <rguenther@suse.de>
9469 * tree-ssa-math-opts.c (bswap_replace): Fix
9470 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
9472 2014-06-27 Martin Liska <mliska@suse.cz>
9474 * gimple.h (gimple_location_safe): New function introduced.
9475 * cgraphunit.c (walk_polymorphic_call_targets): Usage
9476 of gimple_location_safe replaces gimple_location.
9477 (gimple_fold_call): Likewise.
9478 * ipa-devirt.c (ipa_devirt): Likewise.
9479 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9480 * ipa.c (walk_polymorphic_call_targets): Likewise.
9481 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9483 2014-06-27 Jakub Jelinek <jakub@redhat.com>
9485 PR tree-optimization/57233
9486 PR tree-optimization/61299
9487 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
9489 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
9490 would be lowered to scalar shifts, check if corresponding
9491 shifts and vector BIT_IOR_EXPR are supported and don't lower
9492 or lower just to narrower vector type in that case.
9493 * expmed.c (expand_shift_1): Fix up handling of vector
9496 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
9499 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
9501 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
9503 * doc/invoke.texi (-fsemantic-interposition): Document.
9504 * common.opt (fsemantic-interposition): New flag.
9505 * varasm.c (decl_replaceable_p): Use it.
9507 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9510 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
9511 extraction other than index 3.
9513 2014-06-26 Teresa Johnson <tejohnson@google.com>
9515 * doc/invoke.texi: Fix typo.
9516 * dumpfile.c: Add support for documented -fdump-* options
9517 optimized/missed/note/optall.
9519 2014-06-26 Martin Jambor <mjambor@suse.cz>
9521 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
9522 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
9523 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
9524 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
9525 * opts.c (default_options_optimization): Set
9526 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
9527 * doc/invoke.texi (allow-load-data-races)
9528 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
9529 (allow-store-data-races): Document the new default.
9531 2014-06-26 Martin Jambor <mjambor@suse.cz>
9533 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
9534 renamed to ipa_impossible_devirt_target. Fix typo.
9535 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
9536 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
9537 ipa_impossible_devirt_target.
9539 2014-06-26 Richard Biener <rguenther@suse.de>
9541 PR tree-optimization/61607
9542 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
9543 explaining why we restrict copies on loop depth.
9544 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9546 (record_equivalences_from_phis): Instead add it here.
9548 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
9550 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
9551 (LTO_WRAPPER_OBJS): New variable.
9552 (lto-wrapper$(exeext)): Use it.
9553 * collect2.c: Include "collect-utils.h".
9554 (verbose, debug): Remove variables.
9555 (at_file_supplied): No longer static.
9556 (tool_name): New variable.
9557 (do_wait, fork_execute, maybe_unlink): Don't declare.
9558 (tool_cleanup): No longer static.
9559 (notice): Remove function.
9560 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
9562 (collect_wait, do_wait, collect_execute): Remove functions.
9563 (maybe_unlink): No longer static.
9564 * collect2.h (verbose, debug): Don't declare.
9565 (at_file_supplied): Declare.
9566 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
9568 (collect_execute): Replace with implementation from collect2, plus a
9569 new arg use_atfile. All callers changed.
9570 (collect_wait): Replace with implementation from collect2.
9571 (maybe_unlink_file): Remove function.
9572 (fork_execute): Replace with implementation from collect2, plus a
9573 new arg use_atfile. All callers changed.
9574 (do_wait): Add call to utils_cleanup to the error path.
9575 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
9576 (tool_cleanup): Adjust declarations.
9577 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
9578 * tlink.c: Include "collect-utils.h".
9579 (tlink_execute): New arg use_atfile. All callers changed.
9580 (tlink_init, tlink_execute): Remove declarations.
9582 * collect-utils.c (save_temps): New variable.
9583 (do_wait): Use it instead of debug. Use fatal_error.
9584 * collect-utils.h (save_temps): Declare.
9585 * collect2.c (verbose): Rename from vflag. All uses changed.
9586 (tool_cleanup): New function, copied from collect_atexit.
9587 (collect_atexit, handler): Just call it.
9588 * collect2.h (verbose): Declaration renamed from vflag.
9589 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
9592 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
9593 (lto-wrapper$(exeext)): Link with collect-utils.o.
9594 * collect-utils.c: New file.
9595 * collect-utils.h: New file.
9596 * lto-wrapper.c: Include "collect-utils.h".
9597 (args_name): Delete variable.
9598 (tool_name): New variable.
9599 (tool_cleanup): New function.
9600 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
9601 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
9602 (fork_execute): Remove functions.
9604 2014-06-26 Nick Clifton <nickc@redhat.com>
9606 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
9608 * doc/extend.texi (Function Attributes): Fix typo in description
9609 of RX vector attribute.
9611 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9613 * config.gcc (supported_defaults): Error when passing either
9614 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
9616 2014-06-26 Richard Biener <rguenther@suse.de>
9618 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9619 propagating volatile pointers.
9621 2014-06-26 Richard Biener <rguenther@suse.de>
9623 PR tree-optimization/61607
9624 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
9625 loop if we redirected its latch edge.
9626 (thread_block_1): Do not cancel loops prematurely.
9628 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
9630 * toplev.c (backend_init_target): Move init_emit_regs and
9632 (backend_init) ... here; skip ira_init_once and backend_init_target.
9633 (target_reinit) ... and here; clear
9634 this_target_rtl->lang_dependent_initialized.
9635 (lang_dependent_init_target): Clear
9636 this_target_rtl->lang_dependent_initialized;
9637 break out rtl initialization to ...
9638 (initialize_rtl): ... here; call also backend_init_target
9640 * toplev.h (initialize_rtl): New function.
9641 * function.c: Include toplev.h
9642 (init_function_start): Call initialize_rtl.
9643 * rtl.h (target_rtl): Add target_specific_initialized,
9644 lang_dependent_initialized.
9646 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
9647 Jakub Jelinek <jakub@redhat.com>
9649 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
9651 2014-06-25 Tom de Vries <tom@codesourcery.com>
9653 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
9655 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
9657 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
9658 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
9659 Issue a strict overflow warning if appropriate.
9661 2014-06-25 Martin Liska <mliska@suse.cz>
9664 * Makefile.in: Removed header file (ipa-ref-inline.h).
9665 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
9667 (cgraph_speculative_call_info): Likewise.
9668 (cgraph_for_node_thunks_and_aliases): Likewise.
9669 (cgraph_for_node_and_aliases): Likewise.
9670 (verify_cgraph_node): Likewise.
9671 * cgraph.h: Batch of IPA REF functions become member functions of
9672 symtab_node: add_reference, maybe_add_reference, clone_references,
9673 clone_referring, clone_reference, find_reference,
9674 remove_stmt_references, remove_all_references,
9675 remove_all_referring, dump_references, dump_referring,
9676 has_alias_p, iterate_reference, iterate_referring.
9677 * cgraphbuild.c (record_reference): New IPA REF function used.
9678 (record_type_list): Likewise.
9679 (record_eh_tables): Likewise.
9680 (mark_address): Likewise.
9681 (mark_load): Likewise.
9682 (mark_store): Likewise.
9683 (pass_build_cgraph_edges): Likewise.
9684 (rebuild_cgraph_edge): Likewise.
9685 (cgraph_rebuild_references): Likewise.
9686 (pass_remove_cgraph_callee_edges): Likewise.
9687 * cgraphclones.c (cgraph_clone_node): Likewise.
9688 (cgraph_create_virtual_clone): Likewise.
9689 (cgraph_materialize_clone): Likewise.
9690 (cgraph_materialize_all_clones): Likewise.
9691 * cgraphunit.c (cgraph_reset_node): Likewise.
9692 (cgraph_reset_node): Likewise.
9693 (analyze_function): Likewise.
9694 (assemble_thunks_and_aliases): Likewise.
9695 (expand_function): Likewise.
9696 * ipa-comdats.c (propagate_comdat_group): Likewise.
9697 (enqueue_references): Likewise.
9698 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
9699 (create_specialized_node): Likewise.
9700 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
9701 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
9702 * ipa-inline.c (reset_edge_caches): Likewise.
9703 (update_caller_keys): Likewise.
9704 (execute): Likewise.
9705 * ipa-prop.c (remove_described_reference): Likewise.
9706 (propagate_controlled_uses): Likewise.
9707 (ipa_edge_duplication_hook): Likewise.
9708 (ipa_modify_call_arguments): Likewise.
9709 * ipa-pure-const.c (propagate_pure_const): Likewise.
9710 * ipa-ref-inline.h: Header file removed, functions moved
9711 to symtab_node class.
9712 * ipa-ref.c (remove_reference): New class member function.
9713 (cannot_lead_to_return): New class member function.
9714 (referring_ref_list): Likewise.
9715 (referred_ref_list): Likewise.
9716 Rest of functions moved to symtab_node class.
9717 * ipa-ref.h: New member functions remove_reference,
9718 cannot_lead_to_return, referring_ref_list, referred_ref_list added
9720 ipa_ref_list class has new member functions: first_reference,
9721 first_referring, clear, nreferences.
9722 * ipa-reference.c (analyze_function): New IPA REF function used.
9723 (write_node_summary_p): Likewise.
9724 (ipa_reference_write_optimization_summary): Likewise.
9725 * ipa-split.c (split_function): Likewise.
9726 * ipa-utils.c (ipa_reverse_postorder): Likewise.
9727 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
9728 (function_and_variable_visibility): Likewise.
9729 * ipa.c (has_addr_references_p): Likewise.
9730 (process_references): Argument type changed.
9731 (symtab_remove_unreachable_nodes): New IPA REF function used.
9732 (process_references): Likewise.
9733 (set_writeonly_bit): Likewise.
9734 * lto-cgraph.c: Implementation of new symtab_node member functions
9735 that uses new IPA REF functions.
9736 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
9738 * lto-streamer-out.c (output_symbol_p): Likewise.
9739 * lto-streamer.h (referenced_from_this_partition_p): Argument type
9741 * symtab.c: Implementation of new IPA REF API.
9742 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
9743 (ipa_tm_create_version): Likewise.
9744 (ipa_tm_execute): Likewise.
9745 * tree-emutls.c (gen_emutls_addr): Likewise.
9746 * tree-inline.c (copy_bb): Likewise.
9747 (delete_unreachable_blocks_update_callgraph): Likewise.
9748 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
9749 (varpool_for_node_and_aliases): Likewise.
9751 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9753 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
9755 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9758 * fold-const.c (fold_checksum_tree): Use a hash_table of const
9759 tree_node * instead of tree_node *.
9761 (print_fold_checksum): Likewise.
9762 (fold_check_failed): Likewise.
9763 (debug_fold_checksum): Likewise.
9764 (fold_build1_stat_loc): Likewise.
9765 (fold_build2_stat_loc): Likewise.
9766 (fold_build3_stat_loc): Likewise.
9767 (fold_build_call_array_loc): Likewise.
9769 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
9771 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
9772 implementation with call to...
9773 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
9775 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
9778 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
9780 PR tree-optimization/57742
9781 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
9782 after replacing the statement.
9784 2014-06-25 Nick Clifton <nickc@redhat.com>
9786 * config/v850/v850.c (GHS_default_section_names): Change to const
9788 (GHS_current_section_names): Likewise.
9789 (v850_insert_attributes): Do not build strings, just assign the
9790 names directly. Change the type of 'chosen_section' to const
9792 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
9793 directly to the array entry.
9794 * config/v850/v850.h (GHS_default_section_names): Change to const
9796 (GHS_current_section_names): Likewise.
9798 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9800 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
9801 (LANG_HOOKS_DECLS): Add it.
9802 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
9804 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
9805 * langhooks.h (struct lang_hooks_for_decls): Add
9806 omp_clause_linear_ctor hook.
9807 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
9808 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
9809 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
9810 combined simd loop use omp_clause_linear_ctor hook.
9812 2014-06-24 Cong Hou <congh@google.com>
9814 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
9815 pattern recognition.
9816 (type_conversion_p): PROMOTION is true if it's a type promotion
9817 conversion, and false otherwise. Return true if the given expression
9818 is a type conversion one.
9819 * tree-vectorizer.h: Adjust the number of patterns.
9820 * tree.def: Add SAD_EXPR.
9821 * optabs.def: Add sad_optab.
9822 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
9823 * expr.c (expand_expr_real_2): Likewise.
9824 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
9825 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9826 * optabs.c (optab_for_tree_code): Likewise.
9827 * tree-cfg.c (estimate_operator_cost): Likewise.
9828 * tree-ssa-operands.c (get_expr_operands): Likewise.
9829 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
9830 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
9831 * doc/generic.texi: Add document for SAD_EXPR.
9832 * doc/md.texi: Add document for ssad and usad.
9834 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9836 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
9837 qualification in cast.
9839 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
9841 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
9842 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
9843 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
9844 (tree_function_decl): ... here.
9845 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
9846 streaming of vindex to ...
9847 (write_ts_function_decl_tree_pointers): ... here.
9848 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
9849 Do not stream DECL_VINDEX.
9850 (lto_input_ts_function_decl_tree_pointers): Stream it here.
9852 2014-06-24 Catherine Moore <clm@codesourcery.com>
9853 Sandra Loosemore <sandra@codesourcery.com>
9855 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
9856 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
9857 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
9859 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9861 * doc/invoke.texi (Warning Options): Remove duplicated
9862 -Wmaybe-uninitialized.
9864 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9866 PR tree-optimization/57742
9867 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
9868 (handle_builtin_malloc, handle_builtin_memset): New functions.
9869 (strlen_optimize_stmt): Call them.
9870 * passes.def: Move strlen after loop+dom but before vrp.
9872 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9875 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
9876 model family 6 CPU with has_longmode never use a CPU without
9879 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
9882 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
9885 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9887 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
9888 * dominance.c (iterate_fix_dominators): Use hash_map instead of
9890 * hash-map.h: New file.
9891 * ipa-comdats.c: Use hash_map instead of pointer_map.
9893 * lto-section-out.c: Adjust.
9894 * lto-streamer.h: Replace pointer_map with hash_map.
9895 * symtab.c (verify_symtab): Likewise.
9896 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
9897 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
9898 * tree-streamer.h: Likewise.
9899 * tree-streamer.c: Adjust.
9900 * pointer-set.h: Remove pointer_map.
9902 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9904 * hash-table.h: Add a template arg to choose between storing values
9905 and storing pointers to values, and then provide partial
9906 specializations for both.
9907 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
9908 should store, not the type values should point to.
9909 * tree-into-ssa.c (var_info_hasher): Likewise.
9910 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9911 * tree-complex.c: Adjust.
9912 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
9913 table instead of int_tree_map *.
9914 * tree-parloops.c: Adjust.
9915 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
9916 type is being stored.
9917 * tree-vectorizer.c: Adjust.
9919 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9921 * hash-table.h: Remove a layer of indirection from hash_table so that
9922 it contains the hash table's data instead of a pointer to the data.
9923 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
9924 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
9925 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
9926 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
9927 fold-const.c, gcse.c, ggc-common.c,
9928 gimple-ssa-strength-reduction.c, gimplify.c,
9929 graphite-clast-to-gimple.c, graphite-dependences.c,
9930 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
9931 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9932 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
9933 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
9934 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
9935 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
9936 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
9937 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
9938 tree-ssa-live.c, tree-ssa-loop-im.c,
9939 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
9940 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
9941 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9942 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
9943 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
9944 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
9945 vtable-verify.c, vtable-verify.h: Adjust.
9947 2014-06-24 Richard Biener <rguenther@suse.de>
9949 PR tree-optimization/61572
9950 * tree-ssa-sink.c (statement_sink_location): Do not sink
9951 loads from hard registers.
9953 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9955 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
9956 not mentioned in clauses use private clause if the iterator is
9957 declared in #pragma omp for simd, and when adding lastprivate
9958 instead, add it to the outer #pragma omp for too. Diagnose
9959 if the variable is private in outer context. For simd collapse > 1
9960 loops, replace all iterators with temporaries.
9961 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
9962 same even in collapse > 1 loops.
9964 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
9965 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
9967 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
9968 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
9970 (gimplify_adjust_omp_clauses): Likewise.
9971 * omp-low.c (lower_rec_simd_input_clauses,
9972 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
9973 safelen the same as safelen(1).
9974 * tree-nested.c (convert_nonlocal_omp_clauses,
9975 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
9976 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
9977 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
9978 Fixup handling of GIMPLE_OMP_TARGET.
9979 (convert_tramp_reference_stmt, convert_gimple_call): Handle
9982 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
9984 PR tree-optimization/61554
9985 * tree-ssa-propagate.c: Include "bitmap.h".
9986 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
9987 properly update constructor/destructor.
9988 (substitute_and_fold_dom_walker::before_dom_children):
9989 Remove call to gimple_purge_dead_eh_edges, add bb->index to
9990 need_eh_cleaup instead.
9991 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
9994 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
9996 * varpool.c (dump_varpool_node): Dump used_by_single_function.
9997 * tree-pass.h (make_pass_ipa_single_use): New pass.
9998 * cgraph.h (used_by_single_function): New flag.
9999 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10001 * passes.def (pass_ipa_single_use): Scedule.
10002 * ipa.c (BOTTOM): New macro.
10003 (meet): New function
10004 (propagate_single_user): New function.
10005 (ipa_single_use): New function.
10006 (pass_data_ipa_single_use): New pass.
10007 (pass_ipa_single_use): New pass.
10008 (pass_ipa_single_use::gate): New gate.
10009 (make_pass_ipa_single_use): New function.
10011 2014-06-23 Kai Tietz <ktietz@redhat.com>
10014 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10015 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10017 2014-06-23 Richard Biener <rguenther@suse.de>
10019 * tree-ssa-loop.c (gate_loop): New function.
10020 (pass_tree_loop::gate): Call it.
10021 (pass_data_tree_no_loop, pass_tree_no_loop,
10022 make_pass_tree_no_loop): New.
10023 * tree-vectorizer.c: Include tree-scalar-evolution.c
10024 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10026 (pass_slp_vectorize::clone): New method.
10027 * timevar.def (TV_TREE_NOLOOP): New.
10028 * tree-pass.h (make_pass_tree_no_loop): Declare.
10029 * passes.def (pass_tree_no_loop): New pass group with
10032 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10035 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10036 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10038 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10040 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10041 "yes" where needed.
10043 2014-06-23 Alan Modra <amodra@gmail.com>
10046 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10047 to zero on debug statements.
10049 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10052 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10053 Ignore third operand if present by marking qualifier_internal.
10055 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10057 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10059 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10060 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10061 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10062 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10063 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10064 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10065 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10066 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10067 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10068 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10069 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10070 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10071 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10072 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10073 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10074 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10075 logic in GCC vector extensions
10077 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10078 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10079 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10080 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10081 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10082 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10083 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10084 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10085 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10086 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10088 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10090 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10093 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10094 (vget_low_s64): Use __GET_LOW macro.
10095 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10096 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10097 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10098 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10099 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10101 (vcombine_s64): Use GCC vector extensions; remove cast.
10102 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10103 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10104 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10105 Fix type signature; remove cast.
10107 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10110 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10112 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10114 (BUILTIN_VD1): New.
10115 (BUILTIN_VD_RE): Remove.
10116 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10117 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10118 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10119 variant but not df.
10120 (vreinterpretv1df*, vreinterpret*v1df): New.
10121 (vreinterpretdf*, vreinterpret*df): Remove.
10122 * config/aarch64/aarch64-simd.md (aarch64_create,
10123 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10124 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10126 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10127 (vcreate_f64): Remove cast, use v1df builtin.
10128 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10129 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10130 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10131 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10132 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10133 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10134 add range check using __builtin_aarch64_im_lane_boundsi.
10135 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10136 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10137 type signature, use gcc vector extensions.
10138 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10139 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10140 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10141 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10142 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10143 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10144 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10145 vreinterpret_u64_f64): Use v1df builtin not df.
10147 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10149 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10152 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10154 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10157 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10159 * loop-invariant.c (pre_check_invariant_p): New function.
10160 (find_invariant_insn): Call pre_check_invariant_p.
10162 2014-06-22 Richard Henderson <rth@redhat.com>
10165 * compare-elim.c (struct comparison): Add eh_note.
10166 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10167 a redundant comparison in a different EH region. Purge EH edges if
10170 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10172 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10173 (var_shift): Use it.
10174 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10175 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10176 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10177 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10178 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10179 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10180 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10181 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10182 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10183 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10184 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10185 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10186 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10187 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10188 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10189 *rotldi3_internal15be): Use the new attribute. Merge register and
10190 integer alternatives.
10192 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10194 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10195 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10196 split, *ashrdi3_internal3 and split): Delete, merge into...
10197 (ashr<mode>3): New expander.
10198 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10199 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10201 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10203 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10204 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10205 *rotldi3_internal3 and split): Delete, merge into...
10206 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10207 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10208 Use "rotlw" extended mnemonic.
10210 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10212 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10213 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10214 and split, *ashldi3_internal3 and split): Delete, merge into...
10215 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10216 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10218 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10220 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10221 (lshrsi3, two anonymous define_insns and define_splits,
10222 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10223 *lshrdi3_internal3 and split): Delete, merge into...
10224 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10225 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10227 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10229 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10230 Remove "O" alternative.
10232 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10234 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10235 (mips_move_from_gpr_cost): Likewise.
10236 (mips_register_move_cost): Update accordingly.
10237 (mips_secondary_reload_class): Remove name of in_p.
10239 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10242 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10243 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10245 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10247 * config/nios2/nios2.c: Include "builtins.h".
10249 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10251 * cgraph.h (tls_model_names): New variable.
10252 * print-tree.c (print_node): Simplify.
10253 * varpool.c (tls_model_names): New variable.
10254 (dump_varpool_node): Output tls model.
10256 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10258 * ipa-visibility.c (function_and_variable_visibility): Disable
10259 temporarily local aliases for some targets.
10261 2014-06-20 Marek Polacek <polacek@redhat.com>
10263 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10264 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10265 into SANITIZE_UNDEFINED.
10266 * doc/invoke.texi: Describe -fsanitize=bounds.
10267 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10268 functions created in the FEs.
10269 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10270 (expand_UBSAN_BOUNDS): New function.
10271 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10272 * internal-fn.h: Don't define internal functions here.
10273 * opts.c (common_handle_option): Add -fsanitize=bounds.
10274 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10275 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10276 * tree-core.h: Define internal functions here.
10277 (struct tree_base): Add ifn field.
10278 * tree-pretty-print.c: Include "internal-fn.h".
10279 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10280 * tree.c (get_callee_fndecl): Likewise.
10281 (build_call_expr_internal_loc): New function.
10282 * tree.def (CALL_EXPR): Update description.
10283 * tree.h (CALL_EXPR_IFN): Define.
10284 (build_call_expr_internal_loc): Declare.
10285 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10287 (ubsan_type_descriptor): Change bool parameter to enum
10288 ubsan_print_style. Adjust the code. Add handling of
10290 (ubsan_expand_bounds_ifn): New function.
10291 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10292 (ubsan_build_overflow_builtin): Likewise.
10293 (instrument_bool_enum_load): Likewise.
10294 (ubsan_instrument_float_cast): Likewise.
10295 * ubsan.h (enum ubsan_print_style): New enum.
10296 (ubsan_expand_bounds_ifn): Declare.
10297 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10299 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10301 * config/rs6000/rs6000.md: Append `DONE' to preparation
10302 statements of `bswap' pattern splitters.
10304 2014-06-20 Tom de Vries <tom@codesourcery.com>
10306 * target.def (call_fusage_contains_non_callee_clobbers): Update
10308 * doc/tm.texi: Regenerate.
10310 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10311 Max Ostapenko <m.ostapenko@partner.samsung.com>
10314 * asan.c (instrument_strlen_call): Fixed instrumentation of
10317 2014-06-20 Martin Jambor <mjambor@suse.cz>
10320 * ipa-prop.c (impossible_devirt_target): New function.
10321 (try_make_edge_direct_virtual_call): Use it, also instead of
10324 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10325 Max Ostapenko <m.ostapenko@partner.samsung.com>
10328 * asan.c (build_check_stmt): Add condition.
10330 2014-06-20 Martin Jambor <mjambor@suse.cz>
10333 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10336 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10338 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10340 (VCONQ): Make comment more helpful.
10342 * config/aarch64/aarch64-simd.md
10343 (aarch64_sqdmulh_lane<mode>):
10344 Use VCOND for operands 2. Update lane checking and flipping logic.
10345 (aarch64_sqrdmulh_lane<mode>): Likewise.
10346 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10347 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10348 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10349 attribute of operand 3 to VCOND.
10350 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10351 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10352 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10353 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10354 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10355 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10357 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10358 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10359 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10360 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10361 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10362 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10363 operand to VCOND. Update lane flipping and bounds checking logic.
10364 (aarch64_sqdmlal2_lane<mode>): Likewise.
10365 (aarch64_sqdmlsl_lane<mode>): Likewise.
10366 (aarch64_sqdmull_lane<mode>): Likewise.
10367 (aarch64_sqdmull2_lane<mode>): Likewise.
10368 (aarch64_sqdmlal_laneq<mode>):
10369 Replace VCON usage with VCONQ.
10370 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10371 (aarch64_sqdmlal2_laneq<mode>): Emit
10372 aarch64_sqdmlal2_laneq<mode>_internal insn.
10373 Replace VCON with VCONQ.
10374 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10375 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10376 (aarch64_sqdmull_laneq<mode>): Emit
10377 aarch64_sqdmull_laneq<mode>_internal insn.
10378 Replace VCON with VCONQ.
10379 (aarch64_sqdmull2_laneq<mode>): Emit
10380 aarch64_sqdmull2_laneq<mode>_internal insn.
10381 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10382 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10383 of 3rd argument to int16x4_t.
10384 (vqdmlalh_lane_s16): Likewise.
10385 (vqdmlslh_lane_s16): Likewise.
10386 (vqdmull_high_lane_s16): Likewise.
10387 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10388 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10389 (vqdmlsl_lane_s16): Likewise.
10390 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10391 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10392 (vqdmlals_lane_s32): Likewise.
10393 (vqdmlsls_lane_s32): Likewise.
10394 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10395 (vqdmulls_lane_s32): Likewise.
10396 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10397 (vqdmlsl_lane_s32): Likewise.
10398 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10399 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10400 (vqrdmulhh_lane_s16): Likewise.
10401 (vqdmlsl_high_lane_s16): Likewise.
10402 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
10403 (vqdmlsl_high_lane_s32): Likewise.
10404 (vqrdmulhs_lane_s32): Likewise.
10406 2014-06-20 Tom de Vries <tom@codesourcery.com>
10408 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
10409 get_call_reg_set_usage.
10411 2014-06-20 Tom de Vries <tom@codesourcery.com>
10413 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
10414 it contains all call_used_regs.
10416 2014-06-20 Tom de Vries <tom@codesourcery.com>
10418 * final.c (collect_fn_hard_reg_usage): Add and use variable
10419 function_used_regs.
10421 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10423 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
10424 (set_init_priority, get_init_priority, set_fini_priority,
10425 get_fini_priority): New methods.
10426 * tree.c (init_priority_for_decl): Remove.
10427 (init_ttree): Do not initialize init priority.
10428 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
10429 (decl_priority_info): Remove.
10430 (decl_init_priority_insert): Rewrite.
10431 (decl_fini_priority_insert): Rewrite.
10432 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
10433 tree_priority_map_marked_p): Remove.
10434 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
10435 * lto-streamer-out.c (hash_tree): Do not hash priorities.
10436 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
10437 not output priorities.
10438 (pack_ts_function_decl_value_fields): Likewise.
10439 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10440 not input priorities.
10441 (unpack_ts_function_decl_value_fields): Likewise.
10442 * symtab.c (symbol_priority_map): Declare.
10443 (init_priority_hash): Declare.
10444 (symtab_unregister_node): Unregister from priority hash, too.
10445 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
10447 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
10448 (symbol_priority_info): New function.
10449 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
10451 * tree-core.h (tree_priority_map): Remove.
10453 2014-06-20 Jakub Jelinek <jakub@redhat.com>
10455 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
10456 0xff to uint64_t before shifting it up.
10458 2014-06-20 Julian Brown <julian@codesourcery.com>
10459 Chung-Lin Tang <cltang@codesourcery.com>
10461 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
10462 TARGET_THUMB1_ONLY. Add comments.
10464 2014-06-19 Tom de Vries <tom@codesourcery.com>
10466 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
10467 return type to void.
10468 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
10470 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10472 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
10473 as "move", from depends_on.
10475 2014-06-19 Terry Guo <terry.guo@arm.com>
10477 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
10480 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10482 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
10484 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
10486 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10489 * config/sh/sh.c (prepare_move_operands): Don't process TLS
10490 addresses here if reload in progress or completed.
10492 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10494 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
10495 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
10496 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
10497 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
10498 (mips_register_priority): New function that implements the target
10499 hook TARGET_REGISTER_PRIORITY.
10500 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
10501 (mips_lra_p): Likewise for TARGET_LRA_P.
10502 (TARGET_REGISTER_PRIORITY): Define macro.
10503 (TARGET_SPILL_CLASS): Likewise.
10504 (TARGET_LRA_P): Likewise.
10505 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
10507 (REG_CLASS_NAMES): Likewise.
10508 (REG_CLASS_CONTENTS): Likewise.
10509 (BASE_REG_CLASS): Use M16_SP_REGS.
10510 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
10511 New set attribute to enable alternatives depending on the register
10513 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
10514 (*lea64): Disable pattern for MIPS16.
10515 * config/mips/mips.opt (mlra): New option.
10517 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10519 * lra-constraints.c (base_to_reg): New function.
10520 (process_address): Use new function.
10522 2014-06-18 Tom de Vries <tom@codesourcery.com>
10524 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
10525 * config/aarch64/aarch64.c
10526 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
10527 (aarch64_emit_call_insn): New function.
10528 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
10530 * config/aarch64/aarch64.md (define_expand "call_internal")
10531 (define_expand "call_value_internal", define_expand "sibcall_internal")
10532 (define_expand "sibcall_value_internal"): New.
10533 (define_expand "call", define_expand "call_value")
10534 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
10535 expand variant and aarch64_emit_call_insn.
10537 2014-06-18 Radovan Obradovic <robradovic@mips.com>
10538 Tom de Vries <tom@codesourcery.com>
10540 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
10541 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10543 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
10544 clobbers to CALL_INSN_FUNCTION_USAGE.
10545 (define_expand "sibcall_internal")
10546 (define_expand "sibcall_value_internal"): New.
10547 (define_expand "call", define_expand "call_value"): Add argument to
10548 arm_emit_call_insn.
10549 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
10550 (define_expand "sibcall_value"): Use sibcall_value_internal and
10551 arm_emit_call_insn.
10553 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10555 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
10557 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10559 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
10562 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10564 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
10565 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
10566 annotations. Fix DWARF information.
10568 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10570 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
10571 __udivmoddi4, and fixups for negative operands.
10573 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10575 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
10577 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10579 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
10582 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10584 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
10587 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10589 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
10590 describing register usage on function entry and exit.
10592 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10594 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
10595 (__aeabi_ldivmod): Fix whitespace.
10597 2014-06-18 Andreas Schwab <schwab@suse.de>
10599 * doc/md.texi (Standard Names): Use @itemx for grouped items.
10600 Remove blank line after @item.
10602 2014-06-18 Richard Henderson <rth@redhat.com>
10605 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
10607 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10609 * config/arm/arm.c (neon_vector_mem_operand): Allow register
10610 POST_MODIFY for neon loads and stores.
10611 (arm_print_operand): Output post-index register for neon loads and
10614 2014-06-18 Richard Biener <rguenther@suse.de>
10616 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
10618 2014-06-18 Richard Biener <rguenther@suse.de>
10620 * tree-pass.h (make_pass_dce_loop): Remove.
10621 * passes.def: Replace pass_dce_loop with pass_dce.
10622 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
10623 changed free niter estimates and reset the scev cache.
10624 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
10625 make_pass_dce_loop): Remove.
10626 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
10627 (fini_copy_prop): Return whether something changed. Always
10628 let substitute_and_fold perform DCE and free niter estimates
10629 and reset the scev cache if so.
10630 (execute_copy_prop): If sth changed schedule cleanup-cfg.
10631 (pass_data_copy_prop): Do not unconditionally schedule
10632 cleanup-cfg or update-ssa.
10634 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10636 PR tree-optimization/61518
10637 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
10638 reduction var is used in reduction stmt or phi-function only.
10640 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10642 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
10644 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
10646 PR tree-optimization/61517
10647 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
10648 whose rhs's first tree is the source expression instead of the
10650 (find_bswap_or_nop): Likewise.
10651 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
10652 gimple stmt whose rhs's first tree is the source. In the memory source
10653 case, move the stmt to be replaced close to one of the original load to
10654 avoid the problem of a store between the load and the stmt's original
10656 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
10659 2014-06-18 Andreas Schwab <schwab@suse.de>
10661 PR rtl-optimization/54555
10662 * postreload.c (move2add_use_add2_insn): Substitute
10663 STRICT_LOW_PART only if it is cheaper.
10665 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
10667 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
10668 Do not use unspec as call operand. Use memory_operand instead of
10669 memory_nox32_operand and add "m" operand constraint. Disable
10670 pattern for TARGET_X32.
10671 (*sibcall_pop_memory): Ditto.
10672 (*sibcall_value_memory): Ditto.
10673 (*sibcall_value_pop_memory): Ditto.
10674 (sibcall peepholes): Merge SImode and DImode patterns using
10675 W mode iterator. Use memory_operand instead of memory_nox32_operand.
10676 Disable pattern for TARGET_X32. Check if eliminated register is
10677 really dead after call insn. Generate call RTX without unspec operand.
10678 (sibcall_value peepholes): Ditto.
10679 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
10680 instead of memory_nox32_operand. Check if eliminated register is
10681 really dead after call insn. Generate call RTX without unspec operand.
10682 (sibcall_value_pop peepholes): Ditto.
10683 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
10685 2014-06-18 Terry Guo <terry.guo@arm.com>
10688 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
10691 2014-06-18 Olivier Hainque <hainque@adacore.com>
10693 * tree-core.h (tree_block): Add an "end_locus" field, allowing
10694 memorization of the end of block source location.
10695 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
10696 * gimplify.c (gimplify_bind_expr): Propagate the block start and
10697 end source location info we have on the block entry/exit code we
10700 2014-06-18 Richard Biener <rguenther@suse.de>
10702 * common.opt (fssa-phiopt): New option.
10703 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
10705 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
10706 * doc/invoke.texi (-fssa-phiopt): Document.
10708 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10710 * genattrtab.c (n_bypassed): New variable.
10711 (process_bypasses): Initialise n_bypassed.
10712 Count number of bypassed reservations.
10713 (make_automaton_attrs): Allocate space for bypassed reservations
10714 rather than number of bypasses.
10716 2014-06-18 Richard Biener <rguenther@suse.de>
10718 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
10719 we propagated anything.
10720 (substitute_and_fold_dom_walker::before_dom_children): Something
10721 changed if we propagated into PHI arguments.
10722 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
10725 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
10727 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
10729 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
10730 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
10731 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
10732 Introduces alternative way of loads group permutaions.
10733 (vect_transform_grouped_load): Try alternative way of permutations.
10735 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10737 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
10738 changed in ORT_TARGET region, don't jump to do_outer.
10739 (struct gimplify_adjust_omp_clauses_data): New type.
10740 (gimplify_adjust_omp_clauses_1): Adjust for data being
10741 a struct gimplify_adjust_omp_clauses_data pointer instead
10742 of tree *. Pass pre_p as a new argument to
10743 lang_hooks.decls.omp_finish_clause hook.
10744 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
10745 splay_tree_foreach to pass both list_p and pre_p.
10746 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
10747 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
10748 gimplify_adjust_omp_clauses callers.
10749 * langhooks.c (lhd_omp_finish_clause): New function.
10750 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
10751 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
10752 * langhooks.h (struct lang_hooks_for_decls): Add a new
10753 gimple_seq * argument to omp_finish_clause hook.
10754 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
10755 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
10756 (scan_omp_parallel, lower_omp_for): When adding
10757 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
10758 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
10759 * tree-nested.c (convert_nonlocal_omp_clauses,
10760 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
10761 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
10763 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
10765 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
10766 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
10768 2014-06-17 Xinliang David Li <davidxl@google.com>
10770 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
10771 * passes.c (pass_init_dump_file): Do not set initialize
10772 flag to false unconditionally.
10774 2014-06-17 Richard Biener <rguenther@suse.de>
10776 * genopinit.c (main): Use vec<>::qsort method.
10777 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
10779 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
10781 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
10783 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
10784 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
10785 (mips_move_to_gpr_cost): Remove ST_REGS case.
10786 (mips_move_from_gpr_cost): Likewise.
10787 (mips_register_move_cost): Likewise.
10788 (mips_secondary_reload_class): Likewise.
10790 2014-06-17 Richard Biener <rguenther@suse.de>
10792 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
10793 (pass_all_optimizations): Move 3rd copy-prop pass from after
10794 fre to before ifcombine/phiopt.
10796 2014-06-17 Richard Biener <rguenther@suse.de>
10798 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
10799 and allow all blocks to be forwarders.
10801 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
10804 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
10805 variable 'size'; calculate 'size' right in the front; use
10806 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
10807 pcum->aapcs_stack_words.
10809 2014-06-17 Nick Clifton <nickc@redhat.com>
10811 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
10812 (umulhi3, mulsidi3, umulsidi3): Likewise.
10814 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
10816 PR middle-end/61508
10817 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
10818 check for section name.
10820 2014-06-17 Richard Biener <rguenther@suse.de>
10822 * tree-ssa-propagate.c: Include domwalk.h.
10823 (substitute_and_fold): Outline main worker into a domwalker ...
10824 (substitute_and_fold_dom_walker::before_dom_children): ... here.
10825 Schedule stmts we can fully propagate for removal. Remove
10827 (substitute_and_fold): Apply a dominator walk to perform
10828 substitution. Process stmts scheduled for removal here.
10830 2014-06-17 Richard Biener <rguenther@suse.de>
10832 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
10833 of PHI node moving.
10835 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
10837 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
10838 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
10839 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10840 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
10841 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
10843 (get_fpscr) : Likewise.
10845 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10847 PR rtl-optimization/61325
10848 * lra-constraints.c (valid_address_p): Add forward declaration.
10849 (simplify_operand_subreg): Check address validity before and after
10850 alter_reg of memory subreg.
10852 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
10854 * config/i386/i386.c (decide_alg): Correctly handle
10855 maximum size of stringop algorithm.
10857 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10859 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
10861 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10863 PR rtl-optimization/61522
10864 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
10866 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
10869 * symtab.c (symtab_node::reset_section): New method.
10870 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
10872 * cgraph.h (reset_section): Declare.
10873 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
10874 do not consider comdat locals.
10875 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
10877 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
10878 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
10879 reset sections of symbols dragged out of the comdats.
10880 (function_and_variable_visibility): Reset sections of
10883 2014-06-16 Richard Biener <rguenther@suse.de>
10885 PR tree-optimization/61482
10886 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
10887 [-INF(OVF), +INF(OVF)] range.
10889 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10891 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
10892 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
10893 handling 32-bit multiplication.
10895 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
10897 PR middle-end/61430
10898 * lra-lives.c (process_bb_lives): Skip creating copy during
10899 insn scan when src/dest has constrained to same regno.
10901 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10903 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
10904 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
10906 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10908 * asan.c (check_func): New function.
10909 (maybe_create_ssa_name): Likewise.
10910 (build_check_stmt_with_calls): Likewise.
10911 (use_calls_p): Likewise.
10912 (report_error_func): Change interface.
10913 (build_check_stmt): Allow non-integer lengths; add support
10915 (asan_instrument): Likewise.
10916 (instrument_mem_region_access): Moved code to build_check_stmt.
10917 (instrument_derefs): Likewise.
10918 (instrument_strlen_call): Likewise.
10919 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
10920 * doc/invoke.texi: Describe new parameter.
10921 * params.def: Define new parameter.
10922 * params.h: Likewise.
10923 * sanitizer.def: Describe new builtins.
10925 2014-06-16 Richard Biener <rguenther@suse.de>
10927 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10928 Make all defs available at the end.
10929 (eliminate): If we remove a PHI node schedule cfg-cleanup.
10931 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10934 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
10936 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
10939 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
10940 initialization. Replace remaining use of uid.
10942 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10944 * c-family/c-common.c (handle_tls_model_attribute): Use
10945 set_decl_tls_model.
10946 * c-family/c-common.c (handle_tls_model_attribute): Use
10947 set_decl_tls_model.
10948 * cgraph.h (struct varpool_node): Add tls_model.
10949 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
10950 * tree.h (DECL_TLS_MODEL): Update.
10951 (DECL_THREAD_LOCAL_P): Check that variable is static.
10952 (decl_tls_model): Declare.
10953 (set_decl_tls_model): Declare.
10954 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
10955 set symbol prorperties.
10956 (get_emutls_init_templ_addr): Cleanup.
10957 (new_emutls_decl): Update.
10958 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
10959 (lto_input_varpool_node): Likewise.
10960 * lto-streamer-out.c (hash_tree): Likewise.
10961 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10962 not stream DECL_TLS_MODEL.
10963 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
10964 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
10966 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10968 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
10970 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10972 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
10973 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
10975 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
10976 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
10977 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
10978 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
10979 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
10980 (df_get_artificial_defs, df_get_artificial_uses)
10981 (df_single_def, df_single_use): Update accordingly.
10982 (df_refs_chain_dump): Take the first element in a linked list as
10983 parameter, rather than a pointer to an array of pointers.
10984 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
10985 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
10986 (df_chain_create_bb_process_use): Likewise.
10987 (df_md_bb_local_compute_process_def): Likewise.
10988 * fwprop.c (process_defs, process_uses): Likewise.
10989 (register_active_defs, update_uses): Likewise.
10990 (forward_propagate_asm): Update for new df_ref linking.
10991 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
10992 (df_null_ref_rec, df_null_mw_rec): Likewise.
10993 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
10995 (df_scan_free_bb_info): Remove check for null artificial_defs.
10996 (df_install_ref_incremental): Adjust for new df_ref linking.
10997 Use a single-element insertion rather than a full sort.
10998 (df_ref_chain_delete_du_chain): Take the first element
10999 in a linked list as parameter, rather than a pointer to an array of
11001 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11002 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11003 (df_insn_info_delete): Remove check for null defs and call to
11004 df_scan_free_mws_vec.
11005 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11006 null rather than df_null_*_rec.
11007 (df_insn_rescan_debug_internal): Likewise, and update null
11008 checks in the same way. Remove check for null defs.
11009 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11010 Move a single element rather doing a full sort.
11011 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11013 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11014 Initialize df_ref and df_mw_hardreg lists to null rather than
11016 (df_ref_compare): Take df_refs as parameter, transferring the
11017 old interface to...
11018 (df_ref_ptr_compare): ...this new function.
11019 (df_sort_and_compress_refs): Update accordingly.
11020 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11021 old interface to...
11022 (df_mw_ptr_compare): ...this new function.
11023 (df_sort_and_compress_mws): Update accordingly.
11024 (df_install_refs, df_install_mws): Return a linked list rather than
11025 an array of pointers.
11026 (df_refs_add_to_chains): Assert that old lists are empty rather
11028 (df_insn_refs_verify): Don't handle null defs speciailly.
11029 * web.c (union_match_dups): Update for new df_ref linking.
11031 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11033 * df.h (df_ref_create, df_ref_remove): Delete.
11034 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11035 (df_ref_remove): Likewise.
11037 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11039 * df.h (df_single_def, df_single_use): New functions.
11040 * ira.c (find_moveable_pseudos): Use them.
11042 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11044 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11045 * df-problems.c (df_note_bb_compute): Use it.
11046 * regstat.c (regstat_bb_compute_ri): Likewise.
11048 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11050 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11051 * cse.c (cse_extended_basic_block): Use them.
11052 * dce.c (mark_artificial_use): Likewise.
11053 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11054 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11055 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11056 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11057 (df_simulate_initialize_backwards): Likewise.
11058 (df_simulate_finalize_backwards): Likewise.
11059 (df_simulate_initialize_forwards): Likewise.
11060 (df_md_simulate_artificial_defs_at_top): Likewise.
11061 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11062 * regrename.c (init_rename_info): Likewise.
11063 * regstat.c (regstat_bb_compute_ri): Likewise.
11064 (regstat_bb_compute_calls_crossed): Likewise.
11066 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11068 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11069 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11070 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11071 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11072 * combine.c (create_log_links): Likewise.
11073 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11074 (try_eliminate_compare): Likewise.
11075 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11076 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11077 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11078 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11079 (word_dce_process_block, dce_process_block): Likewise.
11080 * ddg.c (def_has_ccmode_p): Likewise.
11081 * df-core.c (df_bb_regno_first_def_find): Likewise.
11082 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11083 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11084 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11085 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11086 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11087 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11088 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11089 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11090 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11091 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11092 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11093 * fwprop.c (local_ref_killed_between_p): Likewise.
11094 (all_uses_available_at, free_load_extend): Likewise.
11095 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11096 * hw-doloop.c (scan_loop): Likewise.
11097 * ifcvt.c (dead_or_predicable): Likewise.
11098 * init-regs.c (initialize_uninitialized_regs): Likewise.
11099 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11100 (process_bb_node_lives): Likewise.
11101 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11102 (find_moveable_pseudos): Likewise.
11103 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11104 * recog.c (peep2_find_free_register): Likewise.
11105 * ree.c (get_defs): Likewise.
11106 * regstat.c (regstat_bb_compute_ri): Likewise.
11107 (regstat_bb_compute_calls_crossed): Likewise.
11108 * sched-deps.c (find_inc, find_mem): Likewise.
11109 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11110 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11111 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11112 (prepare_shrink_wrap): Likewise.
11113 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11114 * web.c (union_defs, pass_web::execute): Likewise.
11115 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11116 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11118 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11120 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11121 to inheritance pseudos.
11122 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11124 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11127 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11128 (BU_MISC_2): Rename to ...
11129 (BU_LDBL128_2): ... this.
11130 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11131 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11132 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11133 RS6000_BTM_LDBL128.
11134 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11135 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11136 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11137 (unpacktf_1): Likewise.
11138 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11139 (__builtin_longdouble_dw1): Likewise.
11140 * doc/sourcebuild.texi (longdouble128): Document.
11142 2014-06-13 Jeff Law <law@redhat.com>
11144 PR rtl-optimization/61094
11145 PR rtl-optimization/61446
11146 * ree.c (combine_reaching_defs): Get the mode for the copy from
11147 the extension insn rather than the defining insn.
11149 2014-06-13 Dehao Chen <dehao@google.com>
11151 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11153 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11155 * doc/install.texi (--enable-linker-plugin-configure-flags)
11156 (--enable-linker-plugin-flags): Document new flags.
11158 2014-06-13 Martin Jambor <mjambor@suse.cz>
11161 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11162 cache_token if returning early.
11164 2014-06-13 Nick Clifton <nickc@redhat.com>
11166 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11167 requested alignment is active.
11168 (LABEL_ALIGN): Likewise.
11169 (LOOP_ALIGN): Likewise.
11171 2014-06-13 Richard Biener <rguenther@suse.de>
11173 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11174 Rewrite to propagate the VN result into all uses where
11175 possible and to remove stmts becoming dead because of that.
11176 (eliminate): Generalize stmt removal handling, remove in
11177 reverse dominator order to support proper debug stmt
11178 generation. Update stmts before removing stmts.
11179 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11181 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11183 PR tree-optimization/61375
11184 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11185 symbolic number cannot be represented in an uint64_t.
11186 (find_bswap_or_nop_1): Likewise.
11188 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11190 * symtab.c (symtab_node::reset_section): New method.
11191 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11193 * cgraph.h (reset_section): Declare.
11194 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11195 do not consider comdat locals.
11196 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11198 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11199 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11200 reset sections of symbols dragged out of the comdats.
11201 (function_and_variable_visibility): Reset sections of
11204 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11206 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11207 to use symtab and decl_binds_to_current_def_p
11208 * tree-vectorizer.c (increase_alignment): Increase alignment
11209 of alias target, too.
11211 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11213 PR middle-end/61486
11214 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11215 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11216 if outer combined construct is distribute.
11217 (gimplify_omp_for): For OMP_DISTRIBUTE set
11218 gimplify_omp_ctxp->distribute.
11219 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11220 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11221 mapping into decl map.
11223 2014-06-12 Jason Merrill <jason@redhat.com>
11225 * common.opt (fabi-version): Change default to 0.
11227 2014-06-12 Jason Merrill <jason@redhat.com>
11229 * toplev.c (process_options): Reject -fabi-version=1.
11231 2014-06-12 Jeff Law <law@redhat.com>
11233 PR tree-optimization/61009
11234 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11235 value when we stop processing a block due to problematic PHIs.
11237 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11239 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11240 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11241 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11242 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11243 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11244 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11245 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11246 are not in the spec.
11248 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11251 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11252 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11255 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11257 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11259 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11262 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11263 loading from address spaces.
11265 2014-06-12 Martin Liska <mliska@suse.cz>
11268 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11269 statement is reachable.
11271 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11273 * symtab.c (section_hash): New hash.
11274 (symtab_unregister_node): Clear section before freeing.
11275 (hash_section_hash_entry): New haser.
11276 (eq_sections): New function.
11277 (symtab_node::set_section_for_node): New method.
11278 (set_section_1): Update.
11279 (symtab_node::set_section): Take string instead of tree as parameter.
11280 (symtab_resolve_alias): Update.
11281 * cgraph.h (section_hash_entry_d): New structure.
11282 (section_hash_entry): New typedef.
11283 (cgraph_node): Change comdat_group_ to x_comdat_group,
11284 change section_ to x_section and turn into section_hash_entry;
11285 update accestors; put set_section_for_node offline.
11286 * tree.c (decl_section_name): Turn into string.
11287 (set_decl_section_name): Change parameter to be string.
11288 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11289 * sdbout.c (sdbout_one_type): Update.
11290 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11291 * varasm.c (IN_NAMED_SECTION, get_named_section,
11292 resolve_unique_section, hot_function_section, get_named_text_section,
11293 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11294 make_decl_rtl, default_unique_section): Update.
11295 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11296 (c6x_elf_unique_section): Update.
11297 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11298 * config/pa/pa.c (pa_function_section): Update.
11299 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11300 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11301 * config/arc/arc.c (arc_in_small_data_p): Update.
11302 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11303 * config/mcore/mcore.c (mcore_unique_section): Update.
11304 * config/mips/mips.c (mips16_build_function_stub): Update.
11305 (mips16_build_call_stub): Update.
11306 (mips_function_rodata_section): Update.
11307 (mips_in_small_data_p): Update.
11308 * config/score/score.c (score_in_small_data_p): Update.
11309 * config/rx/rx.c (rx_in_small_data): Update.
11310 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11311 (rs6000_xcoff_asm_named_section): Update.
11312 (rs6000_xcoff_unique_section): Update.
11313 * config/frv/frv.c (frv_string_begins_with): Update.
11314 (frv_in_small_data_p): Update.
11315 * config/v850/v850.c (v850_encode_data_area): Update.
11316 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11317 (bfin_handle_l1_data_attribute): Update.
11318 (bfin_handle_l2_attribute): Update.
11319 * config/mep/mep.c (mep_unique_section): Update.
11320 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11322 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11323 (h8300_handle_tiny_data_attribute): Update.
11324 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11325 (m32r_in_small_data_p): Update.
11326 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11327 * config/i386/i386.c (ix86_in_large_data_p): Update.
11328 * config/i386/winnt.c (i386_pe_unique_section): Update.
11329 * config/darwin.c (darwin_function_section): Update.
11330 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11331 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11332 (new_emutls_decl): Update.
11333 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11334 input_varpool_node): Update.
11335 (ead_string_cst): Turn to ...
11336 (read_string): ... this one.
11337 * dwarf2out.c (secname_for_decl): Update.
11338 * asan.c (asan_protect_global): Update.
11340 2014-06-11 DJ Delorie <dj@redhat.com>
11342 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11344 * config/rx/rx.c (rx_option_override): Likewise.
11345 (rx_align_for_label): Likewise.
11347 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11349 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11351 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11354 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11356 * common.md: New file.
11357 * doc/md.texi: Update description of generic, machine-independent
11359 * config/s390/constraints.md (e): Delete.
11360 * Makefile.in (md_file): Include common.md.
11361 * config/m32c/t-m32c (md_file): Likewise.
11362 * genpreds.c (general_mem): New array.
11363 (generic_constraint_letters): Remove constraints now defined by
11365 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11366 Allow the first character to be '<' or '>' as well.
11367 * genoutput.c (general_mem): New array.
11368 (indep_constraints): Remove constraints now defined by common.md.
11369 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11370 Remove special handling of 'm'.
11371 * ira-costs.c (record_reg_classes): Remove special handling of
11372 constraints now defined by common.md.
11373 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11374 * ira-lives.c (single_reg_class): Likewise.
11375 (ira_implicitly_set_insn_hard_regs): Likewise.
11376 * lra-constraints.c (reg_class_from_constraints): Likewise.
11377 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11378 * postreload.c (reload_cse_simplify_operands): Likewise.
11379 * reload.c (push_secondary_reload, scratch_reload_class)
11380 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11381 * reload1.c (maybe_fix_stack_asms): Likewise.
11382 * targhooks.c (default_secondary_reload): Likewise.
11383 * stmt.c (parse_output_constraint): Likewise.
11384 * recog.c (preprocess_constraints): Likewise.
11385 (constrain_operands, peep2_find_free_register): Likewise.
11386 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11387 must be handled specially.
11389 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11391 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11392 * genpreds.c (have_const_dbl_constraints): Delete.
11393 (add_constraint): Don't set it.
11394 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11395 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11396 constraints using the lookup_constraint logic.
11397 * ira-lives.c (single_reg_class): Likewise.
11398 * ira.c (ira_setup_alts): Likewise.
11399 * lra-constraints.c (process_alt_operands): Likewise.
11400 * recog.c (asm_operand_ok, constrain_operands): Likewise.
11401 * reload.c (find_reloads): Likewise.
11403 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11405 * genpreds.c (const_int_start, const_int_end): New variables.
11406 (choose_enum_order): Output CONST_INT constraints before memory
11408 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
11410 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
11411 * ira.c (ira_setup_alts): Likewise.
11412 * lra-constraints.c (process_alt_operands): Likewise.
11413 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11414 * reload.c (find_reloads): Likewise.
11416 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11418 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
11419 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
11420 * recog.c (preprocess_constraints): Update accordingly.
11422 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11424 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
11425 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
11426 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
11427 * genpreds.c (print_type_tree): New function.
11428 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
11429 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
11430 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
11431 Write out enum constraint_type and get_constraint_type.
11432 * lra-constraints.c (satisfies_memory_constraint_p): Take a
11433 constraint_num rather than a constraint string.
11434 (satisfies_address_constraint_p): Likewise.
11435 (reg_class_from_constraints): Avoid old constraint macros.
11436 (process_alt_operands, process_address_1): Likewise.
11437 (curr_insn_transform): Likewise.
11438 * ira-costs.c (record_reg_classes): Likewise.
11439 (record_operand_costs): Likewise.
11440 * ira-lives.c (single_reg_class): Likewise.
11441 (ira_implicitly_set_insn_hard_regs): Likewise.
11442 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11443 * postreload.c (reload_cse_simplify_operands): Likewise.
11444 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11445 (constrain_operands, peep2_find_free_register): Likewise.
11446 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
11447 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11448 * reload1.c (maybe_fix_stack_asms): Likewise.
11449 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11450 * targhooks.c (default_secondary_reload): Likewise.
11451 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
11452 to EXTRA_CONSTRAINT_STR.
11453 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
11455 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11457 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
11458 (write_constraint_satisfied_p_array): ...this new function.
11459 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
11461 (write_insn_preds_c): Update accordingly.
11463 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11465 * genpreds.c (write_lookup_constraint): Rename to...
11466 (write_lookup_constraint_1): ...this.
11467 (write_lookup_constraint_array): New function.
11468 (write_tm_preds_h): Define lookup_constraint as an inline function
11469 that uses write_lookup_constraint_array where possible.
11470 (write_insn_preds_c): Update for the changes above.
11472 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11474 * doc/md.texi (regclass_for_constraint): Rename to...
11475 (reg_class_for_constraint): ...this.
11476 * genpreds.c (num_constraints, enum_order, register_start)
11477 (register_end, satisfied_start, memory_start, memory_end)
11478 (address_start, address_end): New variables.
11479 (add_constraint): Count the number of constraints.
11480 (choose_enum_order): New function.
11481 (write_enum_constraint_num): Iterate over enum_order.
11482 (write_regclass_for_constraint): Rename to...
11483 (write_reg_class_for_constraint_1): ...this and update output
11485 (write_constraint_satisfied_p): Rename to...
11486 (write_constraint_satisfied_p_1): ...this and update output
11487 accordingly. Do nothing if all extra constraints are register
11489 (write_insn_extra_memory_constraint): Delete.
11490 (write_insn_extra_address_constraint): Delete.
11491 (write_range_function): New function.
11492 (write_tm_preds_h): Define constraint_satisfied_p and
11493 reg_class_for_constraint as inline functions that do a range check
11494 before calling the out-of-line function. Use write_range_function
11495 to implement insn_extra_{register,memory,address}_constraint,
11496 the first of which is new.
11497 (write_insn_preds_c): Update after above changes to write_* functions.
11498 (main): Call choose_enum_order.
11500 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11502 PR tree-optimization/61306
11503 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
11504 expression instead of its size.
11505 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
11506 false to prevent optimization when the result is unpredictable due to
11507 arithmetic right shift of signed type with highest byte is set.
11508 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
11509 (init_symbolic_number): Likewise.
11510 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
11511 when the result is unpredictable due to sign extension.
11513 2014-06-11 Terry Guo <terry.guo@arm.com>
11515 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
11516 (*thumb1_addsi3): Ditto.
11517 (*thumb_subdi3): Ditto.
11518 (thumb1_subsi3_insn): Ditto.
11519 (*thumb_mulsi3): Ditto.
11520 (*thumb_mulsi3_v6): Ditto.
11521 (*thumb1_andsi3_insn): Ditto.
11522 (thumb1_bicsi3): Ditto.
11523 (*thumb1_iorsi3_insn): Ditto.
11524 (*thumb1_xorsi3_insn): Ditto.
11525 (*thumb1_ashlsi3): Ditto.
11526 (*thumb1_ashrsi3): Ditto.
11527 (*thumb1_lshrsi3): Ditto.
11528 (*thumb1_rotrsi3): Ditto.
11529 (*thumb1_negdi2): Ditto.
11530 (*thumb1_negsi2): Ditto.
11531 (*thumb1_abssi2): Ditto.
11532 (*thumb1_neg_abssi2): Ditto.
11533 (*thumb1_one_cmplsi2): Ditto.
11534 (*thumb1_zero_extendhisi2): Ditto.
11535 (*thumb1_zero_extendqisi2): Ditto.
11536 (*thumb1_zero_extendqisi2_v6): Ditto.
11537 (thumb1_extendhisi2): Ditto.
11538 (thumb1_extendqisi2): Ditto.
11539 (*thumb1_movdi_insn): Ditto.
11540 (*thumb1_movsi_insn): Ditto.
11541 (*thumb1_movhi_insn): Ditto.
11542 (thumb_movhi_clobber): Ditto.
11543 (*thumb1_movqi_insn): Ditto.
11544 (*thumb1_movhf): Ditto.
11545 (*thumb1_movsf_insn): Ditto.
11546 (*thumb_movdf_insn): Ditto.
11547 (movmem12b): Ditto.
11549 (cbranchqi4): Ditto.
11550 (cbranchsi4_insn): Ditto.
11551 (cbranchsi4_scratch): Ditto.
11552 (*negated_cbranchsi4): Ditto.
11553 (*tbit_cbranch): Ditto.
11554 (*tlobits_cbranch): Ditto.
11555 (*tstsi3_cbranch): Ditto.
11556 (*cbranchne_decr1): Ditto.
11557 (*addsi3_cbranch): Ditto.
11558 (*addsi3_cbranch_scratch): Ditto.
11559 (*thumb_cmpdi_zero): Ditto.
11560 (cstoresi_eq0_thumb1): Ditto.
11561 (cstoresi_ne0_thumb1): Ditto.
11562 (*cstoresi_eq0_thumb1_insn): Ditto.
11563 (*cstoresi_ne0_thumb1_insn): Ditto.
11564 (cstoresi_nltu_thumb1): Ditto.
11565 (cstoresi_ltu_thumb1): Ditto.
11566 (thumb1_addsi3_addgeu): Ditto.
11567 (*thumb_jump): Ditto.
11568 (*call_reg_thumb1_v5): Ditto.
11569 (*call_reg_thumb1): Ditto.
11570 (*call_value_reg_thumb1_v5): Ditto.
11571 (*call_value_reg_thumb1): Ditto.
11572 (*call_insn): Ditto.
11573 (*call_value_insn): Ditto.
11574 (thumb1_casesi_internal_pic): Ditto.
11575 (thumb1_casesi_dispatch): Ditto.
11576 (*thumb1_indirect_jump): Ditto.
11577 (prologue_thumb1_interwork): Ditto.
11578 (*epilogue_insns): Ditto.
11579 (consttable_1): Ditto.
11580 (consttable_2): Ditto.
11581 (tablejump): Ditto.
11582 (*thumb1_tablejump): Ditto.
11583 (thumb_eh_return): Ditto.
11584 (define_peephole2): Two of them are thumb1 only and got moved into
11585 new file thumb1.md.
11586 (define_split): Six of them are thumb1 only and got moved into new
11588 * config/arm/thumb1.md: New file comprised of above thumb1 only
11591 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11593 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
11594 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
11596 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
11597 (aarch64_crc_builtin_datum): New struct.
11598 (aarch64_crc_builtin_data): New.
11599 (aarch64_init_crc32_builtins): New function.
11600 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
11601 (aarch64_crc32_expand_builtin): New.
11602 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
11603 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11604 __ARM_FEATURE_CRC32 when appropriate.
11605 (TARGET_CRC32): Define.
11606 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
11607 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
11608 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
11609 (aarch64_<crc_variant>): New pattern.
11610 * config/aarch64/arm_acle.h: New file.
11611 * config/aarch64/iterators.md (CRC): New int iterator.
11612 (crc_variant, crc_mode): New int attributes.
11613 * doc/aarch64-acle-intrinsics.texi: New file.
11614 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
11615 Include aarch64-acle-intrinsics.texi.
11617 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
11619 * tree-vect-data-refs.c (vect_grouped_store_supported): New
11620 check for stores group of length 3.
11621 (vect_permute_store_chain): New permutations for stores group of
11623 * tree-vect-stmts.c (vect_model_store_cost): Change cost
11624 of vec_perm_shuffle for the new permutations.
11626 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11628 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
11629 table rewriting temporarily on targets not supporting ONE_ONLY.
11631 2014-06-11 Richard Biener <rguenther@suse.de>
11633 PR middle-end/61437
11635 2014-06-04 Richard Biener <rguenther@suse.de>
11637 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
11638 TREE_PUBLIC and DECL_EXTERNAL decls.
11640 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11642 * varasm.c (set_implicit_section): New function.
11643 (resolve_unique_section): Use it to set implicit section
11645 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
11646 (default_function_section): Likewise.
11647 (decl_binds_to_current_def_p): Constify argument.
11648 * varasm.h (decl_binds_to_current_def_p): Update prototype.
11649 * asan.c (asan_protect_global): Use
11650 symtab_get_node (decl)->implicit_section.
11651 * symtab.c (dump_symtab_base): Dump implicit sections.
11652 (verify_symtab_base): Verify sanity of sectoins and comdats.
11653 (symtab_resolve_alias): Alias share the section of its target.
11654 (set_section_1): New function.
11655 (symtab_node::set_section): Move here, recurse to aliases.
11656 (verify_symtab): Check for duplicated symtab lists.
11657 * tree-core.h (implicit_section_name_p): Remove.
11658 * tree-vect-data-refs.c: Include varasm.h.
11659 (vect_can_force_dr_alignment_p): Fix conditional on when
11660 decl bints to current definition; use
11661 symtab_get_node (decl)->implicit_section.
11662 * cgraph.c (cgraph_make_node_local_1): Fix section set.
11663 * cgraph.h (struct symtab_node): Add implicit_section.
11664 (set_section): Rename to ...
11665 (set_section_for_node): ... this one.
11666 (set_section): Declare.
11667 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
11668 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11669 input_overwrite_node, input_varpool_node): Stream implicit_section.
11670 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
11671 removal; it will fail in LTO.
11673 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11675 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
11676 Change second alternative type to f_mcr.
11677 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
11678 and 12th alternatives' types to f_mcr and f_mrc.
11679 (*movdi_aarch64): Same for 12th and 13th alternatives.
11680 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
11681 (aarch64_movtilow_tilow): Change type to fmov.
11683 2014-06-10 Jiong Wang <jiong.wang@arm.com>
11685 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
11686 (aarch64_save_or_restore_callee_save_registers): Fix layout.
11688 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11690 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
11692 (aarch64_sqrdmulh_lane<mode>): Likewise.
11693 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11694 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11695 (aarch64_sqdmulh_laneq<mode>): New expander.
11696 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11697 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
11698 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
11699 (aarch64_sqdmulh_lane<mode>): New expander.
11700 (aarch64_sqrdmulh_lane<mode>): Likewise.
11701 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11702 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11703 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
11704 (aarch64_sqdmlal_laneq<mode>): Likewise.
11705 (aarch64_sqdmlsl_lane<mode>): Likewise.
11706 (aarch64_sqdmlsl_laneq<mode>): Likewise.
11707 (aarch64_sqdmlal2_lane<mode>): Likewise.
11708 (aarch64_sqdmlal2_laneq<mode>): Likewise.
11709 (aarch64_sqdmlsl2_lane<mode>): Likewise.
11710 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11711 (aarch64_sqdmull_lane<mode>): Likewise.
11712 (aarch64_sqdmull_laneq<mode>): Likewise.
11713 (aarch64_sqdmull2_lane<mode>): Likewise.
11714 (aarch64_sqdmull2_laneq<mode>): Likewise.
11716 2014-06-10 Richard Biener <rguenther@suse.de>
11718 PR tree-optimization/61438
11719 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
11720 (eliminate_dom_walker::before_dom_children): Only try to inhibit
11721 insertion of IVs if running PRE.
11722 (eliminate): Adjust.
11723 (pass_pre::execute): Likewise.
11724 (pass_fre::execute): Likewise.
11726 2014-06-10 Richard Biener <rguenther@suse.de>
11728 PR middle-end/61456
11729 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11730 Do not use the main variant for the type comparison.
11731 (ncr_compar): Likewise.
11732 (nonoverlapping_component_refs_p): Likewise.
11734 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
11736 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
11737 REG_CFA_RESTORE mode.
11739 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
11741 * config/i386/i386.c (expand_vec_perm_pblendv): New.
11742 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
11743 expand_vec_perm_pblendv.
11745 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11747 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
11749 Simplify description of __crc32d and __crc32cd intrinsics.
11750 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
11753 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
11756 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
11757 * config.in: Regenerate.
11758 * configure: Likewise.
11760 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11762 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
11764 (intersect_static_var_sets): Remove.
11765 (propagate): Do not prune local statics.
11767 2014-06-10 Jakub Jelinek <jakub@redhat.com>
11770 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
11771 Set lastprivate_firstprivate even if omp_private_outer_ref
11772 langhook returns true.
11773 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
11774 langhook, call unshare_expr on new_var and call
11775 build_outer_var_ref to get the last argument.
11777 2014-06-10 Marek Polacek <polacek@redhat.com>
11780 * doc/extend.texi: Add cindex for transparent_union.
11782 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
11784 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
11785 init_symbolic_number ().
11787 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
11789 PR middle-end/61141
11790 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
11791 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
11792 (verify_rtl_sharing): Likewise.
11794 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
11797 * tree.c (build_qualified_type): Use a canonical type for
11800 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11802 * config/arm/arm-modes.def: Remove XFmode.
11804 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
11807 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
11808 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
11809 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
11810 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
11811 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
11812 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
11813 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
11814 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
11815 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
11817 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
11819 * tree-core.h (tree_decl_with_vis): Remove section_name.
11821 2014-06-09 Kito Cheng <kito@0xlab.org>
11823 * ira.c (ira): Don't call init_caller_save if LRA enabled
11824 since LRA use its own infrastructure to handle that.
11826 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11828 * symtab.c (dump_symtab_base): Update dumping.
11829 (symtab_make_decl_local): Clear only DECL_COMDAT.
11830 * tree-vect-data-refs.c (Check that variable is static before
11831 tampering with sections.
11832 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
11833 (cgraph_create_virtual_clone): Likewise.
11834 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
11835 (decl_section_name, set_decl_section_name): New accessors.
11836 (find_decls_types_r): Do not walk section name
11837 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
11838 (decl_comdat_group, decl_comdat_group_id): Constify.
11839 (decl_section_name, set_decl_section_name): Update.
11840 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
11841 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
11842 (cgraph_make_node_local_1): Clear section and comdat group.
11843 * cgraph.h (set_comdat_group): Sanity check.
11844 (get_section, set_section): New.
11845 * ipa-comdats.c (ipa_comdats): Use get_section.
11846 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
11847 * lto-streamer-out.c: Do not follow section names.
11848 * c-family/c-common.c (handle_section_attribute): Update.
11849 * lto-cgraph.c (lto_output_node): Output section.
11850 (lto_output_varpool_node): Likewise.
11851 (read_comdat_group): Rename to ...
11852 (read_identifier): ... this one.
11853 (read_string_cst): New function.
11854 (input_node, input_varpool_node): Input section names.
11855 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11856 (new_emutls_decl): Update.
11857 (secname_for_decl): Check section names only of static vars.
11858 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
11859 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
11860 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11861 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11862 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
11863 * config/mcore/mcore.c (mcore_unique_section): Likewise.
11864 * config/mips/mips.c (mips16_build_function_stub): Likewise.
11865 * config/v850/v850.c (v850_insert_attributes): Likewise.
11866 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
11868 (h8300_handle_tiny_data_attribute): Likewise.
11869 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
11870 (bfin_handle_l2_attribute): Likewise.
11872 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11874 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
11875 remove static initializer.
11877 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11879 * varasm.c (use_blocks_for_decl_p): Check symbol table
11880 instead of alias attribute.
11881 (place_block_symbol): Recurse on aliases.
11883 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11885 * ipa-visibility.c: Include varasm.h
11886 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
11888 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11890 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
11891 outputting aliases.
11893 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
11895 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
11896 from test_insn into GGC space escape via SET_SRC.
11898 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
11900 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
11901 call statement, if any.
11902 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
11903 statements, if any. Tidy up.
11905 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11908 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
11909 iterators, VSX_D that handles 64-bit types, and VSX_LE that
11910 handles swapping the two 64-bit double words on little endian
11911 systems. Include V1TImode and optionally TImode in VSX_LE so that
11912 these types are properly swapped. Change all of the insns and
11913 splits that do the 64-bit swaps to use VSX_LE.
11914 (vsx_le_perm_load_<mode>): Likewise.
11915 (vsx_le_perm_store_<mode>): Likewise.
11916 (splitters for little endian memory operations): Likewise.
11917 (vsx_xxpermdi2_le_<mode>): Likewise.
11918 (vsx_lxvd2x2_le_<mode>): Likewise.
11919 (vsx_stxvd2x2_le_<mode>): Likewise.
11921 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
11924 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
11925 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
11926 and corresponding splitters. Zero extend general register
11927 or memory input operand to XMM temporary. Enable for
11928 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
11929 (floatunssi<mode>2): Update expander predicate.
11931 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
11933 PR rtl-optimization/61325
11934 * lra-constraints.c (process_address_1): Check scale equal to one
11935 to prevent transformation: base + scale * index => base + new_reg.
11937 2014-06-06 Richard Biener <rguenther@suse.de>
11939 PR tree-optimization/59299
11940 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
11942 (nearest_common_dominator_of_uses): Likewise.
11943 (statement_sink_location): Adjust. Support sinking loads.
11945 2014-06-06 Martin Jambor <mjambor@suse.cz>
11947 * ipa-prop.c (get_place_in_agg_contents_list): New function.
11948 (build_agg_jump_func_from_list): Likewise.
11949 (determine_known_aggregate_parts): Renamed to
11950 determine_locally_known_aggregate_parts. Moved some functionality
11951 to the two functions above, removed bound checks.
11953 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
11955 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
11956 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
11957 (aarch64_progress_pointer): Likewise.
11958 (aarch64_copy_one_part_and_move_pointers): Likewise.
11959 (aarch64_expand_movmen): Likewise.
11960 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
11961 * config/aarch64/aarch64.md (movmem<mode>): New.
11963 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
11965 * targhooks.c (default_add_stmt_cost): Call target specific
11966 hook instead of default one.
11968 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11970 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
11971 endianness instead of host endianness.
11972 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
11975 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11978 * function.c (instantiate_decls): Process the saved static chain.
11979 (expand_function_start): If not optimizing, save the static chain
11981 * tree-nested.c (convert_all_function_calls): Always create the static
11982 chain for nested functions if not optimizing.
11984 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11986 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
11988 2014-06-06 Richard Biener <rguenther@suse.de>
11990 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
11991 (construct_init_block): Likewise.
11992 (construct_exit_block): Likewise.
11993 (pass_expand::execute): Likewise.
11994 * graphite.c (graphite_transforms): Replace check for current_loops
11995 with a check for > 1 loops.
11996 (pass_graphite_transforms::execute): Adjust.
11997 * ipa-split.c (split_function): Remove check for current_loops.
11998 * omp-low.c (expand_parallel_call): Likewise.
11999 (expand_omp_for_init_counts): Likewise.
12000 (extract_omp_for_update_vars): Likewise.
12001 (expand_omp_for_generic): Likewise.
12002 (expand_omp_sections): Likewise.
12003 (expand_omp_target): Likewise.
12004 * tracer.c (tail_duplicate): Likewise.
12005 (pass_tracer::execute): Likewise.
12006 * trans-mem.c (expand_transaction): Likewise.
12007 * tree-complex.c (expand_complex_div_wide): Likewise.
12008 * tree-eh.c (lower_resx): Likewise.
12009 (cleanup_empty_eh_merge_phis): Likewise.
12010 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12011 current_loops with a check for > 1 loops.
12012 (pass_predcom::execute): Adjust.
12013 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12014 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12015 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12016 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12017 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12018 * tree-switch-conversion.c (process_switch): Likewise.
12019 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12020 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12021 (execute_vrp): Likewise.
12022 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12024 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12026 * rtl.h (insn_location): Declare.
12027 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12028 with UNKNOWN_LOCATION.
12029 * emit-rtl.c (insn_location): New function.
12030 * final.c (notice_source_line): Check that the instruction has a
12031 location before retrieving it and use insn_location.
12032 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12033 * print-rtl.c (print_rtx): Likewise.
12035 2014-06-06 Richard Biener <rguenther@suse.de>
12037 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12039 2014-06-06 Christian Bruel <christian.bruel@st.com>
12041 PR tree-optimization/43934
12042 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12045 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12047 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12048 return NO_REGS for extra address and memory constraints. Handle
12049 operands that match (or are equivalent to something that matches)
12050 extra constant constraints. Ignore other non-register operands.
12052 2014-06-06 Alan Modra <amodra@gmail.com>
12055 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12056 * doc/tm.texi: Regenerate.
12057 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12058 Use throughout in place of REG_PARM_STACK_SPACE.
12059 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12060 "incoming" param. Pass to rs6000_function_parms_need_stack.
12061 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12062 prototype_p when incoming. Use function decl when incoming
12063 to handle K&R style functions.
12064 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12065 (INCOMING_REG_PARM_STACK_SPACE): Define.
12067 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12070 * cfgexpand.c (expand_debug_expr): Use address space of nested
12071 TREE_TYPE for ADDR_EXPR and MEM_REF.
12073 2014-06-05 Jeff Law <law@redhat.com>
12075 PR tree-optimization/61289
12076 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12077 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12078 looking for those which match LHS. All callers changed.
12079 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12080 parameters and code which manipulated them. All callers changed.
12081 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12082 and DST_MAP parameters. Simplify invalidation code by just calling
12083 invalidate_equivalences. All callers changed.
12084 (thread_across_edge): Simplify now that we don't need to maintain
12085 the map of equivalences to invalidate.
12087 2014-06-05 Kai Tietz <ktietz@redhat.com>
12088 Richard Henderson <rth@redhat.com>
12091 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12092 checking for !TARGET_X32.
12093 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12094 (sibcall_intern): New define_insn, plus required peepholes.
12095 (sibcall_pop_intern): Likewise.
12096 (sibcall_value_intern): Likewise.
12097 (sibcall_value_pop_intern): Likewise.
12099 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12101 * tree-inline.c (tree_function_versioning): Check DF info existence
12102 before accessing it.
12104 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12106 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12108 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12109 aarch64_frame hard_fp_offset and frame_size.
12110 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12111 frame_size; remove original_frame_size.
12112 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12113 (aarch64_initial_elimination_offset): Remove frame_size and
12114 offset. Use aarch64_frame frame_size.
12116 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12117 Jiong Wang <jiong.wang@arm.com>
12118 Renlin <renlin.li@arm.com>
12120 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12121 initialization of R30 offset. Update offset. Iterate core
12122 regisers upto X30. Remove X29, X30 specific code.
12124 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12125 Jiong Wang <jiong.wang@arm.com>
12127 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12128 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12129 (aarch64_register_saved_on_entry): Adjust test.
12131 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12133 * config/aarch64/aarch64.h (machine_function): Move
12134 saved_varargs_size from here...
12135 (aarch64_frame): ... to here.
12137 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12138 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12139 (aarch64_initial_elimination_offset)
12140 (aarch64_setup_incoming_varargs): Adjust location of
12141 saved_varargs_size.
12143 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12145 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12148 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12149 Prachi Godbole <Prachi.Godbole@imgtec.com>
12151 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12152 mips32r5 entry to use PROCESSOR_P5600.
12153 * config/mips/mips-tables.opt: Regenerate.
12154 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12155 * config/mips/mips.c (mips_fmadd_bypass): New function.
12156 (mips_rtx_cost_data): Add costs for p5600.
12157 (mips_issue_rate): Add support for p5600.
12158 (mips_multipass_dfa_lookahead): Likewise.
12159 * config/mips/mips.h (TUNE_P5600): New define.
12160 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12161 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12162 * config/mips/mips.md: Include p5600.md.
12163 (processor): Add p5600.
12164 * config/mips/p5600.md: New file.
12166 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12168 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12169 * config/i386/predicates.md (palignr_operand): New.
12170 Indicates if permutation is suitable for palignr instruction.
12172 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12174 PR tree-optimization/61319
12175 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12176 stmt belongs to loop.
12178 2014-06-05 Richard Biener <rguenther@suse.de>
12180 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12181 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12182 (lookup_tmp_var): Adjust.
12183 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12185 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12187 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12189 2014-06-05 Marek Polacek <polacek@redhat.com>
12192 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12194 2014-06-04 Tom de Vries <tom@codesourcery.com>
12196 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12199 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12201 PR tree-optimization/61385
12202 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12204 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12206 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12207 changed to use fatal_error.
12208 (main): Ensure lto_wrapper_cleanup is run atexit.
12210 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12212 * lra-constraints.c (valid_address_p): Move earlier in file.
12213 (address_eliminator): New structure.
12214 (satisfies_memory_constraint_p): New function.
12215 (satisfies_address_constraint_p): Likewise.
12216 (process_alt_operands, process_address, curr_insn_transform): Use them.
12218 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12220 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12222 (target_lra_int, default_target_lra_int, this_target_lra_int)
12223 (op_alt_data): Delete.
12224 * lra.h (lra_init): Delete.
12225 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12226 (init_insn_code_data_once): Remove op_alt_data handling.
12227 (finish_insn_code_data_once): Likewise.
12228 (init_op_alt_data): Delete.
12229 (get_static_insn_data): Initialize operand_alternative to null.
12230 (free_insn_recog_data): Cast operand_alternative before freeing it.
12231 (setup_operand_alternative): Take the operand_alternative as
12232 parameter and assume it isn't already cached in the static
12234 (lra_set_insn_recog_data): Update accordingly.
12235 (lra_init): Delete.
12236 * ira.c (ira_init): Don't call lra_init.
12237 * target-globals.h (this_target_lra_int): Declare.
12238 (target_globals): Remove lra_int.
12239 (restore_target_globals): Update accordingly.
12240 * target-globals.c: Don't include lra-int.h.
12241 (default_target_globals, save_target_globals): Remove lra_int.
12243 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12245 * recog.h (operand_alternative): Convert reg_class, reject,
12246 matched and matches into bitfields.
12247 (preprocess_constraints): New overload.
12248 (preprocess_insn_constraints): New function.
12249 (preprocess_constraints): Take the insn as parameter.
12250 (recog_op_alt): Change into a pointer.
12251 (target_recog): Add x_op_alt.
12252 * recog.c (asm_op_alt): New variable.
12253 (recog_op_alt): Change into a pointer.
12254 (preprocess_constraints): New overload, replacing the old function
12255 definition with one that doesn't use global state.
12256 (preprocess_insn_constraints): New function.
12257 (preprocess_constraints): Use them. Take the insn as parameter.
12258 Use asm_op_alt for asms.
12259 (recog_init): Free existing x_op_alt entries.
12260 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12262 (make_early_clobber_and_input_conflicts): Likewise.
12263 (process_bb_node_lives): Pass the insn to process_constraints.
12264 * reg-stack.c (check_asm_stack_operands): Likewise.
12265 (subst_asm_stack_regs): Likewise.
12266 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12267 * regrename.c (build_def_use): Likewise.
12268 * sched-deps.c (sched_analyze_insn): Likewise.
12269 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12270 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12271 (note_invalid_constants): Likewise.
12272 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12273 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12276 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12278 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12279 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12281 (make_early_clobber_and_input_conflicts): Likewise.
12282 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12284 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12286 * recog.h (alternative_class): New function.
12287 (which_op_alt): Return a const recog_op_alt.
12288 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12289 (subst_asm_stack_regs): Likewise.
12290 * config/arm/arm.c (note_invalid_constants): Likewise.
12291 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12292 the operand_alternative; use alternative class instead.
12293 * sel-sched.c (get_reg_class): Likewise.
12294 * regrename.c (build_def_use): Likewise.
12295 (hide_operands, restore_operands, record_out_operands): Update type
12298 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12300 * recog.h (recog_op_alt): Convert to a flat array.
12301 (which_op_alt): New function.
12302 * recog.c (recog_op_alt): Convert to a flat array.
12303 (preprocess_constraints): Update accordingly, grouping all
12304 operands of the same alternative together, rather than the
12306 * ira-lives.c (check_and_make_def_conflict): Likewise.
12307 (make_early_clobber_and_input_conflicts): Likewise.
12308 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12309 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12310 (subst_asm_stack_regs): Likewise.
12311 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12312 * regrename.c (hide_operands, record_out_operands): Likewise.
12313 (build_def_use): Likewise.
12314 * sel-sched.c (get_reg_class): Likewise.
12315 * config/arm/arm.c (note_invalid_constants): Likewise.
12317 2014-06-04 Jason Merrill <jason@redhat.com>
12321 * gimplify.c (gimplify_arg): Non-static.
12322 * gimplify.h: Declare it.
12324 2014-06-04 Richard Biener <rguenther@suse.de>
12326 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12327 TREE_PUBLIC and DECL_EXTERNAL decls.
12329 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12331 * regcprop.c (copyprop_hardreg_forward_1): Account for
12332 HARD_REGNO_CALL_PART_CLOBBERED.
12334 2014-06-04 Richard Biener <rguenther@suse.de>
12336 * configure.ac: Check whether the underlying type of int64_t
12337 is long or long long.
12338 * configure: Regenerate.
12339 * config.in: Likewise.
12340 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12341 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12343 2014-06-04 Richard Biener <rguenther@suse.de>
12345 PR tree-optimization/60098
12346 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12348 (dse_optimize_stmt): Simplify, now that we found a kill
12351 2014-06-04 Richard Biener <rguenther@suse.de>
12353 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12354 of accesses with non-invariant address.
12356 2014-06-04 Martin Liska <mliska@suse.cz>
12358 * cgraph.h (cgraph_make_wrapper): New function introduced.
12359 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12360 * ipa-inline.h (inline_analyze_function): The function is global.
12361 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12363 2014-06-04 Martin Liska <mliska@suse.cz>
12365 * tree.h (private_lookup_attribute_starting): New function.
12366 (lookup_attribute_starting): Likewise.
12367 * tree.c (private_lookup_attribute_starting): Likewise.
12369 2014-06-04 Martin Liska <mliska@suse.cz>
12371 * cgraph.h (expand_thunk): New argument added.
12372 (address_taken_from_non_vtable_p): New global function.
12373 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12374 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12375 * cgraphunit.c (analyze_function): Likewise.
12376 (assemble_thunks_and_aliases): Argument added to call.
12377 (expand_thunk): New argument forces to produce GIMPLE thunk.
12379 2014-06-04 Martin Liska <mliska@suse.cz>
12381 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12382 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12383 * profile.c (branch_prob): Likewise.
12385 2014-06-04 Martin Jambor <mjambor@suse.cz>
12388 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12389 handler for switch on an ipa_ref_use enum.
12390 * ipa-reference.c (analyze_function): Likewise.
12392 2014-06-04 Kai Tietz <ktietz@redhat.com>
12394 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12395 from old call-instruction.
12397 2014-06-04 Bin Cheng <bin.cheng@arm.com>
12399 * config/aarch64/aarch64.c (aarch64_classify_address)
12400 (aarch64_legitimize_reload_address): Support full addressing modes
12402 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
12403 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
12405 2014-06-03 Andrew Pinski <apinski@cavium.com>
12407 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
12410 2014-06-03 Andrew Pinski <apinski@cavium.com>
12412 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
12413 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
12415 2014-06-03 Kai Tietz <ktietz@redhat.com>
12417 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
12420 2014-06-03 Dehao Chen <dehao@google.com>
12422 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
12425 2014-06-03 Marek Polacek <polacek@redhat.com>
12428 * doc/invoke.texi: Document -Wswitch-bool.
12429 * function.c (stack_protect_epilogue): Cast controlling expression of
12431 * gengtype.c (walk_type): Generate switch expression with its
12432 controlling expression cast to int.
12434 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
12436 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
12438 * config/avr/avr-tables.opt: Regenerate.
12439 * config/avr/t-multilib: Regenerate.
12440 * doc/avr-mmcu.texi: Regenerate.
12442 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
12443 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12445 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
12446 (ata6617c, ata664251): Add new avr35 devices.
12447 (ata6612c): Add new avr4 device.
12448 (ata6613c, ata6614q): Add new avr5 devices.
12449 * config/avr/avr-tables.opt: Regenerate.
12450 * config/avr/t-multilib: Regenerate.
12451 * doc/avr-mmcu.texi: Regenerate.
12453 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12455 * gcc/config/aarch64/aarch64-builtins.c
12456 (aarch64_types_binop_ssu_qualifiers): New static data.
12457 (TYPES_BINOP_SSU): Define.
12458 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
12459 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
12460 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
12461 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
12462 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
12463 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
12464 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
12465 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
12466 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
12467 suffix to builtin function name, remove cast.
12468 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
12469 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
12470 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
12472 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12474 * gcc/config/aarch64/aarch64-builtins.c
12475 (aarch64_types_binop_uus_qualifiers,
12476 aarch64_types_shift_to_unsigned_qualifiers,
12477 aarch64_types_unsigned_shiftacc_qualifiers): Define.
12478 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
12479 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
12480 sqshlu_n, uqshl_n): Update qualifiers.
12481 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
12482 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
12483 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
12484 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
12485 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
12486 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
12487 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
12488 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
12489 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
12490 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
12491 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
12492 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
12493 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
12494 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
12495 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
12496 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
12497 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
12498 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
12499 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
12500 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
12501 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
12502 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
12503 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
12504 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
12505 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
12506 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
12507 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
12509 2014-06-03 Teresa Johnson <tejohnson@google.com>
12511 * tree-sra.c (modify_function): Record caller nodes after rebuild.
12513 2014-06-02 Jason Merrill <jason@redhat.com>
12516 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
12518 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12520 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
12523 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12525 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
12527 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
12528 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
12529 * config/aarch64/iterators.md (REVERSE): New iterator.
12530 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
12531 (rev_op): New int_attribute.
12532 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
12533 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
12534 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
12535 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
12536 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
12537 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
12538 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
12539 Replace temporary __asm__ with __builtin_shuffle.
12541 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12543 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
12545 * config/mips/mips-tables.opt: Regenerate.
12546 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
12547 to use mips_isa_rev rather than ISA_MIPS32R2.
12548 * config/mips/mips.h (ISA_MIPS32R3): New define.
12549 (ISA_MIPS32R5): New define.
12550 (ISA_MIPS64R3): New define.
12551 (ISA_MIPS64R5): New define.
12552 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
12553 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
12554 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
12556 (MIPS_ISA_SYNCI_SPEC): Likewise.
12557 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
12558 (LINK_SPEC): Added mips32r3 and mips32r5.
12559 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
12560 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
12561 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
12562 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
12563 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
12564 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
12565 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
12567 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12569 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
12571 * config/mips/mips.opt (mxpa): New option.
12572 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
12575 2014-06-03 Martin Jambor <mjambor@suse.cz>
12578 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
12581 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12583 PR tree-optimization/61328
12584 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
12585 initialization from find_bswap_or_nop_1.
12586 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
12587 in source_expr2 before using the size value the function sets. Also
12588 make use of init_symbolic_number () in both the old place and
12589 find_bswap_or_nop_load () to avoid reading uninitialized memory when
12590 doing recursion in the GIMPLE_BINARY_RHS case.
12592 2014-06-03 Richard Biener <rguenther@suse.de>
12594 PR tree-optimization/61383
12595 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
12598 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12600 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
12601 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
12602 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
12603 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
12605 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
12606 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
12607 * system.h: ...here and make it unconditional.
12608 * target.def (conditional_register_usage): Mention
12609 define_register_constraint instead of old-style constraint macros.
12610 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
12611 * doc/tm.texi: Regenerate.
12612 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
12613 protected by !USE_MD_CONSTRAINTS.
12614 * config/frv/frv.md: Remove quote from old version of documentation.
12615 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
12616 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
12617 CONST_DOUBLE_OK_FOR_LETTER.
12618 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
12620 2014-06-02 Andrew Pinski <apinski@cavium.com>
12622 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
12623 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
12624 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
12625 file whose name depends on -mabi= and -mbig-endian.
12626 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
12627 Handle LP64 better and handle ilp32 too.
12628 (MULTILIB_OPTIONS): Delete.
12629 (MULTILIB_DIRNAMES): Delete.
12631 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
12633 * expr.h: Remove prototypes of functions defined in builtins.c.
12634 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
12635 Remove prototypes of functions defined in builtins.c.
12636 * builtins.h: Update prototype list to include all exported functions.
12637 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
12638 no_c99_libc_has_function): Move to targhooks.c
12639 (build_string_literal, build_call_expr_loc_array,
12640 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
12642 (expand_builtin_object_size, fold_builtin_object_size): Make static.
12643 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
12644 no_c99_libc_has_function): Relocate from builtins.c.
12645 * tree.c: Include builtins.h.
12646 (build_call_expr_loc_array, build_call_expr_loc_vec,
12647 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
12649 * fold-const.h (fold_fma): Move prototype to builtins.h.
12650 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
12651 * asan.c: Include builtins.h.
12652 * cfgexpand.c: Likewise.
12653 * convert.c: Likewise.
12654 * emit-rtl.c: Likewise.
12655 * except.c: Likewise.
12656 * expr.c: Likewise.
12657 * fold-const.c: Likewise.
12658 * gimple-fold.c: Likewise.
12659 * gimple-ssa-strength-reduction.c: Likewise.
12660 * gimplify.c: Likewise.
12661 * ipa-inline.c: Likewise.
12662 * ipa-prop.c: Likewise.
12663 * lto-streamer-out.c: Likewise.
12664 * stmt.c: Likewise.
12665 * tree-inline.c: Likewise.
12666 * tree-object-size.c: Likewise.
12667 * tree-sra.c: Likewise.
12668 * tree-ssa-ccp.c: Likewise.
12669 * tree-ssa-forwprop.c: Likewise.
12670 * tree-ssa-loop-ivcanon.c: Likewise.
12671 * tree-ssa-loop-ivopts.c: Likewise.
12672 * tree-ssa-math-opts.c: Likewise.
12673 * tree-ssa-reassoc.c: Likewise.
12674 * tree-ssa-threadedge.c: Likewise.
12675 * tree-streamer-in.c: Likewise.
12676 * tree-vect-data-refs.c: Likewise.
12677 * tree-vect-patterns.c: Likewise.
12678 * tree-vect-stmts.c: Likewise.
12679 * config/aarch64/aarch64.c: Likewise.
12680 * config/alpha/alpha.c: Likewise.
12681 * config/arc/arc.c: Likewise.
12682 * config/arm/arm.c: Likewise.
12683 * config/avr/avr.c: Likewise.
12684 * config/bfin/bfin.c: Likewise.
12685 * config/c6x/c6x.c: Likewise.
12686 * config/cr16/cr16.c: Likewise.
12687 * config/cris/cris.c: Likewise.
12688 * config/epiphany/epiphany.c: Likewise.
12689 * config/fr30/fr30.c: Likewise.
12690 * config/frv/frv.c: Likewise.
12691 * config/h8300/h8300.c: Likewise.
12692 * config/i386/i386.c: Likewise.
12693 * config/i386/winnt.c: Likewise.
12694 * config/ia64/ia64.c: Likewise.
12695 * config/iq2000/iq2000.c: Likewise.
12696 * config/lm32/lm32.c: Likewise.
12697 * config/m32c/m32c.c: Likewise.
12698 * config/m32r/m32r.c: Likewise.
12699 * config/m68k/m68k.c: Likewise.
12700 * config/mcore/mcore.c: Likewise.
12701 * config/mep/mep.c: Likewise.
12702 * config/microblaze/microblaze.c: Likewise.
12703 * config/mips/mips.c: Likewise.
12704 * config/mmix/mmix.c: Likewise.
12705 * config/mn10300/mn10300.c: Likewise.
12706 * config/moxie/moxie.c: Likewise.
12707 * config/msp430/msp430.c: Likewise.
12708 * config/nds32/nds32.c: Likewise.
12709 * config/pa/pa.c: Likewise.
12710 * config/pdp11/pdp11.c: Likewise.
12711 * config/picochip/picochip.c: Likewise.
12712 * config/rl78/rl78.c: Likewise.
12713 * config/rs6000/rs6000.c: Likewise.
12714 * config/rx/rx.c: Likewise.
12715 * config/s390/s390.c: Likewise.
12716 * config/score/score.c: Likewise.
12717 * config/sh/sh.c: Likewise.
12718 * config/sparc/sparc.c: Likewise.
12719 * config/spu/spu.c: Likewise.
12720 * config/stormy16/stormy16.c: Likewise.
12721 * config/tilegx/tilegx.c: Likewise.
12722 * config/tilepro/tilepro.c: Likewise.
12723 * config/v850/v850.c: Likewise.
12724 * config/vax/vax.c: Likewise.
12725 * config/xtensa/xtensa.c: Likewise.
12727 2014-06-02 Jeff Law <law@redhat.com>
12729 PR rtl-optimization/61094
12730 * ree.c (combine_reaching_defs): Do not reextend an insn if it
12731 was marked as do_no_reextend. If a copy is needed to eliminate
12732 an extension, then mark it as do_not_reextend.
12734 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
12736 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
12738 2014-06-02 Richard Henderson <rth@redhat.com>
12741 * config/alpha/alpha.c (print_operand_address): Allow symbolic
12742 addresses inside asms. Use output_operand_lossage instead of
12745 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
12748 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
12749 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
12751 2014-06-02 Tom de Vries <tom@codesourcery.com>
12753 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
12754 case that x has VOIDmode.
12756 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
12758 * varasm.c (copy_constant): Delete function.
12759 (build_constant_desc): Don't call it.
12761 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12764 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
12765 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
12766 with immediate_operand.
12768 2014-06-02 Andreas Schwab <schwab@suse.de>
12770 * config/ia64/ia64.c
12771 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
12772 pending_data_specs first.
12774 2014-06-02 Richard Biener <rguenther@suse.de>
12776 PR tree-optimization/61378
12777 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
12778 valueized_anything.
12780 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
12782 * config/i386/constraints.md (Bw): Rename from 'w'.
12783 (Bz): Rename from 'z'.
12784 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
12786 2014-06-01 Kai Tietz <ktietz@redhat.com>
12789 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
12790 * config/i386/i386.md (sibcall_insn_operand): Use Bs
12791 instead of m constraint.
12793 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
12795 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
12796 a separate alternative where the scratch operand 2 is marked as
12799 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
12801 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12802 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
12803 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
12804 and __builtins_arm_get_fpscr.
12805 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12806 __builtins_arm_get_fpscr.
12807 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
12808 __builtins_arm_ldfpscr.
12809 (arm_atomic_assign_expand_fenv): New function.
12810 * config/arm/vfp.md (set_fpscr): New pattern.
12811 (get_fpscr) : Likewise.
12812 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
12814 * doc/extend.texi (AARCH64 Built-in Functions) : Document
12815 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
12817 2014-05-30 Jakub Jelinek <jakub@redhat.com>
12819 * asan.c (report_error_func): Add SLOW_P argument, use
12820 BUILT_IN_ASAN_*_N if set.
12821 (build_check_stmt): Likewise.
12822 (instrument_derefs): If T has insufficient alignment,
12823 force same handling as for odd sizes.
12825 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
12826 BUILT_IN_ASAN_REPORT_STORE_N): New.
12827 * asan.c (struct asan_mem_ref): Change access_size type to
12829 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
12830 update_mem_ref_hash_table): Likewise.
12831 (asan_mem_ref_hasher::hash): Hash in a HWI.
12832 (report_error_func): Change size_in_bytes argument to HWI.
12833 Use *_N builtins if size_in_bytes is larger than 16 or not power of
12835 (build_shadow_mem_access): New function.
12836 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
12837 Handle size_in_bytes not power of two or larger than 16.
12838 (instrument_derefs): Don't give up if size_in_bytes is not
12839 power of two or is larger than 16.
12841 2014-05-30 Kai Tietz <ktietz@redhat.com>
12844 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
12845 for sibling-tail-calls.
12846 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
12848 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
12849 (sibcall_insn_operand): Add check for sibcall_memory_operand.
12851 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12853 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
12854 * config/avr/avr-tables.opt: Regenerate.
12855 * config/avr/t-multilib: Regenerate.
12856 * doc/avr-mmcu.texi: Regenerate.
12858 2014-05-30 Ian Lance Taylor <iant@google.com>
12860 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
12863 2014-05-30 Tom de Vries <tom@codesourcery.com>
12865 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
12868 2014-05-30 Tom de Vries <tom@codesourcery.com>
12870 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12871 * lra.c (initialize_lra_reg_info_element): Add init of
12872 actual_call_used_reg_set field.
12873 (lra): Call lra_create_live_ranges before lra_inheritance for
12875 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12877 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
12878 instead of call_used_reg_set for -fuse-caller-save.
12879 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12881 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12883 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
12885 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
12887 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12889 * ira.c (ira_get_dup_out_num): Check for output operands at
12890 the start of the loop. Handle cases where an included alternative
12891 follows an excluded one.
12893 2014-05-29 Mike Stump <mikestump@comcast.net>
12896 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
12897 post ld passes when lto is used.
12899 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
12901 PR rtl-optimization/61325
12902 * lra-constraints.c (process_address): Rename to process_address_1.
12903 (process_address): New function.
12905 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
12907 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
12908 TYPES_BINOPV): New static data.
12909 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
12911 * config/aarch64/aarch64-simd.md (aarch64_ext,
12912 aarch64_im_lane_boundsi): New patterns.
12913 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
12915 (aarch64_evpc_ext): New function.
12917 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
12919 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
12920 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
12921 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
12922 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
12923 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
12925 2014-05-29 Tom de Vries <tom@codesourcery.com>
12927 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
12929 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
12930 Richard Sandiford <rdsandiford@googlemail.com>
12932 * arm/iterators.md (shiftable_ops): New code iterator.
12933 (t2_binop0, arith_shift_insn): New code attributes.
12934 * arm/predicates.md (shift_nomul_operator): New predicate.
12935 * arm/arm.md (insn_enabled): Delete.
12936 (enabled): Remove insn_enabled test.
12937 (*arith_shiftsi): Delete. Replace with ...
12938 (*<arith_shift_insn>_multsi): ... new pattern.
12939 (*<arith_shift_insn>_shiftsi): ... new pattern.
12940 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
12942 2014-05-29 Radovan Obradovic <robradovic@mips.com>
12943 Tom de Vries <tom@codesourcery.com>
12945 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
12946 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
12948 (mips_split_call): Use POST_CALL_TMP_REG.
12949 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
12951 2014-05-29 Tom de Vries <tom@codesourcery.com>
12953 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
12954 with #ifdef STACK_REGS.
12956 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
12958 * varasm.c (get_variable_section): Walk aliases.
12959 (place_block_symbol): Walk aliases.
12961 2014-05-28 Tom de Vries <tom@codesourcery.com>
12964 2014-05-28 Tom de Vries <tom@codesourcery.com>
12966 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12967 * lra.c (initialize_lra_reg_info_element): Add init of
12968 actual_call_used_reg_set field.
12969 (lra): Call lra_create_live_ranges before lra_inheritance for
12971 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12973 * lra-constraints.c (need_for_call_save_p): Use
12974 actual_call_used_reg_set instead of call_used_reg_set for
12976 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12978 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12980 * doc/md.texi: Document that the % constraint character must
12981 be at the beginning of the string.
12982 * genoutput.c (validate_insn_alternatives): Check that '=',
12983 '+' and '%' only appear at the beginning of a constraint.
12984 * ira.c (commutative_constraint_p): Delete.
12985 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
12986 at the start of the string.
12987 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
12989 * config/arm/neon.md (bicdi3_neon): Likewise.
12990 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
12991 (slt_si, sltu_si): Likewise.
12992 * config/vax/vax.md (sbcdi3): Likewise.
12993 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
12994 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
12995 (mul64): Move '%' to beginning of constraint.
12996 * config/arm/arm.md (*xordi3_insn): Likewise.
12997 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
12998 (xorsi3): Likewise.
13000 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13002 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13004 2014-05-28 Jason Merrill <jason@redhat.com>
13007 * cgraph.h (symtab_node::get_comdat_group_id): New.
13008 * cgraphunit.c (analyze_functions): Call it.
13009 * symtab.c (dump_symtab_node): Likewise.
13010 * tree.c (decl_comdat_group_id): New.
13011 * tree.h: Declare it.
13012 * lto-streamer-out.c (write_symbol): Use it.
13013 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13015 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13017 PR bootstrap/PR61146
13018 * wide-int.cc: Do not include longlong.h when compiling with clang.
13020 2014-05-28 Richard Biener <rguenther@suse.de>
13022 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13023 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13024 (vrp_visit_assignment_or_call): Print less vertical space.
13025 (vrp_visit_stmt): Likewise.
13026 (vrp_visit_phi_node): Likewise. For a PHI argument with
13027 VR_VARYING range consider recording it as copy.
13029 2014-05-28 Richard Biener <rguenther@suse.de>
13032 2014-05-28 Richard Biener <rguenther@suse.de>
13034 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13036 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13038 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13039 sufficiently aligned and an offset is used at the same time.
13040 (expand_expr_real_1): Likewise.
13042 2014-05-28 Richard Biener <rguenther@suse.de>
13044 PR middle-end/61045
13045 * fold-const.c (fold_comparison): When folding
13046 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13047 the sign of the remaining constant operand stays the same.
13049 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13051 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13052 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13053 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13055 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13056 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13057 (m32bit-doubles) Likewise.
13058 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13059 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13062 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13064 * configure.ac ($gcc_cv_ld_clearcap): New test.
13065 * configure: Regenerate.
13066 * config.in: Regenerate.
13067 * config/sol2.opt (mclear-hwcap): New option.
13068 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13069 * config/sol2-clearcap.map: Moved here from
13070 testsuite/gcc.target/i386/clearcap.map.
13071 * config/sol2-clearcapv2.map: Move here from
13072 gcc.target/i386/clearcapv2.map.
13073 * config/t-sol2 (install): Depend on install-clearcap-map.
13074 (install-clearcap-map): New target.
13075 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13078 2014-05-28 Richard Biener <rguenther@suse.de>
13080 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13081 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13082 ... here and remove the rest.
13083 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13085 2014-05-28 Richard Biener <rguenther@suse.de>
13087 PR tree-optimization/61335
13088 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13089 new range fails, drop to varying.
13091 2014-05-28 Olivier Hainque <hainque@adacore.com>
13093 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13094 (CPP_SPEC): Add entry for -mcpu=8548.
13095 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13096 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13098 2014-05-28 Tom de Vries <tom@codesourcery.com>
13100 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13101 * lra.c (initialize_lra_reg_info_element): Add init of
13102 actual_call_used_reg_set field.
13103 (lra): Call lra_create_live_ranges before lra_inheritance for
13105 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13107 * lra-constraints.c (need_for_call_save_p): Use
13108 actual_call_used_reg_set instead of call_used_reg_set for
13110 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13112 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13113 Tom de Vries <tom@codesourcery.com>
13115 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13117 (@item -fuse-caller-save): New item.
13119 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13120 Tom de Vries <tom@codesourcery.com>
13122 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13123 OPT_fuse_caller_save.
13125 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13126 Tom de Vries <tom@codesourcery.com>
13128 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13129 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13130 get_call_reg_set_usage.
13131 * resource.c (mark_set_resources, mark_target_live_regs): Use
13132 get_call_reg_set_usage.
13133 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13135 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13136 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13137 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13138 * ira-build.c (ira_create_allocno): Init
13139 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13140 (create_cap_allocno, propagate_allocno_info)
13141 (propagate_some_info_from_allocno)
13142 (copy_info_to_removed_store_destinations): Handle
13143 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13144 * ira-costs.c (ira_tune_allocno_costs): Use
13145 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13147 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13148 Tom de Vries <tom@codesourcery.com>
13150 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13151 and function_used_regs_valid fields.
13152 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13153 find_all_hard_reg_sets.
13154 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13155 (get_call_reg_set_usage): New function.
13156 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13157 * regs.h (get_call_reg_set_usage): Declare.
13159 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13162 * config/dbx.h (License): Add Runtime Library Exception.
13163 * config/newlib-stdint.h (License): Same.
13164 * config/rtems.h (License): Same
13165 * config/initfini-array.h (License): Same
13166 * config/v850/v850.h (License): Same.
13167 * config/v850/v850-opts.h (License): Same
13168 * config/v850/rtems.h (License): Same.
13170 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13173 * doc/extend.texi (Local Labels): Note that label differences are
13174 not supported for AVR.
13176 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13177 Olivier Hainque <hainque@adacore.com>
13179 * rtl.h (set_for_reg_notes): Declare.
13180 * emit-rtl.c (set_for_reg_notes): New function.
13181 (set_unique_reg_note): Use it.
13182 * optabs.c (add_equal_note): Likewise
13184 2014-05-27 Andrew Pinski <apinski@cavium.com>
13186 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13187 Use <w> for the register in assembly template.
13188 (stack_protect_test): Use the mode of operands[0] for the result.
13189 (stack_protect_test_<mode>): Use <w> for the register
13190 in assembly template.
13192 2014-05-27 DJ Delorie <dj@redhat.com>
13194 * config/rx/rx.c (add_vector_labels): New.
13195 (rx_output_function_prologue): Call it.
13196 (rx_handle_func_attribute): Don't require empty arguments.
13197 (rx_handle_vector_attribute): New.
13198 (rx_attribute_table): Add "vector" attribute.
13199 * doc/extend.texi (interrupt, vector): Document new/changed
13200 RX-specific attributes.
13202 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13204 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13206 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13207 predicate to detect a negative quotient.
13209 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13211 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13212 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13213 Add X - Y CMP 0 to X CMP Y transformation.
13214 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13216 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13218 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13221 2014-05-27 Steve Ellcey <sellcey@mips.com>
13223 * config/mips/mips.c: Add include of cgraph.h.
13225 2014-05-27 Richard Biener <rguenther@suse.de>
13227 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13229 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13232 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13233 * config/arm/arm-cores.def (License): Same.
13234 * config/arm/arm-opts.h (License): Same.
13235 * config/arm/aout.h (License): Same.
13236 * config/arm/bpabi.h (License): Same.
13237 * config/arm/elf.h (License): Same.
13238 * config/arm/linux-elf.h (License): Same.
13239 * config/arm/linux-gas.h (License): Same.
13240 * config/arm/netbsd-elf.h (License): Same.
13241 * config/arm/uclinux-eabi.h (License): Same.
13242 * config/arm/uclinux-elf.h (License): Same.
13243 * config/arm/vxworks.h (License): Same.
13245 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13247 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13248 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13249 (arm_init_neon_builtins): Handle NEON_BSWAP.
13250 Define required type nodes.
13251 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13252 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13253 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13254 * config/arm/iterators.md (VDQHSD): New mode iterator.
13256 2014-05-27 Richard Biener <rguenther@suse.de>
13258 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13259 Try using literal operands when comparing value-ranges failed.
13261 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13263 * ira.c (commutative_operand): Adjust for change to recog_data.
13264 [Missing from previous commit.]
13266 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13268 * system.h (TEST_BIT): New macro.
13269 * recog.h (alternative_mask): New type.
13270 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13271 (recog_data_d): Replace alternative_enabled_p array with
13272 enabled_alternatives.
13273 (target_recog): New structure.
13274 (default_target_recog, this_target_recog): Declare.
13275 (get_enabled_alternatives, recog_init): Likewise.
13276 * recog.c (default_target_recog, this_target_recog): New variables.
13277 (get_enabled_alternatives): New function.
13278 (extract_insn): Use it.
13279 (recog_init): New function.
13280 (preprocess_constraints, constrain_operands): Adjust for change to
13282 * postreload.c (reload_cse_simplify_operands): Likewise.
13283 * reload.c (find_reloads): Likewise.
13284 * ira-costs.c (record_reg_classes): Likewise.
13285 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13286 all alternatives after a disabled one would be skipped.
13287 (ira_implicitly_set_insn_hard_regs): Likewise.
13288 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13289 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13290 with enabled_alternatives.
13291 * lra.c (free_insn_recog_data): Update accordingly.
13292 (lra_update_insn_recog_data): Likewise.
13293 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13294 * lra-constraints.c (process_alt_operands): Likewise. Handle
13295 only_alternative as part of the enabled mask.
13296 * target-globals.h (this_target_recog): Declare.
13297 (target_globals): Add a recog field.
13298 (restore_target_globals): Restore this_target_recog.
13299 * target-globals.c: Include recog.h.
13300 (default_target_globals): Initialize recog field.
13301 (save_target_globals): Likewise.
13302 * reginfo.c (reinit_regs): Call recog_init.
13303 * toplev.c (backend_init_target): Likewise.
13305 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13307 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13308 rather than any named insn's code.
13310 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13313 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13314 * config/arm/arm-cores.def (License): Same.
13316 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13318 * tree.h (decl_comdat_group): Declare.
13319 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13320 * tree.c (decl_comdat_group): Here.
13322 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13324 PR rtl-optimization/61222
13325 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13326 the shift, truncate the PLUS operand to the result mode.
13328 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13331 * config/i386/i386.c (ix86_rtx_costs)
13332 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13335 2014-05-26 Martin Jambor <mjambor@suse.cz>
13337 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13340 2014-05-26 Richard Biener <rguenther@suse.de>
13342 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13343 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13344 Provide specializations.
13345 (wi::int_traits <HOST_WIDE_INT>,
13346 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13348 2014-05-26 Alan Modra <amodra@gmail.com>
13351 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13352 params and return a bool. Remove dead code. Update comment.
13353 Assert we have a const_int source. Remove bogus code from
13354 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13355 handling of constants > 2G and reg_equal note, from..
13356 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13357 return value. Update comment. If we can, use a new pseudo
13358 for intermediate calculations.
13359 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13361 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13362 call to rs6000_emit_set_const in splitter.
13363 (movdi_internal64+2, +3): Likewise.
13365 2014-05-26 Richard Biener <rguenther@suse.de>
13367 * system.h: Define __STDC_FORMAT_MACROS before
13368 including inttypes.h.
13369 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13370 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13371 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13372 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13373 HOST_WIDEST_INT_C): Remove.
13374 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13375 if C99 inttypes.h is not available.
13376 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13377 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13378 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13379 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13380 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13381 (struct output_info): Likewise.
13382 (print_statistics): Adjust.
13383 (dump_bitmap_statistics): Likewise.
13384 * bt-load.c (migrate_btr_defs): Print with PRId64.
13385 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13386 (MAX_SAFE_MULTIPLIER): Adjust.
13387 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13388 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13389 dump_cgraph_node): Likewise.
13390 * final.c (dump_basic_block_info): Likewise.
13391 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13392 * gcov.c (format_gcov): Likewise.
13393 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
13395 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13396 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13397 (inline_small_functions, dump_overall_stats, dump_inline_stats):
13398 Use PRId64 for dumping.
13399 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13400 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
13401 (add_allocno_hard_regs): Adjust.
13402 * loop-doloop.c (doloop_modify): Print using PRId64.
13403 * loop-iv.c (inverse): Compute in uint64_t.
13404 (determine_max_iter, iv_number_of_iterations): Likewise.
13405 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
13406 Print using PRId64.
13407 * lto-streamer-out.c (write_symbol): Use uint64_t.
13408 * mcf.c (CAP_INFINITY): Use int64_t maximum.
13409 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
13410 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
13411 * modulo-sched.c (const_iteration_count): Use int64_t.
13412 (sms_schedule): Dump using PRId64.
13413 * predict.c (dump_prediction): Likewise.
13414 * pretty-print.h (pp_widest_integer): Remove.
13415 * profile.c (get_working_sets, is_edge_inconsistent,
13416 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
13417 * tree-pretty-print.c (pp_double_int): Remove case handling
13418 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
13419 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
13421 (pass_optimize_bswap::execute): Remove restriction on hosts.
13422 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
13423 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13424 * tree.c (widest_int_cst_value): Remove.
13425 * tree.h (widest_int_cst_value): Likewise.
13426 * value-prof.c (dump_histogram_value): Print using PRId64.
13427 * gengtype.c (main): Also inject int64_t.
13428 * ggc-page.c (struct max_alignment): Use int64_t.
13429 * alloc-pool.c (struct allocation_object_def): Likewise.
13430 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
13432 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
13433 * doc/tm.texi: Regenerated.
13434 * gengtype-lex.l (IWORD): Handle [u]int64_t.
13435 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
13436 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
13437 mmix_output_register_setting): Use [u]int64_t in prototypes.
13438 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
13439 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
13440 mmix_output_octa, mmix_output_shifted_value): Adjust.
13441 (mmix_intval): Adjust. Remove unreachable case.
13442 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
13444 2014-05-26 Richard Biener <rguenther@suse.de>
13446 * configure.ac: Drop __int64 type check. Insist that we
13447 found uint64_t and int64_t.
13448 * hwint.h (HOST_BITS_PER___INT64): Remove.
13449 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
13450 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
13451 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
13452 (HOST_WIDEST_FAST_INT): Remove __int64 case.
13453 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
13454 for dst_q_src_df_rms_cdt.
13455 * configure: Regenerate.
13456 * config.in: Likewise.
13458 2014-05-26 Michael Tautschnig <mt@debian.org>
13461 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
13462 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
13464 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13466 PR rtl-optimization/61278
13467 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
13469 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13471 PR rtl-optimization/61220
13472 Part of PR rtl-optimization/61225
13473 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
13474 insn; skip split_edge for a block with only one successor.
13476 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13478 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
13481 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13483 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
13484 (update_vtable_references): New function.
13485 (function_and_variable_visibility): Rewrite also vtable initializers.
13486 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
13488 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13490 * ggc.h (ggc_grow): New function.
13491 * ggc-none.c (ggc_grow): New function.
13492 * ggc-page.c (ggc_grow): Likewise.
13494 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13496 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
13497 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
13498 comdat_can_be_unshared_p, cgraph_externally_visible_p,
13499 varpool_externally_visible_p, can_replace_by_local_alias,
13500 update_visibility_by_resolution_info, function_and_variable_visibility,
13501 pass_data_ipa_function_and_variable_visibility,
13502 make_pass_ipa_function_and_variable_visibility,
13503 whole_program_function_and_variable_visibility,
13504 pass_data_ipa_whole_program_visibility,
13505 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
13506 * cgraph.h (cgraph_local_node_p): Declare.
13507 * ipa-visibility.c: New file.
13508 * Makefile.in (OBJS): Add ipa-visiblity.o
13510 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13512 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
13513 that var decl is available.
13515 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13517 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
13518 symtab_node pointer.
13519 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
13520 (find_decls_types_r): Do not walk COMDAT_GROUP.
13521 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
13522 * varasm.c (make_decl_one_only): Use set_comdat_group;
13523 create node if needed.
13524 * ipa-inline-transform.c (save_inline_function_body): Update
13525 way we decl->symtab mapping.
13526 * symtab.c (symtab_hash, hash_node, eq_node
13527 symtab_insert_node_to_hashtable): Remove.
13528 (symtab_register_node): Update.
13529 (symtab_unregister_node): Update.
13530 (symtab_get_node): Reimplement as inline function.
13531 (symtab_add_to_same_comdat_group): Update.
13532 (symtab_dissolve_same_comdat_group_list): Update.
13533 (dump_symtab_base): Update.
13534 (verify_symtab_base): Update.
13535 (symtab_make_decl_local): Update.
13536 (fixup_same_cpp_alias_visibility): Update.
13537 (symtab_nonoverwritable_alias): Update.
13538 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
13539 * ipa.c (update_visibility_by_resolution_info): UPdate.
13540 * bb-reorder.c: Include cgraph.h
13541 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
13542 with comdat groups.
13543 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
13544 * cgraph.c (cgraph_get_create_node): Update.
13545 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
13547 (symtab_get_node): Make inline.
13548 (symtab_insert_node_to_hashtable): Remove.
13549 (symtab_can_be_discarded): Update.
13550 (decl_comdat_group): New function.
13551 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
13553 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
13555 (read_comdat_group): New function.
13556 (input_node, input_varpool_node): Use it.
13557 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
13559 * mips.c (mips_start_unique_function): Likewise.
13560 (ix86_code_end): Likewise.
13561 (rs6000_code_end): Likweise.
13562 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
13564 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13566 * gengtype-state.c (fatal_reading_state): Bring offline.
13567 * optabs.c (widening_optab_handler): Bring offline.
13568 * optabs.h (widening_optab_handler): Likewise.
13569 * final.c (get_attr_length_1): Likewise.
13571 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13573 * sched-int.h (sd_iterator_cond): Manually tail recurse.
13575 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13577 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
13578 (ppc440-compare): Include shift with dot.
13579 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
13580 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
13582 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
13584 (e6500_sfx2): Include it.
13585 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
13586 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13587 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
13588 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
13589 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
13590 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
13591 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
13592 *lshiftrt_internal1le, *lshiftrt_internal1be,
13593 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
13594 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
13595 *rotldi3_internal10le, *rotldi3_internal10be,
13596 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
13597 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
13598 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
13599 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
13600 define_insns): Use type "shift" in the appropriate alternatives.
13602 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13604 * config/rs6000/rs6000.md (type): Add "logical". Delete
13606 (dot): Adjust comment.
13607 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
13608 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
13609 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
13610 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
13611 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
13612 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
13613 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
13614 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13616 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13617 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13618 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13619 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13620 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13621 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13622 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13623 * config/rs6000/8540.md (ppc8540_su): Adjust.
13624 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13625 cell-cmp-microcoded): Adjust.
13626 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13627 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13628 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13629 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13630 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13631 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13632 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13633 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13634 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13636 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13637 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
13638 Adjust. Adjust comment.
13639 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13640 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13642 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13644 * config/rs6000/rs6000.md (type): Add "add".
13645 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
13646 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
13647 define_insns): Use it.
13648 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13650 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13651 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13652 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13653 * config/rs6000/601.md (ppc601-integer): Adjust.
13654 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13655 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13656 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13657 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13658 * config/rs6000/8540.md (ppc8540_su): Adjust.
13659 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13660 cell-cmp-microcoded): Adjust.
13661 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13662 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13663 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13664 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13665 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13666 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13667 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13668 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13669 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13671 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13672 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
13673 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13674 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13676 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13678 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
13679 "delayed_compare", "var_delayed_compare".
13680 (var_shift): New attribute.
13681 (cell_micro): Adjust.
13682 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
13683 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
13684 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
13685 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13686 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13687 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13688 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13689 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
13690 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
13691 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13692 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
13693 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
13694 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
13695 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
13696 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
13697 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
13698 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
13699 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
13700 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
13701 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
13702 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
13703 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
13704 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
13705 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13706 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13708 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13709 * config/rs6000/440.md (ppc440-integer): Adjust.
13710 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13711 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
13712 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13713 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13714 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13715 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13716 * config/rs6000/8540.md (ppc8540_su): Adjust.
13717 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13718 cell-cmp-microcoded): Adjust.
13719 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
13720 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13721 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
13722 e500mc64_delayed): Adjust.
13723 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
13724 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
13725 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13726 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
13727 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
13728 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
13729 power6-delayed-compare, power6-var-delayed-compare): Adjust.
13730 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
13731 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
13733 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13734 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13736 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13738 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
13739 (bits): New mode_attr.
13740 (idiv_ldiv): Delete mode_attr.
13741 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
13742 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13743 rs6000_adjust_priority, is_nonpipeline_insn,
13744 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13746 * config/rs6000/40x.md (ppc403-idiv): Adjust.
13747 * config/rs6000/440.md (ppc440-idiv): Adjust.
13748 * config/rs6000/476.md (ppc476-idiv): Adjust.
13749 * config/rs6000/601.md (ppc601-idiv): Adjust.
13750 * config/rs6000/603.md (ppc603-idiv): Adjust.
13751 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
13752 ppc620-ldiv): Adjust.
13753 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
13754 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
13755 * config/rs6000/8540.md (ppc8540_divide): Adjust.
13756 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
13757 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
13758 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
13759 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
13760 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
13761 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
13762 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
13763 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
13764 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
13765 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
13766 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
13767 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
13768 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
13769 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
13770 * config/rs6000/titan.md (titan_fxu_div): Adjust.
13772 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13774 * config/rs6000/rs6000.md (type): Delete "insert_word",
13775 "insert_dword". Add "insert".
13776 (size): Update comment.
13777 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13778 insn_must_be_first_in_group): Adjust.
13779 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13780 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13781 *insvsi_internal6, insvdi_internal): Adjust.
13783 * config/rs6000/40x.md (ppc403-integer): Adjust.
13784 * config/rs6000/440.md (ppc440-integer): Adjust.
13785 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
13786 * config/rs6000/601.md (ppc601-integer): Adjust.
13787 * config/rs6000/603.md (ppc603-integer): Adjust.
13788 * config/rs6000/6xx.md (ppc604-integer): Adjust.
13789 * config/rs6000/7450.md (ppc7450-integer): Adjust.
13790 * config/rs6000/7xx.md (ppc750-integer): Adjust.
13791 * config/rs6000/8540.md (ppc8540_su): Adjust.
13792 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
13793 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
13794 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13795 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
13796 * config/rs6000/e5500.md (e5500_sfx): Adjust.
13797 * config/rs6000/e6500.md (e6500_sfx): Adjust.
13798 * config/rs6000/mpc.md (mpccore-integer): Adjust.
13799 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
13800 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
13801 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
13802 * config/rs6000/power7.md (power7-integer): Adjust.
13803 * config/rs6000/power8.md (power8-1cyc): Adjust.
13804 * config/rs6000/rs64.md (rs64a-integer): Adjust.
13805 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13807 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13809 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
13810 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
13811 (size): New attribute.
13812 (dot): New attribute.
13813 (cell_micro): Adjust.
13814 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
13815 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
13816 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
13817 umuldi3_highpart): Adjust.
13818 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13819 rs6000_adjust_priority, is_nonpipeline_insn,
13820 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13822 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
13823 ppc405-imul3): Adjust.
13824 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
13825 * config/rs6000/476.md (ppc476-imul): Adjust.
13826 * config/rs6000/601.md (ppc601-imul): Adjust.
13827 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
13828 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
13829 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
13830 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
13831 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
13833 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
13834 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
13835 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
13836 cell-imul): Adjust.
13837 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
13838 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
13839 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
13840 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
13841 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
13842 * config/rs6000/mpc.md (mpccore-imul): Adjust.
13843 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
13844 power4-lmul, power4-imul, power4-imul3): Adjust.
13845 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
13846 power5-lmul, power5-imul, power5-imul3): Adjust.
13847 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
13848 power6-lmul, power6-imul, power6-imul3): Adjust.
13849 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
13850 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
13852 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
13853 rs64a-lmul): Adjust.
13854 * config/rs6000/titan.md (titan_imul): Adjust.
13856 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13858 * config/rs6000/rs6000.md (type): Add new value "halfmul".
13859 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
13860 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
13861 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
13862 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
13863 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
13864 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
13865 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
13866 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
13867 * config/rs6000/titan.md: Delete nonsensical comment.
13868 (titan_imul): Add type imul3.
13869 (titan_mulhw): Remove type imul3; add type halfmul.
13871 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13873 * config/rs6000/rs6000.md (type): Reorder, reformat.
13875 2014-05-23 Martin Jambor <mjambor@suse.cz>
13877 PR tree-optimization/53787
13878 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
13879 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
13880 analysis_done, update all uses.
13881 * ipa-prop.c: Include domwalk.h
13882 (param_analysis_info): Removed.
13883 (param_aa_status): New type.
13884 (ipa_bb_info): Likewise.
13885 (func_body_info): Likewise.
13886 (ipa_get_bb_info): New function.
13887 (aa_overwalked): Likewise.
13888 (find_dominating_aa_status): Likewise.
13889 (parm_bb_aa_status_for_bb): Likewise.
13890 (parm_preserved_before_stmt_p): Changed to use new param AA info.
13891 (load_from_unmodified_param): Accept func_body_info as a parameter
13892 instead of parms_ainfo.
13893 (parm_ref_data_preserved_p): Changed to use new param AA info.
13894 (parm_ref_data_pass_through_p): Likewise.
13895 (ipa_load_from_parm_agg_1): Likewise. Update callers.
13896 (compute_complex_assign_jump_func): Changed to use new param AA info.
13897 (compute_complex_ancestor_jump_func): Likewise.
13898 (ipa_compute_jump_functions_for_edge): Likewise.
13899 (ipa_compute_jump_functions): Removed.
13900 (ipa_compute_jump_functions_for_bb): New function.
13901 (ipa_analyze_indirect_call_uses): Likewise, moved variable
13903 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
13904 and info, moved variable declarations down.
13905 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
13907 (ipa_analyze_stmt_uses): Likewise.
13908 (ipa_analyze_params_uses): Removed.
13909 (ipa_analyze_params_uses_in_bb): New function.
13910 (ipa_analyze_controlled_uses): Likewise.
13911 (free_ipa_bb_info): Likewise.
13912 (analysis_dom_walker): New class.
13913 (ipa_analyze_node): Handle node-specific forbidden analysis,
13914 initialize and free func_body_info, use dominator walker.
13915 (ipcp_modif_dom_walker): New class.
13916 (ipcp_transform_function): Create and free func_body_info, use
13917 ipcp_modif_dom_walker, moved a lot of functionality there.
13919 2014-05-23 Marek Polacek <polacek@redhat.com>
13920 Jakub Jelinek <jakub@redhat.com>
13922 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
13923 * gcc.c (sanitize_spec_function): Likewise.
13924 * convert.c (convert_to_integer): Include "ubsan.h". Add
13925 floating-point to integer instrumentation.
13926 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
13927 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
13928 SANITIZE_NONDEFAULT.
13929 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
13930 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
13931 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
13932 * ubsan.c: Include "realmpfr.h" and "dfp.h".
13933 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
13934 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
13935 float/double/long double.
13936 (ubsan_instrument_float_cast): New function.
13937 * ubsan.h (ubsan_instrument_float_cast): Declare.
13939 2014-05-23 Jiong Wang <jiong.wang@arm.com>
13941 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
13943 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
13944 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
13945 Adjust for tailcalling through registers.
13946 * config/aarch64/aarch64.h (enum reg_class): New caller save
13948 (REG_CLASS_NAMES): Likewise.
13949 (REG_CLASS_CONTENTS): Likewise.
13950 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
13951 Allow tailcalling without decls.
13953 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13955 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13956 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
13958 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
13959 gsi, and variables v_* to v*.
13961 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
13963 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
13965 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13967 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
13968 * omp-low.c: Update accordingly.
13970 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
13971 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
13972 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
13973 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
13974 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
13975 GF_OMP_TARGET_KIND_UPDATE.
13977 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13978 Explicitly enumerate the expected region types.
13980 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
13983 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
13984 documentation; the old documentation didn't clearly state the
13985 constraints on the contents of the pointed-to storage.
13987 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13989 Fix bootstrap error on ia64
13990 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
13991 Return default value.
13993 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
13995 PR tree-optimization/54733
13996 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
13998 (find_bswap_or_nop_load): New.
13999 (find_bswap_1): Renamed to ...
14000 (find_bswap_or_nop_1): This. Also add support for memory source.
14001 (find_bswap): Renamed to ...
14002 (find_bswap_or_nop): This. Also add support for memory source and
14003 detection of bitwise operations equivalent to load in target
14005 (execute_optimize_bswap): Likewise. Also move its leading comment back
14006 in place and split statement transformation into ...
14007 (bswap_replace): This.
14009 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14011 PR rtl-optimization/61215
14012 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14013 simplify_gen_subreg until final substitution.
14015 2014-05-23 Alan Modra <amodra@gmail.com>
14018 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14019 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14020 Use "Y" constraint rather than "m".
14022 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14024 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14026 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14027 New function declaration.
14028 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14029 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14030 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14031 (aarch64_init_builtins) : Initialize builtins
14032 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14033 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14034 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14035 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14036 and __builtins_aarch64_set_fpsr.
14037 (aarch64_atomic_assign_expand_fenv): New function.
14038 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14039 (get_fpcr) : Likewise.
14040 (set_fpsr) : Likewise.
14041 (get_fpsr) : Likewise.
14042 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14043 and UNSPECV_SET_FPSR.
14044 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14045 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14046 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14048 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14050 PR rtl-optimization/60969
14051 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14052 constraints. Set up mem cost for NO_REGS case.
14054 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14056 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14058 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14060 * config/darwin.c: Include "lto-section-names.h".
14061 (LTO_SEGMENT_NAME): Don't define.
14062 * config/i386/winnt.c: Include "lto-section-names.h".
14063 * lto-streamer.c: Include "lto-section-names.h".
14064 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14065 * lto-wrapper.c: Include "lto-section-names.h".
14066 (LTO_SECTION_NAME_PREFIX): Don't define.
14067 * lto-section-names.h: New file.
14068 * cgraphunit.c: Include "lto-section-names.h".
14070 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14072 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14074 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14077 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14079 2014-05-22 Nick Clifton <nickc@redhat.com>
14081 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14083 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14085 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14086 -> (T)A transformation to integer types.
14088 2014-05-22 Teresa Johnson <tejohnson@google.com>
14090 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14091 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14092 (gcov_rewrite): Use gcov_nonruntime_assert.
14093 (gcov_open): Ditto.
14094 (gcov_write_words): Ditto.
14095 (gcov_write_length): Ditto.
14096 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14097 gcc_assert from IN_LIBGCOV code.
14098 (gcov_read_summary): Use gcov_error to flag profile corruption.
14099 (gcov_sync): Use gcov_nonruntime_assert.
14100 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14101 (gcov_histo_index): Use gcov_nonruntime_assert.
14102 (static void gcov_histogram_merge): Ditto.
14103 (compute_working_sets): Ditto.
14104 * gcov-io.h (gcov_nonruntime_assert): Define.
14105 (gcov_error): Define for !IN_LIBGCOV
14107 2014-05-22 Richard Biener <rguenther@suse.de>
14109 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14110 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14111 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14112 and deallocation site.
14113 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14114 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14115 passing through the incoming points-to set.
14116 (handle_lhs_call): Use flags argument instead of recomputing it.
14117 (find_func_aliases_for_call): Call handle_lhs_call with proper
14120 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14122 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14123 all padding bits in REAL_VALUE_TYPE are cleared.
14125 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14127 Cleanup and improve multipass_dfa_lookahead_guard
14128 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14129 (core2i7_first_cycle_multipass_begin,)
14130 (core2i7_first_cycle_multipass_issue,)
14131 (core2i7_first_cycle_multipass_backtrack): Update signature.
14132 * config/ia64/ia64.c
14133 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14134 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14135 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14137 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14138 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14140 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14142 * doc/tm.texi: Regenerate.
14144 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14145 * haifa-sched.c (ready_try): Make signed to allow negative values.
14146 (rebug_ready_list_1): Update.
14147 (choose_ready): Simplify.
14148 (sched_extend_ready_list): Update.
14150 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14152 Remove IA64 speculation tweaking flags
14153 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14154 speculation tuning flags.
14155 (msched-prefer-non-data-spec-insns,)
14156 (msched-prefer-non-control-spec-insns): Obsolete options.
14157 * haifa-sched.c (choose_ready): Remove handling of
14158 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14159 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14160 and PREFER_NON_DATA_SPEC.
14161 * sel-sched.c (process_spec_exprs): Remove handling of
14162 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14164 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14166 Improve scheduling debug output
14167 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14168 (advance_one_cycle): Update.
14169 (schedule_insn, queue_to_ready): Add debug printouts.
14170 (debug_ready_list_1): New static function.
14171 (debug_ready_list): Update.
14172 (max_issue): Add debug printouts.
14173 (dump_insn_stream): New static function.
14174 (schedule_block): Use it. Also better indent printouts.
14176 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14178 Fix sched_insn debug counter
14179 * haifa-sched.c (schedule_insn): Update.
14180 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14181 (save_backtrack_point, restore_backtrack_point): Update.
14182 (first_nonscheduled_insn): New static function.
14183 (queue_to_ready, choose_ready): Use it.
14184 (schedule_block): Init nonscheduled_insns_begin.
14185 (sched_emit_insn): Update.
14188 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14190 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14192 (aarch64_secondary_reload) : LikeWise.
14193 (aarch64_class_max_nregs) : Remove CORE_REGS.
14194 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14195 (REG_CLASS_NAMES) : Likewise.
14196 (REG_CLASS_CONTENTS) : LikeWise.
14197 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14199 2014-05-21 Guozhi Wei <carrot@google.com>
14202 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14204 (vqdmulhq_n_s16): Likewise.
14206 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14208 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14210 2014-05-21 Marek Polacek <polacek@redhat.com>
14213 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14215 2014-05-21 Martin Jambor <mjambor@suse.cz>
14217 * doc/invoke.texi (Optimize Options): Document parameters
14218 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14219 ipa-cp-array-index-hint-bonus.
14221 2014-05-21 Mark Wielaard <mjw@redhat.com>
14224 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14225 version >= 3 or not strict DWARF.
14226 * langhooks.h (struct lang_hooks_for_types): Add
14227 enum_underlying_base_type.
14228 * langhooks.c (lhd_enum_underlying_base_type): New function.
14229 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14230 enum_underlying_base_type.
14231 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14232 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14233 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14235 2014-05-21 Richard Biener <rguenther@suse.de>
14237 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14239 2014-05-21 John Marino <gnugcc@marino.st>
14241 * config.gcc (*-*-dragonfly*): New target.
14242 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14243 * configure: Regenerate.
14244 * config/dragonfly-stdint.h: New.
14245 * config/dragonfly.h: New.
14246 * config/dragonfly.opt: New.
14247 * config/i386/dragonfly.h: New.
14248 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14250 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14252 * tree.def (VOID_CST): New.
14253 * tree-core.h (TI_VOID): New.
14254 * tree.h (void_node): New.
14255 * tree.c (tree_node_structure_for_code, tree_code_size)
14256 (iterative_hash_expr): Handle VOID_CST.
14257 (build_common_tree_nodes): Initialize void_node.
14259 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14261 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14263 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14265 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14268 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14269 flag_reorder_blocks_and_partition.
14270 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14272 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14275 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14277 (*addc_r_t): Add new insn_and_split.
14279 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14281 PR middle-end/61252
14282 * omp-low.c (handle_simd_reference): New function.
14283 (lower_rec_input_clauses): Use it. Defer adding reference
14284 initialization even for reduction without placeholder if in simd,
14285 handle it properly later on.
14287 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14289 PR tree-optimization/60899
14290 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14291 assume all static symbols will have definition wile parsing and
14292 check the do have definition later in compilation; check that
14293 variable referring symbol will be output before concluding that
14294 reference is safe; be conservative for referring local statics;
14295 be more precise about when comdat is output in other partition.
14297 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14300 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14302 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14303 (ipa_inline): Loop inline_to_all_callers until no more aliases
14306 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14308 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14309 set writeonly flag only for vars actually written to.
14311 2014-05-20 Dehao Chen <dehao@google.com>
14313 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14314 and callee count to get clone count.
14315 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14316 count in copy_body.
14318 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14320 PR rtl-optimization/61243
14321 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14323 2014-05-20 Xinliang David Li <davidxl@google.com>
14325 * cgraphunit.c (walk_polymorphic_call_targets): Add
14326 dbgcnt and fopt-info support.
14327 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14328 * ipa-devirt.c (ipa_devirt): Ditto.
14329 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14330 * ipa.c (walk_polymorphic_call_targets): Ditto.
14331 * gimple-fold.c (fold_gimple_assign): Ditto.
14332 (gimple_fold_call): Ditto.
14333 * dbgcnt.def: New counter.
14335 2014-05-20 DJ Delorie <dj@redhat.com>
14337 * config/msp430/msp430.md (split): Don't allow subregs when
14338 splitting SImode adds.
14339 (andneghi): Fix subtraction logic.
14340 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14342 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14344 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14346 * except.c (switch_to_exception_section, resolve_unique_section,
14347 get_named_text_section, default_function_rodata_section,
14348 align_variable, get_block_for_decl, default_section_type_flags):
14349 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14350 * symtab.c (symtab_add_to_same_comdat_group,
14351 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14352 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14354 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14355 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14356 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14357 (c6x_function_in_section_p): Likewise.
14358 * config/darwin.c (machopic_select_section): Likewise.
14359 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14360 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14361 * config/mep/mep.c (mep_select_section): LIkewise.
14362 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14364 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14366 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14367 EH region of calls to pure functions that can throw an exception.
14368 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14369 (copy_reference_ops_from_call): Also copy the EH region of the call if
14370 it can throw an exception.
14372 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14374 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14375 nested VEC_SELECTs that are inverses of each other.
14377 2014-05-20 Richard Biener <rguenther@suse.de>
14379 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14380 (extract_and_process_scc_for_name): not here.
14381 (cond_dom_walker::before_dom_children): Only process
14382 stmts that end the BB in interesting ways.
14383 (run_scc_vn): Mark param uses as visited.
14385 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14387 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14390 2014-05-20 Nick Clifton <nickc@redhat.com>
14392 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14393 (msp430_gimplify_va_arg_expr): New function.
14394 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14396 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14397 operand 0 in order to prevent confusion about the number of
14398 registers involved.
14400 2014-05-20 Richard Biener <rguenther@suse.de>
14402 PR tree-optimization/61221
14403 * tree-ssa-pre.c (el_to_update): Remove.
14404 (eliminate_dom_walker::before_dom_children): Handle released
14405 VDEFs by value-numbering them to the associated VUSE. Update
14406 stmt immediately for substituted call address.
14407 (eliminate): Remove delayed stmt updating code.
14408 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
14409 possibly late re-numbered vuses.
14410 (vn_reference_lookup_2): Adjust.
14411 (vn_reference_lookup_pieces): Likewise.
14412 (vn_reference_lookup): Likewise.
14414 2014-05-20 Richard Biener <rguenther@suse.de>
14416 * config.gcc: Remove need_64bit_hwint.
14417 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
14418 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
14420 * config.in: Regenerate.
14421 * configure: Likewise.
14423 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
14425 * doc/extend.texi: Create Label Attributes section,
14426 move all label attributes into it and reference it.
14428 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
14430 * arm.c (thumb1_reorg): When scanning backwards skip anything
14431 that's not a proper insn.
14433 2014-05-19 Richard Biener <rguenther@suse.de>
14435 PR tree-optimization/61221
14436 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14437 Do nothing for unreachable blocks.
14438 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
14439 Improve unreachability detection.
14441 2014-05-19 Richard Biener <rguenther@suse.de>
14443 PR tree-optimization/61209
14444 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
14446 2014-05-19 Nick Clifton <nickc@redhat.com>
14448 * except.c (init_eh): Fix computation of builtin setjmp buffer
14449 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
14451 2014-05-19 Richard Biener <rguenther@suse.de>
14453 PR tree-optimization/61184
14454 * tree-vrp.c (is_negative_overflow_infinity): Use
14455 TREE_OVERFLOW_P and do that check first.
14456 (is_positive_overflow_infinity): Likewise.
14457 (is_overflow_infinity): Likewise.
14458 (vrp_operand_equal_p): Properly treat operands with
14459 differing overflow as not equal.
14461 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
14463 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
14464 shift simplification where it was intended.
14466 2014-05-19 Christian Bruel <christian.bruel@st.com>
14469 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
14471 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
14474 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
14477 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14479 * reg-notes.def (CROSSING_JUMP): Likewise.
14480 * rtl.h (rtx_def): Update comment for jump flag.
14481 (CROSSING_JUMP_P): Define.
14482 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
14483 of a REG_CROSSING_JUMP note.
14484 * cfghooks.c (tidy_fallthru_edges): Likewise.
14485 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
14486 * emit-rtl.c (try_split): Likewise.
14487 * haifa-sched.c (sched_create_recovery_edges): Likewise.
14488 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14489 * jump.c (redirect_jump_2): Likewise.
14490 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
14491 (relax_delay_slots): Likewise.
14492 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
14493 (bbit_di): Likewise.
14494 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
14495 * config/sh/sh.md (jump_compact): Likewise.
14496 * bb-reorder.c (rotate_loop): Likewise.
14497 (pass_duplicate_computed_gotos::execute): Likewise.
14498 (add_reg_crossing_jump_notes): Rename to...
14499 (update_crossing_jump_flags): ...this.
14500 (pass_partition_blocks::execute): Update accordingly.
14502 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14504 * tree.h: Remove extraneous template <>.
14506 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14508 * ipa.c (symtab_remove_unreachable_nodes): Remove
14509 symbol from comdat group if its body was eliminated.
14510 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
14511 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
14512 (symtab_unregister_node): ... this one.
14513 (verify_symtab_base): More strict checking of comdats.
14514 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
14516 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14518 * tree-pass.h (make_pass_ipa_comdats): New pass.
14519 * timevar.def (TV_IPA_COMDATS): New timevar.
14520 * passes.def (pass_ipa_comdats): Add.
14521 * Makefile.in (OBJS): Add ipa-comdats.o
14522 * ipa-comdats.c: New file.
14524 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14526 * ipa.c (update_visibility_by_resolution_info): New function.
14527 (function_and_variable_visibility): Use it.
14529 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14531 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
14533 (FOR_EACH_DEFINED_SYMBOL): New macro.
14534 (varpool_first_static_initializer, varpool_next_static_initializer,
14535 varpool_first_defined_variable, varpool_next_defined_variable):
14537 (symtab_in_same_comdat_p): Correctly deal with inline functions.
14539 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14541 * ggc-page.c (ggc_handle_finalizers): Add comment.
14543 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14545 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
14546 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
14547 (ggc_internal_cleared_alloc): Likewise.
14548 * ggc-page.c (finalizer): New class.
14549 (vec_finalizer): Likewise.
14550 (globals::finalizers): New member.
14551 (globals::vec_finalizers): Likewise.
14552 (ggc_internal_alloc): Record the finalizer if any for the block being
14554 (ggc_handle_finalizers): New function.
14555 (ggc_collect): Call ggc_handle_finalizers.
14556 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
14558 (ggc_internal_cleared_alloc): Likewise.
14559 (finalize): New function.
14560 (need_finalization_p): Likewise.
14561 (ggc_alloc): Install the type's destructor as the finalizer if it
14562 might do something.
14563 (ggc_cleared_alloc): Likewise.
14564 (ggc_vec_alloc): Likewise.
14565 (ggc_cleared_vec_alloc): Likewise.
14567 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14569 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
14571 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14573 * alias.c (record_alias_subset): Adjust.
14574 * bitmap.c (bitmap_element_allocate): Likewise.
14575 (bitmap_gc_alloc_stat): Likewise.
14576 * cfg.c (init_flow): Likewise.
14577 (alloc_block): Likewise.
14578 (unchecked_make_edge): Likewise.
14579 * cfgloop.c (alloc_loop): Likewise.
14580 (flow_loops_find): Likewise.
14581 (rescan_loop_exit): Likewise.
14582 * cfgrtl.c (init_rtl_bb_info): Likewise.
14583 * cgraph.c (insert_new_cgraph_node_version): Likewise.
14584 (cgraph_allocate_node): Likewise.
14585 (cgraph_create_edge_1): Likewise.
14586 (cgraph_allocate_init_indirect_info): Likewise.
14587 * cgraphclones.c (cgraph_clone_edge): Likewise.
14588 * cgraphunit.c (add_asm_node): Likewise.
14589 (init_lowered_empty_function): Likewise.
14590 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
14591 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14592 (alpha_use_linkage): Likewise.
14593 * config/arc/arc.c (arc_init_machine_status): Likewise.
14594 * config/arm/arm.c (arm_init_machine_status): Likewise.
14595 * config/avr/avr.c (avr_init_machine_status): Likewise.
14596 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14597 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
14598 * config/cris/cris.c (cris_init_machine_status): Likewise.
14599 * config/darwin.c (machopic_indirection_name): Likewise.
14600 (darwin_build_constant_cfstring): Likewise.
14601 (darwin_enter_string_into_cfstring_table): Likewise.
14602 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
14603 * config/frv/frv.c (frv_init_machine_status): Likewise.
14604 * config/i386/i386.c (get_dllimport_decl): Likewise.
14605 (ix86_init_machine_status): Likewise.
14606 (assign_386_stack_local): Likewise.
14607 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
14608 (i386_pe_maybe_record_exported_symbol): Likewise.
14609 (i386_pe_record_stub): Likewise.
14610 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
14611 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
14612 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
14613 (m32c_note_pragma_address): Likewise.
14614 * config/mep/mep.c (mep_init_machine_status): Likewise.
14615 (mep_note_pragma_flag): Likewise.
14616 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
14617 (mips16_local_alias): Likewise.
14618 (mips_init_machine_status): Likewise.
14619 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
14620 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
14621 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
14622 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
14623 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
14624 * config/pa/pa.c (pa_init_machine_status): Likewise.
14625 (pa_get_deferred_plabel): Likewise.
14626 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
14627 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
14628 (rs6000_init_machine_status): Likewise.
14629 (output_toc): Likewise.
14630 * config/s390/s390.c (s390_init_machine_status): Likewise.
14631 * config/score/score.c (score_output_external): Likewise.
14632 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14633 * config/spu/spu.c (spu_init_machine_status): Likewise.
14634 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
14635 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
14636 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14637 * coverage.c (coverage_end_function): Likewise.
14638 * dbxout.c (dbxout_init): Likewise.
14639 * doc/gty.texi: Don't mention variable_size attribute.
14640 * dwarf2cfi.c (new_cfi): Adjust.
14641 (new_cfi_row): Likewise.
14642 (copy_cfi_row): Likewise.
14643 (create_cie_data): Likewise.
14644 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
14645 (new_loc_descr): Likewise.
14646 (find_AT_string_in_table): Likewise.
14647 (add_addr_table_entry): Likewise.
14648 (new_die): Likewise.
14649 (add_var_loc_to_decl): Likewise.
14650 (clone_die): Likewise.
14651 (clone_as_declaration): Likewise.
14652 (break_out_comdat_types): Likewise.
14653 (new_loc_list): Likewise.
14654 (add_loc_descr_to_each): Likewise.
14655 (add_location_or_const_value_attribute): Likewise.
14656 (add_linkage_name): Likewise.
14657 (lookup_filename): Likewise.
14658 (dwarf2out_var_location): Likewise.
14659 (new_line_info_table): Likewise.
14660 (dwarf2out_init): Likewise.
14661 (mem_loc_descriptor): Likewise.
14662 (loc_descriptor): Likewise.
14663 (add_const_value_attribute): Likewise.
14664 (tree_add_const_value_attribute): Likewise.
14665 (comp_dir_string): Likewise.
14666 (dwarf2out_vms_debug_main_pointer): Likewise.
14667 (string_cst_pool_decl): Likewise.
14668 * emit-rtl.c (set_mem_attrs): Likewise.
14669 (get_reg_attrs): Likewise.
14670 (start_sequence): Likewise.
14671 (init_emit): Likewise.
14672 (init_emit_regs): Likewise.
14673 * except.c (init_eh_for_function): Likewise.
14674 (gen_eh_region): Likewise.
14675 (gen_eh_region_catch): Likewise.
14676 (gen_eh_landing_pad): Likewise.
14677 (add_call_site): Likewise.
14678 * function.c (add_frame_space): Likewise.
14679 (insert_temp_slot_address): Likewise.
14680 (assign_stack_temp_for_type): Likewise.
14681 (get_hard_reg_initial_val): Likewise.
14682 (allocate_struct_function): Likewise.
14683 (prepare_function_start): Likewise.
14684 (types_used_by_var_decl_insert): Likewise.
14685 * gengtype.c (variable_size_p): Remove function.
14686 (enum alloc_quantity): Remove enum.
14687 (write_typed_alloc_def): Remove function.
14688 (write_typed_struct_alloc_def): Likewise.
14689 (write_typed_typedef_alloc_def): Likewise.
14690 (write_typed_alloc_defns): Likewise.
14692 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
14693 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
14694 * ggc.h (ggc_alloc): new function.
14695 (ggc_cleared_alloc): Likewise.
14696 (ggc_vec_alloc): Template on type of vector element, and remove
14697 element size argument.
14698 (ggc_cleared_vec_alloc): Likewise.
14699 * gimple.c (gimple_build_omp_for): Adjust.
14700 (gimple_copy): Likewise.
14701 * ipa-cp.c (get_replacement_map): Likewise.
14702 (find_aggregate_values_for_callers_subset): Likewise.
14703 (known_aggs_to_agg_replacement_list): Likewise.
14704 * ipa-devirt.c (get_odr_type): Likewise.
14705 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
14706 (read_agg_replacement_chain): Likewise.
14707 * loop-iv.c (get_simple_loop_desc): Likewise.
14708 * lto-cgraph.c (input_node_opt_summary): Likewise.
14709 * lto-section-in.c (lto_new_in_decl_state): Likewise.
14710 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
14711 (input_eh_region): Likewise.
14712 (input_eh_lp): Likewise.
14713 (input_cfg): Likewise.
14714 * optabs.c (set_optab_libfunc): Likewise.
14715 (init_tree_optimization_optabs): Likewise.
14716 (set_conv_libfunc): Likewise.
14717 * passes.c (do_per_function_toporder): Likewise.
14718 * rtl.h: Don't use variable_size gty attribute.
14719 * sese.c (if_region_set_false_region): Adjust.
14720 * stringpool.c (gt_pch_save_stringpool): Likewise.
14721 * target-globals.c (save_target_globals): Likewise.
14722 * toplev.c (general_init): Likewise.
14723 * trans-mem.c (record_tm_replacement): Likewise.
14724 (split_bb_make_tm_edge): Likewise.
14725 * tree-cfg.c (move_sese_region_to_fn): Likewise.
14726 * tree-data-ref.h (lambda_vector_new): Likewise.
14727 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
14728 * tree-iterator.c (tsi_link_before): Likewise.
14729 (tsi_link_after): Likewise.
14730 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
14731 * tree-ssa-loop-niter.c (record_estimate): Likewise.
14732 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
14733 * tree-ssa-operands.h: Don't use variable_size gty attribute.
14734 * tree-ssa.c (init_tree_ssa): Adjust.
14735 * tree-ssanames.c (set_range_info): Likewise.
14736 (get_ptr_info): Likewise.
14737 (duplicate_ssa_name_ptr_info): Likewise.
14738 (duplicate_ssa_name_range_info): Likewise.
14739 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
14740 (unpack_ts_fixed_cst_value_fields): Likewise.
14741 * tree.c (build_fixed): Likewise.
14742 (build_real): Likewise.
14743 (build_string): Likewise.
14744 (decl_priority_info): Likewise.
14745 (decl_debug_expr_insert): Likewise.
14746 (decl_value_expr_insert): Likewise.
14747 (decl_debug_args_insert): Likewise.
14748 (type_hash_add): Likewise.
14749 (build_omp_clause): Likewise.
14750 * ubsan.c (decl_for_type_insert): Likewise.
14751 * varasm.c (get_unnamed_section): Likewise.
14752 (get_noswitch_section): Likewise.
14753 (get_section): Likewise.
14754 (get_block_for_section): Likewise.
14755 (create_block_symbol): Likewise.
14756 (build_constant_desc): Likewise.
14757 (create_constant_pool): Likewise.
14758 (force_const_mem): Likewise.
14759 (record_tm_clone_pair): Likewise.
14760 * varpool.c (varpool_create_empty_node): Likewise.
14762 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14764 * dwarf2out.c (tree_add_const_value_attribute): Call
14765 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
14766 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
14767 instead of ggc_internal_<x>alloc_stat.
14768 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
14769 (ggc_realloc): Likewise.
14770 * ggc-none.c (ggc_internal_alloc): Likewise.
14771 (ggc_internal_cleared_alloc): Likewise.
14772 * ggc-page.c: Likewise.
14773 * ggc.h (ggc_internal_alloc_stat): Likewise.
14774 (ggc_internal_alloc): Remove macro.
14775 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
14776 (ggc_internal_cleared_alloc): Remove macro.
14777 (GGC_RESIZEVEC): Adjust.
14778 (ggc_resizevar): Remove macro.
14779 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
14780 (ggc_internal_cleared_vec_alloc_stat): Likewise.
14781 (ggc_internal_vec_cleared_alloc): Remove macro.
14782 (ggc_alloc_atomic_stat): Drop _stat suffix.
14783 (ggc_alloc_atomic): Remove macro.
14784 (ggc_alloc_cleared_atomic): Remove macro.
14785 (ggc_alloc_string_stat): Drop _stat suffix.
14786 (ggc_alloc_string): Remove macro.
14787 (ggc_alloc_rtx_def_stat): Adjust.
14788 (ggc_alloc_tree_node_stat): Likewise.
14789 (ggc_alloc_cleared_tree_node_stat): Likewise.
14790 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
14791 (ggc_alloc_cleared_simd_clone_stat): Likewise.
14792 * gimple.c (gimple_build_omp_for): Likewise.
14793 (gimple_copy): Likewise.
14794 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
14795 * toplev.c (realloc_for_line_map): Adjust.
14796 * tree-data-ref.h (lambda_vector_new): Likewise.
14797 * tree-phinodes.c (allocate_phi_node): Likewise.
14798 * tree.c (grow_tree_vec_stat): Likewise.
14799 * vec.h (va_gc::reserve): Adjust.
14801 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
14803 * config/microblaze/microblaze.c (break_handler): New Declaration.
14804 (microblaze_break_function_p,microblaze_is_break_handler): New.
14805 (compute_frame_size): Use microblaze_break_function_p.
14806 Add the test of break_handler.
14807 (microblaze_function_prologue) : Add the test of variable
14808 break_handler. Check the fnname by BREAK_HANDLER_NAME.
14809 (microblaze_function_epilogue) : Add the test of break_handler.
14810 (microblaze_globalize_label) : Add the test of break_handler.
14811 Check the name by BREAK_HANDLER_NAME.
14813 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
14815 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
14816 microblaze_is_break_handler test.
14817 (call_internal1,call_value_intern): Use microblaze_break_function_p.
14818 Use SYMBOL_REF_DECL.
14820 * config/microblaze/microblaze-protos.h
14821 (microblaze_break_function_p,microblaze_is_break_handler):
14824 * doc/extend.texi (MicroBlaze break_handler Functions): Document
14825 new MicroBlaze break_handler functions.
14827 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14829 * doc/extend.texi (Size of an asm): Move node text according
14830 to its @menu entry position.
14832 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
14834 PR tree-optimization/61140
14835 PR tree-optimization/61150
14836 PR tree-optimization/61197
14837 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
14839 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14841 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
14843 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
14845 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
14846 __SIZEOF_INT128__ is defined.
14848 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14850 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
14851 (rs6000_delegitimize_address): Use it.
14853 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14855 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
14856 inplace argument. Store the new address in the original MEM when true.
14857 * emit-rtl.c (change_address_1): Likewise.
14858 (adjust_address_1, adjust_automodify_address_1, offset_address):
14859 Update accordingly.
14860 * rtl.h (plus_constant): Add an inplace argument.
14861 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
14862 when true. Avoid generating (plus X (const_int 0)).
14863 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
14864 in-place. Pass true to plus_constant.
14865 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
14867 2014-05-16 Dehao Chen <dehao@google.com>
14869 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
14871 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14874 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
14876 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
14878 2014-05-16 Dehao Chen <dehao@google.com>
14880 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
14881 optimize_function_for_size_p.
14882 * regs.h (REG_FREQ_FROM_BB): Likewise.
14884 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14887 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
14888 negt_reg_operand cases.
14889 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
14891 * config/sh/predicates.md (cbranch_treg_value): Simplify.
14893 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14895 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
14898 2014-05-16 David Malcolm <dmalcolm@redhat.com>
14901 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14903 * tree-cfg.c (dump_function_to_file): Dump the return type of
14904 functions, in a line to itself before the function body, mimicking
14905 the layout of a C function.
14907 2014-05-16 Dehao Chen <dehao@google.com>
14909 * cfghooks.c (make_forwarder_block): Use direct computation to
14910 get fall-through edge's count and frequency.
14912 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
14914 * config/arc/arc.c (arc_init): Fix typo in error message.
14915 * config/i386/i386.c (ix86_expand_builtin): Likewise.
14916 (split_stack_prologue_scratch_regno): Likewise.
14917 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
14918 word from error message.
14920 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14922 * ira-costs.c: Fix typo in comment.
14924 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
14926 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
14928 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
14930 * varpool.c (dump_varpool_node): Dump write-only flag.
14931 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
14933 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
14934 write-only variables.
14935 * ipa.c (process_references): New function.
14936 (set_readonly_bit): New function.
14937 (set_writeonly_bit): New function.
14938 (clear_addressable_bit): New function.
14939 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
14940 fix handling of aliases.
14941 * cgraph.h (struct varpool_node): Add writeonly flag.
14943 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
14945 PR rtl-optimization/60969
14946 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
14947 Calculate costs for this case.
14949 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
14951 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
14952 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
14954 2014-05-16 Richard Biener <rguenther@suse.de>
14956 PR tree-optimization/61194
14957 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
14958 bool patterns ending in a COND_EXPR.
14960 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14962 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
14964 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14966 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
14967 where we were unable to cost an RTX.
14969 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14971 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
14974 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14975 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14977 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
14979 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14980 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14982 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
14983 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
14985 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14986 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14988 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
14991 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14992 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14994 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
14997 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14998 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15000 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15001 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15003 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15004 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15006 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15007 rotates and shifts.
15009 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15010 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15012 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15013 ZERO_EXTEND and SIGN_EXTEND better.
15015 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15016 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15018 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15019 logical operations.
15021 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15022 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15024 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15025 costs when costing loads and stores to memory.
15027 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15028 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15030 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15033 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15035 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15037 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15038 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15040 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15042 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15044 (aarch64_rtx_mult_cost): New.
15045 (aarch64_rtx_costs): Use it, refactor as appropriate.
15047 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15048 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15050 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15051 emit instructions, return number of instructions which would
15053 (aarch64_add_constant): Update call to aarch64_build_constant.
15054 (aarch64_output_mi_thunk): Likewise.
15055 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15058 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15060 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15061 (TARGET_RTX_COSTS): Call it.
15063 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15065 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15066 (cortexa57_vector_cost): Likewise.
15067 (cortexa57_tunings): Use them.
15069 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15071 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15072 (cpu_addrcost_table): Use it.
15073 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15074 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15077 2014-05-16 Richard Biener <rguenther@suse.de>
15079 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15080 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15081 (visit_phi): Ignore edges marked as not executable.
15082 (class cond_dom_walker): New.
15083 (cond_dom_walker::before_dom_children): Value-number
15084 control statements and mark successor edges as not
15085 executable if possible.
15086 (run_scc_vn): First walk all control statements in
15087 dominator order, marking edges as not executable.
15088 * tree-inline.c (copy_edges_for_bb): Be not confused
15089 about random edge flags.
15091 2014-05-16 Richard Biener <rguenther@suse.de>
15093 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15095 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15098 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15099 (__TM_simple_begin): Use it.
15100 (__TM_begin): Likewise.
15102 2014-05-15 Martin Jambor <mjambor@suse.cz>
15105 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15106 type_preserved flag when the indirect edge is polymorphic.
15108 2014-05-15 Martin Jambor <mjambor@suse.cz>
15110 PR tree-optimization/61090
15111 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15112 build_ref_for_model.
15114 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15116 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15117 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15119 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15121 PR tree-optimization/61158
15122 * fold-const.c (fold_binary_loc): If X is zero-extended and
15123 shiftc >= prec, make sure zerobits is all ones instead of
15124 invoking undefined behavior.
15126 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15128 * regcprop.h: New file.
15129 * regcprop.c (skip_debug_insn_p): New decl.
15130 (replace_oldest_value_reg): Check skip_debug_insn_p.
15131 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15132 * shrink-wrap.c: Include regcprop.h.
15133 (prepare_shrink_wrap): Call
15134 copyprop_hardreg_forward_bb_without_debug_insn.
15136 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15138 * shrink-wrap.h: Update comment.
15139 * shrink-wrap.c: Update comment.
15140 (next_block_for_reg): Rename to live_edge_for_reg.
15141 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15142 (move_insn_for_shrink_wrap): Split live_edge.
15143 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15145 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15147 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15149 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15150 * config/sparc/sparc.md (fptype_ut699): New attribute.
15151 (in_branch_delay): Return false if -mfix-ut699 is specified and
15152 fptype_ut699 is set to single.
15153 (truncdfsf2): Add fptype_ut699 attribute.
15154 (fix_truncdfsi2): Likewise.
15155 (floatsisf2): Change fptype attribute.
15156 (fix_truncsfsi2): Likewise.
15157 (negtf2_notv9): Delete.
15158 (negtf2_v9): Likewise.
15159 (negtf2_hq): New instruction.
15160 (negtf2): New instruction and splitter.
15161 (negdf2_notv9): Rewrite.
15162 (abstf2_notv9): Delete.
15163 (abstf2_hq_v9): Likewise.
15164 (abstf2_v9): Likewise.
15165 (abstf2_hq): New instruction.
15166 (abstf2): New instruction and splitter.
15167 (absdf2_notv9): Rewrite.
15169 2014-05-14 Cary Coutant <ccoutant@google.com>
15172 * opts.c (common_handle_option): Don't special-case "-g".
15173 (set_debug_level): Default to at least level 2 with "-g".
15175 2014-05-14 DJ Delorie <dj@redhat.com>
15177 * config/msp430/msp430.c (msp430_builtin): Add
15178 MSP430_BUILTIN_DELAY_CYCLES.
15179 (msp430_init_builtins): Register void __delay_cycles(long long).
15180 (msp430_builtin_decl): Add it.
15181 (cg_magic_constant): New.
15182 (msp430_expand_delay_cycles): New.
15183 (msp430_expand_builtin): Call it.
15184 (msp430_print_operand_raw): Change integer printing from "int" to
15186 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15187 (delay_cycles_start): New.
15188 (delay_cycles_end): New.
15189 (delay_cycles_32): New.
15190 (delay_cycles_32x): New.
15191 (delay_cycles_16): New.
15192 (delay_cycles_16x): New.
15193 (delay_cycles_2): New.
15194 (delay_cycles_1): New.
15195 * doc/extend.texi: Document __delay_cycles().
15197 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15199 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15200 length attribute computation.
15202 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15205 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15207 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15210 * config/sparc/sparc.md: Fix types of low and high in DI constant
15211 splitter. Use gen_int_mode in some other splitters.
15213 2014-05-14 Martin Jambor <mjambor@suse.cz>
15216 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15218 2014-05-14 James Norris <jnorris@codesourcery.com>
15220 * omp-low.c (expand_parallel_call): Remove shadow variable.
15221 (expand_omp_taskreg): Likewise.
15223 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15225 * common/config/i386/i386-common.c
15226 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15227 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15228 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15229 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15230 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15231 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15232 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15233 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15234 xsavecintrin.h, xsavesintrin.h.
15235 (x86_64-*-*): Ditto.
15236 * config/i386/clflushoptintrin.h: New.
15237 * config/i386/xsavecintrin.h: Ditto.
15238 * config/i386/xsavesintrin.h: Ditto.
15239 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15240 (bit_XSAVES): Ditto.
15241 (bit_XSAVES): Ditto.
15242 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15243 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15245 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15246 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15247 OPTION_MASK_ISA_XSAVES.
15248 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15249 -mxsavec, -mxsaves.
15250 (PTA_CLFLUSHOPT) Define.
15251 (PTA_XSAVEC): Ditto.
15252 (PTA_XSAVES): Ditto.
15253 (ix86_option_override_internal): Handle new options.
15254 (ix86_valid_target_attribute_inner_p): Ditto.
15255 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15256 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15257 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15258 (bdesc_special_args): Add __builtin_ia32_xsaves,
15259 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15260 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15261 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15262 (ix86_expand_builtin): Handle new builtins.
15263 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15264 (TARGET_CLFLUSHOPT_P): Ditto.
15265 (TARGET_XSAVEC): Ditto.
15266 (TARGET_XSAVEC_P): Ditto.
15267 (TARGET_XSAVES): Ditto.
15268 (TARGET_XSAVES_P): Ditto.
15269 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15270 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15271 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15273 (ANY_XRSTOR64): Ditto.
15275 (xrstor): Change into <xrstor>.
15276 (xrstor_rex64): Change into <xrstor>_rex64.
15277 (xrstor64): Change into <xrstor>64
15279 * config/i386/i386.opt (mclflushopt): New.
15282 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15284 * doc/invoke.texi: Document new options.
15286 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15288 PR rtl-optimization/60866
15289 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15290 Default it to -1. Pass it down to init_simplejump_data.
15291 (init_simplejump_data): New parameter old_seqno. Pass it down
15292 to get_seqno_for_a_jump.
15293 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15294 initializing new jump seqno as a last resort. Add comment.
15295 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15296 jump and pass it down to sel_init_new_insn.
15297 (sel_redirect_edge_and_branch_force): Likewise.
15299 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15301 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15302 shifted values to avoid build warning.
15304 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15306 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15307 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15308 (cfg_layout_merge_blocks): Likewise.
15309 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15311 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15313 PR rtl-optimization/60901
15314 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15315 bb predecessor belongs to the same scheduling region. Adjust comment.
15317 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15319 * doc/sourcebuild.texi: (dfp_hw): Document.
15320 (p8vector_hw): Likewise.
15321 (powerpc_eabi_ok): Likewise.
15322 (powerpc_elfv2): Likewise.
15323 (powerpc_htm_ok): Likewise.
15324 (ppc_recip_hw): Likewise.
15325 (vsx_hw): Likewise.
15327 2014-05-13 Cary Coutant <ccoutant@google.com>
15329 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15331 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15333 * gengtype-parse.c (require3): Eliminate in favor of...
15335 (require_template_declaration): Update to support optional single *
15338 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15339 (create_user_defined_type): Handle a single level of explicit
15340 pointerness within template arguments.
15341 (struct write_types_data): Add field "kind".
15342 (filter_type_name): Handle "*" character.
15343 (write_user_func_for_structure_ptr): Require a write_types_data
15344 rather than just a prefix string, so that we can look up the kind
15345 of the wtd and use it as an index into wrote_user_func_for_ptr,
15346 ensuring that such functions are written at most once. Support
15347 subclasses by invoking the marking function of the ultimate base class.
15348 (write_user_func_for_structure_body): Require a write_types_data
15349 rather than just a prefix string, so that we can pass this to
15350 write_user_func_for_structure_ptr.
15351 (write_func_for_structure): Likewise.
15352 (ggc_wtd): Add initializer of new "kind" field.
15353 (pch_wtd): Likewise.
15355 * gengtype.h (enum write_types_kinds): New.
15356 (struct type): Add field wrote_user_func_for_ptr to the "s"
15359 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15361 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15362 instead of const_binop.
15363 (fold_binary_loc): Likewise.
15365 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15367 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15368 calculation to match get_ref_base_and_extent.
15370 2014-05-13 Catherine Moore <clm@codesourcery.com>
15371 Sandra Loosemore <sandra@codesourcery.com>
15373 * configure.ac: Fix assembly for explicit JALR relocation check.
15374 * configure: Regenerate.
15376 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15378 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15379 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15380 Remove associated type declarations and initialisations.
15381 (arm_expand_neon_builtin): Likewise.
15382 (neon_emit_pair_result_insn): Delete.
15383 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15384 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15385 (neon_vzip<mode>): Likewise.
15386 (neon_vuzp<mode>): Likewise.
15388 2014-05-13 Richard Biener <rguenther@suse.de>
15391 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15392 it needs revisiting whether the call still may be tail-called.
15394 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15396 * rtl.def (SYMBOL_REF): Remove middle "0" field.
15397 * rtl.h (block_symbol): Reduce number of fields to 2.
15398 (rtx_def): Add u2.symbol_ref_flags.
15399 (SYMBOL_REF_FLAGS): Use it.
15400 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
15401 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
15402 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
15403 Lower index of SYMBOL_REF_DATA.
15404 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
15405 Print SYMBOL_REF_FLAGS at the same time.
15406 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
15408 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15410 * rtl.def (VAR_LOCATION): Remove "i" field.
15411 * rtl.h (rtx_def): Add u2.var_location_status.
15412 (PAT_VAR_LOCATION_STATUS): Use it.
15413 (gen_rtx_VAR_LOCATION): Declare.
15414 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
15415 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
15416 * var-tracking.c (emit_note_insn_var_location): Remove casts.
15418 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15420 * rtl.def (scratch): Fix outdated comment and remove "0" field.
15421 * gengtype.c (adjust_field_rtx_def): Update accordingly.
15423 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15425 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
15426 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
15427 * rtl.h (rtx_def): Add insn_uid to u2 field.
15428 (RTX_FLAG_CHECK8): Delete in favor of...
15429 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
15430 (INSN_DELETED_P): Update accordingly.
15431 (INSN_UID): Use u2.insn_uid.
15432 (INSN_CHAIN_CODE_P): Define.
15433 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
15434 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
15435 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
15436 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
15437 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
15438 indices accordingly.
15439 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
15440 Update indices for insn-chain rtxes.
15441 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
15442 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
15443 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
15444 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
15445 * combine.c (try_combine): Likewise.
15446 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15448 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15450 * rtl.def (REG): Remove middle field.
15451 * rtl.h (rtx_def): Add orignal_regno to u2.
15452 (ORIGINAL_REGNO): Use it instead of field 1.
15453 (REG_ATTRS): Lower field index accordingly.
15454 * gengtype.c (adjust_field_rtx_def): Remove handling of
15455 ORIGINAL_REGNO. Move REG_ATTRS index down.
15456 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
15457 code that prints the REGNO.
15459 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15461 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
15464 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15466 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
15468 2014-05-13 Bin Cheng <bin.cheng@arm.com>
15470 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
15471 (alloc_iv): Lower base expressions containing ADDR_EXPR.
15473 2014-05-13 Ian Bolton <ian.bolton@arm.com>
15475 * config/aarch64/aarch64-protos.h
15476 (aarch64_hard_regno_caller_save_mode): New prototype.
15477 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
15479 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
15481 2014-05-13 Christian Bruel <christian.bruel@st.com>
15483 * target.def (mode_switching): New hook vector.
15484 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
15485 (mode_exit, modepriority_to_mode): Likewise.
15486 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
15487 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15488 * target.h: Include tm.h and hard-reg-set.h.
15489 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
15490 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
15491 * doc/tm.texi Regenerate.
15492 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15493 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15494 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
15495 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
15496 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15497 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15498 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
15499 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
15500 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
15501 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
15502 (ix86_emit_mode_set): Hookify.
15503 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
15505 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15506 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
15507 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
15508 (epiphany_mode_priority_to_mode): Remove declaration.
15509 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
15510 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
15511 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
15513 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
15514 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
15515 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
15517 2014-05-13 Jakub Jelinek <jakub@redhat.com>
15520 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
15521 is const0_rtx, return immediately. Don't test count == 0 when
15524 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15526 * Makefile.in: add shrink-wrap.o.
15527 * config/i386/i386.c: include "shrink-wrap.h"
15528 * function.c: Likewise.
15529 (requires_stack_frame_p, next_block_for_reg,
15530 move_insn_for_shrink_wrap, prepare_shrink_wrap,
15531 dup_block_and_redirect): Move to shrink-wrap.c
15532 (thread_prologue_and_epilogue_insns): Extract three code segments
15533 as functions in shrink-wrap.c
15534 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
15536 * shrink-wrap.c: New file.
15537 * shrink-wrap.h: New file.
15539 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15541 * doc/extend.texi: Reflect current numbers of pragmas. Remove
15542 reference to Solaris.
15544 2014-05-12 Mike Stump <mikestump@comcast.net>
15547 * genattrtab.c (filename): Add.
15548 (convert_set_attr_alternative): Improve error message.
15549 (check_defs): Restore read_md_filename for error messages.
15550 (gen_insn): Save filename.
15552 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
15554 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
15555 -fno-local-ivars and -fivar-visibility.
15556 * c-family/c.opt: Make -Wshadow also implicitly enable
15559 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15561 * doc/tm.texi: Remove reference to deleted macro.
15562 * doc/tm.texi.in: Likewise.
15564 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15567 * config/avr/avr.c (avr_out_store_psi): Use correct constant
15570 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
15573 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
15574 * config/arm/aout.h (License): Same.
15575 * config/arm/bpabi.h (License): Same.
15576 * config/arm/elf.h (License): Same.
15577 * config/arm/linux-elf.h (License): Same.
15578 * config/arm/linux-gas.h (License): Same.
15579 * config/arm/netbsd-elf.h (License): Same.
15580 * config/arm/uclinux-eabi.h (License): Same.
15581 * config/arm/uclinux-elf.h (License): Same.
15582 * config/arm/vxworks.h (License): Same.
15584 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15586 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
15587 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
15588 number of operands to 3.
15589 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
15590 * tree-nested.c (convert_nonlocal_omp_clauses,
15591 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
15592 * gimplify.c (gimplify_scan_omp_clauses): Handle
15593 OMP_CLAUSE_LINEAR_STMT.
15594 * omp-low.c (lower_rec_input_clauses): Fix typo.
15595 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
15596 cast between Fortran boolean_type_node and C _Bool if
15599 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
15601 PR tree-optimization/61136
15602 * wide-int.h (multiple_of_p): Define a version that doesn't return
15604 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
15605 integer_zerop/const_binop pair.
15606 (multiple_of_p): Likewise, converting both operands to widest_int
15609 2014-05-09 Teresa Johnson <tejohnson@google.com>
15611 * cgraphunit.c (analyze_functions): Use correct dump file.
15613 2014-05-09 Florian Weimer <fweimer@redhat.com>
15615 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
15617 (stack_protect_return_slot_p): New function.
15618 (expand_used_vars): Call stack_protect_decl_p and
15619 stack_protect_return_slot_p for -fstack-protector-strong.
15621 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
15622 Andrew Haley <aph@redhat.com>
15623 Richard Sandiford <rdsandiford@googlemail.com>
15625 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
15628 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
15630 PR middle-end/61111
15631 * fold-const.c (fold_binary_loc): Changed width of mask.
15633 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15635 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
15636 unsigned int initializers for regno_in, regno_out.
15638 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15641 * config/avr/avr.md (cc): Add new attribute set_vzn.
15642 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
15643 Set cc insn attribute to set_vzn instead of set_zn for alternatives
15644 with INC, DEC or NEG.
15645 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
15646 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
15647 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
15649 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15652 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15654 * wide-int.cc (UTItype): Define.
15655 (UDWtype): Define for appropriate W_TYPE_SIZE.
15657 2014-05-09 Richard Biener <rguenther@suse.de>
15659 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
15660 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
15661 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
15662 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
15663 ssa_propagate): Adjust.
15665 2014-05-08 Jeff Law <law@redhat.com>
15667 PR tree-optimization/61009
15668 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
15669 tri-state rather than a boolean. When a block is too big to
15670 thread through, inform caller via negative return value.
15671 (thread_across_edge): If a block was too big for normal threading,
15672 then it's too big for a joiner too, so remove temporary equivalences
15673 and return immediately.
15675 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15676 Matthias Klose <doko@ubuntu.com>
15679 * optc-gen.awk: Fix option handling for -Wunused-parameter.
15681 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15684 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
15686 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15689 * config/alpha/alpha.c: Include gimple-iterator.h.
15690 (alpha_gimple_fold_builtin): New function. Move
15691 ALPHA_BUILTIN_UMULH folding from ...
15692 (alpha_fold_builtin): ... here.
15693 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
15695 2014-05-08 Wei Mi <wmi@google.com>
15698 * config/i386/i386.c (ix86_compute_frame_layout): Update
15699 preferred_stack_boundary for call, expanded from tls descriptor.
15700 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
15701 to depend on SP register.
15702 (*tls_local_dynamic_base_32_gnu): Ditto.
15703 (*tls_local_dynamic_32_once): Ditto.
15704 (tls_global_dynamic_64_<mode>): Set
15705 ix86_tls_descriptor_calls_expanded_in_cfun.
15706 (tls_local_dynamic_base_64_<mode>): Ditto.
15707 (tls_global_dynamic_32): Set
15708 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
15709 to depend on SP register.
15710 (tls_local_dynamic_base_32): Ditto.
15712 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15714 * config/arm/arm_neon.h: Update comment.
15715 * config/arm/neon-docgen.ml: Delete.
15716 * config/arm/neon-gen.ml: Delete.
15717 * doc/arm-neon-intrinsics.texi: Update comment.
15719 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15721 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
15723 (vand, vorr, veor, vorn, vbic): Remove.
15724 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
15726 (neon_vsub_unspec): Likewise.
15727 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
15729 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15731 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
15732 (vadd_s16): Likewise.
15733 (vadd_s32): Likewise.
15734 (vadd_f32): Likewise.
15735 (vadd_u8): Likewise.
15736 (vadd_u16): Likewise.
15737 (vadd_u32): Likewise.
15738 (vadd_s64): Likewise.
15739 (vadd_u64): Likewise.
15740 (vaddq_s8): Likewise.
15741 (vaddq_s16): Likewise.
15742 (vaddq_s32): Likewise.
15743 (vaddq_s64): Likewise.
15744 (vaddq_f32): Likewise.
15745 (vaddq_u8): Likewise.
15746 (vaddq_u16): Likewise.
15747 (vaddq_u32): Likewise.
15748 (vaddq_u64): Likewise.
15749 (vmul_s8): Likewise.
15750 (vmul_s16): Likewise.
15751 (vmul_s32): Likewise.
15752 (vmul_f32): Likewise.
15753 (vmul_u8): Likewise.
15754 (vmul_u16): Likewise.
15755 (vmul_u32): Likewise.
15756 (vmul_p8): Likewise.
15757 (vmulq_s8): Likewise.
15758 (vmulq_s16): Likewise.
15759 (vmulq_s32): Likewise.
15760 (vmulq_f32): Likewise.
15761 (vmulq_u8): Likewise.
15762 (vmulq_u16): Likewise.
15763 (vmulq_u32): Likewise.
15764 (vsub_s8): Likewise.
15765 (vsub_s16): Likewise.
15766 (vsub_s32): Likewise.
15767 (vsub_f32): Likewise.
15768 (vsub_u8): Likewise.
15769 (vsub_u16): Likewise.
15770 (vsub_u32): Likewise.
15771 (vsub_s64): Likewise.
15772 (vsub_u64): Likewise.
15773 (vsubq_s8): Likewise.
15774 (vsubq_s16): Likewise.
15775 (vsubq_s32): Likewise.
15776 (vsubq_s64): Likewise.
15777 (vsubq_f32): Likewise.
15778 (vsubq_u8): Likewise.
15779 (vsubq_u16): Likewise.
15780 (vsubq_u32): Likewise.
15781 (vsubq_u64): Likewise.
15782 (vand_s8): Likewise.
15783 (vand_s16): Likewise.
15784 (vand_s32): Likewise.
15785 (vand_u8): Likewise.
15786 (vand_u16): Likewise.
15787 (vand_u32): Likewise.
15788 (vand_s64): Likewise.
15789 (vand_u64): Likewise.
15790 (vandq_s8): Likewise.
15791 (vandq_s16): Likewise.
15792 (vandq_s32): Likewise.
15793 (vandq_s64): Likewise.
15794 (vandq_u8): Likewise.
15795 (vandq_u16): Likewise.
15796 (vandq_u32): Likewise.
15797 (vandq_u64): Likewise.
15798 (vorr_s8): Likewise.
15799 (vorr_s16): Likewise.
15800 (vorr_s32): Likewise.
15801 (vorr_u8): Likewise.
15802 (vorr_u16): Likewise.
15803 (vorr_u32): Likewise.
15804 (vorr_s64): Likewise.
15805 (vorr_u64): Likewise.
15806 (vorrq_s8): Likewise.
15807 (vorrq_s16): Likewise.
15808 (vorrq_s32): Likewise.
15809 (vorrq_s64): Likewise.
15810 (vorrq_u8): Likewise.
15811 (vorrq_u16): Likewise.
15812 (vorrq_u32): Likewise.
15813 (vorrq_u64): Likewise.
15814 (veor_s8): Likewise.
15815 (veor_s16): Likewise.
15816 (veor_s32): Likewise.
15817 (veor_u8): Likewise.
15818 (veor_u16): Likewise.
15819 (veor_u32): Likewise.
15820 (veor_s64): Likewise.
15821 (veor_u64): Likewise.
15822 (veorq_s8): Likewise.
15823 (veorq_s16): Likewise.
15824 (veorq_s32): Likewise.
15825 (veorq_s64): Likewise.
15826 (veorq_u8): Likewise.
15827 (veorq_u16): Likewise.
15828 (veorq_u32): Likewise.
15829 (veorq_u64): Likewise.
15830 (vbic_s8): Likewise.
15831 (vbic_s16): Likewise.
15832 (vbic_s32): Likewise.
15833 (vbic_u8): Likewise.
15834 (vbic_u16): Likewise.
15835 (vbic_u32): Likewise.
15836 (vbic_s64): Likewise.
15837 (vbic_u64): Likewise.
15838 (vbicq_s8): Likewise.
15839 (vbicq_s16): Likewise.
15840 (vbicq_s32): Likewise.
15841 (vbicq_s64): Likewise.
15842 (vbicq_u8): Likewise.
15843 (vbicq_u16): Likewise.
15844 (vbicq_u32): Likewise.
15845 (vbicq_u64): Likewise.
15846 (vorn_s8): Likewise.
15847 (vorn_s16): Likewise.
15848 (vorn_s32): Likewise.
15849 (vorn_u8): Likewise.
15850 (vorn_u16): Likewise.
15851 (vorn_u32): Likewise.
15852 (vorn_s64): Likewise.
15853 (vorn_u64): Likewise.
15854 (vornq_s8): Likewise.
15855 (vornq_s16): Likewise.
15856 (vornq_s32): Likewise.
15857 (vornq_s64): Likewise.
15858 (vornq_u8): Likewise.
15859 (vornq_u16): Likewise.
15860 (vornq_u32): Likewise.
15861 (vornq_u64): Likewise.
15863 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15865 * wide-int.cc (UTItype): Define.
15866 (UDWtype): Define for appropriate W_TYPE_SIZE.
15868 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
15870 PR tree-optimization/59100
15871 * tree-ssa-phiopt.c: Include tree-inline.h.
15872 (neutral_element_p, absorbing_element_p): New functions.
15873 (value_replacement): Handle conditional binary operations with a
15874 neutral or absorbing element.
15876 2014-05-08 Richard Biener <rguenther@suse.de>
15878 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
15879 folding the expression.
15880 (valueize_expr): Remove.
15881 (visit_reference_op_load): Do not valueize the result of
15883 (simplify_binary_expression): Likewise.
15884 (simplify_unary_expression): Likewise.
15886 2014-05-08 Richard Biener <rguenther@suse.de>
15888 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
15889 looking at TYPE_ARG_TYPES.
15891 2014-05-08 Richard Biener <rguenther@suse.de>
15893 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15894 pointer propagation special-case.
15896 2014-05-08 Bin Cheng <bin.cheng@arm.com>
15898 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
15899 core part of address expressions.
15901 2014-05-08 Alan Modra <amodra@gmail.com>
15904 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
15905 loads and stores when -mno-strict-align at any alignment.
15906 (expand_block_clear): Similarly. Also correct calculation of
15909 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15911 PR middle-end/39246
15912 * tree-complex.c (expand_complex_move): Keep line info when expanding
15914 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
15915 of complex expression. Use new argument to display correct location
15916 for values coming from phi statement.
15917 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
15918 (warn_uninitialized_phi): Pass location of phi argument to
15920 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
15921 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
15923 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
15925 * config/rs6000/predicates.md (indexed_address_mem): New.
15926 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
15927 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
15928 fpstore_ux, fpstore_u.
15929 (sign_extend, indexed, update): New.
15930 (cell_micro): Adjust.
15931 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
15932 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
15933 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
15934 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
15935 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15936 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
15937 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
15938 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
15939 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
15940 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
15941 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
15942 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
15943 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
15944 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
15945 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
15947 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
15948 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
15949 *vsx_extract_<mode>_store): Adjust.
15950 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
15951 is_cracked_insn, insn_must_be_first_in_group,
15952 insn_must_be_last_in_group): Adjust.
15954 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
15956 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
15957 ppc440-fpstore): Adjust.
15958 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
15959 ppc476-fpstore): Adjust.
15960 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
15961 ppc601-fpstore): Adjust.
15962 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
15964 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
15966 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
15967 ppc7450-fpstore): Adjust.
15968 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
15969 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
15970 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
15972 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
15973 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
15974 cell-fpstore, cell-fpstore-update): Adjust.
15975 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
15976 ppce300c3_store, ppce300c3_fpstore): Adjust.
15977 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
15978 e500mc_fpstore): Adjust.
15979 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
15980 e500mc64_store, e500mc64_fpstore): Adjust.
15981 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
15982 e5500_fpstore): Adjust.
15983 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
15984 e6500_fpstore): Adjust.
15985 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
15987 * config/rs6000/power4.md (power4-load, power4-load-ext,
15988 power4-load-ext-update, power4-load-ext-update-indexed,
15989 power4-load-update-indexed, power4-load-update, power4-fpload,
15990 power4-fpload-update, power4-store, power4-store-update,
15991 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
15993 * config/rs6000/power5.md (power5-load, power5-load-ext,
15994 power5-load-ext-update, power5-load-ext-update-indexed,
15995 power5-load-update-indexed, power5-load-update, power5-fpload,
15996 power5-fpload-update, power5-store, power5-store-update,
15997 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
15999 * config/rs6000/power6.md (power6-load, power6-load-ext,
16000 power6-load-update, power6-load-update-indexed,
16001 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16002 power6-fpload-update, power6-store, power6-store-update,
16003 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16005 * config/rs6000/power7.md (power7-load, power7-load-ext,
16006 power7-load-update, power7-load-update-indexed,
16007 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16008 power7-fpload-update, power7-store, power7-store-update,
16009 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16011 * config/rs6000/power8.md (power8-load, power8-load-update,
16012 power8-load-ext, power8-load-ext-update, power8-fpload,
16013 power8-fpload-update, power8-store, power8-store-update-indexed,
16014 power8-fpstore, power8-fpstore-update): Adjust.
16015 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16017 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16018 titan_lsu_store, titan_lsu_fpstore): Adjust.
16019 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16021 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16024 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16025 unrolled byte insns. Emit address increments after move insns.
16027 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16029 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16030 const_gimple, rather than a gimple.
16031 (gimple_call_builtin_p): Likewise, for the three variants.
16033 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16034 (gimple_call_builtin_p): Likewise, for the three variants.
16036 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16038 PR tree-optimization/61095
16039 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16041 2014-05-07 Richard Biener <rguenther@suse.de>
16043 PR tree-optimization/61034
16044 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16045 (maybe_skip_until): Use translate to take into account
16046 lattices when trying to do disambiguations.
16047 (get_continuation_for_phi_1): Likewise.
16048 (get_continuation_for_phi): Adjust for added translate arguments.
16049 (walk_non_aliased_vuses): Likewise.
16050 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16051 (walk_non_aliased_vuses): Likewise.
16052 (call_may_clobber_ref_p_1): Declare.
16053 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16054 calls. Stop early if we are only supposed to disambiguate.
16055 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16057 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16059 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16060 Emit an error when the function has arguments.
16062 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16064 * cfgloop.h (unswitch_loops): Remove.
16065 * doc/passes.texi: Remove references to loop-unswitch.c
16066 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16068 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16070 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16071 check for loads group of length 3.
16072 (vect_permute_load_chain): New permutations for loads group of
16074 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16075 of vec_perm_shuffle for the new permutations.
16077 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16079 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16080 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16081 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16082 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16083 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16084 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16085 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16086 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16088 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16090 * loop-unswitch.c: Delete.
16092 2014-05-07 Richard Biener <rguenther@suse.de>
16094 * config.gcc: Always set need_64bit_hwint to yes.
16096 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16098 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16099 of using optimize_size.
16101 2014-05-06 Mike Stump <mikestump@comcast.net>
16103 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16105 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16107 * config/i386/sse.md (*mov<mode>_internal)
16108 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16109 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16110 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16111 (*<code><mode>3, *andnot<mode>3<mask_name>)
16112 (<mask_codefor><code><mode>3<mask_name>): Only consider
16113 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16115 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16118 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16120 * lra-constraints.c (valid_address_p): Move earlier in file.
16121 Add a constraint argument to the address_info version.
16122 (satisfies_memory_constraint_p): New function.
16123 (satisfies_address_constraint_p): Likewise.
16124 (process_alt_operands, curr_insn_transform): Use them.
16125 (process_address): Pass the constraint to valid_address_p when
16126 checking address operands.
16128 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16130 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16131 to their respective blocks. Fix inadvertent use of "node".
16133 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16135 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16137 (init_emit_once): ...here.
16138 * rtl.h (init_derived_machine_modes): Declare.
16139 * toplev.c (do_compile): Call it even if no_backend.
16141 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16142 Mike Stump <mikestump@comcast.net>
16143 Richard Sandiford <rdsandiford@googlemail.com>
16144 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16146 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16147 (rtx_equal_for_memref_p): Update comment.
16148 (adjust_offset_for_component_ref): Use wide-int interfaces.
16149 * builtins.c (get_object_alignment_2): Likewise.
16150 (c_readstr): Likewise.
16151 (target_char_cast): Add comment.
16152 (determine_block_size): Use wide-int interfaces.
16153 (expand_builtin_signbit): Likewise.
16154 (fold_builtin_int_roundingfn): Likewise.
16155 (fold_builtin_bitop): Likewise.
16156 (fold_builtin_bswap): Likewise.
16157 (fold_builtin_logarithm): Use signop.
16158 (fold_builtin_pow): Likewise.
16159 (fold_builtin_memory_op): Use wide-int interfaces.
16160 (fold_builtin_object_size): Likewise.
16161 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16162 nb_iterations_estimate.
16163 (record_niter_bound): Use wide-int interfaces.
16164 (get_estimated_loop_iterations_int): Likewise.
16165 (get_estimated_loop_iterations): Likewise.
16166 (get_max_loop_iterations): Likewise.
16167 * cfgloop.h: Include wide-int.h.
16168 (struct nb_iter_bound): Change bound to widest_int.
16169 (struct loop): Change nb_iterations_upper_bound and
16170 nb_iterations_estimate to widest_int.
16171 (record_niter_bound): Switch to use widest_int.
16172 (get_estimated_loop_iterations): Likewise.
16173 (get_max_loop_iterations): Likewise.
16174 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16175 update for wide-int.
16176 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16177 * combine.c (try_combine): Likewise.
16178 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16179 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16181 (aarch64_float_const_representable_p): Likewise.
16182 * config/arc/arc.c: Include wide-int.h.
16183 (arc_can_use_doloop_p): Use wide-int interfaces.
16184 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16185 (vfp3_const_double_index): Likewise.
16186 * config/avr/avr.c (avr_out_round): Likewise.
16187 (avr_fold_builtin): Likewise.
16188 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16189 (bfin_can_use_doloop_p): Likewise.
16190 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16191 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16192 * config/i386/i386.c: Include wide-int.h.
16193 (ix86_data_alignment): Use wide-int interfaces.
16194 (ix86_local_alignment): Likewise.
16195 (ix86_emit_swsqrtsf): Update real_from_integer.
16196 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16197 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16198 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16199 (zero_constant): Likewise.
16200 (input_operand): Likewise.
16201 (splat_input_operand): Likewise.
16202 (non_logical_cint_operand): Change const_double to const_wide_int.
16203 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16204 (easy_altivec_constant): Remove comment.
16205 (paired_expand_vector_init): Use CONSTANT_P.
16206 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16207 (rs6000_emit_move): Update checks.
16208 (rs6000_aggregate_candidate): Use wide-int interfaces.
16209 (rs6000_expand_ternop_builtin): Likewise.
16210 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16211 (rs6000_assemble_integer): Likewise.
16212 (rs6000_hash_constant): Likewise.
16213 (output_toc): Likewise.
16214 (rs6000_rtx_costs): Likewise.
16215 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16216 * config/rs6000/rs6000-c.c: Include wide-int.h.
16217 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16218 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16219 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16220 Handle CONST_WIDE_INT.
16221 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16222 Use tree_fits_uhwi_p.
16223 * config/sparc/sparc.c: Include wide-int.h.
16224 (sparc_fold_builtin): Use wide-int interfaces.
16225 * config/vax/vax.c: Include wide-int.h.
16226 (vax_float_literal): Use real_from_integer.
16227 * coretypes.h (struct hwivec_def): New.
16229 (const_hwivec): New.
16230 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16231 (equiv_constant): Handle CONST_WIDE_INT.
16232 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16233 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16234 * dbxout.c (stabstr_U): Use wide-int interfaces.
16235 (dbxout_type): Update to use cst_fits_shwi_p.
16236 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16237 (TARGET_SUPPORTS_WIDE_INT): Add default.
16238 * dfp.c: Include wide-int.h.
16239 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16240 decimal_real_to_integer.
16241 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16242 decimal_real_to_integer.
16243 * doc/generic.texi (Constant expressions): Update for wide_int.
16244 * doc/rtl.texi (const_double): Likewise.
16245 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16246 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16247 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16248 (REAL_VALUE_FROM_INT): Remove.
16249 (TARGET_SUPPORTS_WIDE_INT): New.
16250 * doc/tm.texi: Regenerate.
16251 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16252 * double-int.h: Include wide-int.h.
16253 (struct wi::int_traits): New.
16254 * dwarf2out.c (get_full_len): New.
16255 (dw_val_equal_p): Add case dw_val_class_wide_int.
16256 (size_of_loc_descr): Likewise.
16257 (output_loc_operands): Likewise.
16258 (insert_double): Remove.
16259 (insert_wide_int): New.
16260 (add_AT_wide): New.
16261 (print_die): Add case dw_val_class_wide_int.
16262 (attr_checksum): Likewise.
16263 (attr_checksum_ordered): Likewise.
16264 (same_dw_val_p): Likewise.
16265 (size_of_die): Likewise.
16266 (value_format): Likewise.
16267 (output_die): Likewise.
16268 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16270 (clz_loc_descriptor): Use wide-int interfaces.
16271 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16272 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16273 (round_up_to_align): Use wide-int interfaces.
16274 (field_byte_offset): Likewise.
16275 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16276 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16277 CONST_DOUBLE handling. Use wide-int interfaces.
16278 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16279 (gen_enumeration_type_die): Use add_AT_wide.
16280 (hash_loc_operands): Add case dw_val_class_wide_int.
16281 (compare_loc_operands): Likewise.
16282 * dwarf2out.h: Include wide-int.h.
16283 (wide_int_ptr): New.
16284 (enum dw_val_class): Add dw_val_class_wide_int.
16285 (struct dw_val_struct): Add val_wide.
16286 * emit-rtl.c (const_wide_int_htab): New.
16287 (const_wide_int_htab_hash): New.
16288 (const_wide_int_htab_eq): New.
16289 (lookup_const_wide_int): New.
16290 (const_double_htab_hash): Use wide-int interfaces.
16291 (const_double_htab_eq): Likewise.
16292 (rtx_to_double_int): Conditionally compile for wide-int.
16293 (immed_double_int_const): Rename to immed_wide_int_const and
16294 update for wide-int.
16295 (immed_double_const): Conditionally compile for wide-int.
16296 (init_emit_once): Use wide-int interfaces.
16297 * explow.c (plus_constant): Likewise.
16298 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16299 (lshift_value): Use wide-int interfaces.
16300 (expand_mult): Likewise.
16301 (choose_multiplier): Likewise.
16302 (expand_smod_pow2): Likewise.
16303 (make_tree): Likewise.
16304 * expr.c (convert_modes): Consolidate handling of constants.
16305 Use wide-int interfaces.
16306 (emit_group_load_1): Add note.
16307 (store_expr): Update comment.
16308 (get_inner_reference): Use wide-int interfaces.
16309 (expand_constructor): Update comment.
16310 (expand_expr_real_2): Use wide-int interfaces.
16311 (expand_expr_real_1): Likewise.
16312 (reduce_to_bit_field_precision): Likewise.
16313 (const_vector_from_tree): Likewise.
16314 * final.c: Include wide-int-print.h.
16315 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16316 * fixed-value.c: Include wide-int.h.
16317 (fixed_from_string): Use wide-int interfaces.
16318 (fixed_to_decimal): Likewise.
16319 (fixed_convert_from_real): Likewise.
16320 (real_convert_from_fixed): Likewise.
16321 * fold-const.h (mem_ref_offset): Return an offset_int.
16322 (div_if_zero_remainder): Remove code parameter.
16323 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16324 Use wide-int interfaces.
16325 (may_negate_without_overflow_p): Use wide-int interfaces.
16326 (negate_expr_p): Likewise.
16327 (fold_negate_expr): Likewise.
16328 (int_const_binop_1): Likewise.
16329 (const_binop): Likewise.
16330 (fold_convert_const_int_from_int): Likewise.
16331 (fold_convert_const_int_from_real): Likewise.
16332 (fold_convert_const_int_from_fixed): Likewise.
16333 (fold_convert_const_fixed_from_int): Likewise.
16334 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16335 (sign_bit_p): Use wide-int interfaces.
16336 (make_range_step): Likewise.
16337 (build_range_check): Likewise. Pass an integer of the correct type
16338 instead of using integer_one_node.
16339 (range_predecessor): Pass an integer of the correct type instead
16340 of using integer_one_node.
16341 (range_successor): Likewise.
16342 (merge_ranges): Likewise.
16343 (unextend): Use wide-int interfaces.
16344 (extract_muldiv_1): Likewise.
16345 (fold_div_compare): Likewise.
16346 (fold_single_bit_test): Likewise.
16347 (fold_sign_changed_comparison): Likewise.
16348 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16349 (fold_plusminus_mult_expr): Use wide-int interfaces.
16350 (native_encode_int): Likewise.
16351 (native_interpret_int): Likewise.
16352 (fold_unary_loc): Likewise.
16353 (pointer_may_wrap_p): Likewise.
16354 (size_low_cst): Likewise.
16355 (mask_with_tz): Likewise.
16356 (fold_binary_loc): Likewise.
16357 (fold_ternary_loc): Likewise.
16358 (multiple_of_p): Likewise.
16359 (tree_call_nonnegative_warnv_p): Update calls to
16360 tree_int_cst_min_precision and real_from_integer.
16361 (fold_negate_const): Use wide-int interfaces.
16362 (fold_abs_const): Likewise.
16363 (fold_relational_const): Use tree_int_cst_lt.
16364 (round_up_loc): Use wide-int interfaces.
16365 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16366 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16367 * gengtype.c: Remove include of double-int.h.
16368 (do_typedef): Use wide-int interfaces.
16369 (open_base_files): Add wide-int.h.
16370 (main): Add offset_int and widest_int typedefs.
16371 * gengtype-lex.l: Handle "^".
16372 (CXX_KEYWORD): Add "static".
16373 * gengtype-parse.c (require3): New.
16374 (require_template_declaration): Handle constant template arguments
16375 and nested templates.
16376 * gengtype-state.c: Don't include "double-int.h".
16377 * genpreds.c (write_one_predicate_function): Update comment.
16378 (write_tm_constrs_h): Add check for hval and lval use in
16380 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16381 (add_to_sequence): Likewise.
16382 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16383 and const_double_operand.
16384 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16386 * gimple-fold.c (get_base_constructor): Likewise.
16387 (fold_array_ctor_reference): Likewise.
16388 (fold_nonarray_ctor_reference): Likewise.
16389 (fold_const_aggregate_ref_1): Likewise.
16390 (gimple_val_nonnegative_real_p): Likewise.
16391 (gimple_fold_indirect_ref): Likewise.
16392 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16393 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16394 (struct slsr_cand_d): Change index to be widest_int.
16395 (struct incr_info_d): Change incr to be widest_int.
16396 (alloc_cand_and_find_basis): Use wide-int interfaces.
16397 (slsr_process_phi): Likewise.
16398 (backtrace_base_for_ref): Likewise. Return a widest_int.
16399 (restructure_reference): Take a widest_int instead of a double_int.
16400 (slsr_process_ref): Use wide-int interfaces.
16401 (create_mul_ssa_cand): Likewise.
16402 (create_mul_imm_cand): Likewise.
16403 (create_add_ssa_cand): Likewise.
16404 (create_add_imm_cand): Take a widest_int instead of a double_int.
16405 (slsr_process_add): Use wide-int interfaces.
16406 (slsr_process_cast): Likewise.
16407 (slsr_process_copy): Likewise.
16408 (dump_candidate): Likewise.
16409 (dump_incr_vec): Likewise.
16410 (replace_ref): Likewise.
16411 (cand_increment): Likewise. Return a widest_int.
16412 (cand_abs_increment): Likewise.
16413 (replace_mult_candidate): Take a widest_int instead of a double_int.
16414 (replace_unconditional_candidate): Use wide-int interfaces.
16415 (incr_vec_index): Take a widest_int instead of a double_int.
16416 (create_add_on_incoming_edge): Likewise.
16417 (create_phi_basis): Use wide-int interfaces.
16418 (replace_conditional_candidate): Likewise.
16419 (record_increment): Take a widest_int instead of a double_int.
16420 (record_phi_increments): Use wide-int interfaces.
16421 (phi_incr_cost): Take a widest_int instead of a double_int.
16422 (lowest_cost_path): Likewise.
16423 (total_savings): Likewise.
16424 (analyze_increments): Use wide-int interfaces.
16425 (ncd_with_phi): Take a widest_int instead of a double_int.
16426 (ncd_of_cand_and_phis): Likewise.
16427 (nearest_common_dominator_for_cands): Likewise.
16428 (insert_initializers): Use wide-int interfaces.
16429 (all_phi_incrs_profitable): Likewise.
16430 (replace_one_candidate): Likewise.
16431 (replace_profitable_candidates): Likewise.
16432 * godump.c: Include wide-int-print.h.
16433 (go_output_typedef): Use wide-int interfaces.
16434 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
16435 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
16436 (build_loop_iteration_domains): Likewise.
16437 * hooks.h: Include wide-int.h rather than double-int.h.
16438 (hook_bool_dint_dint_uint_bool_true): Delete.
16439 (hook_bool_wint_wint_uint_bool_true): Declare.
16440 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
16441 (hook_bool_wint_wint_uint_bool_true): New.
16442 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
16444 (ubsan_expand_si_overflow_mul_check): Likewise.
16445 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
16446 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
16447 (get_ancestor_addr_info): Likewise.
16448 (ipa_modify_call_arguments): Likewise.
16449 * loop-doloop.c (doloop_modify): Likewise.
16450 (doloop_optimize): Likewise.
16451 * loop-iv.c (iv_number_of_iterations): Likewise.
16452 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
16453 (unroll_loop_constant_iterations): Likewise.
16454 (decide_unroll_runtime_iterations): Likewise.
16455 (unroll_loop_runtime_iterations): Likewise.
16456 (decide_peel_simple): Likewise.
16457 (decide_unroll_stupid): Likewise.
16458 * lto-streamer-in.c (streamer_read_wi): Add.
16459 (input_cfg): Use wide-int interfaces.
16460 (lto_input_tree_1): Likewise.
16461 * lto-streamer-out.c (streamer_write_wi): Add.
16462 (hash_tree): Use wide-int interfaces.
16463 (output_cfg): Likewise.
16464 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
16465 (GTFILES): Add wide-int.h and signop.h.
16466 (TAGS): Look for .cc files too.
16467 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
16468 * optabs.c (expand_subword_shift): Likewise.
16469 (expand_doubleword_shift): Likewise.
16470 (expand_absneg_bit): Likewise.
16471 (expand_copysign_absneg): Likewise.
16472 (expand_copysign_bit): Likewise.
16473 * postreload.c (reload_cse_simplify_set): Likewise.
16474 * predict.c (predict_iv_comparison): Likewise.
16475 * pretty-print.h: Include wide-int-print.h.
16477 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
16478 * print-tree.c: Include wide-int-print.h.
16479 (print_node_brief): Use wide-int interfaces.
16480 (print_node): Likewise.
16481 * read-rtl.c (validate_const_wide_int): New.
16482 (read_rtx_code): Add CONST_WIDE_INT case.
16483 * real.c: Include wide-int.h.
16484 (real_to_integer2): Delete.
16485 (real_to_integer): New function, returning a wide_int.
16486 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16487 (ten_to_ptwo): Update call to real_from_integer.
16488 (real_digit): Likewise.
16489 * real.h: Include signop.h, wide-int.h and insn-modes.h.
16490 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
16491 (REAL_VALUE_TO_INT): Delete.
16492 (real_to_integer): Declare a wide-int form.
16493 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16494 * recog.c (const_int_operand): Improve comment.
16495 (const_scalar_int_operand): New.
16496 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
16497 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
16498 (split_double): Likewise.
16499 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
16500 (rtx_size): Likewise.
16501 (rtx_alloc_stat_v): New.
16502 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
16503 (cwi_output_hex): New.
16504 (iterative_hash_rtx): Handle CONST_WIDE_INT.
16505 (cwi_check_failed_bounds): New.
16506 * rtl.def (CONST_WIDE_INT): New.
16507 * rtl.h: Include <utility> and wide-int.h.
16508 (struct hwivec_def): New.
16509 (CWI_GET_NUM_ELEM): New.
16510 (CWI_PUT_NUM_ELEM): New.
16511 (struct rtx_def): Add num_elem and hwiv.
16512 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
16513 (CASE_CONST_UNIQUE): Likewise.
16514 (CASE_CONST_ANY): Likewise.
16515 (CONST_SCALAR_INT_P): Likewise.
16516 (CONST_WIDE_INT_P): New.
16518 (HWIVEC_CHECK): New.
16519 (cwi_check_failed_bounds): New.
16521 (HWIVEC_CHECK): New.
16522 (CONST_WIDE_INT_VEC) New.
16523 (CONST_WIDE_INT_NUNITS) New.
16524 (CONST_WIDE_INT_ELT) New.
16525 (rtx_mode_t): New type.
16526 (wi::int_traits <rtx_mode_t>): New.
16528 (wi::min_value): New.
16529 (wi::max_value): New.
16531 (const_wide_int_alloc): New.
16532 (immed_wide_int_const): New.
16533 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
16534 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
16535 * signop.h: New file.
16536 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
16537 (simplify_const_unary_operation): Use wide-int interfaces.
16538 (simplify_binary_operation_1): Likewise.
16539 (simplify_const_binary_operation): Likewise.
16540 (simplify_const_relational_operation): Likewise.
16541 (simplify_immed_subreg): Likewise.
16542 * stmt.c (expand_case): Likewise.
16543 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
16544 signop rather than a bool.
16545 * stor-layout.c (layout_type): Use wide-int interfaces.
16546 (initialize_sizetypes): Update calls to
16547 set_min_and_max_values_for_integral_type.
16548 (set_min_and_max_values_for_integral_type): Take a signop rather
16549 than a bool. Use wide-int interfaces.
16550 (fixup_signed_type): Update accordingly. Remove
16551 HOST_BITS_PER_DOUBLE_INT limit.
16552 (fixup_unsigned_type): Likewise.
16553 * system.h (STATIC_CONSTANT_P): New.
16554 (STATIC_ASSERT): New.
16555 * target.def (can_use_doloop_p): Take widest_ints rather than
16557 * target.h: Include wide-int.h rather than double-int.h.
16558 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
16560 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
16561 rather than INT_CST_LT_UNSIGNED.
16562 (can_use_doloop_if_innermost): Take widest_ints rather than
16564 * tree-affine.c: Include wide-int-print.h.
16565 (double_int_ext_for_comb): Delete.
16566 (wide_int_ext_for_comb): New.
16567 (aff_combination_zero): Use wide-int interfaces.
16568 (aff_combination_const): Take a widest_int instead of a double_int.
16569 (aff_combination_elt): Use wide-int interfaces.
16570 (aff_combination_scale): Take a widest_int instead of a double_int.
16571 (aff_combination_add_elt): Likewise.
16572 (aff_combination_add_cst): Likewise.
16573 (aff_combination_add): Use wide-int interfaces.
16574 (aff_combination_convert): Likewise.
16575 (tree_to_aff_combination): Likewise.
16576 (add_elt_to_tree): Take a widest_int instead of a double_int.
16577 (aff_combination_to_tree): Use wide-int interfaces.
16578 (aff_combination_remove_elt): Likewise.
16579 (aff_combination_add_product): Take a widest_int instead of
16581 (aff_combination_mult): Use wide-int interfaces.
16582 (aff_combination_expand): Likewise.
16583 (double_int_constant_multiple_p): Delete.
16584 (wide_int_constant_multiple_p): New.
16585 (aff_combination_constant_multiple_p): Take a widest_int pointer
16586 instead of a double_int pointer.
16587 (print_aff): Use wide-int interfaces.
16588 (get_inner_reference_aff): Take a widest_int pointer
16589 instead of a double_int pointer.
16590 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
16591 * tree-affine.h: Include wide-int.h.
16592 (struct aff_comb_elt): Change type of coef to widest_int.
16593 (struct affine_tree_combination): Change type of offset to widest_int.
16594 (double_int_ext_for_comb): Delete.
16595 (wide_int_ext_for_comb): New.
16596 (aff_combination_const): Use widest_int instead of double_int.
16597 (aff_combination_scale): Likewise.
16598 (aff_combination_add_elt): Likewise.
16599 (aff_combination_constant_multiple_p): Likewise.
16600 (get_inner_reference_aff): Likewise.
16601 (aff_comb_cannot_overlap_p): Likewise.
16602 (aff_combination_zero_p): Use wide-int interfaces.
16603 * tree.c: Include tree.h.
16604 (init_ttree): Use make_int_cst.
16605 (tree_code_size): Removed code for INTEGER_CST case.
16606 (tree_size): Add INTEGER_CST case.
16607 (make_node_stat): Update comment.
16608 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
16609 (build_int_cst_type): Use wide-int interfaces.
16610 (double_int_to_tree): Likewise.
16611 (double_int_fits_to_tree_p): Delete.
16612 (force_fit_type_double): Delete.
16613 (force_fit_type): New.
16614 (int_cst_hash_hash): Use wide-int interfaces.
16615 (int_cst_hash_eq): Likewise.
16616 (build_int_cst_wide): Delete.
16617 (wide_int_to_tree): New.
16618 (cache_integer_cst): Use wide-int interfaces.
16619 (build_low_bits_mask): Likewise.
16620 (cst_and_fits_in_hwi): Likewise.
16621 (real_value_from_int_cst): Likewise.
16622 (make_int_cst_stat): New.
16623 (integer_zerop): Use wide_int interfaces.
16624 (integer_onep): Likewise.
16625 (integer_all_onesp): Likewise.
16626 (integer_pow2p): Likewise.
16627 (integer_nonzerop): Likewise.
16628 (tree_log2): Likewise.
16629 (tree_floor_log2): Likewise.
16630 (tree_ctz): Likewise.
16631 (int_size_in_bytes): Likewise.
16632 (mem_ref_offset): Return an offset_int rather than a double_int.
16633 (build_type_attribute_qual_variant): Use wide_int interfaces.
16634 (type_hash_eq): Likewise
16635 (tree_int_cst_equal): Likewise.
16636 (tree_int_cst_lt): Delete.
16637 (tree_int_cst_compare): Likewise.
16638 (tree_fits_shwi_p): Use wide_int interfaces.
16639 (tree_fits_uhwi_p): Likewise.
16640 (tree_int_cst_sign_bit): Likewise.
16641 (tree_int_cst_sgn): Likewise.
16642 (tree_int_cst_min_precision): Take a signop rather than a bool.
16643 (simple_cst_equal): Use wide_int interfaces.
16644 (compare_tree_int): Likewise.
16645 (iterative_hash_expr): Likewise.
16646 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
16648 (get_type_static_bounds): Use wide_int interfaces.
16649 (tree_int_cst_elt_check_failed): New.
16650 (build_common_tree_nodes): Reordered to set prec before filling in
16652 (int_cst_value): Check cst_and_fits_in_hwi.
16653 (widest_int_cst_value): Use wide_int interfaces.
16654 (upper_bound_in_type): Likewise.
16655 (lower_bound_in_type): Likewise.
16656 (num_ending_zeros): Likewise.
16657 (drop_tree_overflow): Likewise.
16658 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
16659 (gen_conditions_for_pow_cst_base): Likewise.
16660 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
16661 (group_case_labels_stmt): Use wide-int interfaces.
16662 (verify_gimple_assign_binary): Likewise.
16663 (print_loop): Likewise.
16664 * tree-chrec.c (tree_fold_binomial): Likewise.
16665 * tree-core.h (struct tree_base): Add int_length.
16666 (struct tree_int_cst): Change rep of value.
16667 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
16668 (dr_may_alias_p): Likewise.
16669 (max_stmt_executions_tree): Likewise.
16670 * tree.def (INTEGER_CST): Update comment.
16671 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
16672 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
16673 * tree-dump.c: Include wide-int.h and wide-int-print.h.
16674 (dequeue_and_dump): Use wide-int interfaces.
16675 * tree.h: Include wide-int.h.
16676 (NULL_TREE): Moved to earlier loc in file.
16677 (TREE_INT_CST_ELT_CHECK): New.
16678 (tree_int_cst_elt_check_failed): New.
16680 (TREE_INT_CST): Delete.
16681 (TREE_INT_CST_LOW): Use wide-int interfaces.
16682 (TREE_INT_CST_HIGH): Delete.
16683 (TREE_INT_CST_NUNITS): New.
16684 (TREE_INT_CST_EXT_NUNITS): Likewise.
16685 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
16686 (TREE_INT_CST_ELT): Likewise.
16687 (INT_CST_LT): Delete.
16688 (tree_int_cst_elt_check): New (two forms).
16689 (type_code_size): Update comment.
16690 (make_int_cst_stat, make_int_cst): New.
16691 (tree_to_double_int): Delete.
16692 (double_int_fits_to_tree_p): Delete.
16693 (force_fit_type_double): Delete.
16694 (build_int_cstu): Replace with out-of-line function.
16695 (build_int_cst_wide): Delete.
16696 (tree_int_cst_lt): Define inline.
16697 (tree_int_cst_le): New.
16698 (tree_int_cst_compare): Define inline.
16699 (tree_int_cst_min_precision): Take a signop rather than a bool.
16700 (wi::int_traits <const_tree>): New.
16701 (wi::int_traits <tree>): New.
16702 (wi::extended_tree): New.
16703 (wi::int_traits <wi::extended_tree>): New.
16704 (wi::to_widest): New.
16705 (wi::to_offset): New.
16706 (wi::fits_to_tree_p): New.
16707 (wi::min_value): New.
16708 (wi::max_value): New.
16709 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
16710 (copy_tree_body_r): Likewise.
16711 * tree-object-size.c (compute_object_offset): Likewise.
16712 (addr_object_size): Likewise.
16713 * tree-predcom.c: Include wide-int-print.h.
16714 (struct dref_d): Change type of offset to widest_int.
16715 (dump_dref): Call wide-int printer.
16716 (aff_combination_dr_offset): Use wide-int interfaces.
16717 (determine_offset): Take a widest_int pointer rather than a
16718 double_int pointer.
16719 (split_data_refs_to_components): Use wide-int interfaces.
16720 (suitable_component_p): Likewise.
16721 (order_drefs): Likewise.
16722 (add_ref_to_chain): Likewise.
16723 (valid_initializer_p): Likewise.
16724 (determine_roots_comp): Likewise.
16725 * tree-pretty-print.c: Include wide-int-print.h.
16726 (dump_generic_node): Use wide-int interfaces.
16727 * tree-sra.c (sra_ipa_modify_expr): Likewise.
16728 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
16729 (move_fixed_address_to_symbol): Likewise.
16730 (move_hint_to_base): Likewise.
16731 (move_pointer_to_base): Likewise.
16732 (move_variant_to_index): Likewise.
16733 (most_expensive_mult_to_index): Likewise.
16734 (addr_to_parts): Likewise.
16735 (copy_ref_info): Likewise.
16736 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16737 (indirect_refs_may_alias_p): Likewise.
16738 (stmt_kills_ref_p_1): Likewise.
16739 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
16740 * tree-ssa-ccp.c: Update comment at top of file. Include
16742 (struct prop_value_d): Change type of mask to widest_int.
16743 (extend_mask): New function.
16744 (dump_lattice_value): Use wide-int interfaces.
16745 (get_default_value): Likewise.
16746 (set_constant_value): Likewise.
16747 (set_value_varying): Likewise.
16748 (valid_lattice_transition): Likewise.
16749 (set_lattice_value): Likewise.
16750 (value_to_double_int): Delete.
16751 (value_to_wide_int): New.
16752 (get_value_from_alignment): Use wide-int interfaces.
16753 (get_value_for_expr): Likewise.
16754 (do_dbg_cnt): Likewise.
16755 (ccp_finalize): Likewise.
16756 (ccp_lattice_meet): Likewise.
16757 (bit_value_unop_1): Use widest_ints rather than double_ints.
16758 (bit_value_binop_1): Likewise.
16759 (bit_value_unop): Use wide-int interfaces.
16760 (bit_value_binop): Likewise.
16761 (bit_value_assume_aligned): Likewise.
16762 (evaluate_stmt): Likewise.
16763 (ccp_fold_stmt): Likewise.
16764 (visit_cond_stmt): Likewise.
16765 (ccp_visit_stmt): Likewise.
16766 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16767 (constant_pointer_difference): Likewise.
16768 (associate_pointerplus): Likewise.
16769 (combine_conversions): Likewise.
16770 * tree-ssa-loop.h: Include wide-int.h.
16771 (struct tree_niter_desc): Change type of max to widest_int.
16772 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
16773 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
16774 (remove_redundant_iv_tests): Likewise.
16775 (canonicalize_loop_induction_variables): Likewise.
16776 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
16777 (constant_multiple_of): Take a widest_int pointer instead of
16778 a double_int pointer.
16779 (get_computation_aff): Use wide-int interfaces.
16780 (ptr_difference_cost): Likewise.
16781 (difference_cost): Likewise.
16782 (get_loop_invariant_expr_id): Likewise.
16783 (get_computation_cost_at): Likewise.
16784 (iv_elimination_compare_lt): Likewise.
16785 (may_eliminate_iv): Likewise.
16786 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
16787 instead of double_int.
16788 (max_loop_iterations): Likewise.
16789 (max_stmt_executions): Likewise.
16790 (estimated_stmt_executions): Likewise.
16791 * tree-ssa-loop-niter.c: Include wide-int-print.h.
16792 (split_to_var_and_offset): Use wide-int interfaces.
16793 (determine_value_range): Likewise.
16794 (bound_difference_of_offsetted_base): Likewise.
16795 (bounds_add): Take a widest_int instead of a double_int.
16796 (number_of_iterations_ne_max): Use wide-int interfaces.
16797 (number_of_iterations_ne): Likewise.
16798 (number_of_iterations_lt_to_ne): Likewise.
16799 (assert_loop_rolls_lt): Likewise.
16800 (number_of_iterations_lt): Likewise.
16801 (number_of_iterations_le): Likewise.
16802 (number_of_iterations_cond): Likewise.
16803 (number_of_iterations_exit): Likewise.
16804 (finite_loop_p): Likewise.
16805 (derive_constant_upper_bound_assign): Likewise.
16806 (derive_constant_upper_bound): Return a widest_int.
16807 (derive_constant_upper_bound_ops): Likewise.
16808 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
16809 (record_estimate): Take a widest_int rather than a double_int.
16810 (record_nonwrapping_iv): Use wide-int interfaces.
16811 (double_int_cmp): Delete.
16812 (wide_int_cmp): New.
16813 (bound_index): Take a widest_int rather than a double_int.
16814 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
16815 (maybe_lower_iteration_bound): Likewise.
16816 (estimate_numbers_of_iterations_loop): Likewise.
16817 (estimated_loop_iterations): Take a widest_int pointer than than
16818 a double_int pointer.
16819 (estimated_loop_iterations_int): Use wide-int interfaces.
16820 (max_loop_iterations): Take a widest_int pointer than than
16821 a double_int pointer.
16822 (max_loop_iterations_int): Use wide-int interfaces.
16823 (max_stmt_executions): Take a widest_int pointer than than
16824 a double_int pointer.
16825 (estimated_stmt_executions): Likewise.
16826 (n_of_executions_at_most): Use wide-int interfaces.
16827 (scev_probably_wraps_p): Likewise.
16828 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
16829 to real_to_integer.
16830 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
16832 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
16833 double_ints. Adjust for trailing_wide_ints <3> representation.
16834 (set_nonzero_bits): Likewise.
16835 (get_range_info): Return wide_ints rather than double_ints.
16836 Adjust for trailing_wide_ints <3> representation.
16837 (get_nonzero_bits): Likewise.
16838 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
16840 * tree-ssanames.h (struct range_info_def): Replace min, max and
16841 nonzero_bits with a trailing_wide_ints <3>.
16842 (set_range_info): Use wide_int_refs rather than double_ints.
16843 (set_nonzero_bits): Likewise.
16844 (get_range_info): Return wide_ints rather than double_ints.
16845 (get_nonzero_bits): Likewise.
16846 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
16847 * tree-ssa-pre.c (phi_translate_1): Likewise.
16848 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
16849 (acceptable_pow_call): Likewise.
16850 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
16852 (vn_reference_fold_indirect): Likewise.
16853 (vn_reference_maybe_forwprop_address): Likewise.
16854 (valueize_refs_1): Likewise.
16855 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
16856 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
16857 tree_int_cst_lt and tree_int_cst_le.
16858 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
16860 (streamer_alloc_tree): Likewise.
16861 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
16862 (streamer_write_tree_header): Likewise.
16863 (streamer_write_integer_cst): Likewise.
16864 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16865 (build_constructors): Likewise.
16866 (array_value_type): Likewise.
16867 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
16868 (vect_check_gather): Likewise.
16869 * tree-vect-generic.c (build_replicated_const): Likewise.
16870 (expand_vector_divmod): Likewise.
16871 * tree-vect-loop.c (vect_transform_loop): Likewise.
16872 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
16873 (vect_do_peeling_for_alignment): Likewise.
16874 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
16875 * tree-vrp.c: Include wide-int.h.
16876 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
16877 (extract_range_from_assert): Use wide-int interfaces.
16878 (vrp_int_const_binop): Likewise.
16879 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
16880 double_int pointers.
16881 (ranges_from_anti_range): Use wide-int interfaces.
16882 (quad_int_cmp): Delete.
16883 (quad_int_pair_sort): Likewise.
16884 (extract_range_from_binary_expr_1): Use wide-int interfaces.
16885 (extract_range_from_unary_expr_1): Likewise.
16886 (adjust_range_with_scev): Likewise.
16887 (masked_increment): Take and return wide_ints rather than double_ints.
16888 (register_edge_assert_for_2): Use wide-int interfaces.
16889 (check_array_ref): Likewise.
16890 (search_for_addr_array): Likewise.
16891 (maybe_set_nonzero_bits): Likewise.
16892 (union_ranges): Pass an integer of the correct type instead of
16893 using integer_one_node.
16894 (intersect_ranges): Likewise.
16895 (simplify_truth_ops_using_ranges): Likewise.
16896 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
16897 (range_fits_type_p): Likewise.
16898 (simplify_cond_using_ranges): Likewise. Take a signop rather than
16900 (simplify_conversion_using_ranges): Use wide-int interfaces.
16901 (simplify_float_conversion_using_ranges): Likewise.
16902 (vrp_finalize): Likewise.
16903 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
16904 (gimple_stringops_transform): Likewise.
16905 * varasm.c (decode_addr_const): Likewise.
16906 (const_hash_1): Likewise.
16907 (const_rtx_hash_1): Likewise
16908 (output_constant): Likewise.
16909 (array_size_for_constructor): Likewise.
16910 (output_constructor_regular_field): Likewise.
16911 (output_constructor_bitfield): Likewise.
16912 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
16913 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
16915 * gencheck.c: Define BITS_PER_UNIT.
16916 * wide-int.cc: New.
16918 * wide-int-print.cc: New.
16919 * wide-int-print.h: New.
16921 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16923 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
16925 2014-05-06 Richard Biener <rguenther@suse.de>
16927 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
16928 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
16929 (TODO_verify_all): Adjust.
16930 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
16931 TODO_verify_stmts and TODO_verify_rtl_sharing.
16932 * bb-reorder.c: Likewise.
16933 * cfgexpand.c: Likewise.
16934 * cprop.c: Likewise.
16936 * function.c: Likewise.
16937 * fwprop.c: Likewise.
16938 * gcse.c: Likewise.
16939 * gimple-ssa-isolate-paths.c: Likewise.
16940 * gimple-ssa-strength-reduction.c: Likewise.
16941 * ipa-split.c: Likewise.
16942 * loop-init.c: Likewise.
16943 * loop-unroll.c: Likewise.
16944 * lower-subreg.c: Likewise.
16945 * modulo-sched.c: Likewise.
16946 * postreload-gcse.c: Likewise.
16947 * predict.c: Likewise.
16948 * recog.c: Likewise.
16949 * sched-rgn.c: Likewise.
16950 * store-motion.c: Likewise.
16951 * tracer.c: Likewise.
16952 * trans-mem.c: Likewise.
16953 * tree-call-cdce.c: Likewise.
16954 * tree-cfg.c: Likewise.
16955 * tree-cfgcleanup.c: Likewise.
16956 * tree-complex.c: Likewise.
16957 * tree-eh.c: Likewise.
16958 * tree-emutls.c: Likewise.
16959 * tree-if-conv.c: Likewise.
16960 * tree-into-ssa.c: Likewise.
16961 * tree-loop-distribution.c: Likewise.
16962 * tree-object-size.c: Likewise.
16963 * tree-parloops.c: Likewise.
16964 * tree-pass.h: Likewise.
16965 * tree-sra.c: Likewise.
16966 * tree-ssa-ccp.c: Likewise.
16967 * tree-ssa-copy.c: Likewise.
16968 * tree-ssa-copyrename.c: Likewise.
16969 * tree-ssa-dce.c: Likewise.
16970 * tree-ssa-dom.c: Likewise.
16971 * tree-ssa-dse.c: Likewise.
16972 * tree-ssa-forwprop.c: Likewise.
16973 * tree-ssa-ifcombine.c: Likewise.
16974 * tree-ssa-loop-ch.c: Likewise.
16975 * tree-ssa-loop-ivcanon.c: Likewise.
16976 * tree-ssa-loop.c: Likewise.
16977 * tree-ssa-math-opts.c: Likewise.
16978 * tree-ssa-phiopt.c: Likewise.
16979 * tree-ssa-phiprop.c: Likewise.
16980 * tree-ssa-pre.c: Likewise.
16981 * tree-ssa-reassoc.c: Likewise.
16982 * tree-ssa-sink.c: Likewise.
16983 * tree-ssa-strlen.c: Likewise.
16984 * tree-ssa-tail-merge.c: Likewise.
16985 * tree-ssa-uncprop.c: Likewise.
16986 * tree-switch-conversion.c: Likewise.
16987 * tree-tailcall.c: Likewise.
16988 * tree-vect-generic.c: Likewise.
16989 * tree-vectorizer.c: Likewise.
16990 * tree-vrp.c: Likewise.
16991 * tsan.c: Likewise.
16992 * var-tracking.c: Likewise.
16993 * bt-load.c: Likewise.
16994 * cfgcleanup.c: Likewise.
16995 * combine-stack-adj.c: Likewise.
16996 * combine.c: Likewise.
16997 * compare-elim.c: Likewise.
16998 * config/epiphany/resolve-sw-modes.c: Likewise.
16999 * config/i386/i386.c: Likewise.
17000 * config/mips/mips.c: Likewise.
17001 * config/s390/s390.c: Likewise.
17002 * config/sh/sh_treg_combine.cc: Likewise.
17003 * config/sparc/sparc.c: Likewise.
17006 * final.c: Likewise.
17007 * ifcvt.c: Likewise.
17008 * mode-switching.c: Likewise.
17009 * passes.c: Likewise.
17010 * postreload.c: Likewise.
17012 * reg-stack.c: Likewise.
17013 * regcprop.c: Likewise.
17014 * regrename.c: Likewise.
17017 2014-05-06 Richard Biener <rguenther@suse.de>
17019 PR middle-end/61070
17020 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17021 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17023 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17026 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17028 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17029 Tom de Vries <tom@codesourcery.com>
17031 * target.def (call_fusage_contains_non_callee_clobbers): New
17033 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17035 (@node Miscellaneous Register Hooks): New node.
17036 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17037 * doc/tm.texi: Regenerate.
17039 2014-05-05 Marek Polacek <polacek@redhat.com>
17042 * opts.c (common_handle_option): Call error_at instead of warning_at.
17044 2014-05-05 Richard Biener <rguenther@suse.de>
17046 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17047 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17048 under the TODO_verify_il umbrella.
17050 2014-05-05 Richard Biener <rguenther@suse.de>
17052 * passes.c (execute_function_todo): Move TODO_verify_flow under
17053 the TODO_verify_ul umbrella.
17055 2014-05-05 Richard Biener <rguenther@suse.de>
17057 PR middle-end/61010
17058 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17059 X & CST away from a CST that is the mask of a mode.
17061 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17063 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17064 int argument to enum machine_mode.
17065 (picochip_class_max_nregs): Ditto.
17066 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17067 (picochip_class_max_nregs): Ditto.
17069 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17071 * target.def: Add new target hook.
17072 * doc/tm.texi: Regenerate.
17073 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17074 * targhooks.c (default_keep_leaf_when_profiled): New function.
17076 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17077 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17079 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17081 PR tree-optimization/60363
17082 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17083 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17084 (update_destination_phis): New parameter.
17085 (create_edge_and_update_destination_phis): Ditto.
17086 (ssa_fix_duplicate_block_edges): Pass new arguments.
17087 (thread_single_edge): Ditto.
17089 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17091 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17092 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17093 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17094 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17095 Use RS6000_BTM_HARD_FLOAT.
17096 (BU_MISC_2): Likewise.
17097 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17098 RS6000_BTM_HARD_FLOAT.
17099 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17100 is explicitly used.
17101 (rs6000_invalid_builtin): Add hard floating builtin support.
17102 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17103 hard float builtins.
17104 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17106 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17108 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17109 Add missing function* argument.
17111 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17113 * lra-constraints.c (valid_address_p): Move earlier in file.
17114 Add a constraint argument to the address_info version.
17115 (satisfies_memory_constraint_p): New function.
17116 (satisfies_address_constraint_p): Likewise.
17117 (process_alt_operands, curr_insn_transform): Use them.
17118 (process_address): Pass the constraint to valid_address_p when
17119 checking address operands.
17121 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17123 * config/mips/mips.c (mips_isa_rev): New variable.
17124 (mips_set_architecture): Set it.
17125 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17127 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17128 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17129 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17130 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17131 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17132 conditions in terms of mips_isa_rev.
17133 (mips_isa_rev): Declare.
17135 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17137 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17138 (prob_unlikely, prob_likely): Make variables const.
17140 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17142 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17144 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17146 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17148 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17150 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17151 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17152 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17154 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17155 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17157 Replace usage of ROUND_REG with sh_round_reg.
17158 Use CEIL instead of ROUND_ADVANCE.
17160 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17163 * config/sh/sh.c: Include stdlib headers before everything else.
17165 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17167 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17168 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17169 (gimplify_adjust_omp_clauses): Simd region is never
17170 directly nested in combined parallel. Instead, for linear
17171 with copyin/copyout, if in combined for simd loop, make decl
17172 firstprivate/lastprivate on OMP_FOR.
17173 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17174 expand_omp_for_static_chunk): When setting endvar, also set
17175 fd->loop.v to the same value.
17177 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17179 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17181 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17183 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17186 2014-05-02 Marek Polacek <polacek@redhat.com>
17188 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17190 2014-05-02 Kito Cheng <kito@0xlab.org>
17192 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17193 to a C expression marco.
17194 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17195 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17196 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17197 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17198 HONOR_REG_ALLOC_ORDER.
17199 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17201 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17203 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17205 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17207 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17209 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17211 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17212 (convert_scalar_cond_reduction): Likewise.
17213 (predicate_scalar_phi): Add recognition and transformation
17214 of simple conditioanl reduction to be vectorizable.
17216 2014-05-01 Marek Polacek <polacek@redhat.com>
17219 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17221 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17223 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17224 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17225 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17226 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17227 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17228 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17229 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17230 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17232 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17234 * config/arc/arc.opt (mlra): Move comment above option name
17235 to avoid mis-parsing as language options.
17237 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17239 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17240 * config/sol2.h: ... here.
17241 * config/sol2-10.h: Remove.
17243 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17244 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17245 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17246 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17247 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17248 * config/sol2.h: ... here.
17249 (SECTION_NAME_FORMAT): Don't redefine.
17250 (STARTFILE_ARCH32_SPEC): Rename to ...
17251 (STARTFILE_ARCH_SPEC): ... this.
17252 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17253 * config/sparc/sol2.h: ... here.
17254 (SECTION_NAME_FORMAT): Don't undef.
17255 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17256 (SUBTARGET_EXTRA_SPECS): Remove.
17257 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17259 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17260 (MD_STARTFILE_PREFIX): Remove.
17261 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17262 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17263 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17264 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17265 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17266 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17267 * config/i386/sol2.h: ... here.
17268 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17269 * config/i386/sol2-bi.h: Remove.
17270 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17271 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17273 * config/i386/t-sol2-64: Rename to ...
17274 * config/i386/t-sol2: ... this.
17275 * config/sparc/t-sol2-64: Rename to ...
17276 * config/sparc/t-sol2: ... this.
17278 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17279 sol2_tm_file_head, sol2_tm_file_tail.
17280 Include ${cpu_type}/sol2.h before sol2.h.
17282 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17283 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17284 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17285 Reflect i386/t-sol2-64 renaming.
17286 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17287 Reflect sparc/t-sol2-64 renaming.
17289 2014-04-30 Richard Biener <rguenther@suse.de>
17291 * passes.c (execute_function_todo): Move TODO_verify_stmts
17292 and TODO_verify_ssa under the TODO_verify_il umbrella.
17293 * tree-ssa.h (verify_ssa): Adjust prototype.
17294 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17295 we should verify SSA operands.
17296 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17297 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17298 whether we should verify whether not throwing stmts have EH info.
17299 * graphite-scop-detection.c (create_sese_edges): Adjust.
17300 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17301 * tree-eh.c (lower_try_finally_switch): Do not add the
17302 default case label twice.
17304 2014-04-30 Marek Polacek <polacek@redhat.com>
17306 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17307 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17308 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17309 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17311 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17313 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17314 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17315 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17316 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17317 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17318 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17319 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17320 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17322 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17324 * tree-cfg.c (dump_function_to_file): Dump the return type of
17325 functions, in a line to itself before the function body, mimicking
17326 the layout of a C function.
17328 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17330 PR tree-optimization/60971
17331 * tree-tailcall.c (process_assignment): Reject conversions which
17334 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17336 * calls.c (initialize_argument_information): Always treat
17337 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17338 (expand_call): Likewise.
17339 (emit_library_call_calue_1): Likewise.
17340 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17341 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17344 2014-04-29 Nick Clifton <nickc@redhat.com>
17346 * config/msp430/msp430.md (umulsidi): Fix typo.
17347 (mulhisi3): Enable even inside interrupt handlers.
17348 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17349 bigger return address pushed in large mode.
17351 2014-04-29 Nick Clifton <nickc@redhat.com>
17353 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17354 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17356 * config/m32r/m32r.c (init_reg_tables): Likewise.
17357 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17358 enum to hold the modes.
17360 2014-04-29 Richard Biener <rguenther@suse.de>
17362 * dominance.c (free_dominance_info): Add overload with
17363 function parameter.
17364 (dom_info_state): Likewise.
17365 (dom_info_available_p): Likewise.
17366 * basic-block.h (free_dominance_info, dom_info_state,
17367 dom_info_available_p): Declare overloads.
17368 * passes.c (execute_function_todo): Verify that verifiers
17369 don't change dominator info state. Drop dominator info
17370 for IPA pass invocations.
17371 * cgraph.c (release_function_body): Restore asserts that
17372 dominator information is released.
17374 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17376 * doc/invoke.texi: Fix typo.
17377 * tree-vrp.c: Fix typos.
17378 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17380 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17382 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17384 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17386 * config/aarch64/aarch64-builtins.c
17387 (aarch64_types_storestruct_lane_qualifiers): New.
17388 (TYPES_STORESTRUCT_LANE): Likewise.
17389 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17390 (st3_lane): Likewise.
17391 (st4_lane): Likewise.
17392 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17393 (vec_store_lanesci_lane<mode>): Likewise.
17394 (vec_store_lanesxi_lane<mode>): Likewise.
17395 (aarch64_st2_lane<VQ:mode>): Likewise.
17396 (aarch64_st3_lane<VQ:mode>): Likewise.
17397 (aarch64_st4_lane<VQ:mode>): Likewise.
17398 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17399 * config/aarch64/arm_neon.h
17400 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
17401 use new macro arguments.
17402 (__ST3_LANE_FUNC): Likewise.
17403 (__ST4_LANE_FUNC): Likewise.
17404 * config/aarch64/iterators.md (V_TWO_ELEM): New.
17405 (V_THREE_ELEM): Likewise.
17406 (V_FOUR_ELEM): Likewise.
17408 2014-04-28 David Malcolm <dmalcolm@redhat.com>
17410 * doc/gimple.texi: Replace the description of the now-defunct
17411 union gimple_statement_d with a diagram showing the
17412 gimple_statement_base class hierarchy and its relationships to
17413 the GSS_ and GIMPLE_ enums.
17415 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17417 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
17418 * config/aarch64/aarch64.c
17419 (aarch64_cannot_change_mode_class): Weaken conditions.
17420 (aarch64_modes_tieable_p): New.
17421 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
17423 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
17425 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17426 (loadsync_<mode>): Change mode.
17427 (load_quadpti, store_quadpti): New.
17428 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17429 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17431 2014-04-28 Martin Jambor <mjambor@suse.cz>
17433 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
17434 same alias type as the original statement.
17435 (subreplacement_assignment_data): New type.
17436 (handle_unscalarized_data_in_subtree): New type of parameter,
17437 generate new memory accesses with same alias type as the original
17439 (load_assign_lhs_subreplacements): Likewise.
17440 (sra_modify_constructor_assign): Generate new memory accesses with
17441 same alias type as the original statement.
17443 2014-04-28 Richard Biener <rguenther@suse.de>
17445 * tree-pass.h (TODO_verify_il): Define.
17446 (TODO_verify_all): Complete properly.
17447 * passes.c (execute_function_todo): Move existing loop-closed
17448 SSA verification under TODO_verify_il.
17449 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
17450 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
17451 Fix tree sharing issue.
17453 2014-04-28 Richard Biener <rguenther@suse.de>
17455 PR middle-end/60092
17456 * builtins.def (DEF_C11_BUILTIN): Add.
17457 (BUILT_IN_ALIGNED_ALLOC): Likewise.
17458 * coretypes.h (enum function_class): Add function_c11_misc.
17459 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17460 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
17461 (call_may_clobber_ref_p_1): Likewise.
17462 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17463 (mark_all_reaching_defs_necessary_1): Likewise.
17464 (propagate_necessity): Likewise.
17465 (eliminate_unnecessary_stmts): Likewise.
17466 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
17468 2014-04-28 Richard Biener <rguenther@suse.de>
17470 * tree-vrp.c (vrp_var_may_overflow): Remove.
17471 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
17472 with overflow immediately bump to one before that value and
17473 let iteration figure out overflow status.
17475 2014-04-28 Richard Biener <rguenther@suse.de>
17477 * configure.ac: Do valgrind header checks unconditionally.
17478 Add --enable-valgrind-annotations.
17479 * system.h: Guard valgrind header inclusion with
17480 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
17481 * alloc-pool.c (pool_alloc, pool_free): Use
17482 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
17483 to guard possibly dead code.
17484 * config.in: Regenerated.
17485 * configure: Likewise.
17487 2014-04-28 Jeff Law <law@redhat.com>
17489 PR tree-optimization/60902
17490 * tree-ssa-threadedge.c
17491 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
17492 over real defs when invalidating outputs from statements that do not
17493 produce useful outputs for threading.
17495 2014-04-28 Richard Biener <rguenther@suse.de>
17497 PR tree-optimization/60979
17498 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
17499 SCOPs that end in a block with a successor with abnormal
17502 2014-04-28 Richard Biener <rguenther@suse.de>
17504 * tree-pass.h (execute_pass_list): Adjust prototype.
17505 * passes.c (pass_manager::execute_early_local_passes): Adjust.
17506 (do_per_function): Change callback signature, push all actual
17507 work to the callbals.
17508 (do_per_function_toporder): Likewise.
17509 (execute_function_dump): Adjust.
17510 (execute_function_todo): Likewise.
17511 (clear_last_verified): Likewise.
17512 (verify_curr_properties): Likewise.
17513 (update_properties_after_pass): Likewise.
17514 (execute_pass_list_1): Split out from ...
17515 (execute_pass_list): ... here. Adjust.
17516 (execute_ipa_pass_list): Likewise.
17517 * cgraphunit.c (cgraph_add_new_function): Adjust.
17518 (analyze_function): Likewise.
17519 (expand_function): Likewise.
17520 * cgraph.c (release_function_body): Free dominance info
17521 here instead of asserting it was magically freed elsewhere.
17523 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
17525 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
17526 * configure: Regenerate.
17527 * config/sparc/sparc.opt (muser-mode): New option.
17528 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
17530 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
17531 * doc/invoke.texi (SPARC options): Document -muser-mode.
17533 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
17535 * cselib.c (find_slot_memmode): Delete.
17536 (cselib_hasher): Change compare_type to a struct.
17537 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
17539 (preserve_constants_and_equivs): Adjust for new compare_type.
17540 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
17541 (wrap_constant): Delete.
17542 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
17544 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
17546 * doc/install.texi (Building with profile feedback): Remove
17549 2014-04-26 Tom de Vries <tom@codesourcery.com>
17551 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
17554 2014-04-25 Cary Coutant <ccoutant@google.com>
17557 * dwarf2out.c (should_move_die_to_comdat): A type definition
17558 can contain a subprogram definition, but don't move it to a
17560 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
17561 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
17563 (clone_tree_hash): Rename to...
17564 (clone_tree_partial): ...this; change callers. Copy
17565 DW_TAG_subprogram DIEs as declarations.
17566 (copy_decls_walk): Don't copy children of a declaration into a
17569 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
17572 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
17575 2014-04-25 Jiong Wang <jiong.wang@arm.com>
17577 * config/arm/predicates.md (call_insn_operand): Add long_call check.
17578 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
17580 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
17583 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17585 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
17587 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17589 PR tree-optimization/60930
17590 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
17591 creating a multiply candidate by folding two constant
17592 multiplicands when the result overflows.
17594 2014-04-25 Jakub Jelinek <jakub@redhat.com>
17596 PR tree-optimization/60960
17597 * tree-vect-generic.c (expand_vector_operation): Only call
17598 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
17600 2014-04-25 Tom de Vries <tom@codesourcery.com>
17602 * expr.c (clobber_reg_mode): New function.
17603 * expr.h (clobber_reg): New function.
17605 2014-04-25 Tom de Vries <tom@codesourcery.com>
17607 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
17610 2014-04-25 Radovan Obradovic <robradovic@mips.com>
17611 Tom de Vries <tom@codesourcery.com>
17613 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
17615 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
17616 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
17617 new argument to find_all_hard_reg_sets call.
17619 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17621 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
17622 Use HOST_WIDE_INT_C for mask literal.
17623 (aarch_rev16_shleft_mask_imm_p): Likewise.
17625 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
17628 * config/sparc/sparc.md (ashlsi3_extend): Delete.
17630 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
17632 PR preprocessor/56540
17633 * config/i386/i386-c.c (ix86_target_macros): Define
17634 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
17636 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17638 * configure.ac (tga_func): Remove.
17639 (LIB_TLS_SPEC): Remove.
17640 * configure: Regenerate.
17641 * config.in: Regenerate.
17642 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
17644 2014-04-25 Richard Biener <rguenther@suse.de>
17647 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
17648 call stmt use/clobber sets during stmt walk instead of
17649 walking the possibly incomplete set of caller edges.
17651 2014-04-25 Richard Biener <rguenther@suse.de>
17654 * passes.c (apply_ipa_transforms): Inline into only caller ...
17655 (execute_one_pass): ... here. Properly bring in function
17656 bodies for nodes we want to apply IPA transforms to.
17658 2014-04-24 Cong Hou <congh@google.com>
17660 PR tree-optimization/60896
17661 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
17662 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
17663 (vect_mark_pattern_stmts): Set the def type of all statements in
17664 PATTERN_DEF_SEQ as vect_internal_def.
17666 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17668 * doc/extend.texi (PowerPC Built-in Functions): Document new
17669 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
17670 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
17672 * config/rs6000/predicates.md (const_0_to_3_operand): New
17673 predicate to match 0..3 integer constants.
17675 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
17676 to support adding miscellaneous builtin functions.
17677 (BU_DFP_MISC_2): Likewise.
17678 (BU_P7_MISC_1): Likewise.
17679 (BU_P7_MISC_2): Likewise.
17680 (BU_P8V_MISC_3): Likewise.
17681 (BU_MISC_1): Likewise.
17682 (BU_MISC_2): Likewise.
17683 (DIVWE): Add extended divide builtin functions.
17684 (DIVWEO): Likewise.
17685 (DIVWEU): Likewise.
17686 (DIVWEUO): Likewise.
17688 (DIVDEO): Likewise.
17689 (DIVDEU): Likewise.
17690 (DIVDEUO): Likewise.
17691 (DXEX): Add decimal floating-point builtin functions.
17693 (DDEDPD): Likewise.
17694 (DDEDPDQ): Likewise.
17695 (DENBCD): Likewise.
17696 (DENBCDQ): Likewise.
17700 (DSCLIQ): Likewise.
17702 (DSCRIQ): Likewise.
17703 (CDTBCD): Add new BCD builtin functions.
17704 (CBCDTD): Likewise.
17705 (ADDG6S): Likewise.
17706 (BCDADD): Likewise.
17707 (BCDADD_LT): Likewise.
17708 (BCDADD_EQ): Likewise.
17709 (BCDADD_GT): Likewise.
17710 (BCDADD_OV): Likewise.
17711 (BCDSUB): Likewise.
17712 (BCDSUB_LT): Likewise.
17713 (BCDSUB_EQ): Likewise.
17714 (BCDSUB_GT): Likewise.
17715 (BCDSUB_OV): Likewise.
17716 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
17717 (UNPACK_TD): Likewise.
17718 (PACK_TF): Likewise.
17719 (UNPACK_TF): Likewise.
17720 (UNPACK_TF_0): Likewise.
17721 (UNPACK_TF_1): Likewise.
17722 (PACK_V1TI): Likewise.
17723 (UNPACK_V1TI): Likewise.
17725 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17726 support for decimal floating point builtin functions.
17727 (rs6000_expand_ternop_builtin): Add checks for the new builtin
17728 functions that take constant arguments.
17729 (rs6000_invalid_builtin): Add decimal floating point builtin support.
17730 (rs6000_init_builtins): Setup long double, _Decimal64, and
17731 _Decimal128 types for new builtin functions.
17732 (builtin_function_type): Set the unsigned flags appropriately for
17733 the new builtin functions.
17734 (rs6000_opt_masks): Add support for decimal floating point builtin
17737 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
17738 floating point builtin functions.
17739 (RS6000_BTM_COMMON): Likewise.
17740 (RS6000_BTI_long_double): Likewise.
17741 (RS6000_BTI_dfloat64): Likewise.
17742 (RS6000_BTI_dfloat128): Likewise.
17743 (long_double_type_internal_node): Likewise.
17744 (dfloat64_type_internal_node): Likewise.
17745 (dfloat128_type_internal_node): Likewise.
17747 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
17748 2.07 bcd arithmetic instructions.
17749 (UNSPEC_BCDSUB): Likewise.
17750 (UNSPEC_BCD_OVERFLOW): Likewise.
17751 (UNSPEC_BCD_ADD_SUB): Likewise.
17752 (bcd_add_sub): Likewise.
17753 (BCD_TEST): Likewise.
17754 (bcd<bcd_add_sub>): Likewise.
17755 (bcd<bcd_add_sub>_test): Likewise.
17756 (bcd<bcd_add_sub>_test2): Likewise.
17757 (bcd<bcd_add_sub>_<code>): Likewise.
17758 (peephole2 for combined bcd ops): Likewise.
17760 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
17761 decimal floating point builtin functions.
17762 (UNSPEC_DENBCD): Likewise.
17763 (UNSPEC_DXEX): Likewise.
17764 (UNSPEC_DIEX): Likewise.
17765 (UNSPEC_DSCLI): Likewise.
17766 (UNSPEC_DSCRI): Likewise.
17767 (D64_D128): Likewise.
17768 (dfp_suffix): Likewise.
17769 (dfp_ddedpd_<mode>): Likewise.
17770 (dfp_denbcd_<mode>): Likewise.
17771 (dfp_dxex_<mode>): Likewise.
17772 (dfp_diex_<mode>): Likewise.
17773 (dfp_dscli_<mode>): Likewise.
17774 (dfp_dscri_<mode>): Likewise.
17776 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
17778 (UNSPEC_CDTBCD): Likewise.
17779 (UNSPEC_CBCDTD): Likewise.
17780 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
17781 (UNSPEC_DIVEO): Likewise.
17782 (UNSPEC_DIVEU): Likewise.
17783 (UNSPEC_DIVEUO): Likewise.
17784 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
17785 pack/unpack 128-bit types.
17786 (UNSPEC_PACK_128BIT): Likewise.
17787 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
17788 (udiv<mode>3): Use idiv_ldiv mode attribute.
17789 (div<mode>3): Likewise.
17790 (addg6s): Add new BCD builtin functions.
17791 (cdtbcd): Likewise.
17792 (cbcdtd): Likewise.
17793 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
17794 (div_extend): Likewise.
17795 (div<div_extend>_<mode>"): Likewise.
17796 (FP128_64): Add support for new builtin functions to pack/unpack
17798 (unpack<mode>): Likewise.
17799 (unpacktf_0): Likewise.
17800 (unpacktf_1): Likewise.
17801 (unpack<mode>_dm): Likewise.
17802 (unpack<mode>_nodm): Likewise.
17803 (pack<mode>): Likewise.
17804 (unpackv1ti): Likewise.
17805 (packv1ti): Likewise.
17807 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
17809 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
17812 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17814 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
17815 * gimplify.c (omp_is_private): Change last argument's type to int.
17816 Only diagnose lastprivate if the simd argument is 1, only diagnose
17817 linear if the simd argument is 2.
17818 (gimplify_omp_for): Adjust omp_is_private callers. When adding
17819 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
17820 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
17821 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
17822 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
17823 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17824 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
17825 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17826 * tree-nested.c (convert_nonlocal_omp_clauses,
17827 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
17829 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
17832 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
17835 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
17837 * flag-types.h (enum ivar_visibility): Add.
17839 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
17841 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
17842 function * argument.
17844 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
17846 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
17848 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17849 Tom de Vries <tom@codesourcery.com>
17851 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
17852 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
17854 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
17855 * emit-rtl.c (try_split): Same.
17857 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17858 Tom de Vries <tom@codesourcery.com>
17860 * common.opt (fuse-caller-save): New option.
17862 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
17864 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
17865 elements for big-endian.
17867 2014-04-24 Richard Biener <rguenther@suse.de>
17869 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
17870 during TER and instead use the sepops interface for expanding
17871 non-GIMPLE_SINGLE_RHS.
17873 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17875 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
17876 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
17878 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17880 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
17881 assembler 64-bit option.
17882 * configure: Regenerate.
17884 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17886 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
17887 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
17888 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
17889 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
17890 (TARGET_CRYPTO): Take TARGET_SIMD into account.
17892 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17894 * config/aarch64/aarch64-builtins.c
17895 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
17896 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
17897 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
17898 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
17900 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
17901 (Vrevsuff): New mode attribute.
17903 2014-04-24 Terry Guo <terry.guo@arm.com>
17905 * config/arm/arm.h (machine_function): Define variable
17906 after_arm_reorg here.
17907 * config/arm/arm.c (after_arm_reorg): Remove the definition.
17908 (arm_split_constant): Update the way to access variable
17910 (arm_reorg): Ditto.
17911 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
17913 2014-04-23 Tom de Vries <tom@codesourcery.com>
17915 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
17917 2014-04-23 David Malcolm <dmalcolm@redhat.com>
17919 * is-a.h: Update comments to reflect the following changes to the
17920 "pointerness" of the API, making the template parameter match the
17921 return type, allowing use of is-a.h with typedefs of pointers.
17922 (is_a_helper::cast): Return a T rather then a pointer to a T, so
17923 that the return type matches the parameter to the is_a_helper.
17925 (dyn_cast): Likewise.
17927 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
17928 pointer from the is-a.h API.
17930 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
17931 (is_a_helper <cgraph_node *>::test): ...this, matching change to
17933 (is_a_helper <varpool_node>::test): Likewise, convert to...
17934 (is_a_helper <varpool_node *>::test): ...this.
17936 (varpool_first_variable): Update for removal of implicit pointer
17937 from the is-a.h API.
17938 (varpool_next_variable): Likewise.
17939 (varpool_first_static_initializer): Likewise.
17940 (varpool_next_static_initializer): Likewise.
17941 (varpool_first_defined_variable): Likewise.
17942 (varpool_next_defined_variable): Likewise.
17943 (cgraph_first_defined_function): Likewise.
17944 (cgraph_next_defined_function): Likewise.
17945 (cgraph_first_function): Likewise.
17946 (cgraph_next_function): Likewise.
17947 (cgraph_first_function_with_gimple_body): Likewise.
17948 (cgraph_next_function_with_gimple_body): Likewise.
17949 (cgraph_alias_target): Likewise.
17950 (varpool_alias_target): Likewise.
17951 (cgraph_function_or_thunk_node): Likewise.
17952 (varpool_variable_node): Likewise.
17953 (symtab_real_symbol_p): Likewise.
17954 * cgraphunit.c (referred_to_p): Likewise.
17955 (analyze_functions): Likewise.
17956 (handle_alias_pairs): Likewise.
17957 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
17958 * gimple-ssa.h (gimple_vuse_op): Likewise.
17959 (gimple_vdef_op): Likewise.
17960 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
17961 * gimple.c (gimple_build_asm_1): Likewise.
17962 (gimple_build_try): Likewise.
17963 (gimple_build_resx): Likewise.
17964 (gimple_build_eh_dispatch): Likewise.
17965 (gimple_build_omp_for): Likewise.
17966 (gimple_omp_for_set_clauses): Likewise.
17968 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
17969 (is_a_helper <gimple_statement_asm *>::test): ...this.
17970 (is_a_helper <gimple_statement_bind>::test): Convert to...
17971 (is_a_helper <gimple_statement_bind *>::test): ...this.
17972 (is_a_helper <gimple_statement_call>::test): Convert to...
17973 (is_a_helper <gimple_statement_call *>::test): ...this.
17974 (is_a_helper <gimple_statement_catch>::test): Convert to...
17975 (is_a_helper <gimple_statement_catch *>::test): ...this.
17976 (is_a_helper <gimple_statement_resx>::test): Convert to...
17977 (is_a_helper <gimple_statement_resx *>::test): ...this.
17978 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
17979 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
17980 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
17981 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
17982 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
17983 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
17984 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
17985 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
17986 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
17987 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
17988 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
17989 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
17990 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
17991 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
17992 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
17993 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
17994 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
17995 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
17996 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
17997 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
17998 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
17999 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18000 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18001 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18002 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18003 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18004 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18005 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18006 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18007 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18008 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18009 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18010 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18011 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18012 (is_a_helper <gimple_statement_phi>::test): Convert to...
18013 (is_a_helper <gimple_statement_phi *>::test): ...this.
18014 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18015 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18016 (is_a_helper <gimple_statement_try>::test): Convert to...
18017 (is_a_helper <gimple_statement_try *>::test): ...this.
18018 (is_a_helper <gimple_statement_wce>::test): Convert to...
18019 (is_a_helper <gimple_statement_wce *>::test): ...this.
18020 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18021 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18022 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18023 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18024 (is_a_helper <const gimple_statement_call>::test): Convert to...
18025 (is_a_helper <const gimple_statement_call *>::test): ...this.
18026 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18027 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18028 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18029 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18030 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18031 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18032 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18033 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18034 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18036 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18038 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18040 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18042 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18043 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18044 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18046 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18047 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18049 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18050 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18051 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18052 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18053 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18054 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18056 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18057 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18058 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18059 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18061 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18062 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18063 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18064 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18065 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18066 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18067 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18068 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18069 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18070 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18071 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18072 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18073 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18074 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18075 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18076 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18078 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18080 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18081 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18083 (gimple_use_ops): Update for removal of implicit pointer from the
18085 (gimple_set_use_ops): Likewise.
18086 (gimple_vuse): Likewise.
18087 (gimple_vdef): Likewise.
18088 (gimple_vuse_ptr): Likewise.
18089 (gimple_vdef_ptr): Likewise.
18090 (gimple_set_vuse): Likewise.
18091 (gimple_set_vdef): Likewise.
18092 (gimple_omp_return_set_lhs): Likewise.
18093 (gimple_omp_return_lhs): Likewise.
18094 (gimple_omp_return_lhs_ptr): Likewise.
18095 (gimple_call_fntype): Likewise.
18096 (gimple_call_set_fntype): Likewise.
18097 (gimple_call_set_internal_fn): Likewise.
18098 (gimple_call_use_set): Likewise.
18099 (gimple_call_clobber_set): Likewise.
18100 (gimple_bind_vars): Likewise.
18101 (gimple_bind_set_vars): Likewise.
18102 (gimple_bind_body_ptr): Likewise.
18103 (gimple_bind_set_body): Likewise.
18104 (gimple_bind_add_stmt): Likewise.
18105 (gimple_bind_block): Likewise.
18106 (gimple_bind_set_block): Likewise.
18107 (gimple_asm_ninputs): Likewise.
18108 (gimple_asm_noutputs): Likewise.
18109 (gimple_asm_nclobbers): Likewise.
18110 (gimple_asm_nlabels): Likewise.
18111 (gimple_asm_input_op): Likewise.
18112 (gimple_asm_input_op_ptr): Likewise.
18113 (gimple_asm_output_op): Likewise.
18114 (gimple_asm_output_op_ptr): Likewise.
18115 (gimple_asm_set_output_op): Likewise.
18116 (gimple_asm_clobber_op): Likewise.
18117 (gimple_asm_set_clobber_op): Likewise.
18118 (gimple_asm_label_op): Likewise.
18119 (gimple_asm_set_label_op): Likewise.
18120 (gimple_asm_string): Likewise.
18121 (gimple_catch_types): Likewise.
18122 (gimple_catch_types_ptr): Likewise.
18123 (gimple_catch_handler_ptr): Likewise.
18124 (gimple_catch_set_types): Likewise.
18125 (gimple_catch_set_handler): Likewise.
18126 (gimple_eh_filter_types): Likewise.
18127 (gimple_eh_filter_types_ptr): Likewise.
18128 (gimple_eh_filter_failure_ptr): Likewise.
18129 (gimple_eh_filter_set_types): Likewise.
18130 (gimple_eh_filter_set_failure): Likewise.
18131 (gimple_eh_must_not_throw_fndecl): Likewise.
18132 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18133 (gimple_eh_else_n_body_ptr): Likewise.
18134 (gimple_eh_else_e_body_ptr): Likewise.
18135 (gimple_eh_else_set_n_body): Likewise.
18136 (gimple_eh_else_set_e_body): Likewise.
18137 (gimple_try_eval_ptr): Likewise.
18138 (gimple_try_cleanup_ptr): Likewise.
18139 (gimple_try_set_eval): Likewise.
18140 (gimple_try_set_cleanup): Likewise.
18141 (gimple_wce_cleanup_ptr): Likewise.
18142 (gimple_wce_set_cleanup): Likewise.
18143 (gimple_phi_capacity): Likewise.
18144 (gimple_phi_num_args): Likewise.
18145 (gimple_phi_result): Likewise.
18146 (gimple_phi_result_ptr): Likewise.
18147 (gimple_phi_set_result): Likewise.
18148 (gimple_phi_arg): Likewise.
18149 (gimple_phi_set_arg): Likewise.
18150 (gimple_resx_region): Likewise.
18151 (gimple_resx_set_region): Likewise.
18152 (gimple_eh_dispatch_region): Likewise.
18153 (gimple_eh_dispatch_set_region): Likewise.
18154 (gimple_omp_critical_name): Likewise.
18155 (gimple_omp_critical_name_ptr): Likewise.
18156 (gimple_omp_critical_set_name): Likewise.
18157 (gimple_omp_for_clauses): Likewise.
18158 (gimple_omp_for_clauses_ptr): Likewise.
18159 (gimple_omp_for_set_clauses): Likewise.
18160 (gimple_omp_for_collapse): Likewise.
18161 (gimple_omp_for_index): Likewise.
18162 (gimple_omp_for_index_ptr): Likewise.
18163 (gimple_omp_for_set_index): Likewise.
18164 (gimple_omp_for_initial): Likewise.
18165 (gimple_omp_for_initial_ptr): Likewise.
18166 (gimple_omp_for_set_initial): Likewise.
18167 (gimple_omp_for_final): Likewise.
18168 (gimple_omp_for_final_ptr): Likewise.
18169 (gimple_omp_for_set_final): Likewise.
18170 (gimple_omp_for_incr): Likewise.
18171 (gimple_omp_for_incr_ptr): Likewise.
18172 (gimple_omp_for_set_incr): Likewise.
18173 (gimple_omp_for_pre_body_ptr): Likewise.
18174 (gimple_omp_for_set_pre_body): Likewise.
18175 (gimple_omp_parallel_clauses): Likewise.
18176 (gimple_omp_parallel_clauses_ptr): Likewise.
18177 (gimple_omp_parallel_set_clauses): Likewise.
18178 (gimple_omp_parallel_child_fn): Likewise.
18179 (gimple_omp_parallel_child_fn_ptr): Likewise.
18180 (gimple_omp_parallel_set_child_fn): Likewise.
18181 (gimple_omp_parallel_data_arg): Likewise.
18182 (gimple_omp_parallel_data_arg_ptr): Likewise.
18183 (gimple_omp_parallel_set_data_arg): Likewise.
18184 (gimple_omp_task_clauses): Likewise.
18185 (gimple_omp_task_clauses_ptr): Likewise.
18186 (gimple_omp_task_set_clauses): Likewise.
18187 (gimple_omp_task_child_fn): Likewise.
18188 (gimple_omp_task_child_fn_ptr): Likewise.
18189 (gimple_omp_task_set_child_fn): Likewise.
18190 (gimple_omp_task_data_arg): Likewise.
18191 (gimple_omp_task_data_arg_ptr): Likewise.
18192 (gimple_omp_task_set_data_arg): Likewise.
18193 (gimple_omp_taskreg_clauses): Likewise.
18194 (gimple_omp_taskreg_clauses_ptr): Likewise.
18195 (gimple_omp_taskreg_set_clauses): Likewise.
18196 (gimple_omp_taskreg_child_fn): Likewise.
18197 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18198 (gimple_omp_taskreg_set_child_fn): Likewise.
18199 (gimple_omp_taskreg_data_arg): Likewise.
18200 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18201 (gimple_omp_taskreg_set_data_arg): Likewise.
18202 (gimple_omp_task_copy_fn): Likewise.
18203 (gimple_omp_task_copy_fn_ptr): Likewise.
18204 (gimple_omp_task_set_copy_fn): Likewise.
18205 (gimple_omp_task_arg_size): Likewise.
18206 (gimple_omp_task_arg_size_ptr): Likewise.
18207 (gimple_omp_task_set_arg_size): Likewise.
18208 (gimple_omp_task_arg_align): Likewise.
18209 (gimple_omp_task_arg_align_ptr): Likewise.
18210 (gimple_omp_task_set_arg_align): Likewise.
18211 (gimple_omp_single_clauses): Likewise.
18212 (gimple_omp_single_clauses_ptr): Likewise.
18213 (gimple_omp_single_set_clauses): Likewise.
18214 (gimple_omp_target_clauses): Likewise.
18215 (gimple_omp_target_clauses_ptr): Likewise.
18216 (gimple_omp_target_set_clauses): Likewise.
18217 (gimple_omp_target_child_fn): Likewise.
18218 (gimple_omp_target_child_fn_ptr): Likewise.
18219 (gimple_omp_target_set_child_fn): Likewise.
18220 (gimple_omp_target_data_arg): Likewise.
18221 (gimple_omp_target_data_arg_ptr): Likewise.
18222 (gimple_omp_target_set_data_arg): Likewise.
18223 (gimple_omp_teams_clauses): Likewise.
18224 (gimple_omp_teams_clauses_ptr): Likewise.
18225 (gimple_omp_teams_set_clauses): Likewise.
18226 (gimple_omp_sections_clauses): Likewise.
18227 (gimple_omp_sections_clauses_ptr): Likewise.
18228 (gimple_omp_sections_set_clauses): Likewise.
18229 (gimple_omp_sections_control): Likewise.
18230 (gimple_omp_sections_control_ptr): Likewise.
18231 (gimple_omp_sections_set_control): Likewise.
18232 (gimple_omp_for_set_cond): Likewise.
18233 (gimple_omp_for_cond): Likewise.
18234 (gimple_omp_atomic_store_set_val): Likewise.
18235 (gimple_omp_atomic_store_val): Likewise.
18236 (gimple_omp_atomic_store_val_ptr): Likewise.
18237 (gimple_omp_atomic_load_set_lhs): Likewise.
18238 (gimple_omp_atomic_load_lhs): Likewise.
18239 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18240 (gimple_omp_atomic_load_set_rhs): Likewise.
18241 (gimple_omp_atomic_load_rhs): Likewise.
18242 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18243 (gimple_omp_continue_control_def): Likewise.
18244 (gimple_omp_continue_control_def_ptr): Likewise.
18245 (gimple_omp_continue_set_control_def): Likewise.
18246 (gimple_omp_continue_control_use): Likewise.
18247 (gimple_omp_continue_control_use_ptr): Likewise.
18248 (gimple_omp_continue_set_control_use): Likewise.
18249 (gimple_transaction_body_ptr): Likewise.
18250 (gimple_transaction_label): Likewise.
18251 (gimple_transaction_label_ptr): Likewise.
18252 (gimple_transaction_set_body): Likewise.
18253 (gimple_transaction_set_label): Likewise.
18255 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18256 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18257 * ipa-ref.c (ipa_record_reference): Likewise.
18258 * ipa-reference.c (analyze_function): Likewise.
18259 (ipa_reference_write_optimization_summary): Likewise.
18260 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18261 (address_taken_from_non_vtable_p): Likewise.
18262 (comdat_can_be_unshared_p_1): Likewise.
18263 * lto-cgraph.c (lto_output_ref): Likewise.
18264 (add_references): Likewise.
18265 (compute_ltrans_boundary): Likewise.
18266 (output_symtab): Likewise.
18267 (input_ref): Likewise.
18268 (input_cgraph_1): Likewise.
18269 (output_cgraph_opt_summary): Likewise.
18270 * lto-streamer-out.c (lto_output): Likewise.
18271 (output_symbol_p): Likewise.
18272 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18273 (lsei_start_function_in_partition): Likewise.
18274 (lsei_next_variable_in_partition): Likewise.
18275 (lsei_start_variable_in_partition): Likewise.
18276 * symtab.c (insert_to_assembler_name_hash): Likewise.
18277 (unlink_from_assembler_name_hash): Likewise.
18278 (symtab_unregister_node): Likewise.
18279 (symtab_remove_node): Likewise.
18280 (dump_symtab_node): Likewise.
18281 (verify_symtab_base): Likewise.
18282 (verify_symtab_node): Likewise.
18283 (symtab_make_decl_local): Likewise.
18284 (symtab_alias_ultimate_target): Likewise.
18285 (symtab_resolve_alias): Likewise.
18286 (symtab_get_symbol_partitioning_class): Likewise.
18287 * tree-phinodes.c (allocate_phi_node): Likewise.
18288 (reserve_phi_args_for_new_edge): Likewise.
18289 (remove_phi_args): Likewise.
18290 * varpool.c (varpool_node_for_asm): Likewise.
18291 (varpool_remove_unreferenced_decls): Likewise.
18293 2014-04-23 Jeff Law <law@redhat.com>
18295 PR tree-optimization/60902
18296 * tree-ssa-threadedge.c
18297 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18298 invalidate outputs from statements that do not produce useful
18299 outputs for threading.
18301 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18303 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18304 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18305 machine descriptions for Stack Smashing Protector.
18307 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18309 * aarch64.md (<optab>_rol<mode>3): New pattern.
18310 (<optab>_rolsi3_uxtw): Likewise.
18311 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18313 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18315 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18316 (arm_cortex_a12_tune): Likewise.
18318 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18320 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18322 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18324 * config/arm/arm.md (arm_rev16si2): New pattern.
18325 (arm_rev16si2_alt): Likewise.
18326 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18328 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18330 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18331 (rev16<mode>2_alt): Likewise.
18332 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18333 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18334 (aarch_rev16_shleft_mask_imm_p): Likewise.
18335 (aarch_rev16_p_1): Likewise.
18336 (aarch_rev16_p): Likewise.
18337 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18338 (aarch_rev16_shright_mask_imm_p): Likewise.
18339 (aarch_rev16_shleft_mask_imm_p): Likewise.
18341 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18343 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18344 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18346 (cortex_a53_extra_costs): Likewise.
18347 (cortex_a57_extra_costs): Likewise.
18348 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18349 (cortexa7_extra_costs): Likewise.
18350 (cortexa8_extra_costs): Likewise.
18351 (cortexa12_extra_costs): Likewise.
18352 (cortexa15_extra_costs): Likewise.
18353 (v7m_extra_costs): Likewise.
18354 (arm_new_rtx_costs): Handle BSWAP.
18356 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18358 * config/arm/arm.c (cortexa8_extra_costs): New table.
18359 (arm_cortex_a8_tune): New tuning struct.
18360 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18362 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18364 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18366 2014-04-23 Richard Biener <rguenther@suse.de>
18368 * Makefile.in (OBJS): Remove loop-unswitch.o.
18369 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18370 * passes.def (pass_rtl_unswitch): Likewise.
18371 * loop-init.c (gate_rtl_unswitch): Likewise.
18372 (rtl_unswitch): Likewise.
18373 (pass_data_rtl_unswitch): Likewise.
18374 (pass_rtl_unswitch): Likewise.
18375 (make_pass_rtl_unswitch): Likewise.
18376 * rtl.h (reversed_condition): Likewise.
18377 (compare_and_jump_seq): Likewise.
18378 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18380 * loop-unroll.c (compare_and_jump_seq): Likewise.
18382 2014-04-23 Richard Biener <rguenther@suse.de>
18384 PR tree-optimization/60903
18385 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18386 commented code block.
18387 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18388 loop flags to newly created BBs and edges.
18390 2014-04-23 Nick Clifton <nickc@redhat.com>
18392 * config/msp430/msp430.c (msp430_handle_option): Move function
18394 (msp430_option_override): Simplify mcu and mcpu option handling.
18395 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
18396 support for -mhwmult command line option.
18397 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
18398 -mhwmult command line option.
18399 (msp430_hwmult_enabled): Delete.
18400 (msp43o_output_labelref): Add support for -mhwmult command line option.
18401 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
18402 (umulsidi3): Likewise.
18403 * config/msp430/msp430.opt (mmcu): Add Report attribute.
18404 (mcpu, mlarge, msmall): Likewise.
18405 (mhwmult): New option.
18406 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
18408 (msp430_is_f5_mcu): Remove prototype.
18409 (msp430_use_f5_series_hwmult): Add prototype.
18410 * config/msp430/msp430-opts.h: New file.
18411 * common/config/msp430: New directory.
18412 * common/config/msp430/msp430-common.c: New file.
18413 * config.gcc (msp430): Remove target_has_targetm_common.
18414 * doc/invoke.texi: Document -mhwmult command line option.
18416 2014-04-23 Nick Clifton <nickc@redhat.com>
18418 * config/i386/cygwin.h (ENDFILE_SPEC): Include
18419 default-manifest.o if it can be found in the search path.
18420 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18422 2014-04-23 Terry Guo <terry.guo@arm.com>
18424 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
18426 2014-04-23 Richard Biener <rguenther@suse.de>
18428 PR middle-end/60895
18429 * tree-inline.c (declare_return_variable): Use mark_addressable.
18431 2014-04-23 Richard Biener <rguenther@suse.de>
18433 PR middle-end/60891
18434 * loop-init.c (loop_optimizer_init): Make sure to apply
18435 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
18437 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18440 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
18442 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
18443 if flag_sanitize_undefined_trap_on_error.
18444 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
18445 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
18446 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
18447 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
18448 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
18449 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
18450 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
18451 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
18452 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
18453 * ubsan.c (ubsan_instrument_unreachable): Return
18454 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
18455 (ubsan_expand_null_ifn): Emit __builtin_trap ()
18456 if flag_sanitize_undefined_trap_on_error and
18457 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
18458 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18459 instrument_bool_enum_load): Emit __builtin_trap () if
18460 flag_sanitize_undefined_trap_on_error and
18461 __builtin_handle_*_abort () if !flag_sanitize_recover.
18462 * doc/invoke.texi (-fsanitize-recover,
18463 -fsanitize-undefined-trap-on-error): Document.
18465 2014-04-22 Christian Bruel <christian.bruel@st.com>
18467 * config/sh/sh.md (mov<mode>): Replace movQIHI.
18468 Force immediates to SImode.
18470 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
18472 * config/nios2/nios2.md (UNSPEC_ROUND): New.
18473 (lroundsfsi2): New.
18474 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
18475 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
18476 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
18477 (nios2_fpu_insn): Add entry for round.
18478 (N2FPU_NO_ERRNO_P): Define.
18479 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
18481 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
18483 2014-04-22 Richard Henderson <rth@redhat.com>
18485 * config/aarch64/aarch64 (addti3, subti3): New expanders.
18486 (add<GPI>3_compare0): Remove leading * from name.
18487 (add<GPI>3_carryin): Likewise.
18488 (sub<GPI>3_compare0): Likewise.
18489 (sub<GPI>3_carryin): Likewise.
18490 (<su_optab>mulditi3): New expander.
18491 (multi3): New expander.
18492 (madd<GPI>): Remove leading * from name.
18494 2014-04-22 Martin Jambor <mjambor@suse.cz>
18496 * cgraphclones.c (cgraph_function_versioning): Copy
18497 ipa_transforms_to_apply instead of asserting it is empty.
18499 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
18502 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
18503 on count_exp to get mode.
18505 2014-04-22 Andrew Pinski <apinski@cavium.com>
18507 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18508 Handle TLS for ILP32.
18509 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
18510 (tlsie_small_<mode>): this and handle PTR.
18511 (tlsie_small_sidi): New pattern.
18512 (tlsle_small): Change to an expand to handle ILP32.
18513 (tlsle_small_<mode>): New pattern.
18514 (tlsdesc_small): Rename to ...
18515 (tlsdesc_small_<mode>): this and handle PTR.
18517 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18519 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
18521 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18523 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18524 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
18525 (aarch64_types_signed_poly_qualifiers): Likewise.
18526 (aarch64_types_unsigned_signed_qualifiers): Likewise.
18527 (aarch64_types_poly_signed_qualifiers): Likewise.
18528 (TYPES_REINTERP_SS): Type macro added.
18529 (TYPES_REINTERP_SU): Likewise.
18530 (TYPES_REINTERP_SP): Likewise.
18531 (TYPES_REINTERP_US): Likewise.
18532 (TYPES_REINTERP_PS): Likewise.
18533 (aarch64_fold_builtin): New expression folding added.
18534 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
18535 Declarations removed.
18536 (REINTERP_SS): Declarations added.
18537 (REINTERP_US): Likewise.
18538 (REINTERP_PS): Likewise.
18539 (REINTERP_SU): Likewise.
18540 (REINTERP_SP): Likewise.
18541 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
18542 (vreinterpretq_p8_f64): Likewise.
18543 (vreinterpret_p16_f64): Likewise.
18544 (vreinterpretq_p16_f64): Likewise.
18545 (vreinterpret_f32_f64): Likewise.
18546 (vreinterpretq_f32_f64): Likewise.
18547 (vreinterpret_f64_f32): Likewise.
18548 (vreinterpret_f64_p8): Likewise.
18549 (vreinterpret_f64_p16): Likewise.
18550 (vreinterpret_f64_s8): Likewise.
18551 (vreinterpret_f64_s16): Likewise.
18552 (vreinterpret_f64_s32): Likewise.
18553 (vreinterpret_f64_s64): Likewise.
18554 (vreinterpret_f64_u8): Likewise.
18555 (vreinterpret_f64_u16): Likewise.
18556 (vreinterpret_f64_u32): Likewise.
18557 (vreinterpret_f64_u64): Likewise.
18558 (vreinterpretq_f64_f32): Likewise.
18559 (vreinterpretq_f64_p8): Likewise.
18560 (vreinterpretq_f64_p16): Likewise.
18561 (vreinterpretq_f64_s8): Likewise.
18562 (vreinterpretq_f64_s16): Likewise.
18563 (vreinterpretq_f64_s32): Likewise.
18564 (vreinterpretq_f64_s64): Likewise.
18565 (vreinterpretq_f64_u8): Likewise.
18566 (vreinterpretq_f64_u16): Likewise.
18567 (vreinterpretq_f64_u32): Likewise.
18568 (vreinterpretq_f64_u64): Likewise.
18569 (vreinterpret_s64_f64): Likewise.
18570 (vreinterpretq_s64_f64): Likewise.
18571 (vreinterpret_u64_f64): Likewise.
18572 (vreinterpretq_u64_f64): Likewise.
18573 (vreinterpret_s8_f64): Likewise.
18574 (vreinterpretq_s8_f64): Likewise.
18575 (vreinterpret_s16_f64): Likewise.
18576 (vreinterpretq_s16_f64): Likewise.
18577 (vreinterpret_s32_f64): Likewise.
18578 (vreinterpretq_s32_f64): Likewise.
18579 (vreinterpret_u8_f64): Likewise.
18580 (vreinterpretq_u8_f64): Likewise.
18581 (vreinterpret_u16_f64): Likewise.
18582 (vreinterpretq_u16_f64): Likewise.
18583 (vreinterpret_u32_f64): Likewise.
18584 (vreinterpretq_u32_f64): Likewise.
18586 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18588 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18589 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
18590 (vreinterpret_p8_s8): Likewise.
18591 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
18592 (vreinterpret_p8_s16): Likewise.
18593 (vreinterpret_p8_s32): Likewise.
18594 (vreinterpret_p8_s64): Likewise.
18595 (vreinterpret_p8_f32): Likewise.
18596 (vreinterpret_p8_u8): Likewise.
18597 (vreinterpret_p8_u16): Likewise.
18598 (vreinterpret_p8_u32): Likewise.
18599 (vreinterpret_p8_u64): Likewise.
18600 (vreinterpret_p8_p16): Likewise.
18601 (vreinterpretq_p8_s8): Likewise.
18602 (vreinterpretq_p8_s16): Likewise.
18603 (vreinterpretq_p8_s32): Likewise.
18604 (vreinterpretq_p8_s64): Likewise.
18605 (vreinterpretq_p8_f32): Likewise.
18606 (vreinterpretq_p8_u8): Likewise.
18607 (vreinterpretq_p8_u16): Likewise.
18608 (vreinterpretq_p8_u32): Likewise.
18609 (vreinterpretq_p8_u64): Likewise.
18610 (vreinterpretq_p8_p16): Likewise.
18611 (vreinterpret_p16_s8): Likewise.
18612 (vreinterpret_p16_s16): Likewise.
18613 (vreinterpret_p16_s32): Likewise.
18614 (vreinterpret_p16_s64): Likewise.
18615 (vreinterpret_p16_f32): Likewise.
18616 (vreinterpret_p16_u8): Likewise.
18617 (vreinterpret_p16_u16): Likewise.
18618 (vreinterpret_p16_u32): Likewise.
18619 (vreinterpret_p16_u64): Likewise.
18620 (vreinterpret_p16_p8): Likewise.
18621 (vreinterpretq_p16_s8): Likewise.
18622 (vreinterpretq_p16_s16): Likewise.
18623 (vreinterpretq_p16_s32): Likewise.
18624 (vreinterpretq_p16_s64): Likewise.
18625 (vreinterpretq_p16_f32): Likewise.
18626 (vreinterpretq_p16_u8): Likewise.
18627 (vreinterpretq_p16_u16): Likewise.
18628 (vreinterpretq_p16_u32): Likewise.
18629 (vreinterpretq_p16_u64): Likewise.
18630 (vreinterpretq_p16_p8): Likewise.
18631 (vreinterpret_f32_s8): Likewise.
18632 (vreinterpret_f32_s16): Likewise.
18633 (vreinterpret_f32_s32): Likewise.
18634 (vreinterpret_f32_s64): Likewise.
18635 (vreinterpret_f32_u8): Likewise.
18636 (vreinterpret_f32_u16): Likewise.
18637 (vreinterpret_f32_u32): Likewise.
18638 (vreinterpret_f32_u64): Likewise.
18639 (vreinterpret_f32_p8): Likewise.
18640 (vreinterpret_f32_p16): Likewise.
18641 (vreinterpretq_f32_s8): Likewise.
18642 (vreinterpretq_f32_s16): Likewise.
18643 (vreinterpretq_f32_s32): Likewise.
18644 (vreinterpretq_f32_s64): Likewise.
18645 (vreinterpretq_f32_u8): Likewise.
18646 (vreinterpretq_f32_u16): Likewise.
18647 (vreinterpretq_f32_u32): Likewise.
18648 (vreinterpretq_f32_u64): Likewise.
18649 (vreinterpretq_f32_p8): Likewise.
18650 (vreinterpretq_f32_p16): Likewise.
18651 (vreinterpret_s64_s8): Likewise.
18652 (vreinterpret_s64_s16): Likewise.
18653 (vreinterpret_s64_s32): Likewise.
18654 (vreinterpret_s64_f32): Likewise.
18655 (vreinterpret_s64_u8): Likewise.
18656 (vreinterpret_s64_u16): Likewise.
18657 (vreinterpret_s64_u32): Likewise.
18658 (vreinterpret_s64_u64): Likewise.
18659 (vreinterpret_s64_p8): Likewise.
18660 (vreinterpret_s64_p16): Likewise.
18661 (vreinterpretq_s64_s8): Likewise.
18662 (vreinterpretq_s64_s16): Likewise.
18663 (vreinterpretq_s64_s32): Likewise.
18664 (vreinterpretq_s64_f32): Likewise.
18665 (vreinterpretq_s64_u8): Likewise.
18666 (vreinterpretq_s64_u16): Likewise.
18667 (vreinterpretq_s64_u32): Likewise.
18668 (vreinterpretq_s64_u64): Likewise.
18669 (vreinterpretq_s64_p8): Likewise.
18670 (vreinterpretq_s64_p16): Likewise.
18671 (vreinterpret_u64_s8): Likewise.
18672 (vreinterpret_u64_s16): Likewise.
18673 (vreinterpret_u64_s32): Likewise.
18674 (vreinterpret_u64_s64): Likewise.
18675 (vreinterpret_u64_f32): Likewise.
18676 (vreinterpret_u64_u8): Likewise.
18677 (vreinterpret_u64_u16): Likewise.
18678 (vreinterpret_u64_u32): Likewise.
18679 (vreinterpret_u64_p8): Likewise.
18680 (vreinterpret_u64_p16): Likewise.
18681 (vreinterpretq_u64_s8): Likewise.
18682 (vreinterpretq_u64_s16): Likewise.
18683 (vreinterpretq_u64_s32): Likewise.
18684 (vreinterpretq_u64_s64): Likewise.
18685 (vreinterpretq_u64_f32): Likewise.
18686 (vreinterpretq_u64_u8): Likewise.
18687 (vreinterpretq_u64_u16): Likewise.
18688 (vreinterpretq_u64_u32): Likewise.
18689 (vreinterpretq_u64_p8): Likewise.
18690 (vreinterpretq_u64_p16): Likewise.
18691 (vreinterpret_s8_s16): Likewise.
18692 (vreinterpret_s8_s32): Likewise.
18693 (vreinterpret_s8_s64): Likewise.
18694 (vreinterpret_s8_f32): Likewise.
18695 (vreinterpret_s8_u8): Likewise.
18696 (vreinterpret_s8_u16): Likewise.
18697 (vreinterpret_s8_u32): Likewise.
18698 (vreinterpret_s8_u64): Likewise.
18699 (vreinterpret_s8_p8): Likewise.
18700 (vreinterpret_s8_p16): Likewise.
18701 (vreinterpretq_s8_s16): Likewise.
18702 (vreinterpretq_s8_s32): Likewise.
18703 (vreinterpretq_s8_s64): Likewise.
18704 (vreinterpretq_s8_f32): Likewise.
18705 (vreinterpretq_s8_u8): Likewise.
18706 (vreinterpretq_s8_u16): Likewise.
18707 (vreinterpretq_s8_u32): Likewise.
18708 (vreinterpretq_s8_u64): Likewise.
18709 (vreinterpretq_s8_p8): Likewise.
18710 (vreinterpretq_s8_p16): Likewise.
18711 (vreinterpret_s16_s8): Likewise.
18712 (vreinterpret_s16_s32): Likewise.
18713 (vreinterpret_s16_s64): Likewise.
18714 (vreinterpret_s16_f32): Likewise.
18715 (vreinterpret_s16_u8): Likewise.
18716 (vreinterpret_s16_u16): Likewise.
18717 (vreinterpret_s16_u32): Likewise.
18718 (vreinterpret_s16_u64): Likewise.
18719 (vreinterpret_s16_p8): Likewise.
18720 (vreinterpret_s16_p16): Likewise.
18721 (vreinterpretq_s16_s8): Likewise.
18722 (vreinterpretq_s16_s32): Likewise.
18723 (vreinterpretq_s16_s64): Likewise.
18724 (vreinterpretq_s16_f32): Likewise.
18725 (vreinterpretq_s16_u8): Likewise.
18726 (vreinterpretq_s16_u16): Likewise.
18727 (vreinterpretq_s16_u32): Likewise.
18728 (vreinterpretq_s16_u64): Likewise.
18729 (vreinterpretq_s16_p8): Likewise.
18730 (vreinterpretq_s16_p16): Likewise.
18731 (vreinterpret_s32_s8): Likewise.
18732 (vreinterpret_s32_s16): Likewise.
18733 (vreinterpret_s32_s64): Likewise.
18734 (vreinterpret_s32_f32): Likewise.
18735 (vreinterpret_s32_u8): Likewise.
18736 (vreinterpret_s32_u16): Likewise.
18737 (vreinterpret_s32_u32): Likewise.
18738 (vreinterpret_s32_u64): Likewise.
18739 (vreinterpret_s32_p8): Likewise.
18740 (vreinterpret_s32_p16): Likewise.
18741 (vreinterpretq_s32_s8): Likewise.
18742 (vreinterpretq_s32_s16): Likewise.
18743 (vreinterpretq_s32_s64): Likewise.
18744 (vreinterpretq_s32_f32): Likewise.
18745 (vreinterpretq_s32_u8): Likewise.
18746 (vreinterpretq_s32_u16): Likewise.
18747 (vreinterpretq_s32_u32): Likewise.
18748 (vreinterpretq_s32_u64): Likewise.
18749 (vreinterpretq_s32_p8): Likewise.
18750 (vreinterpretq_s32_p16): Likewise.
18751 (vreinterpret_u8_s8): Likewise.
18752 (vreinterpret_u8_s16): Likewise.
18753 (vreinterpret_u8_s32): Likewise.
18754 (vreinterpret_u8_s64): Likewise.
18755 (vreinterpret_u8_f32): Likewise.
18756 (vreinterpret_u8_u16): Likewise.
18757 (vreinterpret_u8_u32): Likewise.
18758 (vreinterpret_u8_u64): Likewise.
18759 (vreinterpret_u8_p8): Likewise.
18760 (vreinterpret_u8_p16): Likewise.
18761 (vreinterpretq_u8_s8): Likewise.
18762 (vreinterpretq_u8_s16): Likewise.
18763 (vreinterpretq_u8_s32): Likewise.
18764 (vreinterpretq_u8_s64): Likewise.
18765 (vreinterpretq_u8_f32): Likewise.
18766 (vreinterpretq_u8_u16): Likewise.
18767 (vreinterpretq_u8_u32): Likewise.
18768 (vreinterpretq_u8_u64): Likewise.
18769 (vreinterpretq_u8_p8): Likewise.
18770 (vreinterpretq_u8_p16): Likewise.
18771 (vreinterpret_u16_s8): Likewise.
18772 (vreinterpret_u16_s16): Likewise.
18773 (vreinterpret_u16_s32): Likewise.
18774 (vreinterpret_u16_s64): Likewise.
18775 (vreinterpret_u16_f32): Likewise.
18776 (vreinterpret_u16_u8): Likewise.
18777 (vreinterpret_u16_u32): Likewise.
18778 (vreinterpret_u16_u64): Likewise.
18779 (vreinterpret_u16_p8): Likewise.
18780 (vreinterpret_u16_p16): Likewise.
18781 (vreinterpretq_u16_s8): Likewise.
18782 (vreinterpretq_u16_s16): Likewise.
18783 (vreinterpretq_u16_s32): Likewise.
18784 (vreinterpretq_u16_s64): Likewise.
18785 (vreinterpretq_u16_f32): Likewise.
18786 (vreinterpretq_u16_u8): Likewise.
18787 (vreinterpretq_u16_u32): Likewise.
18788 (vreinterpretq_u16_u64): Likewise.
18789 (vreinterpretq_u16_p8): Likewise.
18790 (vreinterpretq_u16_p16): Likewise.
18791 (vreinterpret_u32_s8): Likewise.
18792 (vreinterpret_u32_s16): Likewise.
18793 (vreinterpret_u32_s32): Likewise.
18794 (vreinterpret_u32_s64): Likewise.
18795 (vreinterpret_u32_f32): Likewise.
18796 (vreinterpret_u32_u8): Likewise.
18797 (vreinterpret_u32_u16): Likewise.
18798 (vreinterpret_u32_u64): Likewise.
18799 (vreinterpret_u32_p8): Likewise.
18800 (vreinterpret_u32_p16): Likewise.
18801 (vreinterpretq_u32_s8): Likewise.
18802 (vreinterpretq_u32_s16): Likewise.
18803 (vreinterpretq_u32_s32): Likewise.
18804 (vreinterpretq_u32_s64): Likewise.
18805 (vreinterpretq_u32_f32): Likewise.
18806 (vreinterpretq_u32_u8): Likewise.
18807 (vreinterpretq_u32_u16): Likewise.
18808 (vreinterpretq_u32_u64): Likewise.
18809 (vreinterpretq_u32_p8): Likewise.
18810 (vreinterpretq_u32_p16): Likewise.
18812 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18814 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
18816 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
18818 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
18819 (vqnegd_s64): Likewise.
18820 (vqabs_s64): Likewise.
18821 (vqabsd_s64): Likewise.
18823 2014-04-22 Richard Henderson <rth@redhat.com>
18825 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
18826 computation to the top of the loop.
18828 2014-04-22 Renlin <renlin.li@arm.com>
18829 Jiong Wang <jiong.wang@arm.com>
18831 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
18832 * config/aarch64/aarch64.c (aarch64_layout_frame)
18833 (aarch64_initial_elimination_offset): Likewise.
18835 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
18837 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
18840 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
18842 * machmode.h (bitwise_mode_for_mode): Declare.
18843 * stor-layout.h (bitwise_type_for_mode): Likewise.
18844 * stor-layout.c (bitwise_mode_for_mode): New function.
18845 (bitwise_type_for_mode): Likewise.
18846 * builtins.c (fold_builtin_memory_op): Use it instead of
18847 int_mode_for_mode and build_nonstandard_integer_type.
18849 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18851 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
18852 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
18853 (*-*-solaris2*): Simplify.
18854 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
18855 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
18856 *-*-solaris2.9* handling.
18858 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
18860 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
18861 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
18862 handling, simplify.
18863 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
18864 * configure: Regenerate.
18866 * config/i386/sol2-9.h: Remove.
18868 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
18869 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
18870 Remove Solaris 9 references.
18872 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
18874 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
18875 (floatuns<GPI:mode><GPF:mode>2): Remove.
18876 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
18877 and floatuns conversions.
18878 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
18879 and floatuns conversions.
18880 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
18881 (w1,w2): New mode attributes for inequal width conversions.
18883 2014-04-22 Renlin Li <Renlin.Li@arm.com>
18885 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
18886 the output asm format.
18888 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
18890 * config/aarch64/aarch64-simd.md
18891 (aarch64_cm<optab>di): Always split.
18892 (*aarch64_cm<optab>di): New.
18893 (aarch64_cmtstdi): Always split.
18894 (*aarch64_cmtstdi): New.
18896 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18898 PR tree-optimization/60823
18899 * omp-low.c (ipa_simd_modify_function_body): Go through
18900 all SSA_NAMEs and for those refering to vector arguments
18901 which are going to be replaced adjust SSA_NAME_VAR and,
18902 if it is a default definition, change it into a non-default
18903 definition assigned at the beginning of function from new_decl.
18904 (ipa_simd_modify_stmt_ops): Rewritten.
18905 * tree-dfa.c (set_ssa_default_def): When removing default def,
18906 check for NULL loc instead of NULL *loc.
18908 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18910 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
18911 restrictions on core registers for DImode values in Thumb2.
18913 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18915 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
18916 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
18918 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18920 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
18921 (*iordi_notzesidi_di): Likewise.
18922 (*iordi_notsesidi_di): Likewise.
18924 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18926 * config/arm/arm-protos.h (tune_params): New struct members.
18927 * config/arm/arm.c: Initialise tune_params per processor.
18928 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
18929 for speed, based on new tune_params.
18931 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18933 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
18934 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
18935 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
18936 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
18937 * config/aarch64/arm_neon.h (vrnd_f64): Added.
18938 (vrnda_f64): Likewise.
18939 (vrndi_f64): Likewise.
18940 (vrndm_f64): Likewise.
18941 (vrndn_f64): Likewise.
18942 (vrndp_f64): Likewise.
18943 (vrndx_f64): Likewise.
18945 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18947 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
18948 GET_MODE_SIZE argument is enum machine_mode.
18950 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18953 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
18954 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
18956 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
18958 PR middle-end/60281
18959 * asan.c (asan_emit_stack_protection): Force the base to align to
18960 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
18961 appropriate bits if STRICT_ALIGNMENT.
18962 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
18964 (expand_used_vars): Leave a space in the stack frame for alignment
18965 if STRICT_ALIGNMENT.
18967 2014-04-21 David Malcolm <dmalcolm@redhat.com>
18969 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
18971 (gimple_store_p): Likewise.
18972 (gimple_assign_load_p): Likewise.
18973 (gimple_assign_cast_p): Likewise.
18974 (gimple_clobber_p): Likewise.
18976 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
18977 rather than a gimple.
18978 (gimple_assign_cast_p): Likewise.
18980 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18983 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
18984 If mode is DDmode and TARGET_E500_DOUBLE allow move.
18986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
18987 more debug information for E500 if -mdebug=reg.
18989 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
18992 * config/i386/i386.c (ix86_expand_builtin)
18993 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
18994 register for target RTX.
18995 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
18997 2014-04-18 Cong Hou <congh@google.com>
18999 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19000 the widen-mult pattern by handling two operands with different sizes,
19001 and operands whose size is smaller than half of the result type.
19003 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19005 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19006 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19007 (do_estimate_edge_time): Compute it.
19008 * ipa-inline.c (want_inline_small_function_p): Bypass
19009 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19011 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19013 * ipa-inline.c (spec_rem): New static variable.
19014 (dump_overall_stats): New function.
19015 (dump_inline_stats): New function.
19017 2014-04-18 Richard Henderson <rth@redhat.com>
19019 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19020 to GET_MODE_SIZE, not a reg_class_t.
19022 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19024 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19025 (vsx_xxmrglw_<mode>): Likewise.
19027 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19030 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19031 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19032 (rs6000_init_hard_regno_mode_ok): Likewise.
19034 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19036 * ipa-inline.c (inline_small_functions): Account only non-cold
19038 * doc/invoke.texi (inline-unit-growth): Update documentation.
19040 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19042 * config/rs6000/rs6000.md (addti3, subti3): New.
19044 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19047 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19048 comment. Check optimize_insn_for_size_p instead of
19049 optimize_insn_for_speed_p.
19051 2014-04-17 Martin Jambor <mjambor@suse.cz>
19053 * gimple-iterator.c (gsi_start_edge): New function.
19054 * gimple-iterator.h (gsi_start_edge): Declare.
19055 * tree-sra.c (single_non_eh_succ): New function.
19056 (disqualify_ops_if_throwing_stmt): Renamed to
19057 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19058 having one non-EH successor BB.
19059 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19060 generate loads into replacements.
19061 (sra_modify_assign): Likewise and and also use the simple path for
19063 (sra_modify_function_body): Commit statements on edges.
19065 2014-04-17 Richard Biener <rguenther@suse.de>
19067 PR middle-end/60849
19068 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19069 comparison results and add clarifying comment.
19071 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19073 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19074 (blank_mode): Initialize it.
19075 (emit_mode_size_inline, emit_mode_nunits_inline,
19076 emit_mode_inner_inline): New functions.
19077 (emit_insn_modes_h): Call them and surround their output with
19078 #if GCC_VERSION >= 4001 ... #endif.
19079 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19080 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19081 mode_* arrays if the argument is __builtin_constant_p.
19082 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19083 is enum machine_mode.
19085 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19087 * passes.c (opt_pass::execute): Adjust.
19088 (pass_manager::execute_pass_mode_switching): Likewise.
19089 (early_local_passes::execute): Likewise.
19090 (execute_one_pass): Pass cfun to the pass's execute method.
19091 * tree-pass.h (opt_pass::execute): Add function * argument.
19092 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19093 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19094 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19095 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19096 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19097 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19098 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19099 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19100 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19101 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19102 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19103 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19104 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19105 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19106 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19107 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19108 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19109 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19110 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19111 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19112 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19113 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19114 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19115 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19116 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19117 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19118 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19119 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19120 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19123 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19125 * passes.c (opt_pass::gate): Take function * argument.
19126 (gate_all_early_local_passes): Merge into
19127 (early_local_passes::gate): this.
19128 (gate_all_early_optimizations): Merge into
19129 (all_early_optimizations::gate): this.
19130 (gate_all_optimizations): Mege into
19131 (all_optimizations::gate): this.
19132 (gate_all_optimizations_g): Merge into
19133 (all_optimizations_g::gate): this.
19134 (gate_rest_of_compilation): Mege into
19135 (rest_of_compilation::gate): this.
19136 (gate_postreload): Merge into
19137 (postreload::gate): this.
19138 (dump_one_pass): Pass cfun to the pass's gate method.
19139 (execute_ipa_summary_passes): Likewise.
19140 (execute_one_pass): Likewise.
19141 (ipa_write_summaries_2): Likewise.
19142 (ipa_write_optimization_summaries_1): Likewise.
19143 (ipa_read_summaries_1): Likewise.
19144 (ipa_read_optimization_summaries_1): Likewise.
19145 (execute_ipa_stmt_fixups): Likewise.
19146 * tree-pass.h (opt_pass::gate): Add function * argument.
19147 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19148 combine-stack-adj.c, combine.c, compare-elim.c,
19149 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19150 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19151 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19152 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19153 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19154 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19155 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19156 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19157 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19158 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19159 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19160 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19161 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19162 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19163 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19164 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19165 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19166 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19167 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19168 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19169 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19170 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19171 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19172 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19173 var-tracking.c, vtable-verify.c, web.c: Adjust.
19175 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19177 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19178 * configure: Regenerate.
19180 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19182 * passes.c (dump_one_pass): don't check pass->has_gate.
19183 (execute_ipa_summary_passes): Likewise.
19184 (execute_one_pass): Likewise.
19185 (ipa_write_summaries_2): Likewise.
19186 (ipa_write_optimization_summaries_1): Likewise.
19187 (ipa_read_optimization_summaries_1): Likewise.
19188 (execute_ipa_stmt_fixups): Likewise.
19189 * tree-pass.h (pass_data::has_gate): Remove.
19190 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19191 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19192 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19193 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19194 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19195 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19196 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19197 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19198 gimple-low.c, gimple-ssa-isolate-paths.c,
19199 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19200 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19201 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19202 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19203 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19204 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19205 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19206 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19207 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19208 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19209 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19210 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19211 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19212 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19213 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19214 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19215 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19216 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19217 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19218 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19219 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19220 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19223 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19225 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19227 * passes.c (pass_manager::register_dump_files_1): Merge into
19228 (pass_manager::register_dump_files): this, and remove its handling of
19229 properties since the pass always has the properties anyway.
19230 (pass_manager::pass_manager): Adjust.
19232 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19234 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19235 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19236 dealing with properties.
19237 (pass_manager::register_dump_files): Adjust.
19239 2014-03-20 Mark Wielaard <mjw@redhat.com>
19241 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19242 then represent the bound as normal constant value.
19244 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19247 Forward port from 4.8 branch
19248 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19250 * config/i386/bmiintrin.h (_blsi_u32): New.
19251 (_blsi_u64): Ditto.
19252 (_blsr_u32): Ditto.
19253 (_blsr_u64): Ditto.
19254 (_blsmsk_u32): Ditto.
19255 (_blsmsk_u64): Ditto.
19256 (_tzcnt_u32): Ditto.
19257 (_tzcnt_u64): Ditto.
19259 2014-04-17 Kito Cheng <kito@0xlab.org>
19261 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19263 2014-04-17 Richard Biener <rguenther@suse.de>
19265 PR middle-end/60849
19266 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19267 boolean results for comparisons.
19269 2014-04-17 Richard Biener <rguenther@suse.de>
19271 PR tree-optimization/60836
19272 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19273 initial PHI args to be gimple values.
19275 2014-04-17 Richard Biener <rguenther@suse.de>
19277 PR tree-optimization/60841
19278 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19279 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19280 of stmts to SLP build.
19281 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19282 (vect_analyze_slp): Likewise.
19283 (vect_analyze_slp_instance): Likewise.
19284 (vect_build_slp_tree): Limit overall SLP tree growth.
19285 * tree-vectorizer.h (vect_analyze_data_refs,
19286 vect_analyze_slp): Adjust prototypes.
19288 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19290 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19293 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19295 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19296 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19297 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19298 for TARGET_SLOW_PSHUFB
19300 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19302 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19303 * config/i386/i386.c (intel_cost): Ditto.
19305 2014-04-17 Joey Ye <joey.ye@arm.com>
19307 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19309 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19311 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19312 with -fuse-profile.
19314 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19316 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19317 (type_all_derivations_known_p): New predicate.
19318 (type_all_ctors_visible_p): New predicate.
19319 (type_possibly_instantiated_p): New predicate.
19320 (get_odr_type): Compute all_derivations_known.
19321 (dump_odr_type): Dump the flag.
19322 (maybe_record_type): Cleanup.
19323 (record_target_from_binfo): Add bases_to_consider array;
19324 record bases for types w/o instances and skip CXX destructor.
19325 (possible_polymorphic_call_targets_1): Add bases_to_consider
19326 and consider_construction parameters; check if type may have instance.
19327 (get_polymorphic_call_info): Set maybe_in_construction to true
19328 when we know nothing.
19329 (record_targets_from_bases): Skip CXX destructors; they are
19330 never called for types in construction.
19331 (possible_polymorphic_call_targets): Do not record target when
19332 type may not have instance.
19334 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19337 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19338 external aliases alive, too.
19340 2014-04-16 Andrew Pinski <apinski@cavium.com>
19342 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19345 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19347 * final.c (compute_alignments): Do not apply loop alignment to a block
19348 falling through to the exit.
19350 2014-04-16 Catherine Moore <clm@codesourcery.com>
19352 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19353 Adjust constraints for microMIPS store patterns.
19355 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19357 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19359 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19361 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19362 (append_use): Run at -O0.
19363 (append_vdef): Likewise.
19364 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19365 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19367 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19369 PR tree-optimization/60844
19370 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19371 (propagate_op_to_single_use, remove_visited_stmt_chain,
19372 linearize_expr, repropagate_negates, reassociate_bb): Use it
19373 instead of gsi_remove.
19375 2014-04-16 Martin Jambor <mjambor@suse.cz>
19377 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19378 ipa_transforms_to_apply.
19379 (cgraph_function_versioning): Assert that old_node has empty
19380 ipa_transforms_to_apply.
19381 * trans-mem.c (ipa_tm_create_version): Likewise.
19382 * tree-inline.c (tree_function_versioning): Do not duplicate
19383 ipa_transforms_to_apply.
19385 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19388 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19390 Pass necessary as flags on 64-bit Solaris/x86.
19391 Use lowercase relocs for x86_64-*-*.
19392 * configure: Regenerate.
19394 2014-04-15 Jan Hubicka <jh@suse.cz>
19396 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19397 (maybe_record_node, likely_target_p): Use it.
19399 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19402 Revert following patch
19404 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19407 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19408 software floating point or no floating point registers, do not
19409 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19410 in GPRs that occurs after we tested for GPRs that would never be
19413 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19414 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19415 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19416 specifically allow DDmode, since that does not use the SPE SIMD
19419 2014-03-21 Mark Wielaard <mjw@redhat.com>
19421 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
19422 as unsigned or int depending on type and value used.
19424 2014-04-15 Richard Biener <rguenther@suse.de>
19426 PR rtl-optimization/56965
19427 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
19428 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
19430 * alias.c (true_dependence_1): Do not call
19431 nonoverlapping_component_refs_p.
19432 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
19433 nonoverlapping_component_refs_p.
19434 (indirect_refs_may_alias_p): Likewise.
19436 2014-04-15 Teresa Johnson <tejohnson@google.com>
19438 * cfg.c (dump_bb_info): Fix flags check.
19439 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
19441 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19443 PR rtl-optimization/60663
19444 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
19447 2014-04-15 Richard Biener <rguenther@suse.de>
19449 * lto-streamer.h (LTO_major_version): Bump to 4.
19451 2014-04-15 Richard Biener <rguenther@suse.de>
19453 * common.opt (lto_partition_model): New enum.
19454 (flto-partition=): Merge separate options with a single with argument,
19455 add -flto-partition=one support.
19456 * flag-types.h (enum lto_partition_model): Declare.
19457 * opts.c (finish_options): Remove duplicate -flto-partition=
19459 * lto-wrapper.c (run_gcc): Adjust.
19461 2014-04-15 Richard Biener <rguenther@suse.de>
19463 * alias.c (ncr_compar): New function.
19464 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
19466 2014-04-15 Richard Biener <rguenther@suse.de>
19468 * alias.c (record_component_aliases): Do not walk BINFOs.
19470 2014-04-15 Richard Biener <rguenther@suse.de>
19472 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19473 Add struct function argument and adjust.
19474 (find_func_aliases_for_call): Likewise.
19475 (find_func_aliases): Likewise.
19476 (find_func_clobbers): Likewise.
19477 (intra_create_variable_infos): Likewise.
19478 (compute_points_to_sets): Likewise.
19479 (ipa_pta_execute): Adjust. Do not push/pop cfun.
19481 2014-04-15 Richard Biener <rguenther@suse.de>
19483 * tree.c (iterative_hash_expr): Use enum tree_code_class
19484 to store TREE_CODE_CLASS.
19485 (tree_block): Likewise.
19486 (tree_set_block): Likewise.
19487 * tree.h (fold_build_pointer_plus_loc): Use
19488 convert_to_ptrofftype_loc.
19490 2014-04-15 Jakub Jelinek <jakub@redhat.com>
19493 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
19496 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
19498 * cfgloop.h (struct loop): Move force_vectorize down.
19499 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
19500 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
19501 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
19502 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
19503 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
19504 * tree-core.h (enum annot_expr_kind): Add new kind values.
19505 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
19506 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
19508 * tree.def (ANNOTATE_EXPR): Tweak comment.
19510 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19512 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
19515 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
19517 * tree.h (TYPE_IDENTIFIER): Declare.
19518 * tree.c (subrange_type_for_debug_p): Use it.
19519 * godump.c (go_format_type): Likewise.
19520 * dwarf2out.c (is_cxx_auto, modified_type_die,
19521 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
19522 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
19524 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19527 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
19529 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
19531 * config/i386/i386.c (examine_argument): Return bool. Return true if
19532 parameter should be passed in memory.
19533 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
19534 (construct_container): Update calls to examine_argument.
19535 (function_arg_advance_64): Ditto.
19536 (return_in_memory_32): Merge with ix86_return_in_memory.
19537 (return_in_memory_64): Ditto.
19538 (return_in_memory_ms_64): Ditto.
19540 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19542 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
19543 * coverage.c (coverage_compute_profile_id): Handle externally visible
19546 2014-04-14 Martin Jambor <mjambor@suse.cz>
19548 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
19549 DECL_DISREGARD_INLINE_LIMITS functions.
19551 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19554 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
19556 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19559 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
19560 optimize_insn_for_speed_p instead of
19561 optimize_function_for_speed_p.
19563 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
19565 * doc/invoke.texi (free): Document AArch64.
19567 2014-04-14 Richard Biener <rguenther@suse.de>
19569 PR tree-optimization/60042
19570 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
19571 (insert_into_preds_of_block): Do not prevent PHI insertion
19572 for REFERENCE exprs here ...
19573 (eliminate_dom_walker::before_dom_children): ... but prevent
19574 their use here under similar conditions when applied to the
19575 IL after PRE optimizations.
19577 2014-04-14 Richard Biener <rguenther@suse.de>
19579 * passes.def: Move early points-to after early SRA.
19581 2014-04-14 Richard Biener <rguenther@suse.de>
19583 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
19584 check for which sign-changes we allow when forwarding
19585 a converted value into a switch.
19587 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19589 * stor-layout.c (place_field): Finalize non-constant offset for the
19592 2014-04-14 Richard Biener <rguenther@suse.de>
19594 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
19596 (expand_switch_using_bit_tests_p): Likewise.
19597 (process_switch): Compute and pass on speed_p based on the
19599 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
19600 optimize_bb_for_speed_p.
19602 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19604 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
19605 * function.h (struct function): Rename has_force_vect_loops into
19606 has_force_vectorize_loops.
19607 * lto-streamer-in.c (input_cfg): Adjust for renaming.
19608 (input_struct_function_base): Likewise.
19609 * lto-streamer-out.c (output_cfg): Likewise.
19610 (output_struct_function_base): Likewise.
19611 * omp-low.c (expand_omp_simd): Likewise.
19612 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19613 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
19614 (version_loop_for_if_conversion): Likewise.
19615 (tree_if_conversion): Likewise.
19616 (main_tree_if_conversion): Likewise.
19617 (gate_tree_if_conversion): Likewise.
19618 * tree-inline.c (copy_loops): Likewise.
19619 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
19620 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
19621 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19622 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
19623 * tree-vectorizer.c (vectorize_loops): Likewise.
19624 * tree-vectorizer.h (unlimited_cost_model): Likewise.
19626 2014-04-14 Richard Biener <rguenther@suse.de>
19629 * lto-streamer-out.c (wrap_refs): New function.
19630 (lto_output): Wrap symbol references in global initializes in
19631 type-preserving MEM_REFs.
19633 2014-04-14 Christian Bruel <christian.bruel@st.com>
19635 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
19637 2014-04-14 Christian Bruel <christian.bruel@st.com>
19639 * config/sh/sh.md (setmemqi): New expand pattern.
19640 * config/sh/sh.h (CLEAR_RATIO): Define.
19641 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
19642 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
19644 2014-04-14 Richard Biener <rguenther@suse.de>
19646 PR middle-end/55022
19647 * fold-const.c (negate_expr_p): Don't negate directional rounding
19649 (fold_negate_expr): Likewise.
19651 2014-04-14 Richard Biener <rguenther@suse.de>
19653 PR tree-optimization/59817
19654 PR tree-optimization/60453
19655 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
19656 recursion to catch all CHRECs in the scalar evolution and restrict
19657 the predicate for the remains appropriately.
19659 2014-04-12 Catherine Moore <clm@codesourcery.com>
19661 * config/mips/constraints.md: Add new register constraint "kb".
19662 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
19663 (*movhi_internal): Likewise.
19664 (*movqi_internal): Likewise.
19665 * config/mips/mips.h (M16_STORE_REGS): New register class.
19666 (REG_CLASS_NAMES): Add M16_STORE_REGS.
19667 (REG_CLASS_CONTENTS): Likewise.
19668 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
19670 2014-04-11 Tobias Burnus <burnus@net-b.de>
19673 * doc/invoke.texi (-Wformat-signedness): Document it.
19674 (Wformat=2): Mention that this enables -Wformat-signedness.
19676 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19678 * common/config/epiphany/epiphany-common.c
19679 (epiphany_option_optimization_table): Enable section anchors by
19680 default at -O1 or higher.
19681 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
19682 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
19683 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
19684 carries no extra cost.
19685 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
19686 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
19687 * config/epiphany/predicates.md (memclob_operand): New predicate.
19688 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
19689 Use memclob_operand predicate and X constraint for operand 3.
19691 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19693 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
19694 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
19697 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19699 PR rtl-optimization/60651
19700 * mode-switching.c (optimize_mode_switching): Make sure to emit
19701 sets of a lower numbered entity before sets of a higher numbered
19702 entity to a mode of the same or lower priority.
19703 When creating a seginfo for a basic block that starts with a code
19704 label, move the insertion point past the code label.
19705 (new_seginfo): Document and enforce requirement that
19706 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
19707 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
19708 * doc/tm.texi: Regenerate.
19710 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
19713 * config/arc/arc.c (arc_save_restore): Fix assert typo.
19715 2013-04-11 Jakub Jelinek <jakub@redhat.com>
19717 * BASE-VER: Set to 4.10.0.
19719 2014-04-11 Tobias Burnus <burnus@net-b.de>
19722 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
19723 * doc/gcc.texi (Service): Update description in the @menu
19724 * doc/invoke.texi (Option Summary): Remove misplaced and
19727 2014-04-11 Steve Ellcey <sellcey@mips.com>
19728 Jakub Jelinek <jakub@redhat.com>
19730 PR middle-end/60556
19731 * expr.c (convert_move): Use emit_store_flag_force instead of
19732 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
19735 2014-04-11 Richard Biener <rguenther@suse.de>
19737 PR middle-end/60797
19738 * varasm.c (assemble_alias): Avoid endless error reporting
19739 recursion by setting TREE_ASM_WRITTEN.
19741 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19743 * config/s390/s390.md: Add a splitter for NOT rtx.
19745 2014-04-11 Jakub Jelinek <jakub@redhat.com>
19747 PR rtl-optimization/60663
19748 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
19750 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
19751 Jakub Jelinek <jakub@redhat.com>
19754 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
19755 flag from decl_node to node.
19757 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19760 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
19761 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
19762 ameliorating the cases where it can be.
19764 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
19767 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19769 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19770 (loadsync_<mode>): Change mode.
19771 (load_quadpti, store_quadpti): New.
19772 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19773 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19774 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
19776 2014-04-09 Cong Hou <congh@google.com>
19779 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
19782 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19784 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
19785 instead of vnor to exploit possible fusion opportunity in the
19787 (altivec_expand_vec_perm_const_le): Likewise.
19789 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19791 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19792 (loadsync_<mode>): Change mode.
19793 (load_quadpti, store_quadpti): New.
19794 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19795 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19797 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
19800 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
19801 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
19802 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
19804 2014-04-08 Richard Biener <rguenther@suse.de>
19806 PR middle-end/60706
19807 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
19808 a 64bit widest int print double-int similar to on HWI64 hosts.
19810 2014-04-08 Richard Biener <rguenther@suse.de>
19812 PR tree-optimization/60785
19813 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
19814 default defs properly.
19816 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
19818 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
19819 (Weffc++): Likewise.
19821 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
19823 * ipa-devirt.c (maybe_record_node): When node is not recorded,
19824 set completep to false rather than true.
19826 2014-04-07 Douglas B Rupp <rupp@adacore.com>
19829 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
19830 ARM_TARGET2_DWARF_FORMAT.
19832 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
19835 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
19836 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
19839 2014-04-07 Richard Biener <rguenther@suse.de>
19841 PR tree-optimization/60766
19842 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
19843 (may_eliminate_iv): Convert cand_value_at result to desired type.
19845 2014-04-07 Jason Merrill <jason@redhat.com>
19848 * common.opt (-fno-gnu-unique): Add.
19849 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
19851 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19853 * haifa-sched.c: Fix outdated function reference and minor
19854 grammar errors in introductory comment.
19856 2014-04-07 Richard Biener <rguenther@suse.de>
19858 PR middle-end/60750
19859 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
19860 for noreturn calls.
19861 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
19863 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
19866 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
19867 size accounting for thunks.
19868 (pa_asm_output_mi_thunk): Use final_start_function() and
19869 final_end_function() to output function start and end directives.
19871 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19873 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
19874 device specific ISA/ feature information. Remove short_sp and
19875 errata_skip ds. Add avr_device_specific_features enum to have device
19877 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
19878 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
19879 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
19880 updated device specific info.
19881 * config/avr/avr-mcus.def: Merge device specific details to
19882 dev_attribute field.
19883 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
19885 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
19886 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
19887 assembler if RMW isa supported by current device.
19888 * config/avr/genmultilib.awk: Update as device info structure changed.
19889 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
19891 2014-04-04 Cong Hou <congh@google.com>
19893 PR tree-optimization/60656
19894 * tree-vect-stmts.c (supportable_widening_operation):
19895 Fix a bug that elements in a vector with vect_used_by_reduction
19896 property are incorrectly reordered when the operation on it is not
19897 consistant with the one in reduction operation.
19899 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
19901 PR rtl-optimization/60155
19902 * gcse.c (record_set_data): New function.
19903 (single_set_gcse): New function.
19904 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
19905 (hoist_code): Likewise.
19906 (get_pressure_class_and_nregs): Likewise.
19908 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
19910 * explow.c (probe_stack_range): Emit a final optimization blockage.
19912 2014-04-04 Anthony Green <green@moxielogic.com>
19914 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
19917 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
19920 * lto-cgraph.c (input_overwrite_node): Check that partitioning
19921 flags are set only during streaming.
19922 * ipa.c (process_references, walk_polymorphic_call_targets,
19923 symtab_remove_unreachable_nodes): Drop bodies of always inline
19924 after early inlining.
19925 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
19927 2014-04-04 Jakub Jelinek <jakub@redhat.com>
19928 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19931 * dwarf2out.c (const_ok_for_output_1): Reject expressions
19934 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19937 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
19939 (cortex_a53_fdivd): Likewise.
19941 2014-04-04 Martin Jambor <mjambor@suse.cz>
19944 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
19945 Adjust all callers.
19946 * cgraph.c (clone_of_p): Also return true if thunks match.
19947 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
19948 cgraph_function_or_thunk_node and an obsolete comment.
19949 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
19951 (build_function_decl_skip_args): Likewise.
19952 (set_new_clone_decl_and_node_flags): New function.
19953 (duplicate_thunk_for_node): Likewise.
19954 (redirect_edge_duplicating_thunks): Likewise.
19955 (cgraph_clone_node): New parameter args_to_skip, pass it to
19956 redirect_edge_duplicating_thunks which is called instead of
19957 cgraph_redirect_edge_callee.
19958 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
19959 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
19961 2014-04-04 Jeff Law <law@redhat.com>
19964 * config/arm/predicates.md (const_int_I_operand): New predicate.
19965 (const_int_M_operand): Similarly.
19966 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
19968 (insv_t2, extv_reg, extzv_t2): Likewise.
19969 (load_multiple_with_writeback): Similarly for const_int_I_operand.
19970 (pop_multiple_with_writeback_and_return): Likewise.
19971 (vfp_pop_multiple_with_writeback): Likewise
19973 2014-04-04 Richard Biener <rguenther@suse.de>
19976 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
19977 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
19979 * gimplify.h (gimple_add_tmp_var_fn): Declare.
19980 * gimplify.c (gimple_add_tmp_var_fn): New function.
19981 * gimple-expr.h (create_tmp_reg_fn): Declare.
19982 * gimple-expr.c (create_tmp_reg_fn): New function.
19983 * gimple-low.c (record_vars_into): Don't change cfun.
19984 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
19985 code generation without cfun.
19987 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
19990 * Makefile.in (install-driver): Fix shell scripting.
19992 2014-04-03 Cong Hou <congh@google.com>
19994 PR tree-optimization/60505
19995 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
19996 threshold of number of iterations below which no vectorization
19998 * tree-vect-loop.c (new_loop_vec_info):
19999 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20000 * tree-vect-loop.c (vect_analyze_loop_operations):
20001 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20002 * tree-vect-loop.c (vect_transform_loop):
20003 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20004 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20005 of iterations of the loop and see if we should build the epilogue.
20007 2014-04-03 Richard Biener <rguenther@suse.de>
20009 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20010 (streamer_tree_cache_create): Adjust.
20011 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20012 to allow optional nodes array.
20013 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20014 (streamer_tree_cache_append): Likewise.
20015 (streamer_tree_cache_create): Create nodes array optionally
20016 as specified by parameter.
20017 * lto-streamer-out.c (create_output_block): Avoid maintaining
20018 the node array in the writer cache.
20019 (DFS_write_tree): Remove assertion.
20020 (produce_asm_for_decls): Free the out decl state hash table early.
20021 * lto-streamer-in.c (lto_data_in_create): Adjust for
20022 streamer_tree_cache_create prototype change.
20024 2014-04-03 Richard Biener <rguenther@suse.de>
20026 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20027 set TREE_CHAIN to NULL_TREE.
20029 2014-04-03 Richard Biener <rguenther@suse.de>
20031 PR tree-optimization/60740
20032 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20033 over all GIMPLE_COND operands.
20035 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20037 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20038 (Weffc++): Remove Scott's numbering, merge lists and reference
20041 2014-04-03 Nick Clifton <nickc@redhat.com>
20043 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20046 2014-04-03 Martin Jambor <mjambor@suse.cz>
20048 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20049 mention gcc_unreachable before failing.
20050 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20053 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20056 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20057 inconsistent code and instead mark the context inconsistent.
20058 (possible_polymorphic_call_targets): For inconsistent contexts
20059 return empty complete list.
20061 2014-04-02 Anthony Green <green@moxielogic.com>
20063 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20064 (extendqisi2, extendhisi2): Define.
20065 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20066 (WCHAR_TYPE): Change to unsigned int.
20068 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20070 PR tree-optimization/60733
20071 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20072 insertion point for PHI candidates to be the end of the feeding
20073 block for the PHI argument.
20075 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20077 PR rtl-optimization/60650
20078 * lra-constraints.c (process_alt_operands): Decrease reject for
20079 earlyclobber matching.
20081 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20083 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20085 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20087 * config/spu/spu.c (pad_bb): Do not crash when the last
20088 insn is CODE_FOR_blockage.
20090 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20092 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20093 lies outside the target mode.
20095 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20098 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20099 software floating point or no floating point registers, do not
20100 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20101 in GPRs that occurs after we tested for GPRs that would never be
20104 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20105 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20106 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20107 specifically allow DDmode, since that does not use the SPE SIMD
20110 2014-04-02 Richard Biener <rguenther@suse.de>
20112 PR middle-end/60729
20113 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20114 MODE_INTs. Properly use negv_optab.
20115 (expand_abs): Likewise.
20117 2014-04-02 Richard Biener <rguenther@suse.de>
20120 * Makefile.in (install-driver): Guard extra installs with special
20123 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20125 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20126 Document vec_vgbbd.
20128 2014-04-01 Richard Henderson <rth@redhat.com>
20131 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20132 alternative enabled before register allocation.
20134 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20136 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20137 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20139 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20140 (nios2_got_address): Update nios2_large_got_address call site.
20141 (nios2_delegitimize_address): New function.
20142 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20143 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20144 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20146 2014-04-01 Martin Husemann <martin@duskware.de>
20148 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20151 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20153 PR rtl-optimization/60604
20154 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20155 check from register_operand.
20156 (register_operand): Redefine in terms of general_operand.
20157 (nonmemory_operand): Use register_operand for the non-constant cases.
20159 2014-04-01 Richard Biener <rguenther@suse.de>
20161 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20163 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20165 * doc/invoke.texi (mapp-regs): Clarify.
20167 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20169 * config/i386/avx512fintrin.h (__v32hi): Define type.
20170 (__v64qi): Likewise.
20171 (_mm512_set1_epi8): Define.
20172 (_mm512_set1_epi16): Define.
20173 (_mm512_set4_epi32): Define.
20174 (_mm512_set4_epi64): Define.
20175 (_mm512_set4_pd): Define.
20176 (_mm512_set4_ps): Define.
20177 (_mm512_setr4_epi64): Define.
20178 (_mm512_setr4_epi32): Define.
20179 (_mm512_setr4_pd): Define.
20180 (_mm512_setr4_ps): Define.
20181 (_mm512_setzero_epi32): Define.
20183 2014-03-31 Martin Jambor <mjambor@suse.cz>
20185 PR middle-end/60647
20186 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20187 callsite_arguments_match_p. Updated all callers. Also check types of
20188 corresponding formal parameters and actual arguments.
20189 (not_all_callers_have_enough_arguments_p) Renamed to
20190 some_callers_have_mismatched_arguments_p.
20192 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20194 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20196 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20199 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20202 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20204 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20205 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20207 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20208 Use FMAMODE_NOVF512 mode iterator.
20209 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20210 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20211 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20212 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20214 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20215 Use VF_128_256 mode iterator.
20216 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20219 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20221 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20222 static chain if needed.
20224 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20227 * lra-constraints.c (index_part_to_reg): New.
20228 (process_address): Use it.
20230 2014-03-27 Jeff Law <law@redhat.com>
20231 Jakub Jelinek <jakub@redhat.com>
20234 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20235 gen_rtx_{PLUS,MULT} to build up the address expression.
20237 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20238 creating non-canonical RTL.
20240 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20243 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20244 functions; reorganize to make cheap checks first.
20245 (inline_small_functions): Do not estimate growth when dumping;
20247 * ipa-inline.h (inline_summary): Add min_size.
20248 (growth_likely_positive): New function.
20249 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20250 (set_cond_stmt_execution_predicate): Cleanup.
20251 (estimate_edge_size_and_time): Compute min_size.
20252 (estimate_calls_size_and_time): Likewise.
20253 (estimate_node_size_and_time): Likewise.
20254 (inline_update_overall_summary): Update min_size.
20255 (do_estimate_edge_time): Likewise.
20256 (do_estimate_edge_size): Update.
20257 (do_estimate_edge_hints): Update.
20258 (growth_likely_positive): New function.
20260 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20263 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20264 also if addr has VOIDmode.
20266 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20268 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20269 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20271 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20272 instructions as well as AdvancedSIMD loads.
20274 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20276 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20277 Use crypto_aese type.
20278 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20279 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20280 crypto_aese, crypto_aesmc. Move to types.md.
20281 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20283 * config/arm/iterators.md (crypto_type): Likewise.
20285 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20287 * cgraph.c: Include expr.h and tree-dfa.h.
20288 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20291 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20294 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20295 regs from checking multi-reg pseudos.
20297 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20299 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20301 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20303 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20304 if it would clobber the stack pointer, even temporarily.
20306 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20308 * mode-switching.c: Make small adjustments to the top comment.
20310 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20312 * config/rs6000/constraints.md (wD constraint): New constraint to
20313 match the constant integer to get the top DImode/DFmode out of a
20314 vector in a VSX register.
20316 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20317 match the constant integer to get the top DImode/DFmode out of a
20318 vector in a VSX register.
20320 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20323 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20326 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20327 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20329 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20330 Optimize vec_extract of 64-bit values, where the value being
20331 extracted is in the top word, where we can use scalar
20332 instructions. Add direct move and store support. Combine the big
20333 endian/little endian vector select load support into a single insn.
20334 (vsx_extract_<mode>_internal1): Likewise.
20335 (vsx_extract_<mode>_internal2): Likewise.
20336 (vsx_extract_<mode>_load): Likewise.
20337 (vsx_extract_<mode>_store): Likewise.
20338 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20339 combined into vsx_extract_<mode>_load.
20340 (vsx_extract_<mode>_one_le): Likewise.
20342 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20343 define the top 64-bit vector element.
20345 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20348 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20349 Document vec_vbpermq builtin.
20352 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20353 enable use of xxsldwi and xxpermdi builtin functions.
20354 (vec_xxpermdi): Likewise.
20356 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20357 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20359 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20361 PR rtl-optimization/60650
20362 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20364 (find_spills_for): New.
20365 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20366 Spill all pseudos on the second iteration.
20368 2014-03-27 Marek Polacek <polacek@redhat.com>
20371 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20374 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20376 * config/s390/s390.c (s390_can_use_return_insn): Check for
20377 call-saved FPRs on 31 bit.
20379 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20381 PR middle-end/60682
20382 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20383 if they need regimplification, just drop them instead of
20384 calling gimple_regimplify_operands on them.
20386 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20389 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20390 (aarch64_frame_pointer_required): Adjust logic.
20391 (aarch64_can_eliminate): Adjust logic.
20392 (aarch64_override_options_after_change): Adjust logic.
20394 2014-03-27 Dehao Chen <dehao@google.com>
20396 * ipa-inline.c (early_inliner): Update node's inline info.
20398 2014-03-26 Dehao Chen <dehao@google.com>
20400 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
20401 compiler inserted conditional jumps for NAN float check.
20403 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20405 * ubsan.h (ubsan_create_data): Change second argument's type
20406 to const location_t *.
20407 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
20409 (ubsan_create_data): Change second argument to const location_t *PLOC.
20410 Create Loc field whenever PLOC is non-NULL.
20411 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
20412 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
20416 * real.c (real_to_integer2): Change type of low to UHWI.
20418 2014-03-26 Tobias Burnus <burnus@net-b.de>
20420 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
20421 (CILK_SELF_SPECS): New define.
20422 (driver_self_specs): Use it.
20424 2014-03-26 Richard Biener <rguenther@suse.de>
20426 * tree-pretty-print.c (percent_K_format): Implement special
20427 case for LTO and its stripped down BLOCK tree.
20429 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20432 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
20434 * tree-vrp.c (simplify_internal_call_using_ranges): If only
20435 one range is range_int_cst_p, but not both, at least optimize
20436 addition/subtraction of 0 and multiplication by 0 or 1.
20437 * gimple-fold.c (gimple_fold_call): Fold
20438 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
20439 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
20440 INTEGER_CSTs, try to fold at least x * 0 and y - y.
20442 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
20444 PR rtl-optimization/60452
20445 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
20446 <case REG>: Return 1 for invalid offsets from the frame pointer.
20448 2014-03-26 Marek Polacek <polacek@redhat.com>
20451 * doc/extend.texi (C Extensions): Mention variable-length arrays in
20454 2014-03-26 Marek Polacek <polacek@redhat.com>
20457 * doc/extend.texi (Designated Inits): Describe what happens to omitted
20460 2014-03-26 Marek Polacek <polacek@redhat.com>
20463 * ira-color.c (update_conflict_hard_regno_costs): Perform the
20464 multiplication in unsigned type.
20466 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20468 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
20470 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20472 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
20474 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20477 * cif-code.def (UNREACHABLE) New code.
20478 * ipa-inline.c (inline_small_functions): Skip edges to
20479 __builtlin_unreachable.
20480 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
20481 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
20482 predicate to __bulitin_unreachable.
20483 (set_cond_stmt_execution_predicate): Fix issue when
20484 invert_tree_comparison returns ERROR_MARK.
20485 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
20486 propagate to inline clones.
20487 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
20489 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
20490 * cgraphclones.c (cgraph_clone_node): If call destination is already
20491 ureachable, do not redirect it back.
20492 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
20495 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20497 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
20498 Do not modify inline clones.
20500 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20502 * config/i386/i386.md (general_sext_operand): New mode attr.
20503 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
20504 don't generate (sign_extend (const_int)).
20505 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
20506 operands[2]. Use We constraint instead of <i> and
20507 <general_sext_operand> predicate instead of <general_operand>.
20508 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
20509 * config/i386/constraints.md (We): New constraint.
20510 * config/i386/predicates.md (x86_64_sext_operand,
20511 sext_operand): New predicates.
20513 2014-03-25 Martin Jambor <mjambor@suse.cz>
20516 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
20517 inconsistent devirtualizations to __builtin_unreachable.
20519 2014-03-25 Marek Polacek <polacek@redhat.com>
20522 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
20524 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
20526 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
20527 order of elements for big-endian.
20529 2014-03-25 Richard Biener <rguenther@suse.de>
20531 PR middle-end/60635
20532 * gimplify-me.c (gimple_regimplify_operands): Update the
20535 2014-03-25 Martin Jambor <mjambor@suse.cz>
20538 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
20539 (lto_output_varpool_node): Likewise.
20540 (input_overwrite_node): Likewise.
20541 (input_varpool_node): Likewise.
20543 2014-03-25 Richard Biener <rguenther@suse.de>
20545 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
20546 (run_gcc): Likewise.
20548 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20550 * combine.c (simplify_compare_const): Add MODE argument.
20551 Handle mode_width 0 as very large mode_width.
20552 (try_combine, simplify_comparison): Adjust callers.
20554 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
20555 type to avoid signed integer overflow.
20556 * explow.c (plus_constant): Likewise.
20558 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20560 * doc/generic.texi: Correct typos.
20562 2014-03-24 Tobias Burnus <burnus@net-b.de>
20564 * doc/invoke.texi (-flto): Expand section about
20565 using static libraries with LTO.
20567 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20569 PR rtl-optimization/60501
20570 * optabs.def (addptr3_optab): New optab.
20571 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
20572 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
20573 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
20575 * lra.c (emit_add3_insn): Use the addptr pattern if available.
20577 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
20579 2014-03-24 Ulrich Drepper <drepper@gmail.com>
20581 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
20584 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
20585 (_mm256_undefined_ps): Define.
20586 (_mm256_undefined_pd): Define.
20587 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
20588 (_mm_undefined_pd): Define.
20589 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
20590 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
20591 (_mm512_undefined_ps): Define.
20592 (_mm512_undefined_pd): Define.
20593 Use _mm*_undefined_*.
20594 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
20596 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
20598 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
20599 (lshr_simd): DI mode added.
20600 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
20601 (aarch64_ushr_simddi): Likewise.
20602 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
20603 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
20604 (vshrd_n_u64): Likewise.
20606 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20608 * Makefile.in (s-macro_list): Depend on cc1.
20610 2014-03-23 Teresa Johnson <tejohnson@google.com>
20612 * ipa-utils.c (ipa_print_order): Use specified dump file.
20614 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
20616 PR rtl-optimization/60601
20617 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
20619 * gcc.c (eval_spec_function): Initialize save_growing_value.
20621 2014-03-22 Jakub Jelinek <jakub@redhat.com>
20624 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
20625 code == MINUS_EXPR, never swap op0 with op1.
20627 * toplev.c (init_local_tick): Avoid signed integer multiplication
20629 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
20630 shift by first operand's bitsize.
20632 2014-03-21 Jakub Jelinek <jakub@redhat.com>
20635 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
20636 redefine to 1 or 0.
20637 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
20638 TARGET_ISA_64BIT_P(x).
20640 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20642 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
20643 pattern for vector nor instead of subtract from splat(-1).
20644 (altivec_expand_vec_perm_const_le): Likewise.
20646 2014-03-21 Richard Henderson <rth@twiddle.net>
20649 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
20650 related insns after epilogue_completed.
20652 2014-03-21 Martin Jambor <mjambor@suse.cz>
20655 * cgraph.h (symtab_node): New flag body_removed.
20656 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
20657 when removing bodies.
20658 * symtab.c (dump_symtab_base): Dump body_removed flag.
20659 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
20660 had their bodies removed.
20662 2014-03-21 Martin Jambor <mjambor@suse.cz>
20665 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
20668 2014-03-21 Richard Biener <rguenther@suse.de>
20670 PR tree-optimization/60577
20671 * tree-core.h (struct tree_base): Document nothrow_flag use
20672 in DECL_NONALIASED.
20673 * tree.h (DECL_NONALIASED): New.
20674 (may_be_aliased): Adjust.
20675 * coverage.c (build_var): Set DECL_NONALIASED.
20677 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20679 * expr.c (expand_expr_real_1): Remove outdated comment.
20681 2014-03-20 Jakub Jelinek <jakub@redhat.com>
20683 PR middle-end/60597
20684 * ira.c (adjust_cleared_regs): Call copy_rtx on
20685 *reg_equiv[REGNO (loc)].src_p before passing it to
20686 simplify_replace_fn_rtx.
20689 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
20690 into CONST, put pic register as first operand of PLUS. Use
20691 gen_const_mem for both 32-bit and 64-bit PIC got loads.
20693 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20695 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
20697 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20699 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
20700 around for store forwarding issue in the FPU on the UT699.
20701 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
20702 loads and operations if -mfix-ut699 is specified.
20703 (divtf3_hq): Tweak attribute.
20704 (sqrttf2_hq): Likewise.
20706 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20708 * calls.c (store_one_arg): Remove incorrect const qualification on the
20709 type of the temporary.
20710 * cfgexpand.c (expand_return): Likewise.
20711 * expr.c (expand_constructor): Likewise.
20712 (expand_expr_real_1): Likewise.
20714 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20716 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
20719 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
20722 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
20724 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
20726 * config/arm/aarch-common-protos.h
20727 (alu_cost_table): Fix spelling of "extend".
20728 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
20730 2014-03-19 Richard Biener <rguenther@suse.de>
20732 PR middle-end/60553
20733 * tree-core.h (tree_type_common): Re-order pointer members
20734 to reduce recursion depth during GC walks.
20736 2014-03-19 Marek Polacek <polacek@redhat.com>
20739 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
20740 before accessing it.
20742 2014-03-19 Richard Biener <rguenther@suse.de>
20745 * lto-streamer-in.c (input_function): In WPA stage do not drop
20748 2014-03-19 Jakub Jelinek <jakub@redhat.com>
20750 PR tree-optimization/60559
20751 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
20752 with build_zero_cst assignment.
20754 2014-03-18 Kai Tietz <ktietz@redhat.com>
20756 PR rtl-optimization/56356
20757 * sdbout.c (sdbout_parms): Verify that parms'
20758 incoming argument is valid.
20759 (sdbout_reg_parms): Likewise.
20761 2014-03-18 Richard Henderson <rth@redhat.com>
20764 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
20765 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
20766 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
20768 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
20770 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
20771 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
20772 Italicize plugin event names in description. Explain that
20773 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
20774 Remind that no GCC functions should be called after PLUGIN_FINISH.
20775 Explain what pragmas with expansion are.
20777 2014-03-18 Martin Liska <mliska@suse.cz>
20779 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
20780 gimple call statement is update.
20781 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
20782 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
20784 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20787 * ubsan.c (ubsan_instrument_unreachable): Call
20788 initialize_sanitizer_builtins.
20789 (ubsan_pass): Likewise.
20792 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
20793 varpool_finalize_decl instead of rest_of_decl_compilation.
20795 2014-03-18 Richard Biener <rguenther@suse.de>
20797 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
20798 by using bitmap_and_compl instead of bitmap_and_compl_into.
20799 (df_rd_transfer_function): Likewise.
20801 2014-03-18 Richard Biener <rguenther@suse.de>
20803 * doc/lto.texi (fresolution): Fix typo.
20805 2014-03-18 Richard Biener <rguenther@suse.de>
20807 * doc/invoke.texi (flto): Update for changes in 4.9.
20809 2014-03-18 Richard Biener <rguenther@suse.de>
20811 * doc/loop.texi: Remove section on the removed lambda framework.
20812 Update loop docs with recent changes in preserving loop structure.
20814 2014-03-18 Richard Biener <rguenther@suse.de>
20816 * doc/lto.texi (-fresolution): Document.
20818 2014-03-18 Richard Biener <rguenther@suse.de>
20820 * doc/contrib.texi: Adjust my name.
20822 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20825 * internal-fn.c: Include diagnostic-core.h.
20826 (expand_BUILTIN_EXPECT): New function.
20827 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
20828 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
20829 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
20830 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
20831 IFN_BUILTIN_EXPECT.
20832 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
20833 Revert 3 argument __builtin_expect code.
20834 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
20835 * gimple-fold.c (gimple_fold_call): Likewise.
20836 * tree.h (fold_builtin_expect): New prototype.
20837 * builtins.c (build_builtin_expect_predicate): Add predictor
20838 argument, if non-NULL, create 3 argument __builtin_expect.
20839 (fold_builtin_expect): No longer static. Add ARG2 argument,
20840 pass it through to build_builtin_expect_predicate.
20841 (fold_builtin_2): Adjust caller.
20842 (fold_builtin_3): Handle BUILT_IN_EXPECT.
20843 * internal-fn.def (BUILTIN_EXPECT): New.
20845 2014-03-18 Tobias Burnus <burnus@net-b.de>
20848 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
20849 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
20850 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
20852 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
20855 * predict.c (combine_predictions_for_bb): Fix up formatting.
20856 (expr_expected_value_1, expr_expected_value): Add predictor argument,
20857 fill what it points to if non-NULL.
20858 (tree_predict_by_opcode): Adjust caller, use the predictor.
20859 * predict.def (PRED_COMPARE_AND_SWAP): Add.
20861 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
20863 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
20864 proper constant for the store mode.
20866 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
20868 * symtab.c (change_decl_assembler_name): Fix transparent alias
20869 chain construction.
20871 2014-03-16 Renlin Li <Renlin.Li@arm.com>
20873 * config/aarch64/aarch64.c: Correct the comments about the
20874 aarch64 stack layout.
20876 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
20878 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
20879 check for GF_OMP_FOR_KIND_FOR.
20881 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20883 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
20884 ymm and zmm register names.
20886 2014-03-17 Jakub Jelinek <jakub@redhat.com>
20889 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
20890 note creation for the 2010-08-31 changes.
20892 2014-03-17 Marek Polacek <polacek@redhat.com>
20894 PR middle-end/60534
20895 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
20896 as -fno-tree-loop-vectorize.
20897 (expand_omp_simd): Likewise.
20899 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
20901 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
20902 (eligible_for_call_delay): New prototype.
20903 * config/sparc/sparc.c (tls_call_delay): Rename into...
20904 (eligible_for_call_delay): ...this. Return false if the instruction
20905 cannot be put in the delay slot of a branch.
20906 (eligible_for_restore_insn): Simplify.
20907 (eligible_for_return_delay): Return false if the instruction cannot be
20908 put in the delay slot of a branch and simplify.
20909 (eligible_for_sibcall_delay): Return false if the instruction cannot be
20910 put in the delay slot of a branch.
20911 * config/sparc/sparc.md (fix_ut699): New attribute.
20912 (tls_call_delay): Delete.
20913 (in_call_delay): Reimplement.
20914 (eligible_for_sibcall_delay): Rename into...
20915 (in_sibcall_delay): ...this.
20916 (eligible_for_return_delay): Rename into...
20917 (in_return_delay): ...this.
20918 (in_branch_delay): Reimplement.
20919 (in_uncond_branch_delay): Delete.
20920 (in_annul_branch_delay): Delete.
20922 2014-03-14 Richard Henderson <rth@redhat.com>
20925 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
20926 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
20927 (*floathi<X87MODEF>2_i387_with_temp): Remove.
20928 (floathi splitters): Remove.
20929 (float<SWI48x>xf2): New pattern.
20930 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
20931 code that tried to handle DImode for 32-bit, but which was excluded
20932 by the pattern's condition. Drop allocation of stack temporary.
20933 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
20934 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
20935 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
20936 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
20937 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
20938 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
20939 (*float<SWI48><MODEF>2_sse_interunit): Remove.
20940 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
20941 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
20942 (*float<SWI48x><X87MODEF>2_i387): Remove.
20943 (all float _with_temp splitters): Remove.
20944 (*float<SWI48x><MODEF>2_i387): New pattern.
20945 (*float<SWI48><MODEF>2_sse): New pattern.
20946 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
20947 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
20949 2014-03-14 Jakub Jelinek <jakub@redhat.com>
20950 Marek Polacek <polacek@redhat.com>
20952 PR middle-end/60484
20953 * common.opt (dump_base_name_prefixed): New Variable.
20954 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
20955 if x_dump_base_name_prefixed is already set, set it at the end.
20957 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
20959 PR rtl-optimization/60508
20960 * lra-constraints.c (get_reload_reg): Add new parameter
20962 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
20963 Pass the new parameter values.
20965 2014-03-14 Richard Biener <rguenther@suse.de>
20967 * common.opt: Revert unintented changes from r205065.
20968 * opts.c: Likewise.
20970 2014-03-14 Richard Biener <rguenther@suse.de>
20972 PR middle-end/60518
20973 * cfghooks.c (split_block): Properly adjust all loops the
20974 block was a latch of.
20976 2014-03-14 Martin Jambor <mjambor@suse.cz>
20979 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
20982 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
20985 * config/avr/avr.c (avr_set_current_function): Pass function name
20986 through default_strip_name_encoding before sanity checking instead
20987 of skipping the first char of the assembler name.
20989 2014-03-13 Richard Henderson <rth@redhat.com>
20992 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
20993 (ix86_force_to_memory, ix86_free_from_memory): Remove.
20994 * config/i386/i386-protos.h: Likewise.
20995 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
20996 in the expander instead of a splitter.
20997 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
20998 any possibility of requiring a memory.
20999 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21000 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21001 (fp branch splitters): Update for ix86_split_fp_branch.
21002 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21003 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21004 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21005 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21006 (*fop_<MODEF>_3_i387): Likewise.
21007 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21008 (splitters for the fop_* register patterns): Remove.
21009 (fscalexf4_i387): Rename from *fscalexf4_i387.
21010 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21012 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21014 PR tree-optimization/59779
21015 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21016 type for bitsize and maxsize instead of HOST_WIDE_INT.
21018 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21020 PR rtl-optimization/57320
21021 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21022 the CFG after thread_prologue_and_epilogue_insns.
21024 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21026 PR rtl-optimization/57189
21027 * lra-constraints.c (process_alt_operands): Disfavor spilling
21030 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21032 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21034 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21036 PR tree-optimization/59025
21037 PR middle-end/60418
21038 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21039 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21041 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21044 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21045 calls of avr_out_plus_1.
21047 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21049 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21050 BB's single pred and update the father loop's latch info later.
21052 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21054 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21058 (VEC_base): Likewise.
21059 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21060 registers, we need to swap double words in little endian mode.
21062 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21063 to be a container mode for 128-bit integer operations added in ISA
21064 2.07. Unlike TImode and PTImode, the preferred register set is
21065 the Altivec/VMX registers for the 128-bit operations.
21067 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21069 (rs6000_split_128bit_ok_p): Likewise.
21071 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21072 macros for creating ISA 2.07 normal and overloaded builtin
21073 functions with 3 arguments.
21074 (BU_P8V_OVERLOAD_3): Likewise.
21075 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21076 for use as overloaded functions.
21077 (VPERM_1TI_UNS): Likewise.
21078 (VSEL_1TI): Likewise.
21079 (VSEL_1TI_UNS): Likewise.
21080 (ST_INTERNAL_1ti): Likewise.
21081 (LD_INTERNAL_1ti): Likewise.
21082 (XXSEL_1TI): Likewise.
21083 (XXSEL_1TI_UNS): Likewise.
21084 (VPERM_1TI): Likewise.
21085 (VPERM_1TI_UNS): Likewise.
21086 (XXPERMDI_1TI): Likewise.
21087 (SET_1TI): Likewise.
21088 (LXVD2X_V1TI): Likewise.
21089 (STXVD2X_V1TI): Likewise.
21090 (VEC_INIT_V1TI): Likewise.
21091 (VEC_SET_V1TI): Likewise.
21092 (VEC_EXT_V1TI): Likewise.
21093 (EQV_V1TI): Likewise.
21094 (NAND_V1TI): Likewise.
21095 (ORC_V1TI): Likewise.
21096 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21097 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21098 overloaded builtin.
21099 (VADDUQM): Likewise.
21100 (VSUBCUQ): Likewise.
21101 (VADDEUQM): Likewise.
21102 (VADDECUQ): Likewise.
21103 (VSUBEUQM): Likewise.
21104 (VSUBECUQ): Likewise.
21106 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21107 __int128_t and __uint128_t types.
21108 (__uint128_type): Likewise.
21109 (altivec_categorize_keyword): Add support for vector __int128_t,
21110 vector __uint128_t, vector __int128, and vector unsigned __int128
21111 as a container type for TImode operations that need to be done in
21112 VSX/Altivec registers.
21113 (rs6000_macro_to_expand): Likewise.
21114 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21115 to support 128-bit integer instructions vaddcuq, vadduqm,
21116 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21117 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21119 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21120 for V1TImode, and set up preferences to use VSX/Altivec registers.
21121 Setup VSX reload handlers.
21122 (rs6000_debug_reg_global): Likewise.
21123 (rs6000_init_hard_regno_mode_ok): Likewise.
21124 (rs6000_preferred_simd_mode): Likewise.
21125 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21126 (easy_altivec_constant): Likewise.
21127 (output_vec_const_move): Likewise.
21128 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21130 (rs6000_expand_vector_extract): Likewise.
21131 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21133 (rs6000_const_vec): Add support for V1TImode.
21134 (rs6000_emit_le_vsx_load): Swap double words when loading or
21135 storing TImode/V1TImode.
21136 (rs6000_emit_le_vsx_store): Likewise.
21137 (rs6000_emit_le_vsx_move): Likewise.
21138 (rs6000_emit_move): Add support for V1TImode.
21139 (altivec_expand_ld_builtin): Likewise.
21140 (altivec_expand_st_builtin): Likewise.
21141 (altivec_expand_vec_init_builtin): Likewise.
21142 (altivec_expand_builtin): Likewise.
21143 (rs6000_init_builtins): Add support for V1TImode type. Add
21144 support for ISA 2.07 128-bit integer builtins. Define type names
21145 for the VSX/Altivec vector types.
21146 (altivec_init_builtins): Add support for overloaded vector
21147 functions with V1TImode type.
21148 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21149 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21151 (rs6000_split_128bit_ok_p): Likewise.
21152 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21153 __int128_t and vector __uint128_t.
21155 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21156 and mode attributes.
21158 (VSX_M2): Likewise.
21163 (VS_scalar): Likewise.
21164 (VS_double): Likewise.
21165 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21167 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21168 we support the ISA 2.07 128-bit integer arithmetic instructions.
21169 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21170 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21171 and TImode types for use with the builtin functions.
21172 (V1TI_type_node): Likewise.
21173 (unsigned_V1TI_type_node): Likewise.
21174 (intTI_type_internal_node): Likewise.
21175 (uintTI_type_internal_node): Likewise.
21177 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21178 128-bit builtin functions.
21179 (UNSPEC_VADDEUQM): Likewise.
21180 (UNSPEC_VADDECUQ): Likewise.
21181 (UNSPEC_VSUBCUQ): Likewise.
21182 (UNSPEC_VSUBEUQM): Likewise.
21183 (UNSPEC_VSUBECUQ): Likewise.
21184 (VM): Add V1TImode to vector mode iterators.
21186 (VI_unit): Likewise.
21187 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21188 (altivec_vaddcuq): Likewise.
21189 (altivec_vsubuqm): Likewise.
21190 (altivec_vsubcuq): Likewise.
21191 (altivec_vaddeuqm): Likewise.
21192 (altivec_vaddecuq): Likewise.
21193 (altivec_vsubeuqm): Likewise.
21194 (altivec_vsubecuq): Likewise.
21196 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21198 (BOOL_128): Likewise.
21199 (BOOL_REGS_OUTPUT): Likewise.
21200 (BOOL_REGS_OP1): Likewise.
21201 (BOOL_REGS_OP2): Likewise.
21202 (BOOL_REGS_UNARY): Likewise.
21203 (BOOL_REGS_AND_CR0): Likewise.
21205 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21206 128-bit integer builtin support.
21207 (vec_vadduqm): Likewise.
21208 (vec_vaddecuq): Likewise.
21209 (vec_vaddeuqm): Likewise.
21210 (vec_vsubecuq): Likewise.
21211 (vec_vsubeuqm): Likewise.
21212 (vec_vsubcuq): Likewise.
21213 (vec_vsubuqm): Likewise.
21215 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21216 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21217 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21218 128-bit integer add/subtract to ISA 2.07.
21220 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21222 * config/arc/arc.c (arc_predicate_delay_insns):
21223 Fix third argument passed to conditionalize_nonjump.
21225 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21227 * config/aarch64/aarch64-builtins.c
21228 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21229 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21230 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21231 instead of __builtin_lfloor.
21232 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21234 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21236 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21237 (tree_ssa_ifcombine_bb_1): New function.
21238 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21239 is an empty forwarder block to then_bb or vice versa and then_bb
21240 and else_bb are effectively swapped.
21242 2014-03-12 Christian Bruel <christian.bruel@st.com>
21245 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21246 REG_CFA_DEF_CFA note.
21247 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21248 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21250 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21252 PR tree-optimization/60454
21253 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21255 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21257 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21258 Do not define target_cpu_default2 to generic.
21259 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21260 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21261 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21263 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21264 Marc Glisse <marc.glisse@inria.fr>
21266 PR tree-optimization/60502
21267 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21268 instead of build_low_bits_mask.
21270 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21272 PR middle-end/60482
21273 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21274 if there are multiple uses, but op doesn't live on E edge.
21275 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21276 clobber stmts before __builtin_unreachable.
21278 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21280 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21281 hard_frame_pointer_rtx.
21282 * cse.c (cse_insn): Remove volatile check.
21283 * cselib.c (cselib_process_insn): Likewise.
21284 * dse.c (scan_insn): Likewise.
21286 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21288 * config/arc/arc.c (conditionalize_nonjump): New function,
21290 (arc_ifcvt): ... this.
21291 (arc_predicate_delay_insns): Use it.
21293 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21295 * config/arc/predicates.md (extend_operand): During/after reload,
21296 allow const_int_operand.
21297 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21298 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21299 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21301 (umulsi3_highpart_i): Likewise.
21303 2014-03-11 Richard Biener <rguenther@suse.de>
21305 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21306 Add asserts to guard possible wrong-code bugs.
21308 2014-03-11 Richard Biener <rguenther@suse.de>
21310 PR tree-optimization/60429
21311 PR tree-optimization/60485
21312 * tree-ssa-structalias.c (set_union_with_increment): Properly
21313 take into account all fields that overlap the shifted vars.
21314 (do_sd_constraint): Likewise.
21315 (do_ds_constraint): Likewise.
21316 (get_constraint_for_ptr_offset): Likewise.
21318 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21320 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21321 (nios2_compute_frame_layout):
21322 Add calculation of cfun->machine->fp_save_offset.
21323 (nios2_expand_prologue): Correct setting of frame pointer register
21325 (nios2_expand_epilogue): Update recovery of stack pointer from
21326 frame pointer accordingly.
21327 (nios2_initial_elimination_offset): Update calculation of offset
21328 for eliminating to HARD_FRAME_POINTER_REGNUM.
21330 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21333 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21334 cgraph_get_create_node on VAR_DECLs.
21336 2014-03-10 Richard Biener <rguenther@suse.de>
21338 PR middle-end/60474
21339 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21341 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21343 * config/vms/vms.opt (vms_float_format): New variable.
21345 2014-03-08 Tobias Burnus <burnus@net-b.de>
21347 * doc/invoke.texi (-fcilkplus): Update implementation status.
21349 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21350 Richard Biener <rguenther@suse.de>
21352 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21353 consistently accross all TUs.
21354 (run_gcc): Enable -fshort-double automatically at link at link-time
21355 and disallow override.
21357 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21360 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21361 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21362 if they can't be used.
21364 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21366 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21367 for Solaris 11/x86 ld.
21368 * configure: Regenerate.
21370 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21372 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21373 (LIB_TLS_SPEC): Save as ld_tls_libs.
21374 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21375 (HAVE_AS_IX86_TLSLDM): New test.
21376 * configure, config.in: Regenerate.
21377 * config/i386/i386.c (legitimize_tls_address): Fall back to
21378 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21379 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21380 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21381 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21383 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21385 * common.opt (fira-loop-pressure): Mark as optimization.
21387 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21389 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21390 an OpenMP mappable type.
21392 2014-03-06 Matthias Klose <doko@ubuntu.com>
21394 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21395 MULTILIB_OSDIRNAMES is not defined.
21397 2014-03-06 Jakub Jelinek <jakub@redhat.com>
21398 Meador Inge <meadori@codesourcery.com>
21401 * config/arm/arm.c (arm_tls_symbol_p): Remove.
21402 (arm_legitimize_address): Call legitimize_tls_address for any
21403 arm_tls_referenced_p expression, handle constant addend. Call it
21404 before testing for !TARGET_ARM.
21405 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
21407 2014-03-06 Richard Biener <rguenther@suse.de>
21409 PR middle-end/60445
21413 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21415 * tree-streamer.c (record_common_node): Assert we don't record
21416 nodes with type double.
21417 (preload_common_node): Skip type double, complex double and double
21418 pointer since it is now frontend dependent due to fshort-double option.
21420 2014-03-06 Richard Biener <rguenther@suse.de>
21422 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
21423 or -fno-lto is specified and the linker has full plugin support.
21424 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
21425 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
21426 * lto-wrapper.c (merge_and_complain): Merge compile-time
21427 optimization levels.
21428 (run_gcc): And pass it through to the link options.
21430 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
21434 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21436 * cselib.c (remove_useless_values): Skip to avoid quadratic
21437 behavior if the condition moved from...
21438 (cselib_process_insn): ... here holds.
21440 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21443 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
21444 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
21447 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
21448 (TM_H): Add x86-tune.def.
21450 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21452 * config/aarch64/aarch64.c (generic_tunings):
21453 Use cortexa57_extra_costs.
21455 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21458 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
21459 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
21460 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
21463 2014-03-04 Heiher <r@hev.cc>
21465 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
21466 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
21468 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
21470 * config/i386/predicates.md (const2356_operand): Change to ...
21471 (const2367_operand): ... this.
21472 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
21474 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21475 (*avx512pf_scatterpf<mode>sf): Ditto.
21476 (avx512pf_scatterpf<mode>df): Ditto.
21477 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21478 (*avx512pf_scatterpf<mode>df): Ditto.
21479 * config/i386/i386.c (ix86_expand_builtin): Update
21480 incorrect hint operand error message.
21482 2014-03-04 Richard Biener <rguenther@suse.de>
21484 * lto-section-in.c (lto_get_section_data): Fix const cast.
21486 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21488 * tree-streamer.c (record_common_node): Assert we don't record
21489 nodes with type double.
21490 (preload_common_node): Skip type double, complex double and double
21491 pointer since it is now frontend dependent due to fshort-double option.
21493 2014-03-04 Richard Biener <rguenther@suse.de>
21496 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
21497 (lto_input_toplevel_asms): Likewise.
21498 * lto-section-in.c (lto_get_section_data): Instead do it here
21501 2014-03-04 Richard Biener <rguenther@suse.de>
21503 PR tree-optimization/60382
21504 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
21505 dead PHIs a reduction.
21507 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
21509 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
21511 (_mm_prefetch): Move out of GCC target("sse") pragma.
21512 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
21513 GCC target("prfchw") pragma.
21514 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
21516 * config/i386/i386.c (ix86_option_override_internal): Enable
21517 -mprfchw with -mprefetchwt1.
21519 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21521 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
21524 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21526 * opts.h (CL_PCH_IGNORE): Define.
21527 * targhooks.c (option_affects_pch_p):
21528 Return false for options that have CL_PCH_IGNORE set.
21529 * opt-functions.awk: Process PchIgnore.
21530 * doc/options.texi: Document PchIgnore.
21532 * config/arc/arc.opt (misize): Add PchIgnore property.
21534 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21536 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
21537 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
21538 constraint on constants to permit them being loaded into
21539 GENERAL_REGS or BASE_REGS.
21541 2014-03-03 Nick Clifton <nickc@redhat.com>
21543 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
21544 anti-cacnonical alternatives.
21545 (negandhi3_real): New pattern.
21546 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
21548 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21550 * config/avr/avr-mcus.def: Remove atxmega16x1.
21551 * config/avr/avr-tables.opt: Regenerate.
21552 * config/avr/t-multilib: Regenerate.
21553 * doc/avr-mmcu.texi: Regenerate.
21555 2014-03-03 Tobias Grosser <tobias@grosser.es>
21556 Mircea Namolaru <mircea.namolaru@inria.fr>
21558 PR tree-optimization/58028
21559 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
21562 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21564 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
21565 not handled by recognizers.
21567 2014-03-03 Jakub Jelinek <jakub@redhat.com>
21569 PR middle-end/60175
21570 * function.c (expand_function_end): Don't emit
21571 clobber_return_register sequence if clobber_after is a BARRIER.
21572 * cfgexpand.c (construct_exit_block): Append instructions before
21573 return_label to prev_bb.
21575 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21577 * config/rs6000/constraints.md: Document reserved use of "wc".
21579 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21582 * ipa.c (function_and_variable_visibility): When dissolving comdat
21583 group, also set all symbols to local.
21585 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21590 2013-12-14 Jan Hubicka <jh@suse.cz>
21591 PR middle-end/58477
21592 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
21594 2014-03-02 Jon Beniston <jon@beniston.com>
21600 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
21601 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
21602 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
21603 (simple_return, *simple_return): New patterns
21604 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
21605 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
21607 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
21609 * dwarf2out.c (gen_subprogram_die): Tidy.
21611 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
21614 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
21615 (*mov_t_msb_neg_negc): ... this new insn.
21617 2014-02-28 Jason Merrill <jason@redhat.com>
21620 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
21623 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
21626 * dwarf2out.c (decltype_auto_die): New static.
21627 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
21628 (gen_type_die_with_usage): Handle 'decltype(auto)'.
21629 (is_cxx_auto): Likewise.
21631 2014-02-28 Ian Bolton <ian.bolton@arm.com>
21633 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
21634 we are not using general regs only.
21636 2014-02-28 Richard Biener <rguenther@suse.de>
21639 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
21640 previous fix and only allow to remove trivial pre-headers
21641 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
21642 (remove_forwarder_block): Properly update the latch of a loop.
21644 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21647 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
21648 (cselib_preserved_hash_table): New.
21649 (preserve_constants_and_equivs): Move preserved vals to it.
21650 (cselib_find_slot): Look it up first.
21651 (cselib_init): Initialize it.
21652 (cselib_finish): Release it.
21653 (dump_cselib_table): Dump it.
21655 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21658 * cselib.c (remove_useless_values): Skip to avoid quadratic
21659 behavior if the condition moved from...
21660 (cselib_process_insn): ... here holds.
21662 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21665 * var-tracking.c (vt_initialize): Apply the same condition to
21666 preserve the CFA base value.
21668 2014-02-28 Joey Ye <joey.ye@arm.com>
21671 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
21672 if reload in progress or completed.
21674 2014-02-28 Tobias Burnus <burnus@net-b.de>
21676 PR middle-end/60147
21677 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
21680 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
21682 * doc/tm.texi.in (Condition Code Status): Update documention for
21683 relative locations of cc0-setter and cc0-user.
21685 2014-02-27 Jeff Law <law@redhat.com>
21687 PR rtl-optimization/52714
21688 * combine.c (try_combine): When splitting an unrecognized PARALLEL
21689 into two independent simple sets, if I3 is a jump, ensure the
21690 pattern we place into I3 is a (set (pc) ...).
21692 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
21693 Jeff Law <law@redhat.com>
21695 PR rtl-optimization/49847
21696 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
21697 are in different blocks.
21698 * doc/tm.texi (Condition Code Status): Update documention for
21699 relative locations of cc0-setter and cc0-user.
21701 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
21704 * lra.c (lra_emit_add): Check SUBREG too.
21706 2014-02-27 Andreas Schwab <schwab@suse.de>
21708 * config/m68k/m68k.c (m68k_option_override): Disable
21709 -flive-range-shrinkage for classic m68k.
21710 (m68k_override_options_after_change): Likewise.
21712 2014-02-27 Marek Polacek <polacek@redhat.com>
21714 PR middle-end/59223
21715 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
21716 -Wmaybe-uninitialized.
21718 2014-02-27 Alan Modra <amodra@gmail.com>
21721 * reload1.c (emit_input_reload_insns): When reload_override_in,
21722 set old to rl->in_reg when rl->in_reg is a subreg.
21724 2014-02-26 Richard Biener <rguenther@suse.de>
21727 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
21729 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21731 * common/config/i386/predicates.md (const1256_operand): Remove.
21732 (const2356_operand): New.
21733 (const_1_to_2_operand): Remove.
21734 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
21735 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21736 (*avx512pf_gatherpf<mode>sf): Ditto.
21737 (avx512pf_gatherpf<mode>df): Ditto.
21738 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21739 (*avx512pf_gatherpf<mode>df): Ditto.
21740 (avx512pf_scatterpf<mode>sf): Ditto.
21741 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21742 (*avx512pf_scatterpf<mode>sf): Ditto.
21743 (avx512pf_scatterpf<mode>df): Ditto.
21744 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21745 (*avx512pf_scatterpf<mode>df): Ditto.
21746 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
21748 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
21750 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
21751 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
21752 (_mm512_mask_testn_epi64_mask): Move to ...
21753 * config/i386/avx512cdintrin.h: Here.
21754 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
21755 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
21756 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
21757 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
21758 TARGET_AVX512F from TARGET_AVX512CD.
21760 2014-02-26 Richard Biener <rguenther@suse.de>
21763 * ipa.c (walk_polymorphic_call_targets): Properly guard
21764 call to inline_update_overall_summary.
21766 2014-02-26 Bin Cheng <bin.cheng@arm.com>
21769 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
21770 and latches only if requested. Fix latch if it is removed.
21771 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
21772 LOOPS_HAVE_PREHEADERS.
21774 2014-02-25 Andrew Pinski <apinski@cavium.com>
21776 * builtins.c (expand_builtin_thread_pointer): Create a new target
21777 when the target is NULL.
21779 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
21781 PR rtl-optimization/60317
21782 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21783 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21784 * lra-assigns.c: Include params.h.
21785 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
21786 other reload pseudos considerations.
21788 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21790 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
21791 to use canonical form for nor<mode>3.
21793 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21796 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
21799 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21801 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
21802 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
21803 (ix86_handle_option): Handle OPT_mprefetchwt1.
21804 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
21805 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21807 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21808 OPTION_MASK_ISA_PREFETCHWT1.
21809 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
21810 (PTA_PREFETCHWT1): New.
21811 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
21812 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
21813 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
21814 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
21815 (*prefetch_avx512pf_<mode>_: Change into ...
21816 (*prefetch_prefetchwt1_<mode>: This.
21817 * config/i386/i386.opt (mprefetchwt1): New.
21818 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
21819 (_mm_prefetch): Handle intent to write.
21820 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
21822 2014-02-25 Richard Biener <rguenther@suse.de>
21824 PR middle-end/60291
21825 * emit-rtl.c (mem_attrs_htab): Remove.
21826 (mem_attrs_htab_hash): Likewise.
21827 (mem_attrs_htab_eq): Likewise.
21828 (set_mem_attrs): Always allocate new mem-attrs when something changed.
21829 (init_emit_once): Do not allocate mem_attrs_htab.
21831 2014-02-25 Richard Biener <rguenther@suse.de>
21834 * lto-opts.c (lto_write_options): Output non-explicit conservative
21835 -fwrapv, -fno-trapv and -fno-strict-overflow.
21836 * lto-wrapper.c (merge_and_complain): Handle merging those options.
21837 (run_gcc): And pass them through.
21839 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21841 * sel-sched.c (calculate_new_fences): New parameter ptime.
21842 Calculate it as a maximum over all fence cycles.
21843 (sel_sched_region_2): Adjust the call to calculate_new_fences.
21844 Print the final schedule timing when sched_verbose.
21846 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21848 PR rtl-optimization/60292
21849 * sel-sched.c (fill_vec_av_set): Do not reset target availability
21850 bit fot the fence instruction.
21852 2014-02-24 Alangi Derick <alangiderick@gmail.com>
21854 * calls.h: Fix typo in comment.
21856 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
21858 * config/pa/pa.c (pa_output_move_double): Don't valididate when
21859 adjusting offsetable addresses.
21861 2014-02-24 Guozhi Wei <carrot@google.com>
21863 * sparseset.h (sparseset_pop): Fix the wrong index.
21865 2014-02-24 Walter Lee <walt@tilera.com>
21867 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
21868 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
21870 * common/config/tilegx/tilegx-common.c
21871 (TARGET_DEFAULT_TARGET_FLAGS): Define.
21872 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
21873 (LINK_SPEC): Ditto.
21874 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
21875 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
21876 (tilegx_gimplify_va_arg_expr): Handle big endian.
21877 (tilegx_expand_unaligned_load): Ditto.
21878 (tilegx_expand_unaligned_store): Ditto.
21879 (TARGET_RETURN_IN_MSB): New.
21880 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
21881 (TARGET_ENDIAN_DEFAULT): New.
21882 (TARGET_BIG_ENDIAN): Handle big endian.
21883 (BYTES_BIG_ENDIAN): Ditto.
21884 (WORDS_BIG_ENDIAN): Ditto.
21885 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
21886 (ENDIAN_SPEC): New.
21887 (EXTRA_SPECS): New.
21888 * config/tilegx/tilegx.md (extv): Handle big endian.
21890 (insn_st<n>): Ditto.
21891 (insn_st<n>_add<bitsuffix>): Ditto.
21892 (insn_stnt<n>): Ditto.
21893 (insn_stnt<n>_add<bitsuffix>):Ditto.
21894 (vec_interleave_highv8qi): Handle big endian.
21895 (vec_interleave_highv8qi_be): New.
21896 (vec_interleave_highv8qi_le): New.
21897 (insn_v1int_h): Handle big endian.
21898 (vec_interleave_lowv8qi): Handle big endian.
21899 (vec_interleave_lowv8qi_be): New.
21900 (vec_interleave_lowv8qi_le): New.
21901 (insn_v1int_l): Handle big endian.
21902 (vec_interleave_highv4hi): Handle big endian.
21903 (vec_interleave_highv4hi_be): New.
21904 (vec_interleave_highv4hi_le): New.
21905 (insn_v2int_h): Handle big endian.
21906 (vec_interleave_lowv4hi): Handle big endian.
21907 (vec_interleave_lowv4hi_be): New.
21908 (vec_interleave_lowv4hi_le): New.
21909 (insn_v2int_l): Handle big endian.
21910 (vec_interleave_highv2si): Handle big endian.
21911 (vec_interleave_highv2si_be): New.
21912 (vec_interleave_highv2si_le): New.
21913 (insn_v4int_h): Handle big endian.
21914 (vec_interleave_lowv2si): Handle big endian.
21915 (vec_interleave_lowv2si_be): New.
21916 (vec_interleave_lowv2si_le): New.
21917 (insn_v4int_l): Handle big endian.
21918 * config/tilegx/tilegx.opt (mbig-endian): New option.
21919 (mlittle-endian): New option.
21920 * doc/install.texi: Document tilegxbe-linux.
21921 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
21923 2014-02-24 Martin Jambor <mjambor@suse.cz>
21926 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
21927 there are no parameter descriptors.
21929 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
21931 PR rtl-optimization/60268
21932 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
21933 initialization to ...
21934 (sched_rgn_init): ... here.
21935 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
21937 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21939 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
21942 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
21944 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
21947 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21949 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
21950 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
21952 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21954 * config/microblaze/predicates.md: Add cmp_op predicate.
21955 * config/microblaze/microblaze.md: Add branch_compare instruction
21956 which uses cmp_op predicate and emits cmp insn before branch.
21957 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
21958 to microblaze_expand_conditional_branch and consolidate logic.
21959 (microblaze_expand_conditional_branch): emit branch_compare
21960 insn instead of handling cmp op separate from branch insn.
21962 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21964 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
21967 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21969 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
21970 define_insn with define_expand and new define_insn
21971 *altivec_lve<VI_char>x_internal.
21972 (altivec_stve<VI_char>x): Replace define_insn with define_expand
21973 and new define_insn *altivec_stve<VI_char>x_internal.
21974 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
21976 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
21978 (altivec_expand_stvex_be): New function.
21980 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
21982 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
21983 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
21984 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
21985 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
21987 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
21990 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
21991 instead of emit_move_insn.
21993 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21995 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
21996 vspltw with vsldoi.
21997 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
21998 gen_altivec_vsumsws.
22000 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22002 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22003 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22004 (altivec_lvxl_<mode>): New define_expand incorporating
22005 -maltivec=be semantics where needed.
22006 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22007 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22008 semantics where needed.
22009 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22010 (altivec_stvx_<mode>): New define_expand incorporating
22011 -maltivec=be semantics where needed.
22012 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22013 VM2 iterator instead of V4SI.
22014 (altivec_stvxl_<mode>): New define_expand incorporating
22015 -maltivec=be semantics where needed.
22016 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22017 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22018 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22019 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22020 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22021 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22022 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22023 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22024 ALTIVEC_BUILTIN_STVXL.
22025 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22026 (altivec_expand_stvx_be): Likewise.
22027 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22028 (altivec_expand_lvx_be): Likewise.
22029 (altivec_expand_stvx_be): Likewise.
22030 (altivec_expand_builtin): Add cases for
22031 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22032 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22033 (altivec_init_builtins): Add definitions for
22034 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22035 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22037 2014-02-21 Catherine Moore <clm@codesourcery.com>
22039 * doc/invoke.texi (mvirt, mno-virt): Document.
22040 * config/mips/mips.opt (mvirt): New option.
22041 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22043 2014-02-21 Richard Biener <rguenther@suse.de>
22045 PR tree-optimization/60276
22046 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22047 (STMT_VINFO_MIN_NEG_DIST): New macro.
22048 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22049 STMT_VINFO_MIN_NEG_DIST.
22050 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22051 made for negative dependence distances still hold.
22053 2014-02-21 Richard Biener <rguenther@suse.de>
22055 PR middle-end/60291
22056 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22057 DECL_INITIAL for globals not in the current function context.
22059 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22061 PR tree-optimization/56490
22062 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22063 * tree-ssa-uninit.c: Include params.h.
22064 (compute_control_dep_chain): Add num_calls argument, return false
22065 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22066 num_calls to recursive call.
22067 (find_predicates): Change dep_chain into normal array,
22068 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22069 variable and adjust compute_control_dep_chain caller.
22070 (find_def_preds): Likewise.
22072 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22074 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22075 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22077 2014-02-21 Nick Clifton <nickc@redhat.com>
22079 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22080 (pushhi1): Likewise.
22081 (popqi1): Add mode to pre_dec.
22082 (pophi1): Likewise.
22084 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22086 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22087 mode for mask of V8SFmode permutation.
22089 2014-02-20 Richard Henderson <rth@redhat.com>
22092 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22093 a new pseudo for OLDVAL.
22095 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22098 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22099 gen_reg_rtx if d->testing_p.
22100 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22101 if d->testing_p and we will certainly return true.
22102 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22105 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22107 * emit-rtl.c (gen_reg_rtx): Assert that
22108 crtl->emit.regno_pointer_align_length is non-zero.
22110 2014-02-20 Richard Henderson <rth@redhat.com>
22113 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22114 on failure the store back into EXPECT.
22116 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22117 Sandra Loosemore <sandra@codesourcery.com>
22119 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22120 * config/nios2/nios2.c (nios2_function_profiler): Add
22121 -fPIC (flag_pic == 2) support.
22122 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22123 (nios2_large_offset_p): New function.
22124 (nios2_unspec_reloc_p): Move up position, update to use
22125 nios2_large_offset_p.
22126 (nios2_unspec_address): Remove function.
22127 (nios2_unspec_offset): New function.
22128 (nios2_large_got_address): New function.
22129 (nios2_got_address): Add large offset support.
22130 (nios2_legitimize_tls_address): Update usage of removed and new
22132 (nios2_symbol_binds_local_p): New function.
22133 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22134 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22135 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22136 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22137 processing for (const (unspec ...)).
22138 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22140 2014-02-20 Richard Biener <rguenther@suse.de>
22142 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22143 doing the substitution.
22144 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22146 2014-02-20 Martin Jambor <mjambor@suse.cz>
22149 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22150 info when checking whether lattices are bottom.
22152 2014-02-20 Richard Biener <rguenther@suse.de>
22154 PR middle-end/60221
22155 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22158 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22161 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22162 parameter specifying the scaling.
22163 (inline_call): Update.
22164 (want_inline_recursively): Guard division by zero.
22165 (recursive_inlining): Update.
22166 * ipa-inline.h (clone_inlined_nodes): Update.
22168 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22171 * config/i386/i386.c (classify_argument): Pass structures of size
22172 64 bytes or less in register.
22174 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22175 Kirill Yukhin <kirill.yukhin@intel.com>
22177 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22178 (_mm_rcp28_round_ss): Ditto.
22179 (_mm_rsqrt28_round_sd): Ditto.
22180 (_mm_rsqrt28_round_ss): Ditto.
22181 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22182 (_mm_rcp14_round_ss): Ditto.
22183 (_mm_rsqrt14_round_sd): Ditto.
22184 (_mm_rsqrt14_round_ss): Ditto.
22185 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22186 the first input operand, get rid of match_dup.
22187 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22189 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22191 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22192 operand as the first input operand, set type attribute.
22193 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22194 Set type attribute.
22195 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22196 operand as the first input operand, set type attribute.
22198 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22200 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22203 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22206 * config/i386/i386.c (construct_container): Remove TFmode check
22207 for X86_64_INTEGER_CLASS.
22209 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22212 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22213 only when -Wpsabi is enabled.
22215 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22218 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22219 passing arrays in registers are the same as for structs, so remove the
22220 special case for them.
22222 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22224 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22225 destination type, extract only the valid bits if the source type is not
22226 integral and has a different mode.
22228 2014-02-19 Richard Biener <rguenther@suse.de>
22231 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22234 2014-02-19 Richard Biener <rguenther@suse.de>
22237 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22238 (ipa_modify_call_arguments): Emit an argument load explicitely and
22239 preserve virtual SSA form there and for the replacement call.
22240 Do not update SSA form nor free dominance info.
22242 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22244 * ipa.c (function_and_variable_visibility): Also clear WEAK
22245 flag when disolving COMDAT_GROUP.
22247 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22249 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22250 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22251 not devirtualizing.
22252 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22253 do more sanity checks.
22254 (detect_type_change): Return true when giving up early.
22255 (compute_complex_assign_jump_func): Fix type parameter of
22256 ipa_set_ancestor_jf.
22257 (compute_complex_ancestor_jump_func): Likewise.
22258 (update_jump_functions_after_inlining): Fix updating of
22260 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22262 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22264 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22265 inline clones when edge disappears.
22267 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22270 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22271 Split 64-bit moves into 2 patterns. Do not allow the use of
22272 direct move for TDmode in little endian, since the decimal value
22273 has little endian bytes within a word, but the 64-bit pieces are
22274 ordered in a big endian fashion, and normal subreg's of TDmode are
22276 (mov<mode>_64bit_dm): Likewise.
22277 (movtd_64bit_nodm): Likewise.
22279 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22281 PR tree-optimization/60174
22282 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22283 statement of an SSA_NAME that occurs in an abnormal PHI node.
22285 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22288 * final.c (SEEN_BB): Remove.
22289 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22290 (final_scan_insn): Don't force_source_line on second
22291 NOTE_INSN_BASIC_BLOCK.
22293 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22296 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22297 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22298 (type_natural_mode): Warn ABI change when %zmm register is not
22299 available for AVX512F vector value passing.
22301 2014-02-18 Kai Tietz <ktietz@redhat.com>
22304 * config/i386/i386.c (ix86_expand_prologue): Use value in
22305 rax register as displacement when restoring %r10 or %rax.
22306 Fix wrong offset when restoring both registers.
22308 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22310 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22311 assertion with conditional return.
22313 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22314 Uros Bizjak <ubizjak@gmail.com>
22317 * config/i386/driver-i386.c (host_detect_local_cpu): If
22318 YMM state is not saved by the OS, also clear has_f16c. Move
22319 CPUID 0x80000001 handling before YMM state saving checking.
22321 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22323 PR rtl-optimization/58960
22324 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22325 factored out from ...
22326 (sched_init): ... here.
22327 (free_global_sched_pressure_data): New, factored out from ...
22328 (sched_finish): ... here.
22329 * sched-int.h (free_global_sched_pressure_data): Declare.
22330 * sched-rgn.c (nr_regions_initial): New static global.
22331 (haifa_find_rgns): Initialize it.
22332 (schedule_region): Disable sched-pressure for the newly
22335 2014-02-17 Richard Biener <rguenther@suse.de>
22337 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22338 release SSA defs of pattern stmts.
22340 2014-02-17 Richard Biener <rguenther@suse.de>
22342 * tree-inline.c (expand_call_inline): Release the virtual
22343 operand defined by the call we are about to inline.
22345 2014-02-17 Richard Biener <rguenther@suse.de>
22347 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22349 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22350 Ilya Tocar <ilya.tocar@intel.com>
22352 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22353 arguments order in builtin.
22354 (_mm512_permutexvar_epi64): Ditto.
22355 (_mm512_mask_permutexvar_epi64): Ditto
22356 (_mm512_maskz_permutexvar_epi32): Ditto
22357 (_mm512_permutexvar_epi32): Ditto
22358 (_mm512_mask_permutexvar_epi32): Ditto
22360 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22362 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22363 (p8_vmrgow): Likewise.
22365 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22367 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22370 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22373 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22374 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22375 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22376 using direct move instructions on ISA 2.07. Also adjust
22377 instruction length for 64-bit.
22378 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22379 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22381 2014-02-15 Alan Modra <amodra@gmail.com>
22385 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22386 find_replacement on parts of insn rtl that might be reloaded.
22388 2014-02-15 Richard Biener <rguenther@suse.de>
22390 PR tree-optimization/60183
22391 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22392 (tree_ssa_phiprop): Calculate and free post-dominators.
22394 2014-02-14 Jeff Law <law@redhat.com>
22396 PR rtl-optimization/60131
22397 * ree.c (get_extended_src_reg): New function.
22398 (combine_reaching_defs): Use it rather than assuming location of REG.
22399 (find_and_remove_re): Verify first operand of extension is
22400 a REG before adding the insns to the copy list.
22402 2014-02-14 Roland McGrath <mcgrathr@google.com>
22404 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
22405 * configure: Regenerated.
22406 * config.in: Regenerated.
22407 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
22408 instead of ASM_SHORT.
22410 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
22411 Richard Earnshaw <rearnsha@arm.com>
22413 PR rtl-optimization/59535
22414 * lra-constraints.c (process_alt_operands): Encourage alternative
22415 when unassigned pseudo class is superset of the alternative class.
22416 (inherit_reload_reg): Don't inherit when optimizing for code size.
22417 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
22418 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
22419 modes not less than 4 for Thumb1.
22421 2014-02-14 Kyle McMartin <kyle@redhat.com>
22424 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
22426 2014-02-14 Richard Biener <rguenther@suse.de>
22428 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
22429 (get_frame_arg): Drop the assert with langhook types_compatible_p.
22430 Do not strip INDIRECT_REFs.
22432 2014-02-14 Richard Biener <rguenther@suse.de>
22435 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
22436 DECL_FUNCTION_SPECIFIC_TARGET.
22437 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
22438 * tree-streamer-out.c (pack_ts_target_option): Remove.
22439 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
22440 (write_ts_function_decl_tree_pointers): Do not stream
22441 DECL_FUNCTION_SPECIFIC_TARGET.
22442 * tree-streamer-in.c (unpack_ts_target_option): Remove.
22443 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
22444 (lto_input_ts_function_decl_tree_pointers): Do not stream
22445 DECL_FUNCTION_SPECIFIC_TARGET.
22447 2014-02-14 Jakub Jelinek <jakub@redhat.com>
22449 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
22450 (get_initial_def_for_induction, vectorizable_induction): Ignore
22451 debug stmts when looking for exit_phi.
22452 (vectorizable_live_operation): Fix up condition.
22454 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22456 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
22457 nreverse() because it changes the content of original tree list.
22459 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22461 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
22462 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
22464 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22466 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
22467 GNU coding standards.
22469 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22472 * dwarf2out.c (gen_subprogram_die): Don't call
22473 add_calling_convention_attribute if subr_die is old_die.
22475 2014-02-13 Sharad Singhai <singhai@google.com>
22477 * doc/optinfo.texi: Fix order of nodes.
22479 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
22481 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
22482 operands[2], not operands[3].
22484 2014-02-13 Richard Biener <rguenther@suse.de>
22487 * doc/install.texi (ISL): Update recommended version to 0.12.2,
22488 mention the possibility of an in-tree build.
22489 (CLooG): Update recommended version to 0.18.1, mention the
22490 possibility of an in-tree build and clarify that the ISL
22491 bundled with CLooG does not work.
22493 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22496 * expr.c (compress_float_constant): If x is a hard register,
22497 extend into a pseudo and then move to x.
22499 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
22501 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
22502 caused by bad second argument to warning_at() with -mhotpatch and
22503 nested functions (e.g. with gfortran).
22505 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
22507 * opts.c (option_name): Remove "enabled by default" rider.
22509 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
22511 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
22513 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
22514 Uros Bizjak <ubizjak@gmail.com>
22517 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
22518 * configure: Regenerated.
22520 2014-02-12 Richard Biener <rguenther@suse.de>
22522 * vec.c (vec_prefix::calculate_allocation): Move as
22523 inline variant to vec.h.
22524 (vec_prefix::calculate_allocation_1): New out-of-line version.
22525 * vec.h (vec_prefix::calculate_allocation_1): Declare.
22526 (vec_prefix::m_has_auto_buf): Rename to ...
22527 (vec_prefix::m_using_auto_storage): ... this.
22528 (vec_prefix::calculate_allocation): Inline the easy cases
22529 and dispatch to calculate_allocation_1 which doesn't need the
22531 (va_heap::reserve): Use gcc_checking_assert.
22532 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
22533 m_using_auto_storage.
22534 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
22536 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
22537 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
22538 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
22540 2014-02-12 Richard Biener <rguenther@suse.de>
22542 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
22543 when we found a dependence.
22545 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
22547 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
22549 (maybe_fold_stmt): ... into this new function.
22550 * omp-low.c (lower_omp): Update comment.
22552 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
22555 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
22558 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
22560 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
22561 identifiers in comments.
22562 (cortexa53_extra_costs): Likewise.
22563 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
22564 (cortexa7_extra_costs): Likewise.
22565 (cortexa12_extra_costs): Likewise.
22566 (cortexa15_extra_costs): Likewise.
22567 (v7m_extra_costs): Likewise.
22569 2014-02-12 Richard Biener <rguenther@suse.de>
22571 PR middle-end/60092
22572 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
22573 of posix_memalign being successful.
22574 (lower_stmt): Restrict lowering of posix_memalign to when
22575 -ftree-bit-ccp is enabled.
22577 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22579 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
22581 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22583 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
22585 PR rtl-optimization/60116
22586 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
22587 other_insn once the combination has been validated.
22589 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
22592 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
22594 * ipa-devirt.c: Include demangle.h
22595 (odr_violation_reported): New static variable.
22596 (add_type_duplicate): Update odr_violations.
22597 (maybe_record_node): Add completep parameter; update it.
22598 (record_target_from_binfo): Add COMPLETEP parameter;
22599 update it as needed.
22600 (possible_polymorphic_call_targets_1): Likewise.
22601 (struct polymorphic_call_target_d): Add nonconstruction_targets;
22602 rename FINAL to COMPLETE.
22603 (record_targets_from_bases): Sanity check we found the binfo;
22604 fix COMPLETEP updating.
22605 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
22606 parameter, fix computing of COMPLETEP.
22607 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
22608 at LTO time do demangling.
22609 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
22610 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
22612 (gimple_get_virt_method_for_binfo): Likewise.
22613 * gimple-fold.h (gimple_get_virt_method_for_binfo,
22614 gimple_get_virt_method_for_vtable): Update prototypes.
22616 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
22619 * genautomata.c (add_presence_absence): Fix typo with
22620 {final_}presence_list.
22622 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22625 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
22626 for VSX/Altivec vectors that land in GPR registers.
22628 2014-02-11 Richard Henderson <rth@redhat.com>
22629 Jakub Jelinek <jakub@redhat.com>
22632 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
22633 around drhs if type conversion to lacc->type is not useless.
22635 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22637 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
22639 (cortex-a57.cortex-a53): Likewise.
22640 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
22642 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22644 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
22647 2014-02-11 Renlin Li <Renlin.Li@arm.com>
22649 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
22650 add_options_for_arm_vfp3.
22652 2014-02-11 Jeff Law <law@redhat.com>
22654 PR middle-end/54041
22655 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
22656 object with an undesirable mode.
22658 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22661 * config/i386/sol2-9.h: New file.
22662 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
22663 *-*-solaris2.9*): Use it.
22665 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22667 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
22668 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
22670 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22672 * config/microblaze/microblaze.c: Extend mcpu version format
22674 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
22676 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
22678 2014-02-10 Richard Henderson <rth@redhat.com>
22681 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
22682 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
22683 ms-abi vs -mno-accumulate-outgoing-args.
22684 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
22685 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
22688 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
22690 PR middle-end/60080
22691 * cfgexpand.c (expand_asm_operands): Attach source location to
22692 ASM_INPUT rtx objects.
22693 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
22695 2014-02-10 Nick Clifton <nickc@redhat.com>
22697 * config/mn10300/mn10300.c (popcount): New function.
22698 (mn10300_expand_prologue): Include saved registers in stack usage
22701 2014-02-10 Jeff Law <law@redhat.com>
22703 PR middle-end/52306
22704 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
22705 when changing the SET_DEST of a prior insn to avoid an input reload.
22707 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22709 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
22710 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
22711 -mcall-openbsd, or -mcall-linux.
22712 (CC1_ENDIAN_BIG_SPEC): Remove.
22713 (CC1_ENDIAN_LITTLE_SPEC): Remove.
22714 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22715 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
22716 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
22717 and %cc1_endian_default.
22718 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22720 2014-02-10 Richard Biener <rguenther@suse.de>
22722 PR tree-optimization/60115
22723 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
22724 MEM_REF handling. Properly verify that the accesses are not
22725 out of the objects bound.
22727 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22729 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
22732 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
22734 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
22735 proper constants and fix formatting.
22736 (possible_polymorphic_call_targets): Fix formatting.
22738 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
22739 Ilya Tocar <ilya.tocar@intel.com>
22741 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
22742 (_mm512_loadu_epi32): Renamed into...
22743 (_mm512_loadu_si512): This.
22744 (_mm512_storeu_epi32): Renamed into...
22745 (_mm512_storeu_si512): This.
22746 (_mm512_maskz_ceil_ps): Removed.
22747 (_mm512_maskz_ceil_pd): Ditto.
22748 (_mm512_maskz_floor_ps): Ditto.
22749 (_mm512_maskz_floor_pd): Ditto.
22750 (_mm512_floor_round_ps): Ditto.
22751 (_mm512_floor_round_pd): Ditto.
22752 (_mm512_ceil_round_ps): Ditto.
22753 (_mm512_ceil_round_pd): Ditto.
22754 (_mm512_mask_floor_round_ps): Ditto.
22755 (_mm512_mask_floor_round_pd): Ditto.
22756 (_mm512_mask_ceil_round_ps): Ditto.
22757 (_mm512_mask_ceil_round_pd): Ditto.
22758 (_mm512_maskz_floor_round_ps): Ditto.
22759 (_mm512_maskz_floor_round_pd): Ditto.
22760 (_mm512_maskz_ceil_round_ps): Ditto.
22761 (_mm512_maskz_ceil_round_pd): Ditto.
22762 (_mm512_expand_pd): Ditto.
22763 (_mm512_expand_ps): Ditto.
22764 * config/i386/i386.c (ix86_builtins): Remove
22765 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
22766 (bdesc_args): Ditto.
22767 * config/i386/predicates.md (const1256_operand): New.
22768 (const_1_to_2_operand): Ditto.
22769 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22770 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22771 (*avx512pf_gatherpf<mode>sf): Ditto.
22772 (avx512pf_gatherpf<mode>df): Ditto.
22773 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22774 (*avx512pf_gatherpf<mode>df): Ditto.
22775 (avx512pf_scatterpf<mode>sf): Ditto.
22776 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22777 (*avx512pf_scatterpf<mode>sf): Ditto.
22778 (avx512pf_scatterpf<mode>df): Ditto.
22779 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22780 (*avx512pf_scatterpf<mode>df): Ditto.
22781 (avx512f_expand<mode>): Removed.
22782 (<shift_insn><mode>3<mask_name>): Change predicate type.
22784 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22786 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
22787 not at the end of datarefs vector use ordered_remove to avoid
22788 reordering datarefs vector.
22791 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
22792 mark local addressable non-static vars as GOVD_PRIVATE
22793 instead of GOVD_LOCAL.
22794 * omp-low.c (lower_omp_for): Move gimple_bind_vars
22795 and BLOCK_VARS of gimple_bind_block to new_stmt rather
22798 PR middle-end/60092
22799 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
22800 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
22801 assume_aligned or alloc_align attributes.
22802 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
22803 arguments. Handle also assume_aligned and alloc_align attributes.
22804 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
22805 calls to functions with assume_aligned or alloc_align attributes.
22806 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
22808 2014-02-08 Terry Guo <terry.guo@arm.com>
22810 * doc/invoke.texi: Document ARM -march=armv7e-m.
22812 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22814 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
22815 flag on __cilkrts_rethrow builtin.
22818 * ipa-cp.c (determine_versionability): Fail at -O0
22819 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
22820 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
22823 2014-02-04 Jakub Jelinek <jakub@redhat.com>
22826 * tree-inline.c (copy_forbidden): Fail for
22827 __attribute__((optimize (0))) functions.
22829 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22831 * varpool.c: Include pointer-set.h.
22832 (varpool_remove_unreferenced_decls): Variables in other partitions
22833 will not be output; be however careful to not lose information
22834 about partitioning.
22836 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22838 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
22839 lookup in the vtable constructor.
22841 2014-02-07 Jeff Law <law@redhat.com>
22844 * config/m68k/m68k.md (ashldi_extsi): Turn into a
22845 define_insn_and_split.
22847 * ipa-inline.c (inline_small_functions): Fix typos.
22849 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22851 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
22852 (s390_can_use_return_insn): Declare.
22853 * config/s390/s390.h (EPILOGUE_USES): Define.
22854 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
22856 (s390_chunkify_start): Handle return JUMP_LABELs.
22857 (s390_early_mach): Emit a main_pool instruction on the entry edge.
22858 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
22859 (s390_can_use_return_insn): New functions.
22860 (s390_fix_long_loop_prediction): Handle conditional returns.
22861 (TARGET_SET_UP_BY_PROLOGUE): Define.
22862 * config/s390/s390.md (ANY_RETURN): New code iterator.
22863 (*creturn, *csimple_return, return, simple_return): New patterns.
22865 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22867 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
22868 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
22869 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
22870 REG_CFA_RESTORE list when deciding not to restore a register.
22872 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22874 * config/s390/s390.c: Include tree-pass.h and context.h.
22875 (s390_early_mach): New function, split out from...
22876 (s390_emit_prologue): ...here.
22877 (pass_data_s390_early_mach): New pass structure.
22878 (pass_s390_early_mach): New class.
22879 (s390_option_override): Create and register early_mach pass.
22880 Move to end of file.
22882 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22884 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
22885 to match for the exit block.
22887 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22889 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
22890 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
22891 Reject misaligned operands.
22893 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22895 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
22897 2014-02-07 Richard Biener <rguenther@suse.de>
22899 PR middle-end/60092
22900 * gimple-low.c (lower_builtin_posix_memalign): New function.
22901 (lower_stmt): Call it to lower posix_memalign in a way
22902 to make alignment info accessible.
22904 2014-02-07 Jakub Jelinek <jakub@redhat.com>
22907 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
22908 __builtin_setjmp_receiver.
22910 2014-02-07 Richard Biener <rguenther@suse.de>
22912 PR middle-end/60092
22913 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
22914 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
22915 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22916 Handle BUILT_IN_POSIX_MEMALIGN.
22917 (find_func_clobbers): Likewise.
22918 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22919 (call_may_clobber_ref_p_1): Likewise.
22921 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22924 * ipa-devirt.c (record_target_from_binfo): Remove overactive
22927 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22930 * lto-cgraph.c (lto_output_node): Use
22931 symtab_get_symbol_partitioning_class.
22932 (lto_output_varpool_node): likewise.
22933 (symtab_get_symbol_partitioning_class): Move here from
22934 lto/lto-partition.c
22935 * cgraph.h (symbol_partitioning_class): Likewise.
22936 (symtab_get_symbol_partitioning_class): Declare.
22938 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22940 * ggc.h (ggc_internal_cleared_alloc): New macro.
22941 * vec.h (vec_safe_copy): Handle memory stats.
22942 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
22943 * target-globals.c (save_target_globals): Likewise.
22945 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22948 * expr.c (emit_move_resolve_push): Export; be bit more selective
22949 on when to clear alias set.
22950 * expr.h (emit_move_resolve_push): Declare.
22951 * function.h (struct function): Add tail_call_marked.
22952 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
22953 * config/i386/i386-protos.h (ix86_expand_push): Remove.
22954 * config/i386/i386.md (TImode move expander): De not call
22956 (FP push expanders): Preserve memory attributes.
22957 * config/i386/sse.md (push<mode>1): Remove.
22958 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
22959 (ix86_expand_push): Remove.
22960 * config/i386/mmx.md (push<mode>1): Remove.
22962 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22964 PR rtl-optimization/60030
22965 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
22966 lopart with paradoxical subreg before shifting it up by hprec.
22968 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22970 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
22971 Remove extra newline at end of file.
22972 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
22973 (arm_issue_rate): Handle cortexa57.
22974 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
22975 (cortex-a57.cortex-a53): Likewise.
22977 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22980 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
22981 don't record in REG_FRAME_RELATED_EXPR registers not set in that
22983 (arm_expand_prologue): Adjust all callers.
22984 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
22985 info, registers also at the lowest numbered registers side. Use
22986 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
22990 * var-tracking.c (adjust_mems): Before adding a SET to
22991 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
22993 2014-02-06 Alan Modra <amodra@gmail.com>
22996 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
22997 change SDmode to DDmode when lra_in_progress.
22999 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23001 PR middle-end/59150
23002 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23003 free_data_ref on the dr first, and before goto again also set dr
23004 to the next dr. For simd_lane_access, free old datarefs[i] before
23005 overwriting it. For get_vectype_for_scalar_type failure, don't
23006 free_data_ref if simd_lane_access.
23008 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23011 * tree.h (opts_for_fn): New inline function.
23012 (opt_for_fn): Define.
23013 * config/i386/i386.c (ix86_function_regparm): Use
23014 opt_for_fn (decl, optimize) instead of optimize.
23016 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23018 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23019 for SYMBOL_REF in large memory model.
23021 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23023 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23024 and crypto support.
23025 (cortex-a57): Likewise.
23026 (cortex-a57.cortex-a53): Likewise.
23028 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23029 Kugan Vivekanandarajah <kuganv@linaro.org>
23031 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23033 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23035 2014-02-06 Richard Biener <rguenther@suse.de>
23037 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23038 set_loop_copy and initialize_original_copy_tables.
23040 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23042 * config/aarch64/aarch64-simd.md
23043 (aarch64_ashr_simddi): Change QI to SI.
23045 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23046 Jakub Jelinek <jakub@redhat.com>
23048 PR middle-end/60013
23049 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23052 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23054 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23055 CODE_FOR_altivec_vpku[hw]um to
23056 CODE_FOR_altivec_vpku[hw]um_direct.
23057 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23058 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23059 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23060 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23062 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23064 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23065 generation for -maltivec=be.
23066 (altivec_vsumsws): Simplify redundant test.
23068 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23070 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23071 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23072 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23073 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23074 gen_altivec_vpkuwum.
23075 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23077 (altivec_vpks<VI_char>ss): Likewise.
23078 (altivec_vpks<VI_char>us): Likewise.
23079 (altivec_vpku<VI_char>us): Likewise.
23080 (altivec_vpku<VI_char>um): Likewise.
23081 (altivec_vpku<VI_char>um_direct): New (copy of
23082 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23084 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23085 target is little endian and -maltivec=be is not specified.
23086 (*altivec_vupkhs<VU_char>_direct): New (copy of
23087 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23088 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23089 target is little endian and -maltivec=be is not specified.
23090 (*altivec_vupkls<VU_char>_direct): New (copy of
23091 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23092 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23093 little endian and -maltivec=be is not specified.
23094 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23095 little endian and -maltivec=be is not specified.
23097 2014-02-05 Richard Henderson <rth@redhat.com>
23100 * combine-stack-adj.c: Revert r206943.
23101 * sched-int.h (struct deps_desc): Add last_args_size.
23102 * sched-deps.c (init_deps): Initialize it.
23103 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23104 contain REG_ARGS_SIZE notes.
23106 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23108 * lto-cgraph.c (asm_nodes_output): Make global.
23109 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23110 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23111 (driver_handle_option): Handle OPT_fwpa.
23113 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23116 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23117 a comment typo and formatting issue. If odr_hash hasn't been
23118 created, return vNULL and set *completep to false.
23120 PR middle-end/57499
23121 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23122 bb with no successors.
23124 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23127 * doc/invoke.texi (-march): Clarify documentation for ARM.
23128 (-mtune): Likewise.
23131 2014-02-05 Richard Biener <rguenther@suse.de>
23133 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23134 when not vectorizing because of too many alias checks.
23135 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23136 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23138 2014-02-05 Nick Clifton <nickc@redhat.com>
23140 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23141 accept extended registers in any mode when compiling for the MN10300.
23143 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23145 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23146 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23147 sanitization attributes.
23148 (can_inline_edge_p): Likewise.
23149 (sanitize_attrs_match_for_inline_p): New function.
23151 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23153 * ipa-prop.c (detect_type_change): Shor circuit testing of
23154 type changes on THIS pointer.
23156 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23159 * config/pa/pa.c (legitimize_tls_address): Return original address
23160 if not passed a SYMBOL_REF rtx.
23161 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23163 (pa_emit_move_sequence): Simplify TLS source operands.
23164 (pa_legitimate_constant_p): Reject all TLS constants.
23165 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23166 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23168 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23170 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23171 groups when we know they are controlled by LTO.
23172 * varasm.c (default_binds_local_p_1): If object is in other partition,
23173 it will be resolved locally.
23175 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23177 * config/host-linux.c (linux_gt_pch_use_address): Don't
23178 use SSIZE_MAX because it is not always defined.
23180 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23183 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23184 threshold for pseudo splitting.
23185 (update_ebb_live_info): Process call argument hard registers and
23186 hard registers from insn definition too.
23187 (max_small_class_regs_num): New constant.
23188 (inherit_in_ebb): Update live hard regs through EBBs. Update
23189 reloads_num only for small register classes. Don't split for
23192 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23195 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23198 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23200 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23201 visibility is safe.
23203 2014-02-04 Marek Polacek <polacek@redhat.com>
23205 * gdbinit.in (pel): Define.
23207 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23209 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23212 2014-02-04 Richard Biener <rguenther@suse.de>
23215 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23216 in function context local.
23217 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23218 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23219 similar to LTO_imported_decl_ref.
23221 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23223 PR tree-optimization/60002
23224 * cgraphclones.c (build_function_decl_skip_args): Clear
23225 DECL_LANG_SPECIFIC.
23227 PR tree-optimization/60023
23228 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23229 false to gsi_replace.
23230 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23231 has been in some EH region and vec_stmt could throw, add
23232 vec_stmt into the same EH region.
23233 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23234 has no lhs, ignore it.
23235 * internal-fn.c (expand_MASK_LOAD): Likewise.
23238 * tree-inline.c (copy_forbidden): Fail for
23239 __attribute__((optimize (0))) functions.
23242 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23243 is set, copy one less argument.
23244 (expand_simd_clones): Don't subtract clone_info->inbranch
23245 from simd_clone_struct_alloc argument.
23247 PR rtl-optimization/57915
23248 * recog.c (simplify_while_replacing): If all unary/binary/relational
23249 operation arguments are constant, attempt to simplify those.
23251 PR middle-end/59261
23252 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23253 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23255 2014-02-04 Richard Biener <rguenther@suse.de>
23257 PR tree-optimization/60012
23258 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23259 TBAA disambiguation to all DDRs.
23261 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23264 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23265 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23267 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23270 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23272 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23274 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23275 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23277 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23280 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23281 to figure out targets of polymorphic calls with known decl.
23282 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23283 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23284 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23285 (get_polymorphic_call_info): ... here.
23286 (get_polymorphic_call_info_from_invariant): New function.
23288 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23290 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23291 lookup via vtable pointer; check for type consistency
23292 and turn inconsitent facts into UNREACHABLE.
23293 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23294 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23295 type inconsistent querries; return UNREACHABLE instead.
23297 2014-02-03 Richard Henderson <rth@twiddle.net>
23300 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23301 already processed this node.
23302 (normalize_one_pred_1): Pass along mark_set.
23303 (normalize_one_pred): Create and destroy a pointer_set_t.
23304 (normalize_one_pred_chain): Likewise.
23306 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23308 PR gcov-profile/58602
23309 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23311 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23314 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23315 -fno-devirtualize; try to devirtualize by the knowledge of
23316 virtual table pointer given by aggregate propagation.
23317 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23318 (ipa_print_node_jump_functions): Dump also offset that
23319 is relevant for polymorphic calls.
23320 (determine_known_aggregate_parts): Add arg_type parameter; use it
23321 instead of determining the type from pointer type.
23322 (ipa_compute_jump_functions_for_edge): Update call of
23323 determine_known_aggregate_parts.
23324 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23325 (gimple_get_virt_method_for_binfo): ... here; simplify using
23326 vtable_pointer_value_to_vtable.
23327 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23328 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23329 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23330 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23332 (vtable_pointer_value_to_binfo): ... here.
23333 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23335 2014-02-03 Teresa Johnson <tejohnson@google.com>
23337 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23338 redef of outer loop index variable.
23340 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23344 * doc/extend.texi (Function Attributes): Typo.
23346 2014-02-03 Cong Hou <congh@google.com>
23348 PR tree-optimization/60000
23349 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23350 if the vectorized statement is a store. A store statement can only
23351 appear at the end of pattern statements.
23353 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23355 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23356 (ix86_option_override_internal): Default long double to 64-bit for
23357 32-bit Bionic and to 128-bit for 64-bit Bionic.
23359 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23360 TARGET_LONG_DOUBLE_128 is true.
23361 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23363 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23364 (mlong-double-64): Negate -mlong-double-128.
23365 (mlong-double-128): New option.
23367 * config/i386/i386-c.c (ix86_target_macros): Define
23368 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23370 * doc/invoke.texi: Document -mlong-double-128.
23372 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23374 PR rtl-optimization/60024
23375 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23377 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23379 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23381 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23383 PR rtl-optimization/57662
23384 * sel-sched.c (code_motion_path_driver): Do not mark already not
23385 existing blocks in the visiting bitmap.
23387 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23389 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23390 on the insn being emitted.
23392 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
23393 Will Deacon <will.deacon@arm.com>
23395 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23397 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23399 * config/arm/arm-tables.opt: Regenerate.
23401 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23403 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
23404 for vector types other than V16QImode.
23405 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
23406 define_expand, and call altivec_expand_vec_perm_le when producing
23407 code with little endian element order.
23408 (*altivec_vperm_<mode>_internal): New insn having previous
23409 behavior of altivec_vperm_<mode>.
23410 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
23411 altivec_expand_vec_perm_le when producing code with little endian
23413 (*altivec_vperm_<mode>_uns_internal): New insn having previous
23414 behavior of altivec_vperm_<mode>_uns.
23416 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23418 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
23419 (altivec_vsumsws): Add handling for -maltivec=be with a little
23421 (altivec_vsumsws_direct): New.
23422 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
23423 gen_altivec_vsumsws.
23425 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23427 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
23428 vtable_pointer_value_to_binfo): New functions.
23429 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
23430 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
23432 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
23434 * config/nios2/nios2.md (load_got_register): Initialize GOT
23435 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
23436 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
23438 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23440 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
23441 preserverd by passthrough, do not propagate the type.
23443 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23445 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
23446 (mips_atomic_assign_expand_fenv): New function.
23447 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23449 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23451 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
23452 (__builtin_mips_set_fcsr): Likewise.
23453 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
23454 MIPS_USI_FTYPE_VOID.
23455 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
23456 (mips16_expand_set_fcsr): Likewise.
23457 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
23458 (mips16_set_fcsr_stub): Likewise.
23459 (mips16_get_fcsr_one_only_stub): New class.
23460 (mips16_set_fcsr_one_only_stub): Likewise.
23461 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
23462 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
23463 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
23464 (hard_float): New availability predicate.
23465 (mips_builtins): Add get_fcsr and set_fcsr.
23466 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
23467 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
23468 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
23469 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
23470 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
23473 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23475 * config/mips/mips.c (mips_one_only_stub): New class.
23476 (mips_need_mips16_rdhwr_p): Replace with...
23477 (mips16_rdhwr_stub): ...this new variable.
23478 (mips16_stub_call_address): New function.
23479 (mips16_rdhwr_one_only_stub): New class.
23480 (mips_expand_thread_pointer): Use mips16_stub_call_address.
23481 (mips_output_mips16_rdhwr): Delete.
23482 (mips_finish_stub): New function.
23483 (mips_code_end): Use it to handle rdhwr stubs.
23485 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
23488 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
23489 when calculating size of integer atomic types.
23491 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
23493 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
23495 2014-02-01 Jakub Jelinek <jakub@redhat.com>
23497 PR tree-optimization/60003
23498 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
23499 * profile.c (branch_prob): Use gimple_call_builtin_p
23500 to check for BUILT_IN_SETJMP_RECEIVER.
23501 * tree-inline.c (copy_bb): Call notice_special_calls.
23503 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
23506 * lra-constraints.c (process_alt_operands): Update reload_sum only
23509 2014-01-31 Richard Henderson <rth@redhat.com>
23511 PR middle-end/60004
23512 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
23513 until after else_eh is processed.
23515 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23517 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
23518 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
23519 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
23520 in smmintrin.h, remove them.
23521 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
23522 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
23523 * config/i386/i386.md (ROUND_SAE): Fix value.
23524 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
23525 (const48_operand): New.
23526 * config/i386/subst.md (round), (round_expand): Use
23527 const_4_or_8_to_11_operand.
23528 (round_saeonly), (round_saeonly_expand): Use const48_operand.
23530 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23532 * config/i386/constraints.md (Yk): Swap meaning with k.
23533 * config/i386/i386.md (movhi_internal): Change Yk to k.
23534 (movqi_internal): Ditto.
23535 (*k<logic><mode>): Ditto.
23538 (kandn<mode>): Ditto.
23539 (*<code>hi_1): Ditto.
23540 (*<code>qi_1): Ditto.
23541 (kxnor<mode>): Ditto.
23542 (kortestzhi): Ditto.
23543 (kortestchi): Ditto.
23545 (*one_cmplhi2_1): Ditto.
23546 (*one_cmplqi2_1): Ditto.
23547 * config/i386/sse.md (): Change k to Yk.
23548 (avx512f_load<mode>_mask): Ditto.
23549 (avx512f_blendm<mode>): Ditto.
23550 (avx512f_store<mode>_mask): Ditto.
23551 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
23552 (avx512f_storedqu<mode>_mask): Ditto.
23553 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
23555 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
23556 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
23557 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
23558 (avx512f_maskcmp<mode>3): Ditto.
23559 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
23560 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
23561 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
23562 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
23563 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
23564 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
23565 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
23566 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
23567 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
23568 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
23569 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
23570 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
23571 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
23572 (vec_extract_lo_<mode>_maskm): Ditto.
23573 (vec_extract_hi_<mode>_maskm): Ditto.
23574 (avx512f_vternlog<mode>_mask): Ditto.
23575 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
23576 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
23577 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
23578 (avx512f_<code>v8div16qi2_mask): Ditto.
23579 (avx512f_<code>v8div16qi2_mask_store): Ditto.
23580 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
23581 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
23582 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
23583 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
23584 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23585 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23586 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23587 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23588 (avx512cd_maskb_vec_dupv8di): Ditto.
23589 (avx512cd_maskw_vec_dupv16si): Ditto.
23590 (avx512f_vpermi2var<mode>3_maskz): Ditto.
23591 (avx512f_vpermi2var<mode>3_mask): Ditto.
23592 (avx512f_vpermi2var<mode>3_mask): Ditto.
23593 (avx512f_vpermt2var<mode>3_maskz): Ditto.
23594 (*avx512f_gathersi<mode>): Ditto.
23595 (*avx512f_gathersi<mode>_2): Ditto.
23596 (*avx512f_gatherdi<mode>): Ditto.
23597 (*avx512f_gatherdi<mode>_2): Ditto.
23598 (*avx512f_scattersi<mode>): Ditto.
23599 (*avx512f_scatterdi<mode>): Ditto.
23600 (avx512f_compress<mode>_mask): Ditto.
23601 (avx512f_compressstore<mode>_mask): Ditto.
23602 (avx512f_expand<mode>_mask): Ditto.
23603 * config/i386/subst.md (mask): Change k to Yk.
23604 (mask_scalar_merge): Ditto.
23607 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
23609 * doc/extend.texi (Vector Extensions): Document ?: in C++.
23611 2014-01-31 Richard Biener <rguenther@suse.de>
23613 PR middle-end/59990
23614 * builtins.c (fold_builtin_memory_op): Make sure to not
23615 use a floating-point mode or a boolean or enumeral type for
23616 the copy operation.
23618 2014-01-30 DJ Delorie <dj@redhat.com>
23620 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
23621 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
23622 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
23623 whenever main() has an epilogue.
23625 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23627 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
23628 unused variable "field".
23629 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
23630 (vsx_mergeh_<mode>): Likewise.
23631 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
23632 (altivec_vmrghh): Likewise.
23633 (altivec_vmrghw): Likewise.
23634 (altivec_vmrglb): Likewise.
23635 (altivec_vmrglh): Likewise.
23636 (altivec_vmrglw): Likewise.
23637 (altivec_vspltb): Add missing uses.
23638 (altivec_vsplth): Likewise.
23639 (altivec_vspltw): Likewise.
23640 (altivec_vspltsf): Likewise.
23642 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23645 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
23646 frame related instructions.
23648 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
23650 PR rtl-optimization/59959
23651 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
23652 any reload of register whose subreg is invalid.
23654 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23656 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
23657 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
23658 Add missing return type - void.
23660 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23662 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
23663 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
23664 remove element index adjustment for endian (now handled in vsx.md
23666 (altivec_expand_vec_perm_const): Use
23667 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
23668 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
23669 (vsx_xxspltw_<mode>): Adjust element index for little endian.
23670 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
23671 define_expand and a new define_insn *altivec_vspltb_internal;
23672 adjust for -maltivec=be on a little endian target.
23673 (altivec_vspltb_direct): New.
23674 (altivec_vsplth): Divide into a define_expand and a new
23675 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
23676 little endian target.
23677 (altivec_vsplth_direct): New.
23678 (altivec_vspltw): Divide into a define_expand and a new
23679 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
23680 little endian target.
23681 (altivec_vspltw_direct): New.
23682 (altivec_vspltsf): Divide into a define_expand and a new
23683 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
23684 a little endian target.
23686 2014-01-30 Richard Biener <rguenther@suse.de>
23688 PR tree-optimization/59993
23689 * tree-ssa-forwprop.c (associate_pointerplus): Check we
23690 can propagate form the earlier stmt and avoid the transform
23691 when the intermediate result is needed.
23693 2014-01-30 Alangi Derick <alangiderick@gmail.com>
23695 * README.Portability: Fix typo.
23697 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
23699 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
23700 comparison_operator with ordered_comparison_operator.
23702 2014-01-30 Nick Clifton <nickc@redhat.com>
23704 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
23705 Rename to mn10300_store_multiple_regs.
23706 * config/mn10300/mn10300.c: Likewise.
23707 * config/mn10300/mn10300.md (store_movm): Fix typo: call
23708 store_multiple_regs.
23709 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
23710 Call mn10300_store_multiple_regs.
23712 2014-01-30 Nick Clifton <nickc@redhat.com>
23713 DJ Delorie <dj@redhat.com>
23715 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
23716 %fp 2 to keep registers after it properly word-aligned.
23717 (rl78_alloc_physical_registers_umul): Handle the case where both
23718 input operands are the same.
23720 2014-01-30 Richard Biener <rguenther@suse.de>
23722 PR tree-optimization/59903
23723 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
23726 2014-01-30 Jason Merrill <jason@redhat.com>
23729 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
23732 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
23734 2014-01-30 Richard Biener <rguenther@suse.de>
23736 PR tree-optimization/59951
23737 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
23739 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
23742 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
23743 SFmode to DFmode case.
23745 2014-01-29 DJ Delorie <dj@redhat.com>
23747 * config/msp430/msp430.opt (-minrt): New.
23748 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
23750 (ENDFILE_SPEC): Likewise.
23752 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
23754 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
23755 (estimate_function_body_sizes): Use it.
23757 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
23760 * dwarf2out.c (is_cxx_auto): New.
23761 (is_base_type): Use it.
23762 (gen_type_die_with_usage): Likewise.
23764 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23766 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
23767 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
23768 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
23769 -maltivec=be with LE targets.
23770 (vsx_mergeh_<mode>): Likewise.
23771 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
23772 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
23773 (altivec_vmrghb): Replace with define_expand and new
23774 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
23775 (altivec_vmrghb_direct): New define_insn.
23776 (altivec_vmrghh): Replace with define_expand and new
23777 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
23778 (altivec_vmrghh_direct): New define_insn.
23779 (altivec_vmrghw): Replace with define_expand and new
23780 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
23781 (altivec_vmrghw_direct): New define_insn.
23782 (*altivec_vmrghsf): Adjust for endianness.
23783 (altivec_vmrglb): Replace with define_expand and new
23784 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
23785 (altivec_vmrglb_direct): New define_insn.
23786 (altivec_vmrglh): Replace with define_expand and new
23787 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
23788 (altivec_vmrglh_direct): New define_insn.
23789 (altivec_vmrglw): Replace with define_expand and new
23790 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
23791 (altivec_vmrglw_direct): New define_insn.
23792 (*altivec_vmrglsf): Adjust for endianness.
23793 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23794 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23795 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23796 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23797 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23798 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23799 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23800 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23802 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
23804 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
23805 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
23808 2014-01-29 Richard Biener <rguenther@suse.de>
23810 PR tree-optimization/58742
23811 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
23812 associate_pointerplus_align.
23813 (associate_pointerplus_diff): New function.
23814 (associate_pointerplus): Likewise. Call associate_pointerplus_align
23815 and associate_pointerplus_diff.
23817 2014-01-29 Richard Biener <rguenther@suse.de>
23819 * lto-streamer.h (LTO_major_version): Bump to 3.
23820 (LTO_minor_version): Reset to 0.
23822 2014-01-29 Renlin Li <Renlin.Li@arm.com>
23824 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
23825 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
23826 (arm_file_start): Generate correct asm header for armv7ve.
23827 * config/arm/bpabi.h: Add multilib support for armv7ve.
23828 * config/arm/driver-arm.c: Change the architectures of cortex-a7
23829 and cortex-a15 to armv7ve.
23830 * config/arm/t-aprofile: Add multilib support for armv7ve.
23831 * doc/invoke.texi: Document -march=armv7ve.
23833 2014-01-29 Richard Biener <rguenther@suse.de>
23835 PR tree-optimization/58742
23836 * tree-ssa-forwprop.c (associate_plusminus): Return true
23837 if we changed sth, defer EH cleanup to ...
23838 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
23839 (simplify_mult): New function.
23841 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23843 PR middle-end/59917
23844 PR tree-optimization/59920
23845 * tree.c (build_common_builtin_nodes): Remove
23846 __builtin_setjmp_dispatcher initialization.
23847 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
23848 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
23849 instead of gsi_after_labels + manually skipping debug stmts.
23850 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
23851 ignore bbs with IFN_ABNORMAL_DISPATCHER.
23852 * tree-inline.c (copy_edges_for_bb): Remove
23853 can_make_abnormal_goto argument, instead add abnormal_goto_dest
23854 argument. Ignore computed_goto_p stmts. Don't call
23855 make_abnormal_goto_edges. If a call might need abnormal edges
23856 for non-local gotos, see if it already has an edge to
23857 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
23858 with true argument, don't do anything then, otherwise add
23859 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
23860 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
23862 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
23863 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
23864 (lower_stmt): Don't set data->calls_builtin_setjmp.
23865 (lower_builtin_setjmp): Adjust comment.
23866 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
23867 * tree-cfg.c (found_computed_goto): Remove.
23868 (factor_computed_gotos): Remove.
23869 (make_goto_expr_edges): Return bool, true for computed gotos.
23870 Don't call make_abnormal_goto_edges.
23871 (build_gimple_cfg): Don't set found_computed_goto, don't call
23872 factor_computed_gotos.
23873 (computed_goto_p): No longer static.
23874 (make_blocks): Don't set found_computed_goto.
23875 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
23876 (make_edges): If make_goto_expr_edges returns true, push bb
23877 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
23878 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
23879 vector. Record mapping between bbs and OpenMP regions if there
23880 are any, adjust make_gimple_omp_edges caller. Call
23881 handle_abnormal_edges.
23882 (make_abnormal_goto_edges): Remove.
23883 * tree-cfg.h (make_abnormal_goto_edges): Remove.
23884 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
23885 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
23886 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
23887 * internal-fn.def (ABNORMAL_DISPATCHER): New.
23888 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
23889 filling *region also set *region_idx to (*region)->entry->index.
23892 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
23893 For REGs set ORIGINAL_REGNO.
23895 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
23897 * doc/md.texi: Mention that a target shouldn't implement
23898 vec_widen_(s|u)mul_even/odd pair if it is less efficient
23901 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23903 PR tree-optimization/59594
23904 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
23905 a copy of the datarefs vector rather than the vector itself.
23907 2014-01-28 Jason Merrill <jason@redhat.com>
23910 * dwarf2out.c (auto_die): New static.
23911 (gen_type_die_with_usage): Handle C++1y 'auto'.
23912 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
23915 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
23918 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
23919 (SPEC_X32): Likewise.
23920 (SPEC_64): Likewise.
23921 * config/i386/i386.c (ix86_option_override_internal): Turn off
23922 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
23924 (x86_file_start): Output .code16gcc for TARGET_16BIT.
23925 * config/i386/i386.h (TARGET_16BIT): New macro.
23926 (TARGET_16BIT_P): Likewise.
23927 * config/i386/i386.opt: Add m16.
23928 * doc/invoke.texi: Document -m16.
23930 2014-01-28 Jakub Jelinek <jakub@redhat.com>
23932 PR preprocessor/59935
23933 * input.c (location_get_source_line): Bail out on when line number
23934 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
23936 2014-01-28 Richard Biener <rguenther@suse.de>
23938 PR tree-optimization/58742
23939 * tree-ssa-forwprop.c (associate_plusminus): Handle
23940 pointer subtraction of the form (T)(P + A) - (T)P.
23942 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23944 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
23947 2014-01-28 Richard Biener <rguenther@suse.de>
23950 2014-01-28 Richard Biener <rguenther@suse.de>
23952 PR rtl-optimization/45364
23953 PR rtl-optimization/59890
23954 * var-tracking.c (local_get_addr_clear_given_value): Handle
23955 already cleared slot.
23956 (val_reset): Handle not allocated local_get_addr_cache.
23957 (vt_find_locations): Use post-order on the inverted CFG.
23959 2014-01-28 Richard Biener <rguenther@suse.de>
23961 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
23963 2014-01-28 Richard Biener <rguenther@suse.de>
23965 PR rtl-optimization/45364
23966 PR rtl-optimization/59890
23967 * var-tracking.c (local_get_addr_clear_given_value): Handle
23968 already cleared slot.
23969 (val_reset): Handle not allocated local_get_addr_cache.
23970 (vt_find_locations): Use post-order on the inverted CFG.
23972 2014-01-28 Alan Modra <amodra@gmail.com>
23974 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
23975 * configure.ac <recursive call for build != host>: Define
23976 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
23977 and LD_FOR_BUILD too.
23978 * configure: Regenerate.
23980 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
23982 * config/i386/i386.c (get_builtin_code_for_version): Separate
23983 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
23984 Broadwell from Haswell.
23986 2014-01-27 Steve Ellcey <sellcey@mips.com>
23988 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
23989 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
23990 * config/mips/mips.c (mips_option_override): Change setting
23992 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
23993 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
23994 Change from Mask to Var.
23996 2014-01-27 Jeff Law <law@redhat.com>
23998 * ipa-inline.c (inline_small_functions): Fix typo.
24000 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24002 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24003 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24004 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24005 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24006 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24007 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24008 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24009 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24010 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24011 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24012 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24013 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24014 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24015 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24016 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24017 (_mm512_storeu_epi64): Ditto.
24018 (_mm512_cmpge_epi32_mask): Ditto.
24019 (_mm512_cmpge_epu32_mask): Ditto.
24020 (_mm512_cmpge_epi64_mask): Ditto.
24021 (_mm512_cmpge_epu64_mask): Ditto.
24022 (_mm512_cmple_epi32_mask): Ditto.
24023 (_mm512_cmple_epu32_mask): Ditto.
24024 (_mm512_cmple_epi64_mask): Ditto.
24025 (_mm512_cmple_epu64_mask): Ditto.
24026 (_mm512_cmplt_epi32_mask): Ditto.
24027 (_mm512_cmplt_epu32_mask): Ditto.
24028 (_mm512_cmplt_epi64_mask): Ditto.
24029 (_mm512_cmplt_epu64_mask): Ditto.
24030 (_mm512_cmpneq_epi32_mask): Ditto.
24031 (_mm512_cmpneq_epu32_mask): Ditto.
24032 (_mm512_cmpneq_epi64_mask): Ditto.
24033 (_mm512_cmpneq_epu64_mask): Ditto.
24034 (_mm512_expand_pd): Ditto.
24035 (_mm512_expand_ps): Ditto.
24036 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24037 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24038 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24039 * config/i386/i386.c (ix86_builtins): Add
24040 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24041 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24042 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24043 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24044 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24045 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24046 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24047 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24048 IX86_BUILTIN_PMOVUSQW512_MEM.
24049 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24050 __builtin_ia32_pmovsqd512mem_mask,
24051 __builtin_ia32_pmovqd512mem_mask,
24052 __builtin_ia32_pmovusqw512mem_mask,
24053 __builtin_ia32_pmovsqw512mem_mask,
24054 __builtin_ia32_pmovqw512mem_mask,
24055 __builtin_ia32_pmovusdw512mem_mask,
24056 __builtin_ia32_pmovsdw512mem_mask,
24057 __builtin_ia32_pmovdw512mem_mask,
24058 __builtin_ia32_pmovqb512mem_mask,
24059 __builtin_ia32_pmovusqb512mem_mask,
24060 __builtin_ia32_pmovsqb512mem_mask,
24061 __builtin_ia32_pmovusdb512mem_mask,
24062 __builtin_ia32_pmovsdb512mem_mask,
24063 __builtin_ia32_pmovdb512mem_mask.
24064 (bdesc_args): Add __builtin_ia32_expanddf512,
24065 __builtin_ia32_expandsf512.
24066 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24067 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24068 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24069 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24070 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24071 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24072 (avx512f_<code>v8div16qi2_mask_store): This.
24073 (avx512f_expand<mode>): New.
24075 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24077 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24079 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24080 (_mm512_prefetch_i32scatter_pd): Ditto.
24081 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24082 (_mm512_prefetch_i64scatter_pd): Ditto.
24083 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24084 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24085 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24086 (_mm512_prefetch_i32scatter_ps): Ditto.
24087 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24088 (_mm512_prefetch_i64scatter_ps): Ditto.
24089 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24090 * config/i386/i386-builtin-types.def: Define
24091 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24092 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24093 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24094 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24095 IX86_BUILTIN_SCATTERPFQPD.
24096 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24097 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24098 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24099 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24100 __builtin_ia32_scatterpfqps.
24101 (ix86_expand_builtin): Expand new built-ins.
24102 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24103 fix memory access data type.
24104 (*avx512pf_gatherpf<mode>_mask): Ditto.
24105 (*avx512pf_gatherpf<mode>): Ditto.
24106 (avx512pf_scatterpf<mode>): Ditto.
24107 (*avx512pf_scatterpf<mode>_mask): Ditto.
24108 (*avx512pf_scatterpf<mode>): Ditto.
24109 (GATHER_SCATTER_SF_MEM_MODE): New.
24110 (avx512pf_gatherpf<mode>df): Ditto.
24111 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24112 (*avx512pf_scatterpf<mode>df): Ditto.
24114 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24117 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24118 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24121 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24123 * common/config/arm/arm-common.c
24124 (arm_rewrite_mcpu): Handle multiple names.
24126 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24128 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24130 * gimple-builder.h (create_gimple_tmp): Delete.
24132 2014-01-27 Christian Bruel <christian.bruel@st.com>
24134 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24137 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24139 * config/pa/pa.md (call): Generate indirect long calls to non-local
24140 functions when outputing 32-bit code.
24141 (call_value): Likewise except for special call to buggy powf function.
24143 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24144 portable runtime and PIC indirect calls.
24145 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24146 and PIC call sequences. Use ldo instead of blr to set return register
24147 in PIC call sequence.
24149 2014-01-25 Walter Lee <walt@tilera.com>
24151 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24152 avoid clobbering a live register.
24154 2014-01-25 Walter Lee <walt@tilera.com>
24156 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24157 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24158 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24159 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24161 2014-01-25 Walter Lee <walt@tilera.com>
24163 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24164 arguments on even registers.
24165 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24167 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24168 (BIGGEST_ALIGNMENT): Ditto.
24169 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24171 2014-01-25 Walter Lee <walt@tilera.com>
24173 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24174 insns before bundling.
24175 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24177 2014-01-25 Walter Lee <walt@tilera.com>
24179 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24180 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24181 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24183 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24185 * config/mips/constraints.md (kl): Delete.
24186 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24187 define expands, using...
24188 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24189 instructions for MIPS16.
24190 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24191 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24193 2014-01-25 Walter Lee <walt@tilera.com>
24195 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24199 2014-01-25 Walter Lee <walt@tilera.com>
24201 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24202 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24204 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24206 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24209 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24211 * print-rtl.c (in_call_function_usage): New var.
24212 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24213 EXPR_LIST mode as mode and not as reg note name.
24215 PR middle-end/59561
24216 * cfgloopmanip.c (copy_loop_info): If
24217 loop->warned_aggressive_loop_optimizations, make sure
24218 the flag is set in target loop too.
24220 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24222 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24224 * builtins.def: Likewise.
24225 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24226 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24227 * ira.c (ira_setup_eliminable_regset): Likewise.
24228 * omp-low.c (gate_expand_omp): Likewise.
24229 (execute_lower_omp): Likewise.
24230 (diagnose_sb_0): Likewise.
24231 (gate_diagnose_omp_blocks): Likewise.
24232 (simd_clone_clauses_extract): Likewise.
24235 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24237 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24238 correction for little endian...
24239 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24242 2014-01-24 Jeff Law <law@redhat.com>
24244 PR tree-optimization/59919
24245 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24246 for non-returning calls.
24248 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24250 * common/config/aarch64/aarch64-common.c
24251 (aarch64_rewrite_mcpu): Handle multiple names.
24252 * config/aarch64/aarch64.h
24253 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24255 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24257 * input.c (add_file_to_cache_tab): Handle the case where fopen
24260 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24263 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24264 from push operand if code of push isn't PRE_DEC.
24266 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24269 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24270 -mquad-memory-atomic. Update -mquad-memory documentation to say
24271 it is only used for non-atomic loads/stores.
24273 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24274 -mquad-memory or -mquad-memory-atomic switches.
24276 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24277 -mquad-memory-atomic to ISA 2.07 support.
24279 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24280 to separate support of normal quad word memory operations (ldq, stq)
24281 from the atomic quad word memory operations.
24283 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24284 support to separate non-atomic quad word operations from atomic
24285 quad word operations. Disable non-atomic quad word operations in
24286 little endian mode so that we don't have to swap words after the
24287 load and before the store.
24288 (quad_load_store_p): Add comment about atomic quad word support.
24289 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24290 options printed with -mdebug=reg.
24292 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24293 -mquad-memory-atomic as the test for whether we have quad word
24294 atomic instructions.
24295 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24296 or -mp8-vector are used, allow byte/half-word atomic operations.
24298 * config/rs6000/sync.md (load_lockedti): Insure that the address
24299 is a proper indexed or indirect address for the lqarx instruction.
24300 On little endian systems, swap the hi/lo registers after the lqarx
24302 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24303 insure the address is valid for the lqarx instruction.
24304 (store_conditionalti): Insure that the address is a proper indexed
24305 or indirect address for the stqcrx. instruction. On little endian
24306 systems, swap the hi/lo registers before doing the stqcrx.
24308 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24309 insure the address is valid for the stqcrx. instruction.
24311 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24312 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24313 type of quad memory support is available.
24315 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24317 PR regression/59915
24318 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24319 there is a danger of looping.
24321 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24323 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24324 force flag_ira_loop_pressure if set via command line.
24326 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24328 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24329 (ashr_simd): New builtin handling DI mode.
24330 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24331 (aarch64_sshr_simddi): New match pattern.
24332 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24333 (vshrd_n_s64): Likewise.
24334 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24336 2014-01-23 Nick Clifton <nickc@redhat.com>
24338 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24339 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24340 favour of mcu specific scripts.
24341 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24344 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24345 Alex Velenko <Alex.Velenko@arm.com>
24347 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24348 (vaddv_s16): Likewise.
24349 (vaddv_s32): Likewise.
24350 (vaddv_u8): Likewise.
24351 (vaddv_u16): Likewise.
24352 (vaddv_u32): Likewise.
24353 (vaddvq_s8): Likewise.
24354 (vaddvq_s16): Likewise.
24355 (vaddvq_s32): Likewise.
24356 (vaddvq_s64): Likewise.
24357 (vaddvq_u8): Likewise.
24358 (vaddvq_u16): Likewise.
24359 (vaddvq_u32): Likewise.
24360 (vaddvq_u64): Likewise.
24361 (vaddv_f32): Likewise.
24362 (vaddvq_f32): Likewise.
24363 (vaddvq_f64): Likewise.
24364 (vmaxv_f32): Likewise.
24365 (vmaxv_s8): Likewise.
24366 (vmaxv_s16): Likewise.
24367 (vmaxv_s32): Likewise.
24368 (vmaxv_u8): Likewise.
24369 (vmaxv_u16): Likewise.
24370 (vmaxv_u32): Likewise.
24371 (vmaxvq_f32): Likewise.
24372 (vmaxvq_f64): Likewise.
24373 (vmaxvq_s8): Likewise.
24374 (vmaxvq_s16): Likewise.
24375 (vmaxvq_s32): Likewise.
24376 (vmaxvq_u8): Likewise.
24377 (vmaxvq_u16): Likewise.
24378 (vmaxvq_u32): Likewise.
24379 (vmaxnmv_f32): Likewise.
24380 (vmaxnmvq_f32): Likewise.
24381 (vmaxnmvq_f64): Likewise.
24382 (vminv_f32): Likewise.
24383 (vminv_s8): Likewise.
24384 (vminv_s16): Likewise.
24385 (vminv_s32): Likewise.
24386 (vminv_u8): Likewise.
24387 (vminv_u16): Likewise.
24388 (vminv_u32): Likewise.
24389 (vminvq_f32): Likewise.
24390 (vminvq_f64): Likewise.
24391 (vminvq_s8): Likewise.
24392 (vminvq_s16): Likewise.
24393 (vminvq_s32): Likewise.
24394 (vminvq_u8): Likewise.
24395 (vminvq_u16): Likewise.
24396 (vminvq_u32): Likewise.
24397 (vminnmv_f32): Likewise.
24398 (vminnmvq_f32): Likewise.
24399 (vminnmvq_f64): Likewise.
24401 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24403 * config/aarch64/aarch64-simd.md
24404 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
24405 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
24406 (*aarch64_mul3_elt<mode>): Likewise.
24407 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
24408 (*aarch64_mul3_elt_to_64v2df): Likewise.
24409 (*aarch64_mla_elt<mode>): Likewise.
24410 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
24411 (*aarch64_mls_elt<mode>): Likewise.
24412 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
24413 (*aarch64_fma4_elt<mode>): Likewise.
24414 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
24415 (*aarch64_fma4_elt_to_64v2df): Likewise.
24416 (*aarch64_fnma4_elt<mode>): Likewise.
24417 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
24418 (*aarch64_fnma4_elt_to_64v2df): Likewise.
24419 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
24420 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
24421 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24422 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24423 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24424 (aarch64_sqdmull_lane<mode>_internal): Likewise.
24425 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24427 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
24429 * config/aarch64/aarch64-simd.md
24430 (aarch64_be_checked_get_lane<mode>): New define_expand.
24431 * config/aarch64/aarch64-simd-builtins.def
24432 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
24433 New builtin definition.
24434 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
24435 Use new safe be builtin.
24437 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24439 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
24441 (aarch64_be_st1<mode>): Likewise.
24442 (aarch_ld1<VALL:mode>): Define_expand modified.
24443 (aarch_st1<VALL:mode>): Likewise.
24444 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
24445 (UNSPEC_ST1): Likewise.
24447 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
24449 * config/microblaze/microblaze.md: Add trap insn and attribute
24451 2014-01-23 Dodji Seketeli <dodji@redhat.com>
24453 PR preprocessor/58580
24454 * input.h (location_get_source_line): Take an additional line_size
24456 (void diagnostics_file_cache_fini): Declare new function.
24457 * input.c (struct fcache): New type.
24458 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
24459 New static constants.
24460 (diagnostic_file_cache_init, total_lines_num)
24461 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
24462 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
24463 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
24464 (get_next_line, read_next_line, goto_next_line, read_line_num):
24465 New static function definitions.
24466 (diagnostic_file_cache_fini): New function.
24467 (location_get_source_line): Take an additional output line_len
24468 parameter. Re-write using lookup_or_add_file_to_cache_tab and
24470 * diagnostic.c (diagnostic_finish): Call
24471 diagnostic_file_cache_fini.
24472 (adjust_line): Take an additional input parameter for the length
24473 of the line, rather than calculating it with strlen.
24474 (diagnostic_show_locus): Adjust the use of
24475 location_get_source_line and adjust_line with respect to their new
24476 signature. While displaying a line now, do not stop at the first
24477 null byte. Rather, display the zero byte as a space and keep
24478 going until we reach the size of the line.
24479 * Makefile.in: Add vec.o to OBJS-libcommon
24481 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24482 Ilya Tocar <ilya.tocar@intel.com>
24484 * config/i386/avx512fintrin.h (_mm512_kmov): New.
24485 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
24486 (__builtin_ia32_kmov16): Ditto.
24487 * config/i386/i386.md (UNSPEC_KMOV): New.
24490 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24492 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
24493 (_mm512_storeu_si512): Ditto.
24495 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
24498 * rtl.h (get_referenced_operands): Declare.
24499 * recog.c (get_referenced_operands): New function.
24500 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
24501 operands have been referenced when recording LO_SUM references.
24503 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
24505 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
24507 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24509 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
24510 Enable for generic and recent AMD targets.
24512 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24514 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
24515 ARG_SIZE note when adjustment was eliminated.
24517 2014-01-22 Jeff Law <law@redhat.com>
24519 PR tree-optimization/59597
24520 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
24521 in file. Accept new argument REGISTERING and use it to modify
24522 dump output appropriately.
24523 (register_jump_thread): Corresponding changes.
24524 (mark_threaded_blocks): Reinstate code to cancel unprofitable
24525 thread paths involving joiner blocks. Add code to dump cancelled
24526 jump threading paths.
24528 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
24530 PR rtl-optimization/59477
24531 * lra-constraints.c (inherit_in_ebb): Process call for living hard
24532 regs. Update reloads_num and potential_reload_hard_regs for all insns.
24534 2014-01-22 Tom Tromey <tromey@redhat.com>
24536 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
24538 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
24540 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24542 PR rtl-optimization/59896
24543 * lra-constraints.c (process_alt_operands): Check unused note for
24544 matched operands of insn with no output reloads.
24546 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
24548 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
24549 (mips_move_from_gpr_cost): Likewise.
24551 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24553 PR rtl-optimization/59858
24554 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
24555 ira_class_hard_regs_num.
24556 (process_alt_operands): Increase reject for dying matched operand.
24558 2014-01-21 Jakub Jelinek <jakub@redhat.com>
24561 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
24562 smaller than size, perform several stores or loads and stores
24563 at dst + count - size to store or copy all of size bytes, rather
24564 than just last modesize bytes.
24566 2014-01-20 DJ Delorie <dj@redhat.com>
24568 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
24569 that CLOBBERs are REGs before propogating their values.
24571 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
24573 PR middle-end/59789
24574 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
24575 (cgraph_inline_failed_type): New function.
24576 * cgraph.h (DEFCIFCODE): Add type.
24577 (cgraph_inline_failed_type_t): New enum.
24578 (cgraph_inline_failed_type): New prototype.
24579 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
24580 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24581 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
24582 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
24583 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
24584 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
24585 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
24586 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
24587 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
24588 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
24589 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
24590 OPTIMIZATION_MISMATCH.
24591 * tree-inline.c (expand_call_inline): Emit errors during
24592 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
24594 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24597 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
24598 mode attribute in insn output.
24600 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
24602 * output.h (output_constant): Delete.
24603 * varasm.c (output_constant): Make private.
24605 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
24607 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
24609 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24611 PR middle-end/59860
24612 * tree.h (fold_builtin_strcat): New prototype.
24613 * builtins.c (fold_builtin_strcat): No longer static. Add len
24614 argument, if non-NULL, don't call c_strlen. Optimize
24615 directly into __builtin_memcpy instead of __builtin_strcpy.
24616 (fold_builtin_2): Adjust fold_builtin_strcat caller.
24617 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
24619 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24621 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24622 for SImode_address_operand operands, having only a REG argument.
24624 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
24626 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
24627 loader name using mbig-endian.
24628 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
24630 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24632 * doc/invoke.texi (-march): Clarify documentation for AArch64.
24633 (-mtune): Likewise.
24636 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
24638 * config/aarch64/aarch64-protos.h
24639 (aarch64_cannot_change_mode_class_ptr): Declare.
24640 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
24641 aarch64_cannot_change_mode_class_ptr): New.
24642 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
24643 backend hook aarch64_cannot_change_mode_class.
24645 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24647 * common/config/aarch64/aarch64-common.c
24648 (aarch64_handle_option): Don't handle any option order logic here.
24649 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
24650 selected_cpu, warn on architecture version mismatch.
24651 (aarch64_override_options): Fix parsing order for option strings.
24653 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24654 Iain Sandoe <iain@codesourcery.com>
24657 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
24658 warning. Amend comment to reflect current functionality.
24660 2014-01-20 Richard Biener <rguenther@suse.de>
24662 PR middle-end/59860
24663 * builtins.c (fold_builtin_strcat): Remove case better handled
24664 by tree-ssa-strlen.c.
24666 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
24668 * config/aarch64/aarch64.opt
24669 (mcpu, march, mtune): Make case-insensitive.
24671 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24674 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24675 if operands[1] is a REG or ZERO_EXTEND of a REG.
24677 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
24679 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
24681 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
24683 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
24684 long non-pic millicode calls.
24686 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24688 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
24690 2014-01-19 Kito Cheng <kito@0xlab.org>
24692 * builtins.c (expand_movstr): Check movstr expand done or fail.
24694 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24695 H.J. Lu <hongjiu.lu@intel.com>
24698 * config/i386/i386.md (*lea<mode>): Zero-extend return register
24699 to DImode for zero-extended addresses.
24701 2014-01-19 Jakub Jelinek <jakub@redhat.com>
24703 PR rtl-optimization/57763
24704 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
24705 on the new indirect jump_insn and increment LABEL_NUSES (label).
24707 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
24711 * config.gcc (x86_archs): New variable.
24712 (x86_64_archs): Likewise.
24713 (x86_cpus): Likewise.
24714 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
24715 --with-arch/--with-cpu= options.
24716 Support --with-arch=/--with-cpu={nehalem,westmere,
24717 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
24719 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24721 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
24722 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
24724 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24726 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
24728 2014-01-18 Jakub Jelinek <jakub@redhat.com>
24731 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
24732 clear cpp_get_options (parse_in)->warn_unused_macros for
24733 ix86_target_macros_internal with cpp_define.
24735 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
24737 * jump.c (delete_related_insns): Keep (use (insn))s.
24738 * reorg.c (redundant_insn): Check for barriers too.
24740 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24742 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
24744 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
24746 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
24747 call to $$dyncall when TARGET_LONG_CALLS is true.
24749 2014-01-17 Jeff Law <law@redhat.com>
24751 * ree.c (combine_set_extension): Temporarily disable test for
24752 changing number of hard registers.
24754 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24756 PR middle-end/58125
24757 * ipa-inline-analysis.c (inline_free_summary):
24758 Do not free summary of aliases.
24760 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24762 PR middle-end/59706
24763 * gimplify.c (gimplify_expr): Use create_tmp_var
24764 instead of create_tmp_var_raw. If cond doesn't have
24765 integral type, don't add the IFN_ANNOTATE builtin at all.
24767 2014-01-17 Martin Jambor <mjambor@suse.cz>
24770 * ipa-cp.c (prev_edge_clone): New variable.
24771 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
24772 Also resize prev_edge_clone vector.
24773 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
24774 (ipcp_edge_removal_hook): New function.
24775 (ipcp_driver): Register ipcp_edge_removal_hook.
24777 2014-01-17 Andrew Pinski <apinski@cavium.com>
24778 Steve Ellcey <sellcey@mips.com>
24781 * config/mips/mips.c (mips_print_operand): Check operand mode instead
24784 2014-01-17 Jeff Law <law@redhat.com>
24786 PR middle-end/57904
24787 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
24788 so that pass_ccp runs first.
24790 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24792 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
24793 (ix86_adjust_cost): Use !TARGET_XXX.
24794 (do_reorder_for_imul): Likewise.
24795 (swap_top_of_ready_list): Likewise.
24796 (ix86_sched_reorder): Likewise.
24798 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24800 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24801 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
24802 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
24803 (intel_memset): New. Duplicate slm_memset.
24804 (intel_cost): New. Duplicate slm_cost.
24805 (m_INTEL): New macro.
24806 (processor_target_table): Add "intel".
24807 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
24808 with PROCESSOR_INTEL for "intel".
24809 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
24810 PROCESSOR_SILVERMONT.
24811 (ix86_issue_rate): Likewise.
24812 (ix86_adjust_cost): Likewise.
24813 (ia32_multipass_dfa_lookahead): Likewise.
24814 (swap_top_of_ready_list): Likewise.
24815 (ix86_sched_reorder): Likewise.
24816 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
24817 instead of TARGET_OPT_AGU.
24818 * config/i386/i386.h (TARGET_INTEL): New.
24819 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
24820 (processor_type): Add PROCESSOR_INTEL.
24821 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
24822 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
24824 2014-01-17 Marek Polacek <polacek@redhat.com>
24827 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
24830 2014-01-17 Richard Biener <rguenther@suse.de>
24832 PR tree-optimization/46590
24833 * opts.c (default_options_table): Add entries for
24834 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
24835 all enabled at -O1 but not for -Og.
24836 * common.opt (fbranch-count-reg): Remove Init(1).
24837 (fmove-loop-invariants): Likewise.
24838 (ftree-pta): Likewise.
24840 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24842 * config/i386/i386.c (ix86_data_alignment): For compatibility with
24843 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
24844 decls to at least the GCC 4.8 used alignments.
24847 * tree-nested.c (convert_nonlocal_reference_stmt,
24848 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
24849 of GIMPLE_BIND stmts, adjust associated decls.
24851 2014-01-17 Richard Biener <rguenther@suse.de>
24853 PR tree-optimization/46590
24854 * vec.h (vec<>::bseach): New member function implementing
24855 binary search according to C89 bsearch.
24856 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
24857 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
24858 bitmap pointer again. Make accesses_in_loop a flat array.
24859 (mem_ref_obstack): New global.
24860 (outermost_indep_loop): Adjust for mem_ref->stored changes.
24861 (mark_ref_stored): Likewise.
24862 (ref_indep_loop_p_2): Likewise.
24863 (set_ref_stored_in_loop): New helper function.
24864 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
24865 (memref_free): Adjust.
24866 (record_mem_ref_loc): Simplify.
24867 (gather_mem_refs_stmt): Adjust.
24868 (sort_locs_in_loop_postorder_cmp): New function.
24869 (analyze_memory_references): Sort accesses_in_loop after
24870 loop postorder number.
24871 (find_ref_loc_in_loop_cmp): New function.
24872 (for_all_locs_in_loop): Find relevant cluster of locs in
24873 accesses_in_loop and iterate without recursion.
24874 (execute_sm): Avoid uninit warning.
24875 (struct ref_always_accessed): Simplify.
24876 (ref_always_accessed::operator ()): Likewise.
24877 (ref_always_accessed_p): Likewise.
24878 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
24879 loop postorder numbers here.
24880 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
24883 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24886 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
24887 on decls for which assemble_alias has been called.
24889 2014-01-17 Nick Clifton <nickc@redhat.com>
24891 * config/msp430/msp430.opt: (mcpu): New option.
24892 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
24893 (msp430_option_override): Parse target_cpu. If the MCU name
24894 matches a generic string, clear target_mcu.
24895 (msp430_attr): Allow numeric interrupt values up to 63.
24896 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
24897 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
24899 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
24901 * config/msp430/msp430.md (popm): Use %J rather than %I.
24902 (addsi3): Use msp430_nonimmediate_operand for operand 2.
24903 (addhi_cy_i): Use immediate_operand for operand 2.
24904 * doc/invoke.texi: Document -mcpu option.
24906 2014-01-17 Richard Biener <rguenther@suse.de>
24908 PR rtl-optimization/38518
24909 * df.h (df_analyze_loop): Declare.
24910 * df-core.c: Include cfgloop.h.
24911 (df_analyze_1): Split out main part of df_analyze.
24912 (df_analyze): Adjust.
24913 (loop_inverted_post_order_compute): New function.
24914 (loop_post_order_compute): Likewise.
24915 (df_analyze_loop): New function avoiding whole-function
24916 postorder computes.
24917 * loop-invariant.c (find_defs): Use df_analyze_loop.
24918 (find_invariants): Adjust.
24919 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
24921 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
24923 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
24924 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
24926 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
24928 * ipa-ref.c (ipa_remove_stmt_references): Fix references
24929 traversal when removing references.
24931 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
24934 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
24936 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
24938 PR middle-end/56791
24939 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
24940 pushing a reload for an autoinc when we had previously reloaded an
24941 inner part of the address.
24943 2014-01-16 Jakub Jelinek <jakub@redhat.com>
24945 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
24947 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
24948 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
24949 when not giving up or versioning for alias only because of
24951 (vect_analyze_data_ref_dependences): Set to true.
24952 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
24954 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
24955 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
24958 PR middle-end/58344
24959 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
24962 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
24963 operand 0 predicate for gathers, use a new pseudo as subtarget.
24965 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24967 PR middle-end/59609
24968 * lra-constraints.c (process_alt_operands): Add printing debug info.
24969 Check absence of input/output reloads for matched operands too.
24971 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24973 PR rtl-optimization/59835
24974 * ira.c (ira_init_register_move_cost): Increase cost for
24977 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
24979 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
24981 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
24984 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
24985 non-register objects. Use gen_(high/low)part more consistently.
24988 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
24991 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
24992 endian support, remove tests for WORDS_BIG_ENDIAN.
24993 (p8_mfvsrd_3_<mode>): Likewise.
24994 (reload_gpr_from_vsx<mode>): Likewise.
24995 (reload_gpr_from_vsxsf): Likewise.
24996 (p8_mfvsrd_4_disf): Likewise.
24998 2014-01-16 Richard Biener <rguenther@suse.de>
25000 PR rtl-optimization/46590
25001 * lcm.c (compute_antinout_edge): Use postorder iteration.
25002 (compute_laterin): Use inverted postorder iteration.
25004 2014-01-16 Nick Clifton <nickc@redhat.com>
25006 PR middle-end/28865
25007 * varasm.c (output_constant): Return the number of bytes actually
25009 (output_constructor_array_range): Update the field size with the
25010 number of bytes emitted by output_constant.
25011 (output_constructor_regular_field): Likewise. Also do not
25012 complain if the total number of bytes emitted is now greater
25013 than the expected fieldpos.
25014 * output.h (output_constant): Update prototype and descriptive comment.
25016 2014-01-16 Marek Polacek <polacek@redhat.com>
25018 PR middle-end/59827
25019 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25020 it is error_mark_node.
25022 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25024 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25025 VALID_AVX256_REG_OR_OI_MODE.
25027 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25029 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25030 current procedure should be profiled.
25032 2014-01-15 Andrew Pinski <apinski@cavium.com>
25034 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25035 of moving from/to the STACK_REG register class.
25037 2014-01-15 Richard Henderson <rth@redhat.com>
25040 * reginfo.c (global_regs_decl): Globalize.
25041 * rtl.h (global_regs_decl): Declare.
25042 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25043 reserved via global_regs.
25045 2014-01-15 Teresa Johnson <tejohnson@google.com>
25047 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25049 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25051 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25052 and vmulosh rather than call gen_vec_widen_smult_*.
25053 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25054 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25055 (vec_widen_smult_even_v16qi): Likewise.
25056 (vec_widen_umult_even_v8hi): Likewise.
25057 (vec_widen_smult_even_v8hi): Likewise.
25058 (vec_widen_umult_odd_v16qi): Likewise.
25059 (vec_widen_smult_odd_v16qi): Likewise.
25060 (vec_widen_umult_odd_v8hi): Likewise.
25061 (vec_widen_smult_odd_v8hi): Likewise.
25062 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25063 vmuloub rather than call gen_vec_widen_umult_*.
25064 (vec_widen_umult_lo_v16qi): Likewise.
25065 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25066 vmulosb rather than call gen_vec_widen_smult_*.
25067 (vec_widen_smult_lo_v16qi): Likewise.
25068 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25069 rather than call gen_vec_widen_umult_*.
25070 (vec_widen_umult_lo_v8hi): Likewise.
25071 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25072 rather than call gen_vec_widen_smult_*.
25073 (vec_widen_smult_lo_v8hi): Likewise.
25075 2014-01-15 Jeff Law <law@redhat.com>
25077 PR tree-optimization/59747
25078 * ree.c (find_and_remove_re): Properly handle case where a second
25079 eliminated extension requires widening a copy created for elimination
25080 of a prior extension.
25081 (combine_set_extension): Ensure that the number of hard regs needed
25082 for a destination register does not change when we widen it.
25084 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25086 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25087 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25088 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25089 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25090 (avr-*-rtems*): Likewise.
25091 (bfin*-rtems*): Likewise.
25092 (moxie-*-rtems*): Likewise.
25093 (h8300-*-rtems*): Likewise.
25094 (i[34567]86-*-rtems*): Likewise.
25095 (lm32-*-rtems*): Likewise.
25096 (m32r-*-rtems*): Likewise.
25097 (m68k-*-rtems*): Likewise.
25098 (microblaze*-*-rtems*): Likewise.
25099 (mips*-*-rtems*): Likewise.
25100 (powerpc-*-rtems*): Likewise.
25101 (sh-*-rtems*): Likewise.
25102 (sparc-*-rtems*): Likewise.
25103 (sparc64-*-rtems*): Likewise.
25104 (v850-*-rtems*): Likewise.
25105 (m32c-*-rtems*): Likewise.
25107 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25109 PR rtl-optimization/59511
25110 * ira.c (ira_init_register_move_cost): Use memory costs for some
25111 cases of register move cost calculations.
25112 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25113 instead of BB frequency.
25114 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25115 * lra-assigns.c (find_hard_regno_for): Ditto.
25117 2014-01-15 Richard Biener <rguenther@suse.de>
25119 PR tree-optimization/59822
25120 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25121 (vectorizable_load): Use it to hoist defs of uses of invariant
25122 loads out of the loop.
25124 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25125 Kugan Vivekanandarajah <kuganv@linaro.org>
25128 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25131 2014-01-15 Richard Biener <rguenther@suse.de>
25133 PR rtl-optimization/59802
25134 * lcm.c (compute_available): Use inverted postorder to seed
25135 the initial worklist.
25137 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25140 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25141 ADDR_REGS for invalid symrefs in non-PIC code.
25143 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25146 * builtins.c (determine_block_size): Initialize *probable_max_size
25147 even if len_rtx is CONST_INT.
25149 2014-01-14 Andrew Pinski <apinski@cavium.com>
25151 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25152 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25153 (cortexa53_tunings): Likewise.
25154 (aarch64_sched_issue_rate): New function.
25155 (TARGET_SCHED_ISSUE_RATE): Define.
25157 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25159 * ira-costs.c (find_costs_and_classes): Add missed
25160 ira_init_register_move_cost_if_necessary.
25162 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25165 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25167 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25170 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25171 to indicate if type is used for function return value. Warn ABI
25172 change if the vector mode isn't available for function return value.
25173 (ix86_function_arg_advance): Pass false to type_natural_mode.
25174 (ix86_function_arg): Likewise.
25175 (ix86_gimplify_va_arg): Likewise.
25176 (function_arg_32): Don't warn ABI change.
25177 (ix86_function_value): Pass true to type_natural_mode.
25178 (ix86_return_in_memory): Likewise.
25179 (ix86_struct_value_rtx): Removed.
25180 (TARGET_STRUCT_VALUE_RTX): Likewise.
25182 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25184 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25185 converting a conditional jump into a conditional return.
25187 2014-01-14 Richard Biener <rguenther@suse.de>
25189 PR tree-optimization/58921
25190 PR tree-optimization/59006
25191 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25192 hoisting invariant stmts.
25193 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25194 invariant loads on the preheader edge if possible.
25196 2014-01-14 Joey Ye <joey.ye@arm.com>
25198 * doc/plugin.texi (Building GCC plugins): Update to C++.
25200 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25202 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25203 (_mm_rcp28_round_ss): Ditto.
25204 (_mm_rsqrt28_round_sd): Ditto.
25205 (_mm_rsqrt28_round_ss): Ditto.
25206 (_mm_rcp28_sd): Ditto.
25207 (_mm_rcp28_ss): Ditto.
25208 (_mm_rsqrt28_sd): Ditto.
25209 (_mm_rsqrt28_ss): Ditto.
25210 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25211 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25212 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25213 (IX86_BUILTIN_RCP28SD): Ditto.
25214 (IX86_BUILTIN_RCP28SS): Ditto.
25215 (IX86_BUILTIN_RSQRT28SD): Ditto.
25216 (IX86_BUILTIN_RSQRT28SS): Ditto.
25217 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25218 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25219 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25220 (ix86_expand_special_args_builtin): Expand new FTYPE.
25221 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25222 (srcp14<mode>): Make insn unary.
25223 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25224 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25225 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25226 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25227 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25228 Fix rounding: make it SAE only.
25229 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25231 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25233 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25234 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25235 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25236 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25237 (round_saeonly_mask_scalar_operand4): Ditto.
25238 (round_saeonly_mask_scalar_op3): Ditto.
25239 (round_saeonly_mask_scalar_op4): Ditto.
25241 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25243 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25244 Implement -maltivec=be for vec_insert and vec_extract.
25246 2014-01-10 DJ Delorie <dj@redhat.com>
25248 * config/msp430/msp430.md (call_internal): Don't allow memory
25249 references with SP as the base register.
25250 (call_value_internal): Likewise.
25251 * config/msp430/constraints.md (Yc): New. For memory references
25252 that don't use SP as a base register.
25254 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25255 "an integer without a # prefix"
25256 * config/msp430/msp430.md (epilogue_helper): Use it.
25258 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25261 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25262 AVX512F gather builtins.
25263 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25264 on gather decls with INTEGER_TYPE masktype.
25265 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25266 directly into the builtin rather than hoisting it before loop.
25268 PR tree-optimization/59387
25269 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25270 (scev_const_prop): If folded_casts and type has undefined overflow,
25271 use force_gimple_operand instead of force_gimple_operand_gsi and
25272 for each added stmt if it is assign with
25273 arith_code_with_undefined_signed_overflow, call
25274 rewrite_to_defined_overflow.
25275 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25276 gimple-fold.h instead.
25277 (arith_code_with_undefined_signed_overflow,
25278 rewrite_to_defined_overflow): Moved to ...
25279 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25280 rewrite_to_defined_overflow): ... here. No longer static.
25281 Include gimplify-me.h.
25282 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25283 rewrite_to_defined_overflow): New prototypes.
25285 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25287 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25289 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25291 * builtins.c (get_object_alignment_2): Minor tweak.
25292 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25294 2014-01-13 Christian Bruel <christian.bruel@st.com>
25296 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25297 optimized non constant lengths.
25299 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25302 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25303 load as __atomic_load_N if possible.
25305 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25307 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25309 (rs6000_expand_builtin): Adjust call.
25311 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25314 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25315 * config/rs6000/rs6000.c: Include target-globals.h.
25316 (rs6000_set_current_function): Instead of doing target_reinit
25317 unconditionally, use save_target_globals_default_opts and
25318 restore_target_globals.
25320 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25322 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25323 (rs6000_expand_builtin): Handle mffs and mtfsf.
25324 (rs6000_init_builtins): Define mffs and mtfsf.
25325 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25326 (rs6000_mffs): New pattern.
25327 (rs6000_mtfsf): New pattern.
25329 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25331 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25332 Start narrowing with START. Apply candidate-use pair
25333 and check overall cost in narrowing.
25334 (iv_ca_prune): Pass new argument.
25336 2014-01-10 Jeff Law <law@redhat.com>
25338 PR middle-end/59743
25339 * ree.c (combine_reaching_defs): Ensure the defining statement
25340 occurs before the extension when optimizing extensions with
25341 different source and destination hard registers.
25343 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25346 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25347 vtables into the type inheritance graph.
25349 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25351 PR rtl-optimization/59754
25352 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25353 modes in the REGNO != REGNO case.
25355 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25357 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25359 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25361 PR tree-optimization/59745
25362 * tree-predcom.c (tree_predictive_commoning_loop): Call
25363 free_affine_expand_cache if giving up because components is NULL.
25365 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25366 GC in payload of target_globals struct instead of allocating them on
25367 the heap and the larger structs separately using GC.
25368 * target-globals.h (struct target_globals): Make regs, hard_regs,
25369 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25370 of GTY((skip)) and change type to void *.
25371 (reset_target_globals): Cast loads from those fields to corresponding
25374 2014-01-10 Steve Ellcey <sellcey@mips.com>
25377 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25378 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25379 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25381 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25384 * aarch64-modes.def (CC_Zmode): New flags mode.
25385 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25386 represents an equality.
25387 (aarch64_get_condition_code): Handle CC_Zmode.
25388 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25390 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25392 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25393 extraction in good case.
25395 2014-01-10 Richard Biener <rguenther@suse.de>
25397 PR tree-optimization/59374
25398 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25399 checking after SLP discovery. Mark stmts not participating
25400 in any SLP instance properly.
25402 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25404 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
25405 when handling a SET rtx.
25407 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25409 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
25410 (cortex-a57): Likewise.
25411 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
25413 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25415 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
25416 non-iwmmxt builtins.
25418 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25422 * ipa-devirt.c record_target_from_binfo): Take as argument
25423 stack of binfos and lookup matching one for virtual inheritance.
25424 (possible_polymorphic_call_targets_1): Update.
25426 2014-01-10 Huacai Chen <chenhc@lemote.com>
25428 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
25429 kernel strings for Loongson-2E/2F/3A.
25431 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25433 PR middle-end/59670
25434 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
25435 is_gimple_call before calling gimple_call_internal_p.
25437 2014-01-09 Steve Ellcey <sellcey@mips.com>
25439 * Makefile.in (TREE_FLOW_H): Remove.
25440 (TREE_SSA_H): Add file names from tree-flow.h.
25441 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
25442 * tree.h: Remove tree-flow.h reference.
25443 * hash-table.h: Remove tree-flow.h reference.
25444 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
25445 reference with tree-ssa-loop.h.
25447 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25449 * doc/invoke.texi: Add -maltivec={be,le} options, and document
25450 default element-order behavior for -maltivec.
25451 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
25452 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
25453 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
25454 when targeting big endian, at least for now.
25455 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
25457 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25459 PR middle-end/47735
25460 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
25461 var satisfies use_register_for_decl, just take into account type
25462 alignment, rather than decl alignment.
25464 PR tree-optimization/59622
25465 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
25466 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
25467 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
25468 Don't devirtualize for inplace at all. For targets.length () == 1,
25469 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
25471 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25473 * config/i386/i386.md (cpu): Remove the unused btver1.
25475 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25477 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
25479 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25482 * tree-core.h (struct target_globals): New forward declaration.
25483 (struct tree_target_option): Add globals field.
25484 * tree.h (TREE_TARGET_GLOBALS): Define.
25485 (prepare_target_option_nodes_for_pch): New prototype.
25486 * target-globals.h (struct target_globals): Define even if
25487 !SWITCHABLE_TARGET.
25488 * tree.c (prepare_target_option_node_for_pch,
25489 prepare_target_option_nodes_for_pch): New functions.
25490 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
25491 * config/i386/i386.c: Include target-globals.h.
25492 (ix86_set_current_function): Instead of doing target_reinit
25493 unconditionally, use save_target_globals_default_opts and
25494 restore_target_globals.
25496 2014-01-09 Richard Biener <rguenther@suse.de>
25498 PR tree-optimization/59715
25499 * tree-cfg.h (split_critical_edges): Declare.
25500 * tree-cfg.c (split_critical_edges): Export.
25501 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
25503 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
25505 * cfgexpand.c (expand_stack_vars): Optionally disable
25506 asan stack protection.
25507 (expand_used_vars): Likewise.
25508 (partition_stack_vars): Likewise.
25509 * asan.c (asan_emit_stack_protection): Optionally disable
25510 after return stack usage.
25511 (instrument_derefs): Optionally disable memory access instrumentation.
25512 (instrument_builtin_call): Likewise.
25513 (instrument_strlen_call): Likewise.
25514 (asan_protect_global): Optionally disable global variables protection.
25515 * doc/invoke.texi: Added doc for new options.
25516 * params.def: Added new options.
25517 * params.h: Likewise.
25519 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25521 PR rtl-optimization/59724
25522 * ifcvt.c (cond_exec_process_if_block): Don't call
25523 flow_find_head_matching_sequence with 0 longest_match.
25524 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
25525 non-active insns if !stop_after.
25526 (try_head_merge_bb): Revert 2014-01-07 changes.
25528 2014-01-08 Jeff Law <law@redhat.com>
25530 * ree.c (get_sub_rtx): New function, extracted from...
25531 (merge_def_and_ext): Here.
25532 (combine_reaching_defs): Use get_sub_rtx.
25534 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
25536 * cgraph.h (varpool_variable_node): Do not choke on null node.
25538 2014-01-08 Catherine Moore <clm@codesourcery.com>
25540 * config/mips/mips.md (simple_return): Attempt to use JRC
25542 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
25544 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25546 PR rtl-optimization/59137
25547 * reorg.c (steal_delay_list_from_target): Call update_block for
25549 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
25551 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25553 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25554 two duplicate entries.
25556 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25559 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
25561 * config/mips/mips.c (mips_truncated_op_cost): New function.
25562 (mips_rtx_costs): Adjust test for BADDU.
25563 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
25565 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25567 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
25568 (*baddu_si): ...this new pattern.
25570 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25573 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
25575 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
25577 PR middle-end/57748
25578 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
25580 (expand_expr, expand_normal): Adjust.
25581 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
25582 inner_reference_p. Use inner_reference_p to expand inner references.
25583 (store_expr): Adjust.
25584 * cfgexpand.c (expand_call_stmt): Adjust.
25586 2014-01-08 Rong Xu <xur@google.com>
25588 * gcov-io.c (gcov_var): Move from gcov-io.h.
25589 (gcov_position): Ditto.
25590 (gcov_is_error): Ditto.
25591 (gcov_rewrite): Ditto.
25592 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
25593 only part to libgcc/libgcov.h.
25595 2014-01-08 Marek Polacek <polacek@redhat.com>
25597 PR middle-end/59669
25598 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
25600 2014-01-08 Marek Polacek <polacek@redhat.com>
25603 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
25605 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25607 PR rtl-optimization/59649
25608 * stor-layout.c (get_mode_bounds): For BImode return
25609 0 and STORE_FLAG_VALUE.
25611 2014-01-08 Richard Biener <rguenther@suse.de>
25613 PR middle-end/59630
25614 * gimple.h (is_gimple_builtin_call): Remove.
25615 (gimple_builtin_call_types_compatible_p): New.
25616 (gimple_call_builtin_p): New overload.
25617 * gimple.c (is_gimple_builtin_call): Remove.
25618 (validate_call): Rename to ...
25619 (gimple_builtin_call_types_compatible_p): ... this and export. Also
25620 check return types.
25621 (validate_type): New static function.
25622 (gimple_call_builtin_p): New overload and adjust.
25623 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
25624 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
25625 (gimple_fold_stmt_to_constant_1): Likewise.
25626 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
25628 2014-01-08 Richard Biener <rguenther@suse.de>
25630 PR middle-end/59471
25631 * gimplify.c (gimplify_expr): Gimplify register-register type
25632 VIEW_CONVERT_EXPRs to separate stmts.
25634 2014-01-07 Jeff Law <law@redhat.com>
25636 PR middle-end/53623
25637 * ree.c (combine_set_extension): Handle case where source
25638 and destination registers in an extension insn are different.
25639 (combine_reaching_defs): Allow source and destination registers
25640 in extension to be different under limited circumstances.
25641 (add_removable_extension): Remove restriction that the
25642 source and destination registers in the extension are the same.
25643 (find_and_remove_re): Emit a copy from the extension's
25644 destination to its source after the defining insn if
25645 the source and destination registers are different.
25647 PR middle-end/59285
25648 * ifcvt.c (merge_if_block): If we are merging a block with more than
25649 one successor with a block with no successors, remove any BARRIER
25650 after the second block.
25652 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
25654 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
25656 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
25659 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
25660 for 14-bit register offsets when INT14_OK_STRICT is false.
25662 2014-01-07 Roland Stigge <stigge@antcom.de>
25663 Michael Meissner <meissner@linux.vnet.ibm.com>
25666 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
25667 Only check TFmode for SPE constants. Don't check TImode or TDmode.
25669 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
25671 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
25674 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
25676 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
25677 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
25678 rtx is const0_rtx or not.
25680 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
25683 * target-globals.c (save_target_globals): Remove this_fn_optab
25685 * toplev.c: Include optabs.h.
25686 (target_reinit): Temporarily restore the global options if another
25687 set of options are in force.
25689 2014-01-07 Jakub Jelinek <jakub@redhat.com>
25691 PR rtl-optimization/58668
25692 * cfgcleanup.c (flow_find_cross_jump): Don't count
25693 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
25694 to determine what is counted.
25695 (flow_find_head_matching_sequence): Use active_insn_p to determine
25697 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
25699 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
25700 determine what is counted.
25702 PR tree-optimization/59643
25703 * tree-predcom.c (split_data_refs_to_components): If one dr is
25704 read and one write, determine_offset fails and the write isn't
25705 in the bad component, just put the read into the bad component.
25707 2014-01-07 Mike Stump <mikestump@comcast.net>
25708 Jakub Jelinek <jakub@redhat.com>
25711 * tree-core.h (struct tree_optimization_option): Change optabs
25712 type from unsigned char * to void *.
25713 * optabs.c (init_tree_optimization_optabs): Adjust
25714 TREE_OPTIMIZATION_OPTABS initialization.
25716 2014-01-06 Jakub Jelinek <jakub@redhat.com>
25719 * config/i386/i386.h (struct machine_function): Add
25720 no_drap_save_restore field.
25721 * config/i386/i386.c (ix86_save_reg): Use
25722 !cfun->machine->no_drap_save_restore instead of
25723 crtl->stack_realign_needed.
25724 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
25725 this function clears frame_pointer_needed. Set
25726 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
25727 and DRAP reg is needed.
25729 2014-01-06 Marek Polacek <polacek@redhat.com>
25732 * doc/implement-c.texi: Mention that other integer types are
25733 permitted as bit-field types in strictly conforming mode.
25735 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
25737 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
25738 is newly allocated.
25740 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
25742 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
25744 2014-01-06 Martin Jambor <mjambor@suse.cz>
25747 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
25749 * ipa-prop.c (ipa_print_node_params): Fix indentation.
25751 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
25755 * var-tracking.c (add_stores): Preserve the value of the source even if
25756 we don't record the store.
25758 2014-01-06 Terry Guo <terry.guo@arm.com>
25760 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
25762 2014-01-05 Iain Sandoe <iain@codesourcery.com>
25765 * config/darwin.c (darwin_function_section): Adjust return values to
25766 correspond to optimisation changes made in r206070.
25768 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
25770 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
25771 from prefetch_block tune setting.
25772 (nocona_cost): Correct size of prefetch block to 64.
25774 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
25776 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
25777 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
25778 used to save the static chain register in the computation of the offset
25779 from which the FP registers need to be restored.
25781 2014-01-04 Jakub Jelinek <jakub@redhat.com>
25783 PR tree-optimization/59519
25784 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
25785 ICE if get_current_def (current_new_name) is already non-NULL, as long
25786 as it is a phi result of some other phi in *new_exit_bb that has
25789 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
25790 or vmovdqu* for misaligned_operand.
25791 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
25792 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
25793 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
25794 aligned_mem for AVX512F masked aligned load and store builtins and for
25795 non-temporal moves.
25797 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
25799 PR tree-optimization/59651
25800 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
25801 Address range for negative step should be added by TYPE_SIZE_UNIT.
25803 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
25805 * config/m68k/m68k.c (handle_move_double): Handle pushes with
25806 overlapping registers also for registers other than the stack pointer.
25808 2014-01-03 Marek Polacek <polacek@redhat.com>
25811 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
25814 2014-01-03 Jakub Jelinek <jakub@redhat.com>
25817 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
25820 * config/i386/i386.md (MODE_SIZE): New mode attribute.
25821 (push splitter): Use <P:MODE_SIZE> instead of
25822 GET_MODE_SIZE (<P:MODE>mode).
25823 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
25824 (mov -1, reg peephole2): Likewise.
25825 * config/i386/sse.md (*mov<mode>_internal,
25826 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
25827 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
25828 *<code><mode>3, *andnot<mode>3<mask_name>,
25829 <mask_codefor><code><mode>3<mask_name>): Likewise.
25830 * config/i386/subst.md (mask_mode512bit_condition,
25831 sd_mask_mode512bit_condition): Likewise.
25833 2014-01-02 Xinliang David Li <davidxl@google.com>
25835 PR tree-optimization/59303
25836 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
25837 (dump_predicates): Better output format.
25838 (pred_equal_p): New function.
25839 (is_neq_relop_p): Ditto.
25840 (is_neq_zero_form_p): Ditto.
25841 (pred_expr_equal_p): Ditto.
25842 (pred_neg_p): Ditto.
25843 (simplify_pred): Ditto.
25844 (simplify_preds_2): Ditto.
25845 (simplify_preds_3): Ditto.
25846 (simplify_preds_4): Ditto.
25847 (simplify_preds): Ditto.
25848 (push_pred): Ditto.
25849 (push_to_worklist): Ditto.
25850 (get_pred_info_from_cmp): Ditto.
25851 (is_degenerated_phi): Ditto.
25852 (normalize_one_pred_1): Ditto.
25853 (normalize_one_pred): Ditto.
25854 (normalize_one_pred_chain): Ditto.
25855 (normalize_preds): Ditto.
25856 (normalize_cond_1): Remove function.
25857 (normalize_cond): Ditto.
25858 (is_gcond_subset_of): Ditto.
25859 (is_subset_of_any): Ditto.
25860 (is_or_set_subset_of): Ditto.
25861 (is_and_set_subset_of): Ditto.
25862 (is_norm_cond_subset_of): Ditto.
25863 (pred_chain_length_cmp): Ditto.
25864 (convert_control_dep_chain_into_preds): Type change.
25865 (find_predicates): Ditto.
25866 (find_def_preds): Ditto.
25867 (destroy_predicates_vecs): Ditto.
25868 (find_matching_predicates_in_rest_chains): Ditto.
25869 (use_pred_not_overlap_with_undef_path_pred): Ditto.
25870 (is_pred_expr_subset): Ditto.
25871 (is_pred_chain_subset_of): Ditto.
25872 (is_included_in): Ditto.
25873 (is_superset_of): Ditto.
25875 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25877 Update copyright years.
25879 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25881 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
25882 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
25883 config/arc/arc.md, config/arc/arc.opt,
25884 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
25885 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
25886 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
25887 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
25888 config/linux-protos.h, config/linux.c, config/winnt-c.c,
25889 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
25890 vtable-verify.c, vtable-verify.h: Use the standard form for the
25893 2014-01-02 Tobias Burnus <burnus@net-b.de>
25895 * gcc.c (process_command): Update copyright notice dates.
25896 * gcov-dump.c: Ditto.
25898 * doc/cpp.texi: Bump @copying's copyright year.
25899 * doc/cppinternals.texi: Ditto.
25900 * doc/gcc.texi: Ditto.
25901 * doc/gccint.texi: Ditto.
25902 * doc/gcov.texi: Ditto.
25903 * doc/install.texi: Ditto.
25904 * doc/invoke.texi: Ditto.
25906 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25908 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
25910 2014-01-01 Jakub Jelinek <jakub@redhat.com>
25912 * config/i386/sse.md (*mov<mode>_internal): Guard
25913 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
25915 PR rtl-optimization/59647
25916 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
25917 new_rtx into UNSIGNED_FLOAT rtxes.
25919 Copyright (C) 2014 Free Software Foundation, Inc.
25921 Copying and distribution of this file, with or without modification,
25922 are permitted in any medium without royalty provided the copyright
25923 notice and this notice are preserved.