1 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
4 from rtx to rtx_insn *.
5 (VINSN_INSN_RTX): Eliminate rvalue function and...
6 (SET_VINSN_INSN): ...lvalue function in favor of...
7 (VINSN_INSN_RTX): reinstate this old macro.
9 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10 in favor of VINSN_INSN_RTX.
11 (VINSN_INSN_RTX): Delete this function.
12 (SET_VINSN_INSN_RTX): Likewise.
14 2014-08-26 David Malcolm <dmalcolm@redhat.com>
16 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
17 (BND_TO): Delete this function and...
18 (SET_BND_TO): ...this functions in favor of...
19 (BND_TO): ...reinstating this macro.
20 (struct _fence): Strengthen field "executing_insns" from
21 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
22 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
23 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
24 and param "insn" from rtx to insn_t.
25 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
28 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
30 (rtx_vec_t): Likewise.
31 (struct sched_deps_info_def): Strengthen param of "start_insn"
32 callback from rtx to rtx_insn *. Likewise for param "insn2" of
33 "note_mem_dep" callback and first param of "note_dep" callback.
35 * haifa-sched.c (add_to_speculative_block): Strengthen param
36 "insn" from rtx to rtx_insn *.
37 (clear_priorities): Likewise.
38 (calc_priorities): Likewise for local "insn".
40 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
41 Remove redundant checked cast.
42 (haifa_note_mem_dep): Likewise for param "pending_insn".
43 (haifa_note_dep): Likewise for param "elem".
44 (note_mem_dep): Likewise for param "e".
45 (sched_analyze_1): Add checked casts.
46 (sched_analyze_2): Likewise.
48 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
49 from rtx to rtx_insn *.
50 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
51 from vec<rtx> * to vec<rtx_insn *> *.
53 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
55 (flist_add): Strengthen param "executing_insns" from
56 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
57 (advance_deps_context): Remove now-redundant checked cast.
58 (init_fences): Replace uses of NULL_RTX with NULL.
59 (merge_fences): Strengthen params "last_scheduled_insn" and
60 "sched_next" from rtx to rtx_insn * and "executing_insns" from
61 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
62 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
63 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
64 an instruction, rather than doing double-duty as a pattern.
65 (return_nop_to_pool): Update for change of insn_t.
66 (deps_init_id): Remove now-redundant checked cast.
67 (struct sched_scan_info_def): Strengthen param of "init_insn"
68 callback from rtx to insn_t.
69 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
70 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
72 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
73 "end" from rtx to rtx_insn *.
74 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
75 (rtx insn_rtx, bool force_unique_p)
76 (BND_TO): Delete function.
77 (SET_BND_TO): Delete function.
79 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
81 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
82 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
84 (undo_transformations): Likewise for param "insn".
85 (update_liveness_on_insn): Likewise.
86 (compute_live_below_insn): Likewise for param "insn" and local
88 (update_data_sets): Likewise for param "insn".
89 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
90 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
91 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
93 (move_cond_jump): Likewise for param "insn".
94 (move_cond_jump): Drop use of SET_BND_TO.
95 (compute_av_set_on_boundaries): Likewise.
96 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
97 (update_and_record_unavailable_insns): Strengthen local "bb_end"
98 from rtx to rtx_insn *.
99 (maybe_emit_renaming_copy): Likewise for param "insn".
100 (maybe_emit_speculative_check): Likewise.
101 (handle_emitting_transformations): Likewise.
102 (remove_insn_from_stream): Likewise.
103 (code_motion_process_successors): Strengthen local "succ" from rtx
106 2014-08-26 David Malcolm <dmalcolm@redhat.com>
108 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
109 ilist_t, not _xlist_t;
110 (ILIST_INSN): Define in terms of new union field "insn".
111 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
113 (struct _list_node): Add new field "insn" to the union, of type
115 (ilist_add): Replace macro with an inline function, requiring an
117 (ilist_remove): Define this macro directly in terms of
118 _list_remove, rather than indirectly via _xlist_remove.
119 (ilist_clear): Likewise, in terms of _list_clear rather than
121 (ilist_is_in_p): Replace macro with an inline function, requiring
123 (_list_iter_cond_insn): New function.
124 (ilist_iter_remove): Define this macro directly in terms of
125 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
126 (ilist_iterator): Define directly in terms of _list_iterator
127 rather than indirectly through _xlist_iterator.
128 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
129 than in terms of _FOR_EACH_X.
130 (FOR_EACH_INSN_1): Likewise.
132 2014-08-26 Joseph Myers <joseph@codesourcery.com>
136 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
137 DECL_HARD_REGISTER and return for invalid register specifications.
138 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
139 DECL_HARD_REGISTER, call expand_one_error_var.
140 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
141 CC_REGNUM with non-MODE_CC modes.
142 (arm_regno_class): Return NO_REGS for PC_REGNUM.
144 2014-08-26 Marek Polacek <polacek@redhat.com>
147 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
149 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
151 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
152 qi cost; add di cost.
153 (cortexa57_addrcost_table): Likewise.
155 2014-08-26 Marek Polacek <polacek@redhat.com>
158 * expr.c (is_aligning_offset): Remove logical not.
160 2014-08-26 Marek Polacek <polacek@redhat.com>
163 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
164 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
166 2014-08-26 Richard Biener <rguenther@suse.de>
168 PR tree-optimization/62175
169 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
170 expand possibly trapping operations.
172 2014-08-26 David Malcolm <dmalcolm@redhat.com>
174 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
175 "insn" from rtx to rtx_insn *.
176 (permute_load): Likewise for param "insn".
177 (permute_store): Likewise.
178 (handle_special_swappables): Likewise for local "insn".
179 (replace_swap_with_copy): Likewise for locals "insn" and
181 (rs6000_analyze_swaps): Likewise for local "insn".
183 2014-08-25 David Malcolm <dmalcolm@redhat.com>
185 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
188 2014-08-25 David Malcolm <dmalcolm@redhat.com>
190 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
191 "note_list" from rtx to rtx_insn *.
192 (BB_NOTE_LIST): Replace this function and...
193 (SET_BB_NOTE_LIST): ...this function with...
194 (BB_NOTE_LIST): ...the former macro implementation.
196 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
197 local "from_start" from rtx to rtx_insn *. Strengthen param
198 "to_endp" from rtx * to rtx_insn **.
200 * haifa-sched.c (concat_note_lists): Likewise.
201 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
203 (sel_restore_notes): Likewise.
204 (move_bb_info): Likewise.
205 (BB_NOTE_LIST): Delete this function.
206 (SET_BB_NOTE_LIST): Delete this function.
207 * sel-sched.c (create_block_for_bookkeeping): Eliminate
208 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
210 2014-08-25 David Malcolm <dmalcolm@redhat.com>
212 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
213 from rtx * to rtx_insn **.
214 (reorder2): Likewise.
215 (dependencies_evaluation_hook): Strengthen params "head", "tail"
216 from rtx to rtx_insn *.
218 * doc/tm.texi: Update mechanically for above change to target.def.
220 * sched-int.h (note_list): Strengthen this variable from rtx to
222 (remove_notes): Likewise for both params.
223 (restore_other_notes): Likewise for return type and first param.
224 (struct ready_list): Strengthen field "vec" from rtx * to
226 (struct dep_replacement): Strenghten field "insn" from rtx to
228 (struct deps_desc): Likewise for fields "last_debug_insn",
230 (struct haifa_sched_info): Likewise for callback field
231 "can_schedule_ready_p"'s param, for first param of "new_ready"
232 callback field, for both params of "rank" callback field, for
233 first field of "print_insn" callback field (with a const), for
234 both params of "contributes_to_priority" callback, for param
235 of "insn_finishes_block_p" callback, for fields "prev_head",
236 "next_tail", "head", "tail", for first param of "add_remove_insn"
237 callback, for first param of "begin_schedule_ready" callback, for
238 both params of "begin_move_insn" callback, and for second param
239 of "advance_target_bb" callback.
240 (add_dependence): Likewise for params 1 and 2.
241 (sched_analyze): Likewise for params 2 and 3.
242 (deps_analyze_insn): Likewise for param 2.
243 (ready_element): Likewise for return type.
244 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
245 (try_ready): Strenghten param from rtx to rtx_insn *.
246 (sched_emit_insn): Likewise for return type.
247 (record_delay_slot_pair): Likewise for params 1 and 2.
248 (add_delay_dependencies): Likewise for param.
249 (contributes_to_priority): Likewise for both params.
250 (find_modifiable_mems): Likewise.
252 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
253 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
254 "first_older_only_insn" from rtx to rtx_insn *.
255 (arm_sched_reorder): Strengthen param "ready" from rtx * to
258 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
259 "last_scheduled_iter0" from rtx to rtx_insn *.
260 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
261 (c6x_sched_reorder_1): Strengthen param "ready" and locals
262 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
263 "insn" from rtx to rtx_insn *.
264 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
266 (c6x_sched_reorder2): Strengthen param "ready" and locals
267 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
268 "insn" from rtx to rtx_insn *.
269 (c6x_variable_issue): Add a checked cast when assigning from insn
270 to ss.last_scheduled_iter0.
271 (split_delayed_branch): Strengthen param "insn" and local "i1"
272 from rtx to rtx_insn *.
273 (split_delayed_nonbranch): Likewise.
274 (undo_split_delayed_nonbranch): Likewise for local "insn".
275 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
276 "entry_after", "end_packet", "head_insn", "tail_insn",
277 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
278 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
279 to rtx_insn **. Remove now-redundant checked cast on last_insn,
280 but add a checked cast on loop->start_label. Consolidate calls to
281 avoid assigning result of gen_spkernel to "insn", now an
284 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
285 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
287 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
288 rtx_insn **. Strengthen locals "top", "next" from rtx to
290 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
291 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
292 (add_parameter_dependencies): Strengthen params "call", "head" and
293 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
294 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
295 (add_dependee_for_func_arg): Likewise for param "arg" and local
297 (ix86_dependencies_evaluation_hook): Likewise for params "head",
298 "tail" and locals "insn", "first_arg".
300 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
301 for params "head", "tail" and locals "insn", "next", "next_tail".
302 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
303 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
304 "insn", "lowest", "highest" from rtx to rtx_insn *.
305 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
307 (ia64_sched_reorder2): Likewise.
309 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
310 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
311 from rtx * to rtx_insn **.
312 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
314 (mep_print_sched_insn): Strengthen param "insn" from rtx to
316 (mep_sched_reorder): Strengthen param "ready" from rtx * to
317 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
320 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
321 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
323 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
324 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
325 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
327 (vr4130_reorder): Likewise.
328 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
330 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
332 (mips_sched_reorder): Likewise.
333 (mips_sched_reorder2): Likewise.
335 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
337 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
338 Strengthen local "tmp" from rtx to rtx_insn *.
339 (rs6000_sched_reorder2): Likewise.
341 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
342 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
343 (s390_sched_reorder): Strengthen param "ready" from rtx * to
344 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
346 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
347 "tmp2" from rtx to rtx_insn *.
348 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
349 Strengthen local "insn" from rtx to rtx_insn *.
350 (ready_reorder): Strengthen param "ready" from rtx * to
351 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
352 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
353 (sh_reorder2): Likewise.
355 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
356 local "insn" from rtx to rtx_insn *.
358 * haifa-sched.c (note_list): Strengthen this variable from rtx to
360 (scheduled_insns): Strengthen this variable from vec<rtx> to
362 (set_modulo_params): Likewise for locals "i1", "i2".
363 (record_delay_slot_pair): Likewise for params "i1", "i2".
364 (add_delay_dependencies): Likewise for param "insn".
365 (cond_clobbered_p): Likewise.
366 (recompute_todo_spec): Likewise for local "prev".
367 (last_scheduled_insn): Likewise for this variable.
368 (nonscheduled_insns_begin): Likewise.
369 (model_set_excess_costs): Strengthen param "insns" from rtx * to
371 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
373 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
374 Strengthen local "insn" from rtx to rtx_insn *.
375 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
376 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
377 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
378 (ready_remove_first): Likewise for return type and local "t".
379 (ready_element): Likewise for return type.
380 (ready_remove): Likewise for return type and local "t".
381 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
382 (check_clobbered_conditions): Strengthen local "x" from rtx to
383 rtx_insn *, adding a checked cast.
384 (schedule_insn): Likewise for param "insn".
385 (remove_notes): Likewise for params "head", "tail" and locals
386 "next_tail", "insn", "next".
387 (struct haifa_saved_data): Likewise for fields
388 "last_scheduled_insn", "nonscheduled_insns_begin".
389 (save_backtrack_point): Update for change to field "vec" of
391 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
393 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
394 from rtx to rtx_insn *
395 (resolve_dependencies): Strengthen param "insn" from rtx to
397 (restore_other_notes): Likewise for return type, for param "head"
398 and local "note_head".
399 (undo_all_replacements): Likewise for local "insn".
400 (first_nonscheduled_insn): Likewise for return type and local "insn".
401 (queue_to_ready): Likewise for local "insn", adding checked casts.
402 (early_queue_to_ready): Likewise for local "insn".
403 (debug_ready_list_1): Strengthen local "p" from rtx * to
405 (move_insn): Strengthen param "insn" and local "note" from rtx to
407 (insn_finishes_cycle_p): Likewise for param "insn".
408 (max_issue): Likewise for local "insn".
409 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
411 (commit_schedule): Strengthen param "prev_head" and local "insn"
412 from rtx to rtx_insn *
413 (prune_ready_list): Likewise for local "insn".
414 (schedule_block): Likewise for locals "prev_head", "head", "tail",
415 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
416 (set_priorities): Likewise for local "prev_head".
417 (try_ready): Likewise for param "next".
418 (fix_tick_ready): Likewise.
419 (change_queue_index): Likewise.
420 (sched_extend_ready_list): Update for change to field "vec" of
422 (generate_recovery_code): Strengthen param "insn" from rtx to
424 (begin_speculative_block): Likewise.
425 (create_check_block_twin): Likewise for param "insn" and locals
426 "label", "check", "twin". Introduce local "check_pat" to avoid
427 "check" being used as a plain rtx before being used as an insn.
428 (fix_recovery_deps): Add a checked cast to rtx_insn * when
429 extracting elements from ready_list.
430 (sched_remove_insn): Strengthen param "insn" from rtx to
432 (sched_emit_insn): Likewise for return type.
433 (ready_remove_first_dispatch): Likewise for return type and local
436 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
438 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
441 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
442 from rtx to rtx_insn *.
443 (add_dependence_list): Likewise for param "insn". Add a checked
445 (add_dependence_list_and_free): Strengthen param "insn" from rtx
446 to rtx_insn *. Strengthen param "list_p" from rtx * to
448 (chain_to_prev_insn): Strengthen param "insn" and locals
449 "prec_nonnote", "i" from rtx to rtx_insn *.
450 (flush_pending_lists): Likewise for param "insn".
451 (cur_insn): Likewise for this variable.
452 (haifa_start_insn): Add a checked cast.
453 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
454 (sched_analyze_reg): Likewise for param "insn".
455 (sched_analyze_1): Likewise.
456 (sched_analyze_2): Likewise. Add checked casts.
457 (sched_analyze_insn): Likewise. Also for local "prev".
458 (deps_analyze_insn): Likewise for param "insn".
459 (sched_analyze): Likewise for params "head", "tail" and local "insn".
460 (add_dependence_1): Likewise for params "insn", "elem".
461 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
462 (parse_add_or_inc): Likewise for param "insn".
463 (find_inc): Likewise for local "inc_cand".
464 (find_modifiable_mems): Likewise for params "head", "tail" and
465 locals "insn", "next_tail".
467 * sched-ebb.c (init_ready_list): Likewise for local "insn".
468 (begin_schedule_ready): Likewise for param "insn".
469 (begin_move_insn): Likewise for params "insn" and "last".
470 (ebb_print_insn): Strengthen param "insn" from const_rtx to
472 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
473 (ebb_contributes_to_priority): Likewise for params "next", "insn".
474 (ebb_add_remove_insn): Likewise for param "insn".
475 (advance_target_bb): Likewise.
477 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
479 (check_live): Likewise for param "insn".
480 (init_ready_list): Likewise for local "insn".
481 (can_schedule_ready_p): Likewise for param "insn".
482 (begin_schedule_ready): Likewise.
483 (new_ready): Likewise for param "next".
484 (rgn_print_insn): Likewise for param "insn".
485 (rgn_rank): Likewise for params "insn1", "insn2".
486 (contributes_to_priority): Likewise for params "next", "insn".
487 (rgn_insn_finishes_block_p): Likewise for param "insn".
488 (add_branch_dependences): Likewise for params "head", "tail" and
489 locals "insn", "last".
490 (rgn_add_remove_insn): Likewise for param "insn".
491 (advance_target_bb): Likewise.
493 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
494 const_rtx to const rtx_insn *.
496 * sel-sched-dump.h (sel_print_insn): Likewise.
498 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
499 (deps_init_id): Likewise.
501 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
502 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
505 2014-08-25 David Malcolm <dmalcolm@redhat.com>
507 * output.h (final_start_function): Strengthen param 1 from rtx to
510 * final.c (final_start_function): Likewise, renaming back from
511 "uncast_first" to "first", and dropping the checked cast from rtx
514 2014-08-25 David Malcolm <dmalcolm@redhat.com>
516 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
517 * final.c (final): Likewise. Rename param back from
518 "uncast_first" to "first" and eliminate the checked cast from rtx
521 2014-08-25 David Malcolm <dmalcolm@redhat.com>
523 * output.h (shorten_branches): Strengthen param from rtx to
526 * final.c (shorten_branches): Likewise, renaming param back from
527 "uncast_first" to "first", and dropping the checked cast from rtx
530 * genattr.c (gen_attr): Likewise when writing out the prototype of
533 2014-08-25 David Malcolm <dmalcolm@redhat.com>
535 * sched-int.h (struct haifa_sched_info): Strengthen fields
536 "prev_head" and "next_tail" from rtx to rtx_insn *.
538 2014-08-25 David Malcolm <dmalcolm@redhat.com>
540 * rtl.h (rtx_jump_table_data::get_labels): New method.
541 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
542 with use of the new rtx_jump_table_data::get_labels method.
543 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
544 to rtx_jump_table_data *. Simplify by using get_labels method.
545 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
546 a dyn_cast, introducing local "table", using it to replace
547 label-lookup logic with a get_labels method call.
548 (patch_jump_insn): Simplify using get_labels method.
549 * dwarf2cfi.c (create_trace_edges): Likewise.
550 * rtlanal.c (label_is_jump_target_p): Likewise.
552 2014-08-25 David Malcolm <dmalcolm@redhat.com>
554 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
557 * emit-rtl.c (unshare_all_rtl_1): Likewise.
558 (unshare_all_rtl_again): Likewise, also for local "p".
560 2014-08-25 David Malcolm <dmalcolm@redhat.com>
562 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
564 * cfgrtl.c (delete_insn_and_edges): Likewise.
566 2014-08-25 David Malcolm <dmalcolm@redhat.com>
568 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
569 from rtx to rtx_insn *.
571 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
573 2014-08-25 David Malcolm <dmalcolm@redhat.com>
575 * function.c (thread_prologue_and_epilogue_insns): Likewise for
576 locals "returnjump", "epilogue_end", "insn", "next".
578 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
579 "returnjump" from rtx * to rtx_insn **.
580 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
584 * basic-block.h (struct edge_def). Strengthen "r" within
585 union edge_def_insns from rtx to rtx_insn *.
587 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
588 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
590 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
591 from rtx to rtx_insn *.
592 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
594 * postreload-gcse.c (reg_killed_on_edge): Likewise.
595 (reg_used_on_edge): Likewise.
596 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
597 (gt_pch_nx): New overload for rtx_insn *&.
598 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
599 from rtx to rtx_insn *.
601 2014-08-25 David Malcolm <dmalcolm@redhat.com>
603 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
604 from rtx to rtx_insn *.
605 (BB_FOOTER): Replace function with access macro.
606 (SET_BB_FOOTER): Delete.
608 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
610 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
611 (emit_barrier_after_bb): Likewise.
612 (record_effective_endpoints): Likewise.
613 (relink_block_chain): Likewise.
614 (fixup_fallthru_exit_predecessor): Likewise.
615 (cfg_layout_duplicate_bb): Likewise.
616 (cfg_layout_split_block): Likewise.
617 (cfg_layout_delete_block): Likewise.
618 (cfg_layout_merge_blocks): Likewise.
619 (BB_FOOTER): Delete function.
620 (SET_BB_FOOTER): Delete function.
621 * combine.c (update_cfg_for_uncondjump): Replace uses of
622 SET_BB_FOOTER with BB_FOOTER.
624 2014-08-25 David Malcolm <dmalcolm@redhat.com>
626 * except.h (struct eh_landing_pad_d): Strengthen field
627 "landing_pad" from rtx to rtx_code_label *.
629 * except.c (sjlj_emit_dispatch_table): Likewise for param
631 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
633 2014-08-25 David Malcolm <dmalcolm@redhat.com>
635 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
636 first param from rtx to rtx_insn *.
637 * config/xtensa/xtensa.c (struct machine_function): Likewise for
638 field "set_frame_ptr_insn".
639 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
640 "csend" from rtx to rtx_code_label *.
641 (xtensa_expand_atomic): Likewise for local "csloop".
642 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
644 (xtensa_call_tls_desc): Likewise for return type and locals
645 "call_insn", "insns".
646 (xtensa_legitimize_tls_address): Likewise for local "insns".
647 (xtensa_expand_prologue): Likewise for locals "insn", "first".
649 2014-08-25 David Malcolm <dmalcolm@redhat.com>
651 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
652 first param from rtx to rtx_insn *.
653 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
656 2014-08-25 David Malcolm <dmalcolm@redhat.com>
658 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
659 Strengthen param 1 from rtx to rtx_insn *.
660 (tilepro_output_cbranch): Likewise.
661 (tilepro_adjust_insn_length): Likewise.
662 (tilepro_final_prescan_insn): Likewise for sole param.
664 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
665 Likewise for local "last".
666 (cbranch_predicted_p): Likewise for param "insn".
667 (tilepro_output_simple_cbranch_with_opcode): Likewise.
668 (tilepro_output_cbranch_with_opcode): Likewise.
669 (tilepro_output_cbranch): Likewise.
670 (frame_emit_load): Likewise for return type and locals "seq",
672 (emit_sp_adjust): Likewise for return type and local "insn".
673 (tilepro_expand_epilogue): Likewise for locals "last_insn",
675 (tilepro_adjust_insn_length): Likewise for param "insn".
676 (next_insn_to_bundle): Likewise for return type and params
678 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
679 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
681 (match_addli_pcrel): Likewise for param "insn".
682 (replace_addli_pcrel): Likewise.
683 (match_auli_pcrel): Likewise.
684 (replace_auli_pcrel): Likewise.
685 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
687 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
688 "queue", "next_queue", "prev".
689 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
690 (tilepro_final_prescan_insn): Likewise for param "insn".
692 2014-08-25 David Malcolm <dmalcolm@redhat.com>
694 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
695 Strengthen param 1 from rtx to rtx_insn *.
696 (tilegx_output_cbranch): Likewise.
697 (tilegx_adjust_insn_length): Likewise.
698 (tilegx_final_prescan_insn): Likewise for sole param.
700 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
702 (cbranch_predicted_p): Likewise for param "insn".
703 (tilegx_output_simple_cbranch_with_opcode): Likewise.
704 (tilegx_output_cbranch_with_opcode): Likewise.
705 (tilegx_output_cbranch): Likewise.
706 (frame_emit_load): Likewise for return type.
707 (set_frame_related_p): Likewise for locals "seq", "insn".
708 (emit_sp_adjust): Likewise for return type, and for local "insn".
709 Introduce local "pat" for use in place of "insn" where the latter
710 isn't an instruction.
711 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
712 from rtx to rtx_insn *.
713 (tilegx_adjust_insn_length): Likewise for param "insn".
714 (next_insn_to_bundle): Likewise for return type and params "r" and
716 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
718 (replace_insns): Likewise for params "old_insn", "new_insns".
719 (replace_mov_pcrel_step1): Likewise for param "insn" and local
721 (replace_mov_pcrel_step2): Likewise.
722 (replace_mov_pcrel_step3): Likewise.
723 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
725 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
726 "queue", "next_queue", "prev".
727 (tilegx_output_mi_thunk): Likewise for local "insn".
728 (tilegx_final_prescan_insn): Likewise for param "insn".
730 2014-08-25 David Malcolm <dmalcolm@redhat.com>
732 * config/spu/spu.c (frame_emit_store): Strengthen return type from
734 (frame_emit_load): Likewise.
735 (frame_emit_add_imm): Likewise, also for local "insn".
736 (spu_expand_prologue): Likewise for local "insn".
737 (struct spu_bb_info): Likewise for field "prop_jump".
738 (emit_nop_for_insn): Likewise for param "insn" and local
740 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
742 (spu_emit_branch_hint): Likewise for params "before", "branch" and
743 locals "hint", "insn".
744 (get_branch_target): Likewise for param "branch".
745 (insn_clobbers_hbr): Likewise for param "insn".
746 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
747 locals "insn", "before_4", "before_16".
748 (insert_hbrp): Likewise for local "insn".
749 (spu_machine_dependent_reorg): Likewise for locals "branch",
750 "insn", "next", "bbend".
751 (uses_ls_unit): Likewise for param "insn".
752 (get_pipe): Likewise.
753 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
754 introducing a checked cast.
755 (spu_sched_adjust_cost): Likewise for params "insn" and
757 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
758 (spu_sms_res_mii): Likewise.
760 2014-08-25 David Malcolm <dmalcolm@redhat.com>
762 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
763 from rtx to rtx_insn *.
764 (output_cbranch): Likewise for param 6.
765 (output_return): Likewise for param 1.
766 (output_sibcall): Likewise.
767 (output_v8plus_shift): Likewise.
768 (output_v8plus_mult): Likewise.
769 (output_v9branch): Likewise for param 7.
770 (output_cbcond): Likewise for param 3.
772 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
774 (sparc_legitimize_pic_address): Likewise.
775 (sparc_emit_call_insn): Likewise.
776 (emit_save_or_restore_regs): Likewise.
777 (emit_window_save): Likewise for return type and local "insn".
778 (sparc_expand_prologue): Likewise for local "insn".
779 (sparc_flat_expand_prologue): Likewise.
780 (output_return): Likewise for param "insn".
781 (output_sibcall): Likewise for param "insn" and local "delay".
782 (output_ubranch): Likewise for param "insn".
783 (output_cbranch): Likewise.
784 (output_cbcond): Likewise.
785 (output_v9branch): Likewise.
786 (output_v8plus_shift): Likewise.
787 (sparc_output_mi_thunk): Likewise for local "insn".
788 (get_some_local_dynamic_name): Likewise.
789 (output_v8plus_mult): Likewise for param "insn".
791 2014-08-25 David Malcolm <dmalcolm@redhat.com>
793 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
794 from rtx to rtx_insn *.
795 (output_branchy_insn): Likewise for param 3.
796 (output_far_jump): Likewise for param 1.
797 (final_prescan_insn): Likewise.
798 (sh_insn_length_adjustment): Likewise for sole param.
800 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
801 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
803 (sh_emit_compare_and_set): Likewise for local "lab".
804 (output_far_jump): Strengthen param "insn" and local "prev" from
806 (output_branchy_insn): Likewise for param "insn" and local
808 (output_ieee_ccmpeq): Likewise for param "insn".
809 (struct label_ref_list_d): Strengthen field "label" from rtx to
811 (pool_node): Likewise.
812 (pool_window_label): Likewise for this global.
813 (add_constant): Likewise for return type and locals "lab", "new_rtx".
814 (dump_table): Strengthen params "start", "barrier" and local
815 "scan" from rtx to rtx_insn *.
816 (broken_move): Likewise for param "insn".
817 (untangle_mova): Likewise for params "first_mova" and "new_mova".
818 Strengthen param "first_mova" from rtx * to rtx_insn **.
819 (mova_p): Likewise for param "insn".
820 (fixup_mova): Likewise for param "mova".
821 (find_barrier): Likewise for return type, params "mova" and
822 "from", and locals "barrier_before_mova", "found_barrier",
823 "good_barrier", "orig", "last_symoff", "next". Strengthen local
824 "label" from rtx to rtx_code_label *.
825 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
827 (sh_reorg): Likewise for locals "link", "scan", "barrier".
828 (split_branches): Likewise for param "first" and local "insn".
829 (final_prescan_insn): Likewise for param "insn".
830 (sequence_insn_p): Likewise for locals "prev", "next".
831 (sh_insn_length_adjustment): Likewise for param "insn".
832 (sh_can_redirect_branch): Likewise for local "insn".
833 (find_r0_life_regions): Likewise for locals "end", "insn".
834 (sh_output_mi_thunk): Likewise for local "insns".
836 2014-08-25 David Malcolm <dmalcolm@redhat.com>
838 * config/score/score.c (score_output_mi_thunk): Strengthen local
839 "insn" from rtx to rtx_insn *.
840 (score_prologue): Likewise.
842 2014-08-25 David Malcolm <dmalcolm@redhat.com>
844 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
845 1 from rtx to rtx_insn *.
846 (s390_emit_jump): Likewise for return type.
847 (s390_emit_call): Likewise.
848 (s390_load_got): Likewise.
850 * config/s390/s390.c (last_scheduled_insn): Likewise for this
852 (s390_match_ccmode): Likewise for param "insn".
853 (s390_emit_jump): Likewise for return type.
854 (s390_split_branches): Likewise for local "label".
855 (struct constant): Strengthen field "label" from rtx to
857 (struct constant_pool): Likewise for field "label". Strengthen
858 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
860 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
862 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
863 (s390_end_pool): Likewise.
864 (s390_dump_pool): Likewise for local "insn".
865 (s390_mainpool_start): Likewise.
866 (s390_chunkify_start): Likewise.
867 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
868 with insns. Strengthen locals "label", "jump", "barrier", "next",
869 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
870 (s390_chunkify_finish): Strengthen local "insn" from rtx to
872 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
873 "jump", "label", "next_insn".
874 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
875 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
877 (s390_load_got): Likewise for return type and local "insns".
878 (s390_save_gprs_to_fprs): Likewise for local "insn".
879 (s390_restore_gprs_from_fprs): Likewise.
880 (pass_s390_early_mach::execute): Likewise.
881 (s390_emit_prologue): Likewise for local "insns".
882 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
884 (s390_emit_call): Strengthen return type and local "insn" from
886 (s390_emit_tpf_eh_return): Likewise for local "insn".
887 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
888 "next_insn", introducing locals "s_pat", "rpat" to allow this.
889 (s390_fix_long_loop_prediction): Likewise for param "insn" and
891 (s390_non_addr_reg_read_p): Likewise for param "insn".
892 (find_cond_jump): Likewise for return type and param "insn".
893 (s390_swap_cmp): Likewise for param "insn".
894 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
895 "prev_insn", "next_insn".
896 (s390_reorg): Likewise for locals "insn", "target".
897 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
898 (s390_sched_variable_issue): For now, rename param "insn" to
899 "uncast_insn", introducing a checked cast.
900 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
902 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
903 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
905 2014-08-25 David Malcolm <dmalcolm@redhat.com>
907 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
908 param from rtx to rtx_insn *.
909 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
911 2014-08-25 David Malcolm <dmalcolm@redhat.com>
913 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
914 4 from rtx to rtx_insn *.
915 (rs6000_final_prescan_insn): Likewise for first param.
916 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
918 (rs6000_get_some_local_dynamic_name): Likewise.
919 (output_cbranch): Likewise for param "insn".
920 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
921 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
922 (rs6000_emit_allocate_stack): Likewise for local "insn".
923 (load_cr_save): Likewise.
924 (restore_saved_cr): Likewise.
925 (restore_saved_lr): Likewise.
926 (emit_cfa_restores): Likewise.
927 (rs6000_output_function_epilogue): Likewise for locals "insn" and
928 "deleted_debug_label".
929 (rs6000_output_mi_thunk): Likewise for local "insn".
930 (rs6000_final_prescan_insn): Likewise for param "insn".
932 2014-08-25 David Malcolm <dmalcolm@redhat.com>
934 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
935 Strengthen param "insn" from rtx to rtx_insn *.
936 * config/picochip/picochip.c (picochip_current_prescan_insn):
937 Likewise for this variable.
938 (picochip_final_prescan_insn): Likewise for param "insn".
940 2014-08-25 David Malcolm <dmalcolm@redhat.com>
942 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
943 from rtx to rtx_insn *.
944 (pa_output_indirect_call): Likewise.
945 (pa_adjust_insn_length): Likewise.
946 (pa_attr_length_millicode_call): Likewise.
947 (pa_attr_length_call): Likewise.
948 (pa_attr_length_indirect_call): Likewise.
950 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
952 (pa_attr_length_millicode_call): Likewise.
953 (pa_attr_length_call): Likewise.
954 (pa_output_call): Likewise.
955 (pa_attr_length_indirect_call): Likewise.
956 (pa_output_indirect_call): Likewise.
958 2014-08-25 David Malcolm <dmalcolm@redhat.com>
960 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
961 Strengthen first param from rtx to rtx_insn *.
962 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
965 2014-08-25 David Malcolm <dmalcolm@redhat.com>
967 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
968 type from rtx to rtx_insn *.
969 (mips_expand_call): Likewise.
970 (mips_adjust_insn_length): Likewise for first param.
971 (mips_output_conditional_branch): Likewise.
972 (mips_output_order_conditional_branch): Likewise.
973 (mips_final_prescan_insn): Likewise.
975 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
976 rtx_insn * for the SEQUENCE case.
978 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
979 (mips_emit_call_insn): Likewise, also for local "insn".
980 (mips16_gp_pseudo_reg): Likewise for local "scan".
981 (mips16_build_call_stub): Likewise for return type and for local
982 "insn". Introduce a new local "pattern" so that "insn" can indeed
984 (mips_expand_call): Strengthen return type and local "insn" from
986 (mips_block_move_loop): Strengthen local "label" from rtx to
988 (mips_expand_synci_loop): Likewise for locals "label",
990 (mips_set_frame_expr): Strengthen local "insn" from rtx to
992 (mips16e_collect_argument_saves): Likewise for locals "insn",
994 (mips_find_gp_ref): Likewise for param of callback for "pred"
995 param, and for local "insn".
996 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
997 (mips_insn_has_flexible_gp_ref_p): Likewise.
998 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1000 (mips_epilogue_set_cfa): Likewise for local "insn".
1001 (mips_expand_epilogue): Likewise.
1002 (mips_adjust_insn_length): Likewise for param "insn".
1003 (mips_output_conditional_branch): Likewise.
1004 (mips_output_order_conditional_branch): Likewise.
1005 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1006 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1007 "falu2_turn_enabled_insn".
1008 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1009 "done_label" from rtx to rtx_code_label *.
1010 (struct mips16_constant): Likewise for field "label".
1011 (mips16_add_constant): Likewise for return type.
1012 (mips16_emit_constants_1): Strengthen return type and param "insn"
1013 from rtx to rtx_insn *.
1014 (mips16_emit_constants): Likewise for param "insn".
1015 (mips16_insn_length): Likewise.
1016 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1017 to rtx_code_label *.
1018 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1019 from rtx to rtx_insn *.
1020 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1021 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1022 (r10k_simplify_address): Strengthen param "insn" and local
1023 "def_insn" from rtx to rtx_insn *.
1024 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1026 (r10k_needs_protection_p_1): Update target type of cast of data
1027 from to rtx to rtx_insn *.
1028 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1029 rtx * to rtx_insn **.
1030 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1032 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1033 (mips_call_expr_from_insn): Likewise for param "insn".
1034 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1035 (mips_find_pic_call_symbol): Likewise for param "insn".
1036 (mips_annotate_pic_calls): Likewise for local "insn".
1037 (mips_sim_insn): Likewise for this variable.
1038 (struct mips_sim): Likewise for field "insn" within elements of
1040 (mips_sim_wait_reg): Likewise for param "insn".
1041 (mips_sim_wait_regs): Likewise.
1042 (mips_sim_wait_units): Likewise.
1043 (mips_sim_wait_insn): Likewise.
1044 (mips_sim_issue_insn): Likewise.
1045 (mips_sim_finish_insn): Likewise.
1046 (mips_seq_time): Likewise for param "seq" and local "insn".
1047 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1048 locals "first", "second".
1049 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1050 "last", "last2", "next".
1051 (mips_avoid_hazard): Likewise for params "after", "insn".
1052 (mips_reorg_process_insns): Likewise for locals "insn",
1053 "last_insn", "subinsn", "next_insn".
1054 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1055 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1057 (mips_output_mi_thunk): Likewise for local "insn".
1058 (mips_final_prescan_insn): Likewise for param "insn".
1060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1062 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1063 Strengthen return type and local "insns" from rtx to rtx_insn *.
1064 (microblaze_legitimize_tls_address): Likewise for local "insns".
1065 (microblaze_block_move_loop): Strengthen local "label" from rtx
1066 to rtx_code_label *.
1067 (microblaze_expand_prologue): Strengthen two locals named "insn"
1068 from rtx to rtx_insn *.
1069 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1070 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1071 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1072 to rtx_code_label *.
1074 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1076 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1077 param from rtx to rtx_insn *.
1078 (mep_reuse_lo): Likewise for third param.
1079 (mep_use_post_modify_p): Likewise for first param.
1080 (mep_core_address_length): Likewise.
1081 (mep_cop_address_length): Likewise.
1082 (mep_final_prescan_insn): Likewise.
1083 (mep_store_data_bypass_p): Likewise for both params.
1084 (mep_mul_hilo_bypass_p): Likewise.
1085 (mep_ipipe_ldc_p): Likewise for param.
1087 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1088 (mep_rewrite_mult): Likewise.
1089 (mep_rewrite_mulsi3): Likewise.
1090 (mep_rewrite_maddsi3): Likewise.
1091 (mep_reuse_lo_p_1): Likewise.
1092 (mep_reuse_lo_p): Likewise.
1093 (mep_frame_expr): Likewise.
1094 (mep_make_parallel): Likewise for both params.
1095 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1097 (mep_use_post_modify_p): Likewise for param "insn".
1098 (mep_core_address_length): Likewise.
1099 (mep_cop_address_length): Likewise.
1100 (mep_reg_set_in_function): Likewise for local "insn".
1101 (mep_asm_without_operands_p): Likewise.
1102 (F): Likewise for return type and param "x".
1103 (add_constant): Likewise for local "insn".
1104 (maybe_dead_move): Likewise for return type and local "insn".
1105 (mep_expand_prologue): Likewise for local "insn".
1106 (mep_final_prescan_insn): Likewise for param "insn".
1107 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1108 "next", "follow", "x".
1109 (mep_insert_repeat_label_last): Likewise for return type, param
1110 "last_insn", and locals "next", "prev". Strengthen param "label"
1111 from rtx to rtx_code_label *.
1112 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1114 (struct mep_doloop_end): Likewise for fields "insn" and
1116 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1117 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1118 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1120 (mep_invert_branch): Likewise for params "insn" and "after".
1121 (mep_reorg_erepeat): Likewise for param "insns" and locals
1122 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1123 "l" from rtx to rtx_code_label *.
1124 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1125 from rtx to rtx_insn *.
1126 (mep_reorg_addcombine): Likewise for param "insns" and locals
1128 (add_sp_insn_p): Likewise for param "insn".
1129 (mep_reorg_noframe): Likewise for param "insns" and locals
1130 "start_frame_insn", "end_frame_insn", "next".
1131 (mep_reorg): Likewise for local "insns".
1132 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1134 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1135 (mep_mul_hilo_bypass_p): Likewise.
1136 (mep_ipipe_ldc_p): Likewise for param "insn".
1137 (mep_make_bundle): Likewise for return type, param "cop" and local
1138 "insn", splitting out the latter into a new local "seq" for when it
1139 is a SEQUENCE rather than an insn.
1140 (core_insn_p): Likewise for param "insn".
1141 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1142 "last", "first", "note", "prev", "core_insn".
1144 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1146 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1148 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1149 (m68k_final_prescan_insn): Likewise for first param.
1151 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
1152 (m68k_set_frame_related): Likewise for param "insn".
1153 (output_btst): Likewise for param "insn".
1154 (m68k_final_prescan_insn): Likewise.
1155 (m68k_move_to_reg): Likewise for local "insn".
1156 (m68k_call_tls_get_addr): Likewise for local "insns".
1157 (m68k_call_m68k_read_tp): Likewise.
1158 (strict_low_part_peephole_ok): Likewise for param "first_insn".
1159 (m68k_output_mi_thunk): Likewise for local "insn".
1161 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1163 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
1164 first param from rtx to rtx_insn *.
1165 (iq2000_adjust_insn_length): Likewise.
1166 (iq2000_output_conditional_branch): Likewise.
1167 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
1168 "insn" and local "nop_insn".
1169 (iq2000_annotate_frame_insn): Likewise for param "insn".
1170 (iq2000_expand_prologue): Likewise for both locals "insn".
1171 (iq2000_adjust_insn_length): Likewise for param "insn".
1172 (iq2000_output_conditional_branch): Likewise.
1174 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1176 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
1177 "insns" from rtx to rtx_insn *.
1178 (ia64_emit_cond_move): Likewise for locals "insn", "first".
1179 (struct spill_fill_data): Likewise for field "init_after" and for
1180 elements of array field "prev_insn".
1181 (spill_restore_mem): Likewise for locals "insn", "first".
1182 (do_spill): Likewise for local "insn".
1183 (do_restore): Likewise.
1184 (ia64_expand_prologue): Likewise.
1185 (ia64_expand_epilogue): Likewise.
1186 (emit_insn_group_barriers): Likewise for locals "insn",
1188 (emit_all_insn_group_barriers): Likewise for locals "insn",
1190 (dfa_stop_insn): Likewise for this global.
1191 (dfa_pre_cycle_insn): Likewise.
1192 (ia64_nop): Likewise.
1193 (final_emit_insn_group_barriers): Likewise for locals "insn",
1195 (emit_predicate_relation_info): Likewise for locals "head", "n",
1197 (ia64_reorg): Likewise for local "insn".
1198 (ia64_output_mi_thunk): Likewise.
1199 (expand_vec_perm_interleave_2): Likewise for local "seq".
1201 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1203 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
1204 param 1 "insn" from rtx to rtx_insn *.
1205 (ix86_use_lea_for_mov): Likewise.
1206 (ix86_avoid_lea_for_addr): Likewise.
1207 (ix86_split_lea_for_addr): Likewise.
1208 (ix86_lea_for_add_ok): Likewise.
1209 (ix86_output_call_insn): Likewise.
1211 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
1212 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
1213 (ix86_output_function_epilogue): Likewise for locals "insn",
1214 "deleted_debug_label".
1215 (legitimize_tls_address): Likewise for local "insn".
1216 (get_some_local_dynamic_name): Likewise.
1217 (increase_distance): Likewise for params "prev", "next".
1218 (distance_non_agu_define_in_bb): Likewise for params "insn",
1219 "start" and locals "prev", "next".
1220 (distance_non_agu_define): Likewise for param "insn".
1221 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
1222 locals "next", "prev".
1223 (distance_agu_use): Likewise for param "insn".
1224 (ix86_lea_outperforms): Likewise.
1225 (ix86_ok_to_clobber_flags): Likewise.
1226 (ix86_avoid_lea_for_add): Likewise.
1227 (ix86_use_lea_for_mov): Likewise.
1228 (ix86_avoid_lea_for_addr): Likewise.
1229 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
1230 (ix86_split_lea_for_addr): Likewise for param "insn".
1231 (ix86_lea_for_add_ok): Likewise for param "insn".
1232 (ix86_expand_carry_flag_compare): Likewise for local
1234 (ix86_expand_int_movcc): Likewise.
1235 (ix86_output_call_insn): Likewise for param "insn".
1236 (ix86_output_call_insn): Likewise for local "i".
1237 (x86_output_mi_thunk): Introduce local "insn", using it in place
1238 of "tmp" when dealing with insns.
1239 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
1241 (ix86_pad_returns): Likewise for locals "ret", "prev".
1242 (ix86_count_insn_bb): Likewise for local "insn".
1243 (ix86_pad_short_function): Likewise for locals "ret", "insn".
1244 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
1245 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
1246 (expand_vec_perm_interleave2): Likewise for local "seq".
1247 (expand_vec_perm_vperm2f128_vblend): Likewise.
1248 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
1249 call to for_each_rtx with for_each_rtx_in_insn.
1251 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1253 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
1254 "label" from rtx to rtx_code_label *.
1255 (ix86_expand_prologue): Likewise.
1256 (ix86_expand_split_stack_prologue): Likewise for locals "label",
1258 (ix86_split_idivmod): Likewise for locals "end_label" and
1260 (ix86_expand_branch): Likewise for local "label2".
1261 (ix86_expand_aligntest): Likewise for return type and local "label".
1262 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
1264 (expand_movmem_epilogue): Likewise for the various locals named
1266 (expand_setmem_epilogue): Likewise.
1267 (expand_small_movmem_or_setmem): Likewise for local "label".
1268 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1269 Strengthen param "done_label" from rtx * to rtx_code_label **.
1270 Strengthen locals "loop_label" and "label" from rtx to
1272 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1273 Likewise for locals "loop_label", "label".
1274 (ix86_expand_set_or_movmem): Likewise for locals "label",
1275 "jump_around_label", "hot_label".
1276 (ix86_expand_strlensi_unroll_1): Likewise for locals
1277 "align_2_label", align_3_label", "align_4_label", "end_0_label",
1279 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
1280 (void ix86_emit_i387_log1p): Likewise for locals "label1",
1281 "label2", "jump_label".
1282 (ix86_expand_sse_compare_and_jump): Likewise for return type and
1284 (ix86_expand_lfloorceil): Likewise for local "label".
1285 (ix86_expand_rint): Likewise.
1286 (ix86_expand_floorceildf_32): Likewise.
1287 (ix86_expand_floorceil): Likewise.
1288 (ix86_expand_rounddf_32): Likewise.
1289 (ix86_expand_trunc): Likewise.
1290 (ix86_expand_truncdf_32): Likewise.
1291 (ix86_expand_round): Likewise.
1293 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1295 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
1296 first param from rtx to rtx_insn *.
1297 (h8300_insn_length_from_table): Likewise.
1298 * config/h8300/h8300.c (F): Likewise for return type and param
1300 (Fpa): Add a checked cast to rtx_insn *.
1301 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
1303 (final_prescan_insn): Likewise for param "insn".
1304 (h8300_binary_length): Likewise.
1305 (h8300_insn_length_from_table): Likewise.
1307 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1309 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
1310 Strengthen first param "insn" from rtx to rtx_insn *.
1312 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
1314 (frame_insn): Likewise for return type. Introduce local "insn"
1315 for use in place of local "x" for use as an rtx_insn *.
1316 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
1317 (epiphany_expand_prologue): Likewise for local "insn".
1318 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
1319 * config/epiphany/resolve-sw-modes.c
1320 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
1323 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1325 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
1326 param from rtx to rtx_insn *.
1327 (c6x_final_prescan_insn): Likewise for first param.
1329 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
1330 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
1331 (c6x_expand_compare): Strengthen local "insns" from rtx to
1333 (c6x_get_unit_specifier): Likewise for param "insn".
1334 (c6x_print_unit_specifier_field): Likewise.
1335 (c6x_final_prescan_insn): Likewise.
1336 (emit_add_sp_const): Likewise for local "insn".
1337 (c6x_expand_prologue): Likewise.
1339 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1341 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
1342 param 1 from rtx to rtx_insn *.
1343 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
1344 the various locals named "insn".
1345 (expand_epilogue_reg_restore): Likewise.
1346 (frame_related_constant_load): Likewise.
1347 (add_to_reg): Likewise.
1348 (emit_link_insn): Likewise.
1349 (do_link): Likewise.
1350 (expand_interrupt_handler_prologue): Likewise.
1351 (branch_dest): Likewise for param "branch".
1352 (asm_conditional_branch): Likewise for param "insn".
1353 (gen_one_bundle): Likewise for elements of param "slot" and local
1355 (bfin_gen_bundles): Likewise for locals "insn", "next" and
1356 elements of local "slot".
1357 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1358 "queue", "next_queue", "prev".
1359 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
1360 (add_sched_insns_for_speculation): Likewise for local "insn".
1362 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1364 * config/avr/avr-protos.h (output_movqi): Strengthen first param
1365 from rtx to rtx_insn *.
1366 (output_movhi): Likewise.
1367 (output_movsisf): Likewise.
1368 (avr_out_tstsi): Likewise.
1369 (avr_out_tsthi): Likewise.
1370 (avr_out_tstpsi): Likewise.
1371 (avr_out_compare): Likewise.
1372 (avr_out_compare64): Likewise.
1373 (avr_out_movpsi): Likewise.
1374 (ashlqi3_out): Likewise.
1375 (ashlhi3_out): Likewise.
1376 (ashlsi3_out): Likewise.
1377 (ashrqi3_out): Likewise.
1378 (ashrhi3_out): Likewise.
1379 (ashrsi3_out): Likewise.
1380 (lshrqi3_out): Likewise.
1381 (lshrhi3_out): Likewise.
1382 (lshrsi3_out): Likewise.
1383 (avr_out_ashlpsi3): Likewise.
1384 (avr_out_ashrpsi3): Likewise.
1385 (avr_out_lshrpsi3): Likewise.
1386 (avr_out_fract): Likewise.
1387 (avr_out_sbxx_branch): Likewise.
1388 (avr_out_round): Likewise.
1389 (avr_out_xload): Likewise.
1390 (avr_out_movmem): Likewise.
1391 (adjust_insn_length): Likewise.
1392 (avr_out_lpm): Likewise.
1393 (reg_unused_after): Likewise.
1394 (_reg_unused_after): Likewise.
1395 (avr_jump_mode): Likewise for second param.
1396 (jump_over_one_insn): Likewise for first param.
1397 (avr_final_prescan_insn): Likewise.
1398 (out_shift_with_cnt): Likewise for second param.
1400 * config/avr/avr.c (get_sequence_length): Likewise for param
1401 "insns" and local "insn".
1402 (emit_push_byte): Likewise for local "insn".
1403 (emit_push_sfr): Likewise.
1404 (avr_prologue_setup_frame): Likewise for locals "insn",
1405 "fp_plus_insns", "sp_plus_insns".
1406 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
1408 (avr_jump_mode): Likewise for param "insn".
1409 (avr_final_prescan_insn): Likewise.
1410 (avr_find_unused_d_reg): Likewise.
1411 (avr_out_lpm_no_lpmx): Likewise.
1412 (avr_out_lpm): Likewise.
1413 (avr_out_xload): Likewise.
1414 (output_movqi): Likewise.
1415 (output_movhi): Likewise.
1416 (out_movqi_r_mr): Likewise.
1417 (out_movhi_r_mr): Likewise.
1418 (out_movsi_r_mr): Likewise.
1419 (out_movsi_mr_r): Likewise.
1420 (output_movsisf): Likewise.
1421 (avr_out_load_psi): Likewise.
1422 (avr_out_store_psi): Likewise.
1423 (avr_out_movpsi): Likewise.
1424 (out_movqi_mr_r): Likewise.
1425 (avr_out_movhi_mr_r_xmega): Likewise.
1426 (out_movhi_mr_r): Likewise.
1427 (compare_condition): Likewise for param "insn" and local "next".
1428 (compare_sign_p): Likewise for param "insn".
1429 (compare_diff_p): Likewise.
1430 (compare_eq_p): Likewise.
1431 (avr_out_compare): Likewise.
1432 (avr_out_compare64): Likewise.
1433 (avr_out_tsthi): Likewise.
1434 (avr_out_tstpsi): Likewise.
1435 (avr_out_tstsi): Likewise.
1436 (out_shift_with_cnt): Likewise.
1437 (ashlqi3_out): Likewise.
1438 (ashlhi3_out): Likewise.
1439 (avr_out_ashlpsi3): Likewise.
1440 (ashlsi3_out): Likewise.
1441 (ashrqi3_out): Likewise.
1442 (ashrhi3_out): Likewise.
1443 (avr_out_ashrpsi3): Likewise.
1444 (ashrsi3_out): Likewise.
1445 (lshrqi3_out): Likewise.
1446 (lshrhi3_out): Likewise.
1447 (avr_out_lshrpsi3): Likewise.
1448 (lshrsi3_out): Likewise.
1449 (avr_out_fract): Likewise.
1450 (avr_out_round): Likewise.
1451 (avr_adjust_insn_length): Likewise.
1452 (reg_unused_after): Likewise.
1453 (_reg_unused_after): Likewise.
1454 (avr_compare_pattern): Likewise.
1455 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
1456 and locals "branch1", "branch2", "insn2", "jump".
1457 (avr_reorg): Likewise for local "insn".
1458 (avr_2word_insn_p): Likewise for param "insn".
1459 (jump_over_one_insn_p): Likewise.
1460 (avr_out_sbxx_branch): Likewise.
1461 (avr_out_movmem): Likewise.
1463 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1465 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
1466 param from rtx to rtx_insn *.
1467 (thumb1_final_prescan_insn): Likewise.
1468 (thumb2_final_prescan_insn): Likewise.
1470 * config/arm/arm.c (emit_set_insn): Strengthen return type from
1472 (struct minipool_node): Likewise for field "insn".
1473 (dump_minipool): Likewise for param "scan".
1474 (create_fix_barrier): Likewise for local "from". Strengthen local
1475 "label" from rtx to rtx_code_label *.
1476 (push_minipool_barrier): Strengthen param "insn" from rtx to
1478 (push_minipool_fix): Likewise.
1479 (note_invalid_constants): Likewise.
1480 (thumb2_reorg): Likewise for local "insn".
1481 (arm_reorg): Likewise.
1482 (thumb2_final_prescan_insn): Likewise for param
1483 "insn" and local "first_insn".
1484 (arm_final_prescan_insn): Likewise for param "insn" and locals
1485 "start_insn", "this_insn".
1486 (arm_debugger_arg_offset): Likewise for param "insn".
1487 (thumb1_emit_multi_reg_push): Likewise for return type and local
1489 (thumb1_final_prescan_insn): Likewise for param "insn".
1490 (thumb_far_jump_used_p): Likewise for local "insn".
1491 (thumb1_expand_prologue): Likewise.
1492 (arm_expand_epilogue_apcs_frame): Likewise.
1493 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
1494 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
1495 from rtx to rtx_code_label *.
1496 (arm_split_atomic_op): Likewise for local "label".
1497 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
1499 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1501 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
1502 first param from rtx to rtx_insn *.
1503 (arc_verify_short): Likewise.
1504 (arc_short_long): Likewise.
1505 (arc_need_delay): Likewise.
1507 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
1509 (arc_ccfsm_advance): Likewise for param "insn" and locals
1510 "start_insn", "this_insn".
1511 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
1512 (arc_ccfsm_post_advance): Likewise for param "insn".
1513 (arc_next_active_insn): Likewise for return type and param "insn".
1514 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
1515 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
1516 (output_short_suffix): Likewise for local "insn".
1517 (arc_final_prescan_insn): Likewise for param "insn". Remove
1518 now-redundant checked cast.
1519 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
1520 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
1521 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
1522 for use where lc_set became an insn.
1523 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
1525 (arc_get_insn_variants): Likewise for local "prev".
1526 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
1528 (arc_predicate_delay_insns): Likewise for local "insn".
1529 (arc_pad_return): Likewise for local "prev". For now, add a
1530 checked cast when extracting the insn from "final_sequence".
1531 (arc_short_long): Likewise for param "insn".
1532 (arc_need_delay): Likewise for param "insn" and local "next".
1533 (arc_label_align): Likewise for locals "prev", "next".
1535 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1537 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
1538 "insn" from rtx to rtx_insn *.
1539 (alpha_gp_save_rtx): Likewise for local "seq".
1540 (alpha_instantiate_decls): Likewise for local "top".
1541 (get_some_local_dynamic_name): Likewise for local "insn".
1542 (alpha_does_function_need_gp): Likewise.
1543 (set_frame_related_p): Likewise for return type and for locals
1545 (emit_frame_store_1): Likewise for local "insn".
1546 (alpha_expand_prologue): Likewise for locals "insn", "seq".
1547 (alpha_end_function): Likewise for local "insn".
1548 (alpha_output_mi_thunk_osf): Likewise.
1549 (alphaev4_insn_pipe): Likewise for param "insn".
1550 (alphaev5_insn_pipe): Likewise.
1551 (alphaev4_next_group): Likewise for return type and param 1
1553 (alphaev5_next_group): Likewise.
1554 (alpha_align_insns_1): Likewise for return type and param 1 of
1555 callback param "next_group", and for locals "i", "next", "prev",
1556 "where", "where2", "insn".
1558 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
1560 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
1561 rather than modifying the stmt.
1563 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1565 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
1566 cgraph_state conversion.
1568 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1570 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1571 Strengthen local "insns" from rtx to rtx_insn *.
1572 (aarch64_set_frame_expr): Likewise for local "insn".
1573 (aarch64_save_or_restore_fprs): Likewise.
1574 (aarch64_save_or_restore_callee_save_registers): Likewise.
1575 (aarch64_expand_prologue): Likewise.
1576 (aarch64_expand_epilogue): Likewise.
1577 (aarch64_output_mi_thunk): Likewise.
1578 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
1579 "label2" from rtx to rtx_code_label *.
1580 (aarch64_split_atomic_op): Likewise for local "label".
1582 2014-08-25 Martin Liska <mliska@suse.cz>
1584 * cgraph.h (symtab_node):
1585 (bool needed_p (void)): created from decide_is_symbol_needed
1586 (bool referred_to_p (void)): created from referred_to_p
1587 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
1588 * cgraph.h (cgraph_node):
1589 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
1590 (void expand (void)): created from expand_function
1591 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
1592 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
1593 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
1594 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
1595 * cgraph.h (varpool_node):
1596 (static void add (tree decl): created from varpool_add_new_variable
1597 * cgraph.h (cgraph_edge):
1599 (void remove_caller (void)): created from cgraph_edge_remove_caller
1600 (void remove_callee (void)): created from cgraph_edge_remove_callee
1601 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
1602 created from cgraph_set_call_stmt
1603 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
1604 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
1605 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
1606 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
1607 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
1608 created from cgraph_speculative_call_info
1609 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
1610 int freq_scale, bool update_original)): created from cgraph_clone_edge
1611 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
1612 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
1613 (bool recursive_p (void)): created from cgraph_edge_recursive_p
1614 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
1615 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
1616 (static void rebuild_references (void)): created from cgraph_rebuild_references
1617 * cgraph.h (symbol_table):
1618 (create_reference): renamed from add_reference
1619 (maybe_create_reference): renamed from maybe_add_reference
1620 (void register_symbol (symtab_node *node)): new function
1621 (void clear_asm_symbols (void)): new function
1622 (void unregister (symtab_node *node)): new function
1623 (void release_symbol (cgraph_node *node, int uid)): new function
1624 (cgraph_node * allocate_cgraph_symbol (void)): new function
1625 (void initialize (void)): created from cgraph_init
1626 (symtab_node *first_symbol (void)):new function
1627 (asm_node *first_asm_symbol (void)):new function
1628 (symtab_node *first_defined_symbol (void)):new function
1629 (varpool_node *first_variable (void)):new function
1630 (varpool_node *next_variable (varpool_node *node)):new function
1631 (varpool_node *first_static_initializer (void)):new function
1632 (varpool_node *next_static_initializer (varpool_node *node)):new function
1633 (varpool_node *first_defined_variable (void)):new function
1634 (varpool_node *next_defined_variable (varpool_node *node)):new function
1635 (cgraph_node *first_defined_function (void)):new function
1636 (cgraph_node *next_defined_function (cgraph_node *node)):new function
1637 (cgraph_node *first_function (void)):new function
1638 (cgraph_node *next_function (cgraph_node *node)):new function
1639 (cgraph_node *first_function_with_gimple_body (void)):new function
1640 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
1641 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
1642 created from symtab_remove_unreachable_nodes
1643 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
1644 (void process_new_functions (void)): created from cgraph_process_new_functions
1645 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
1646 (bool output_variables (void)): created from varpool_node::output_variables
1647 (void output_asm_statements (void)): created from output_asm_statements
1648 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
1649 (void compile (void)): created from compile
1650 (void output_weakrefs (void)): created from output_weakrefs
1651 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
1652 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
1653 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
1654 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
1655 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
1656 created from cgraph_next_function_with_gimple_body
1657 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
1658 created from cgraph_remove_edge_removal_hook
1659 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
1660 created from cgraph_add_node_removal_hook
1661 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
1662 created from cgraph_remove_node_removal_hook
1663 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
1664 created from varpool_add_node_removal_hook
1665 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
1666 created from varpool_remove_node_removal_hook
1667 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
1668 created from cgraph_add_function_insertion_hook
1669 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
1670 created from cgraph_remove_function_insertion_hook
1671 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
1672 created from varpool_add_variable_insertion_hook
1673 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
1674 created from varpool_remove_variable_insertion_hook
1675 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
1676 created from cgraph_add_edge_duplication_hook
1677 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
1678 created from cgraph_remove_edge_duplication_hook
1679 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
1680 created from cgraph_add_node_duplication_hook
1681 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
1682 created from cgraph_remove_node_duplication_hook
1683 (void call_edge_removal_hooks (cgraph_edge *e)):
1684 created from cgraph_call_edge_removal_hooks
1685 (void call_cgraph_insertion_hooks (cgraph_node *node)):
1686 created from call_function_insertion_hooks
1687 (void call_cgraph_removal_hooks (cgraph_node *node)):
1688 created from cgraph_call_node_removal_hooks
1689 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
1690 created from cgraph_node::call_duplication_hooks
1691 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
1692 created from cgraph_call_edge_duplication_hooks
1693 (void call_varpool_removal_hooks (varpool_node *node)):
1694 created from varpool_call_node_removal_hooks
1695 (void call_varpool_insertion_hooks (varpool_node *node)):
1696 created from varpool_call_variable_insertion_hooks
1697 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
1698 created from insert_to_assembler_name_hash
1699 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
1700 created from unlink_from_assembler_name_hash
1701 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
1702 created from symtab_prevail_in_asm_name_hash
1703 (void symtab_initialize_asm_name_hash (void)):
1704 created from symtab_initialize_asm_name_hash
1705 (void change_decl_assembler_name (tree decl, tree name)):
1706 created from change_decl_assembler_name
1707 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
1708 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
1709 created from decl_assembler_name_hash
1710 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
1711 created from decl_assembler_name_equal
1712 (static hashval_t hash_node_by_assembler_name (const void *p)):
1713 created from hash_node_by_assembler_name
1714 (static int eq_assembler_name (const void *p1, const void *p2)):
1715 created from eq_assembler_name
1717 2014-08-25 Marek Polacek <polacek@redhat.com>
1719 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
1721 2014-08-25 Petr Murzin <petr.murzin@intel.com>
1723 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
1724 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
1725 SWI1248_AVX512BW mode iterator.
1727 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
1730 * config/sh/predicates.md (general_extend_operand): Disable
1731 TRUNCATE before reload completes.
1733 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
1735 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
1737 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
1740 * config/sh/sh.opt (musermode): Allow negative form.
1741 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
1742 targets that don't support it.
1743 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
1744 Document -mno-usermode option.
1746 2014-08-24 Kito Cheng <kito@0xlab.org>
1748 * system.h (CALLER_SAVE_PROFITABLE): Poison.
1749 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
1750 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
1751 * doc/tm.texi: Regenerate.
1753 2014-08-24 Kito Cheng <kito@0xlab.org>
1755 * ira.c: Fix typo in comment.
1757 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1759 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
1760 Deprecate c++1y. Change language to reflect greater confidence in C++14.
1762 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
1765 * config/pa/pa.c (pa_output_function_epilogue): Don't set
1766 last_address when the current function is a thunk.
1767 (pa_asm_output_mi_thunk): When we don't have named sections or they
1768 are not being used, check that thunk can reach the stub table with a
1771 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1773 * web.c (union_match_dups): Strengthen param "insn" from rtx to
1775 (pass_web::execute): Likewise for local "insn".
1777 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1779 * var-tracking.c (struct micro_operation_def): Strengthen field
1780 "insn" from rtx to rtx_insn *.
1781 (struct emit_note_data_def): Likewise.
1782 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
1783 (vt_stack_adjustments): Likewise for local "insn".
1784 (adjust_insn): Likewise for param "insn".
1785 (val_store): Likewise.
1786 (val_resolve): Likewise.
1787 (struct count_use_info): Likewise for field "insn".
1788 (log_op_type): Likewise for param "insn".
1789 (reverse_op): Likewise.
1790 (prepare_call_arguments): Likewise.
1791 (add_with_sets): The initial param takes an insn, but we can't
1792 yet strengthen it from rtx to rtx_insn * since it's used as a
1793 cselib_record_sets_hook callback. For now rename initial param
1794 from "insn" to "uncast_insn", and introduce a local "insn" of
1795 the stronger rtx_insn * type, with a checked cast.
1796 (compute_bb_dataflow): Strengthen local "insn" from rtx to
1798 (emit_note_insn_var_location): Likewise.
1799 (emit_notes_for_changes): Likewise.
1800 (emit_notes_for_differences): Likewise.
1801 (next_non_note_insn_var_location): Likewise for return type and
1803 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
1804 (vt_initialize): Likewise for local "insn".
1805 (delete_debug_insns): Likewise for locals "insn" and "next".
1807 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1809 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
1811 (mark_constant_pool): Likewise for local "insn".
1813 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1815 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
1817 (dead_debug_promote_uses): Likewise.
1818 (dead_debug_insert_temp): Likewise.
1820 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1822 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
1823 from const_rtx to const rtx_insn *.
1824 (store_killed_after): Likewise. Strengthen locals "last", "act"
1825 from rtx to rtx_insn *.
1826 (store_killed_before): Strengthen param "insn" from const_rtx to
1827 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
1828 (find_moveable_store): Strengthen param "insn" from rtx to
1830 (compute_store_table): Likewise for local "insn".
1831 (insert_insn_start_basic_block): Likewise for param "insn" and
1832 locals "prev", "before", "insn".
1833 (insert_store): For now, add a checked cast to rtx_insn * on the
1834 result of gen_move_insn.
1835 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
1837 (replace_store_insn): Likewise. For now, add a checked cast to
1838 rtx_insn * on the result of gen_move_insn.
1840 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1842 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
1844 (expand_sjlj_dispatch_table): Likewise.
1846 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1848 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
1849 "insn" from rtx to rtx_insn *.
1851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1853 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
1854 "insn" from rtx to rtx_insn *.
1855 (dup_block_and_redirect): Likewise for param 3 "before".
1857 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
1858 from rtx to rtx_insn *.
1859 (move_insn_for_shrink_wrap): Likewise.
1860 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
1861 (dup_block_and_redirect): Likewise for param "before" and local
1863 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
1865 (convert_to_simple_return): Likewise for local "start".
1867 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
1868 Strengthen local "insn" from rtx to rtx_insn *, for use when
1869 invoking requires_stack_frame_p.
1871 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1873 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
1875 (speculate_expr): Likewise for locals "orig_insn_rtx",
1877 (eq_transformed_insns): Likewise for locals "i1", "i2".
1878 (check_for_new_jump): Likewise for return type and local "end".
1879 (find_new_jump): Likewise for return type and local "jump".
1880 (sel_split_edge): Likewise for local "jump".
1881 (sel_create_recovery_block): Likewise.
1882 (sel_redirect_edge_and_branch_force): Likewise.
1883 (sel_redirect_edge_and_branch): Likewise.
1885 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1887 * sel-sched.c (substitute_reg_in_expr): Strengthen local
1888 "new_insn" from rtx to rtx_insn *.
1889 (create_insn_rtx_with_rhs): Likewise for return type and for local
1891 (create_insn_rtx_with_lhs): Likewise.
1892 (create_speculation_check): Likewise for local "insn_rtx".
1893 (implicit_clobber_conflict_p): Likewise for local "insn".
1894 (get_expr_cost): Likewise.
1895 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
1896 (move_cond_jump): Likewise for locals "next", "prev", "link",
1897 "head", "from", "to".
1899 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1901 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
1902 "next" from rtx to rtx_insn *.
1903 (find_conditional_protection): Likewise for local "next".
1904 (is_conditionally_protected): Likewise for local "insn1".
1905 (is_pfree): Likewise for locals "insn1", "insn2".
1907 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1909 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
1910 from rtx to rtx_insn *.
1912 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
1913 locals "insn1", "insn2" from rtx to rtx_insn *.
1914 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
1915 locals "insn", "prev", "last_jump", "next_tail".
1916 (schedule_ebb): Likewise for params "head", "tail".
1917 (schedule_ebbs): Likewise for locals "tail", "head".
1919 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
1920 to rtx_insn on "last_insn" in one of the invocations of
1923 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1925 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
1926 "elem", "insn" from rtx to rtx_insn *.
1927 (change_spec_dep_to_hard): Likewise.
1928 (get_back_and_forw_lists): Likewise for local "con".
1929 (sd_add_dep): Likewise for locals "elem", "insn".
1930 (sd_resolve_dep): Likewise for locals "pro", "con".
1931 (sd_unresolve_dep): Likewise.
1932 (sd_delete_dep): Likewise.
1933 (chain_to_prev_insn): Likewise for local "pro".
1934 (find_inc): Likewise for locals "pro", "con".
1936 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1938 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
1940 (reg_set_between_p): Strengthen local "insn" from const_rtx to
1942 (modified_between_p): Strengthen local "insn" from rtx to
1944 (remove_reg_equal_equiv_notes_for_regno): Likewise.
1945 (keep_with_call_p): Strengthen local "i2" from const_rtx to
1948 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1950 * resource.c (next_insn_no_annul): Strengthen local "next" from
1952 (mark_referenced_resources): Likewise for local "insn".
1954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1956 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
1958 (find_reloads): Likewise for param 1.
1959 (subst_reloads): Likewise for sole param.
1960 (find_equiv_reg): Likwise for param 2.
1961 (regno_clobbered_p): Likwise for param 2.
1962 (reload): Likewise for param 1.
1964 * caller-save.c (save_call_clobbered_regs): Strengthen local
1965 "insn" from rtx to rtx_insn *.
1966 (insert_one_insn): Likewise for local "insn".
1968 * reload.c (this_insn): Likewise for this global.
1969 (find_reloads): Likewise for param "insn".
1970 (find_reloads_toplev): Likewise.
1971 (find_reloads_address): Likewise.
1972 (subst_reg_equivs): Likewise.
1973 (update_auto_inc_notes): Likewise.
1974 (find_reloads_address_1): Likewise.
1975 (find_reloads_subreg_address): Likewise.
1976 (subst_reloads): Likewise.
1977 (find_equiv_reg): Likewise, also for local "p".
1978 (regno_clobbered_p): Likewise for param "insn".
1980 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
1982 (spill_reg_store): Likewise for the elements of this array.
1983 (remove_init_insns): Likewise for local "equiv_insn".
1984 (will_delete_init_insn_p): Likewise for param "insn".
1985 (reload): Likewise for param ""first" and local "insn".
1986 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
1988 (calculate_elim_costs_all_insns): Likewise.
1989 (delete_caller_save_insns): Likewise.
1990 (spill_failure): Likewise for param "insn".
1991 (delete_dead_insn): Likewise.
1992 (set_label_offsets): Likewise.
1993 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
1995 (elimination_costs_in_insn): Likewise for param "insn".
1996 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
1997 when referring to an insn.
1998 (set_initial_label_offsets): Likewise.
1999 (set_offsets_for_label): Strengthen param "insn" from rtx to
2001 (init_eliminable_invariants): Likewise for param "first" and local
2003 (fixup_eh_region_note): Likewise for param "insn".
2004 (reload_as_needed): Likewise for locals "prev", "insn",
2005 "old_next", "old_prev", "next".
2006 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2008 (reload_inheritance_insn): Strengthen elements of this array from
2010 (failed_reload): Likewise for param "insn".
2011 (choose_reload_regs): Likewise for local "insn". Replace use of
2012 NULL_RTX with NULL when referring to an insn.
2013 (input_reload_insns): Strengthen elements of this array from rtx
2015 (other_input_address_reload_insns): Likewise for this global.
2016 (other_input_reload_insns): Likewise for this global.
2017 (input_address_reload_insns): Likwise for the elements of this
2019 (inpaddr_address_reload_insns): Likwise for the elements of this
2021 (output_reload_insns): Likewise for the elements of this array.
2022 (output_address_reload_insns): Likewise for the elements of this
2024 (outaddr_address_reload_insns): Likewise for the elements of this
2026 (operand_reload_insns): Likewise for this global.
2027 (other_operand_reload_insns): Likewise for this global.
2028 (other_output_reload_insns): Likewise for the elements of this
2030 (new_spill_reg_store): Likewise for the elements of this
2032 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2033 Strengthen local "where" from rtx * to rtx_insn **.
2034 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2035 from rtx to rtx_insn *.
2036 (do_input_reload): Likewise for local "insn".
2037 (do_output_reload): Likewise for local "insn".
2038 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2039 (emit_insn_if_valid_for_reload): Likewise for return type and local
2040 "last". Add checked cast to rtx_insn when returning "insn" since
2041 this has been through emit_insn.
2042 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2043 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2044 returning "insn" since it's been through
2045 emit_insn_if_valid_for_reload at this point.
2046 (delete_output_reload): Strengthen param "insn" and locals
2047 "output_reload_insn", "i2" from rtx to rtx_insn *.
2048 (delete_address_reloads): Likewise for params "dead_insn",
2049 "current_insn" and locals "prev", "next".
2050 (delete_address_reloads_1): Likewise for params "dead_insn",
2051 "current_insn" and locals "prev", "i2".
2052 (inc_for_reload): Likewise for locals "last", "add_insn".
2053 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2056 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2057 param of this duplicate of the prototype from reload.h
2059 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2061 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2063 (regstat_bb_compute_calls_crossed): Likewise.
2065 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2067 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2069 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2071 (regrename_analyze): Strengthen local "insn" from rtx to
2073 (scan_rtx_reg): Likewise for param "insn".
2074 (scan_rtx_address): Likewise.
2075 (scan_rtx): Likewise.
2076 (restore_operands): Likewise.
2077 (record_out_operands): Likewise.
2078 (build_def_use): Likewise for local "insn". Replace use of
2079 NULL_RTX with NULL when dealing with an insn.
2081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2083 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2084 * reginfo.c (reg_scan): Likewise, also for local "insn".
2085 (reg_scan_mark_refs): Likewise for param "insn".
2086 (init_subregs_of_mode): Likewise for local "insn".
2088 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2090 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2091 "insn" from rtx to rtx_insn *.
2092 (replace_oldest_value_reg): Likewise for param "insn".
2093 (replace_oldest_value_addr): Likewise.
2094 (replace_oldest_value_mem): Likewise.
2095 (apply_debug_insn_changes): Likewise for local "last_insn".
2096 (copyprop_hardreg_forward_1): Likewise for local "insn".
2098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2100 * reg-stack.c (next_flags_user): Strengthen return type and param
2101 "insn" from rtx to rtx_insn *.
2102 (straighten_stack): Likewise for param "insn".
2103 (check_asm_stack_operands): Likewise.
2104 (remove_regno_note): Likewise.
2105 (emit_pop_insn): Likewise for return type, param "insn", local
2107 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2108 "limit" from rtx to rtx_insn *.
2109 (swap_to_top): Likewise for param "insn".
2110 (move_for_stack_reg): Likewise.
2111 (move_nan_for_stack_reg): Likewise.
2112 (swap_rtx_condition): Likewise.
2113 (compare_for_stack_reg): Likewise.
2114 (subst_all_stack_regs_in_debug_insn): Likewise.
2115 (subst_stack_regs_pat): Likewise, and local "insn2".
2116 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2118 (subst_stack_regs): Likewise.
2119 (change_stack): Likewise.
2120 (convert_regs_1): Likewise for locals "insn", "next".
2122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2124 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2126 (combine_set_extension): Likewise for param "curr_insn".
2127 (transform_ifelse): Likewise for param "def_insn".
2128 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2129 from vec<rtx> * to vec<rtx_insn *> *.
2130 (is_cond_copy_insn): Likewise for param "insn".
2131 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2133 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2134 local "def_insn" from rtx to rtx_insn *.
2135 (get_sub_rtx): Likewise for param "def_insn".
2136 (merge_def_and_ext): Likewise.
2137 (combine_reaching_defs): Likewise.
2138 (add_removable_extension): Likewise for param "insn".
2139 (find_removable_extensions): Likewise for local "insn".
2140 (find_and_remove_re): Likewise for locals "curr_insn" and
2141 "def_insn". Strengthen locals "reinsn_del_list" and
2142 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2146 * recog.c (split_insn): Strengthen param "insn" and locals
2147 "first", "last" from rtx to rtx_insn *.
2148 (split_all_insns): Likewise for locals "insn", "next".
2149 (split_all_insns_noflow): Likewise.
2151 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2153 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
2155 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2156 (debug_rtx_find): Likewise for param 1 "x".
2158 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
2159 const_rtx to const rtx_insn *. Likewise for local "insn".
2160 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2161 (debug_rtx_find): Likewise for param 1 "x".
2162 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
2163 from const_rtx to const rtx_insn * within the appropriate cases of
2164 the switch statement.
2166 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
2167 Strengthen local "insns" from rtx to rtx_insn * since this is
2168 passed to a call to debug_rtx_list.
2170 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2172 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
2175 * function.c (stack_protect_epilogue): Add checked cast to
2176 rtx_insn for now when invoking predict_insn_def.
2178 * predict.c (predict_insn): Strengthen param "insn" from rtx to
2180 (predict_insn_def): Likewise.
2181 (rtl_predict_edge): Likewise for local "last_insn".
2182 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
2184 (combine_predictions_for_insn): Strengthen param "insn" from rtx
2186 (bb_estimate_probability_locally): Likewise for local "last_insn".
2187 (expensive_function_p): Likewise for local "insn".
2189 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
2190 local "jmp", since this is used when invoking predict_insn_def.
2192 2014-08-22 Marek Polacek <polacek@redhat.com>
2195 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
2197 2014-08-22 Marek Polacek <polacek@redhat.com>
2200 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
2201 a comparison in parens.
2202 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
2205 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2207 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
2210 * cprop.c (fis_get_condition): Likewise.
2212 * postreload.c (reload_cse_regs): Likewise for param "first".
2213 (reload_cse_simplify): Likewise for param "insn".
2214 (reload_cse_regs_1): Likewise for local "insn".
2215 (reload_cse_simplify_set): Likewise for param "insn".
2216 (reload_cse_simplify_operands): Likewise.
2217 (struct reg_use): Likewise for field "insn".
2218 (reload_combine_purge_insn_uses): Likewise for param "insn".
2219 (fixup_debug_insns): Likewise for params "from", "to" and local
2221 (try_replace_in_use): Likewise for local "use_insn".
2222 (reload_combine_recognize_const_pattern): Likewise for param
2223 "insn" and locals "add_moved_after_insn", "use_insn".
2224 (reload_combine_recognize_pattern): Likewise for param "insn" and
2226 (reload_combine): Likewise for locals "insn", "prev".
2227 (reload_combine_note_use): Likewise for param "insn".
2228 (move2add_use_add2_insn): Likewise.
2229 (move2add_use_add3_insn): Likewise.
2230 (reload_cse_move2add): Likewise, also for local "next".
2231 (move2add_note_store): Likewise for local "insn".
2233 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2235 * postreload-gcse.c (struct occr): Strengthen field "insn" from
2237 (struct unoccr): Likewise.
2238 (struct modifies_mem): Likewise.
2239 (alloc_mem): Likewise for local "insn".
2240 (insert_expr_in_table): Likewise for param "insn".
2241 (dump_expr_hash_table_entry): Likewise for local "insn".
2242 (oprs_unchanged_p): Likewise for param "insn".
2243 (load_killed_in_block_p): Likewise for local "setter".
2244 (record_last_reg_set_info): Likewise for param "insn".
2245 (record_last_reg_set_info_regno): Likewise.
2246 (record_last_mem_set_info): Likewise.
2247 (record_last_set_info): Likewise for local "last_set_insn".
2248 (record_opr_changes): Likewise for param "insn".
2249 (hash_scan_set): Likewise.
2250 (compute_hash_table): Likewise for local "insn".
2251 (get_avail_load_store_reg): Likewise for param "insn".
2252 (eliminate_partially_redundant_load): Likewise, also for locals
2253 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
2255 (eliminate_partially_redundant_loads): Likewise for local "insn".
2257 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2259 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
2261 (expand_binop): Likewise for locals "entry_last", "last", "insns"
2262 (expand_twoval_unop): Likewise for locals entry_last", "last".
2263 (expand_twoval_binop): Likewise.
2264 (expand_twoval_binop_libfunc): Likewise for local "insns".
2265 (widen_leading): Likewise for local "last".
2266 (expand_doubleword_clz): Likewise for local "seq". Strengthen
2267 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
2268 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
2269 (expand_parity): Likewise for locals "last" and "seq".
2270 (expand_ffs): Likewise for local "seq". Strengthen local
2271 "nonzero_label" from rtx to rtx_code_label *.
2272 (expand_absneg_bit): Strengthen local "insns" from rtx to
2274 (expand_unop_direct): Likewise for local "last".
2275 (expand_unop): Likewise for locals "last", "insns".
2276 (expand_abs_nojump): Likewise for local "last".
2277 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
2278 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
2280 (expand_copysign_absneg): Strengthen local "label" from rtx to
2282 (expand_copysign_bit): Strengthen local "insns" from rtx to
2284 (struct no_conflict_data): Likewise for fields "first", "insn".
2285 (emit_libcall_block_1): Likewise for param "insns" and locals
2286 "next", "last", "insn".
2287 (emit_libcall_block): For now, add a checked cast to rtx_insn *
2288 on "insns" when invoking emit_libcall_block_1. Ultimately we
2289 want to strengthen insns itself.
2290 (prepare_cmp_insn): Strengthen local "last" from rtx to
2292 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
2293 (prepare_float_lib_cmp): Likewise for local "insns".
2294 (emit_conditional_move): Likewise for local "last".
2295 (emit_conditional_add): Likewise.
2296 (have_sub2_insn): Likewise for local "seq".
2297 (expand_float): Likewise for local "insns". Strengthen locals
2298 "label", "neglabel" from rtx to rtx_code_label *.
2299 (expand_fix): Likewise for locals "last", "insn", "insns" (to
2300 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
2301 (expand_fixed_convert): Likewise for local "insns" (to
2303 (expand_sfix_optab): Likewise for local "last".
2304 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
2305 to rtx_code_label *.
2306 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
2307 from rtx to rtx_insn *.
2308 (expand_atomic_fetch_op): Likewise for local "insn".
2309 (maybe_legitimize_operand_same_code): Likewise for local "last".
2310 (maybe_legitimize_operands): Likewise.
2312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2314 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
2315 "insn" from rtx to rtx_insn *.
2316 (ps_rtl_insn): Likewise for return type.
2317 (doloop_register_get): Likewise for params "head", "tail" and
2318 locals "insn", "first_insn_not_to_check".
2319 (schedule_reg_move): Likewise for local "this_insn".
2320 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
2321 of gen_move_insn for now.
2322 (reset_sched_times): Strengthen local "insn" from rtx to
2324 (permute_partial_schedule): Likewise.
2325 (duplicate_insns_of_cycles): Likewise for local "u_insn".
2326 (dump_insn_location): Likewise for param "insn".
2327 (loop_canon_p): Likewise for local "insn".
2328 (sms_schedule): Likewise.
2329 (print_partial_schedule): Likewise.
2330 (ps_has_conflicts): Likewise.
2332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2334 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
2335 "tailp" from rtx * to rtx_insn **.
2337 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
2338 from rtx to rtx_insn *.
2339 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
2340 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
2341 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
2343 * modulo-sched.c (const_iteration_count): Strengthen return type
2344 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
2345 use of NULL_RTX with NULL when working with insns.
2346 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
2348 (sms_schedule): Likewise.
2349 * sched-rgn.c (init_ready_list): Likewise, also for locals
2350 "src_head" and "src_next_tail".
2351 (compute_block_dependences): Likewise.
2352 (free_block_dependencies): Likewise.
2353 (debug_rgn_dependencies): Likewise.
2354 (free_rgn_deps): Likewise.
2355 (compute_priorities): Likewise.
2356 (schedule_region): Likewise.
2357 * sel-sched.c (find_ebb_boundaries): Likewise.
2359 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
2360 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
2362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2364 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
2365 from rtx to rtx_insn *.
2366 (new_seginfo): Likewise for param "insn".
2367 (create_pre_exit): Likewise for locals "last_insn",
2368 "before_return_copy", "return_copy".
2369 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
2372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2374 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
2375 from rtx to rtx_insn *.
2376 (lra_push_insn): Likewise for 1st param.
2377 (lra_push_insn_and_update_insn_regno_info): Likewise.
2378 (lra_pop_insn): Likewise for return type.
2379 (lra_invalidate_insn_data): Likewise for 1st param.
2380 (lra_set_insn_deleted): Likewise.
2381 (lra_delete_dead_insn): Likewise.
2382 (lra_process_new_insns): Likewise for first 3 params.
2383 (lra_set_insn_recog_data): Likewise for 1st param.
2384 (lra_update_insn_recog_data): Likewise.
2385 (lra_set_used_insn_alternative): Likewise.
2386 (lra_invalidate_insn_regno_info): Likewise.
2387 (lra_update_insn_regno_info): Likewise.
2388 (lra_former_scratch_operand_p): Likewise.
2389 (lra_eliminate_regs_1): Likewise.
2390 (lra_get_insn_recog_data): Likewise.
2392 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
2395 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
2397 (substitute_within_insn): New.
2398 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
2399 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
2400 Replace call to "substitute" with call to substitute_within_insn.
2402 * lra-constraints.c (curr_insn): Strengthen from rtx to
2404 (get_equiv_with_elimination): Likewise for param "insn".
2405 (match_reload): Strengthen params "before" and "after" from rtx *
2407 (emit_spill_move): Likewise for return type. Add a checked cast
2408 to rtx_insn * on result of gen_move_insn for now.
2409 (check_and_process_move): Likewise for local "before". Replace
2410 NULL_RTX with NULL when referring to insns.
2411 (process_addr_reg): Strengthen params "before" and "after" from
2412 rtx * to rtx_insn **.
2413 (insert_move_for_subreg): Likewise.
2414 (simplify_operand_subreg): Strengthen locals "before" and "after"
2415 from rtx to rtx_insn *.
2416 (process_address_1): Strengthen params "before" and "after" from
2417 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
2419 (process_address): Strengthen params "before" and "after" from
2420 rtx * to rtx_insn **.
2421 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
2422 (curr_insn_transform): Strengthen locals "before" and "after"
2423 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
2425 (loc_equivalence_callback): Update cast of "data", changing
2426 resulting type from rtx to rtx_insn *.
2427 (substitute_pseudo_within_insn): New.
2428 (inherit_reload_reg): Strengthen param "insn" from rtx to
2429 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
2430 NULL when referring to insns. Add a checked cast to rtx_insn *
2431 when using usage_insn to invoke lra_update_insn_regno_info.
2432 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
2433 likewise for locals "restore", "save". Add checked casts to
2434 rtx_insn * when using usage_insn to invoke
2435 lra_update_insn_regno_info and lra_process_new_insns. Replace
2436 NULL_RTX with NULL when referring to insns.
2437 (split_if_necessary): Strengthen param "insn" from rtx to
2439 (update_ebb_live_info): Likewise for params "head", "tail" and local
2441 (get_last_insertion_point): Likewise for return type and local "insn".
2442 (get_live_on_other_edges): Likewise for local "last".
2443 (inherit_in_ebb): Likewise for params "head", "tail" and locals
2444 "prev_insn", "next_insn", "restore".
2445 (remove_inheritance_pseudos): Likewise for local "prev_insn".
2446 (undo_optional_reloads): Likewise for local "insn".
2448 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
2450 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
2452 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
2454 (spill_pseudos): Likewise for local "insn".
2455 (init_elimination): Likewise.
2456 (process_insn_for_elimination): Likewise for param "insn".
2458 * lra-lives.c (curr_insn): Likewise.;
2460 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
2461 (remove_pseudos): Likewise for param "insn".
2462 (spill_pseudos): Likewise for local "insn".
2463 (lra_final_code_change): Likewise for locals "insn", "curr".
2465 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
2466 (lra_set_insn_deleted): Likewise.
2467 (lra_delete_dead_insn): Likewise, and for local "prev".
2468 (new_insn_reg): Likewise for param "insn".
2469 (lra_set_insn_recog_data): Likewise.
2470 (lra_update_insn_recog_data): Likewise.
2471 (lra_set_used_insn_alternative): Likewise.
2472 (get_insn_freq): Likewise.
2473 (invalidate_insn_data_regno_info): Likewise.
2474 (lra_invalidate_insn_regno_info): Likewise.
2475 (lra_update_insn_regno_info): Likewise.
2476 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
2478 (lra_push_insn_1): Strengthen param "insn" from rtx to
2480 (lra_push_insn): Likewise.
2481 (lra_push_insn_and_update_insn_regno_info): Likewise.
2482 (lra_pop_insn): Likewise for return type and local "insn".
2483 (push_insns): Likewise for params "from", "to", and local "insn".
2484 (setup_sp_offset): Likewise for params "from", "last" and locals
2486 (lra_process_new_insns): Likewise for params "insn", "before",
2487 "after" and local "last".
2488 (struct sloc): Likewise for field "insn".
2489 (lra_former_scratch_operand_p): Likewise for param "insn".
2490 (remove_scratches): Likewise for locals "insn", "last".
2491 (check_rtl): Likewise for local "insn".
2492 (add_auto_inc_notes): Likewise for param "insn".
2493 (update_inc_notes): Likewise for local "insn".
2494 (lra): Replace NULL_RTX with NULL when referring to insn.
2496 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2498 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
2500 (resolve_reg_notes): Likewise.
2501 (resolve_simple_move): Likewise for return type, param "insn", and
2502 locals "insns", "minsn".
2503 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
2504 (resolve_use): Likewise.
2505 (resolve_debug): Likewise.
2506 (find_decomposable_shift_zext): Likewise.
2507 (resolve_shift_zext): Likewise for return type, param "insn", and
2508 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
2509 (decompose_multiword_subregs): Likewise for local "insn",
2510 "orig_insn", "decomposed_shift", "end".
2512 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2514 * basic-block.h (basic_block split_edge_and_insert): Strengthen
2515 param "insns" from rtx to rtx_insn *.
2517 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
2519 (struct iv_to_split): Likewise.
2520 (loop_exit_at_end_p): Likewise for local "insn".
2521 (split_edge_and_insert): Likewise for param "insns".
2522 (compare_and_jump_seq): Likewise for return type, param "cinsn",
2523 and locals "seq", "jump".
2524 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
2525 "branch_code"; update invocations of compare_and_jump_seq to
2526 eliminate NULL_RTX in favor of NULL.
2527 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
2529 (reset_debug_uses_in_loop): Likewise.
2530 (analyze_insn_to_expand_var): Likewise for param "insn".
2531 (analyze_iv_to_split_insn): Likewise.
2532 (analyze_insns_in_loop): Likewise for local "insn".
2533 (insert_base_initialization): Likewise for param
2534 "insn" and local "seq".
2535 (split_iv): Likewise for param "insn" and local "seq".
2536 (expand_var_during_unrolling): Likewise for param "insn".
2537 (insert_var_expansion_initialization): Likewise for local "seq".
2538 (combine_var_copies_in_loop_exit): Likewise.
2539 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
2541 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
2542 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
2545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2547 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
2549 (iv_analyze_result): Likewise.
2550 (iv_analyze_expr): Likewise.
2553 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
2554 local "def_insn" from rtx to rtx_insn *.
2555 (get_biv_step_1): Likewise for local "insn".
2556 (iv_analyze_expr): Likewise for param "insn".
2557 (iv_analyze_def): Likewise for local "insn".
2558 (iv_analyze_op): Likewise for param "insn".
2559 (iv_analyze): Likewise.
2560 (iv_analyze_result): Likewise.
2562 (suitable_set_for_replacement): Likewise.
2563 (simplify_using_initial_values): Likewise for local "insn".
2564 (iv_number_of_iterations): Likewise for param "insn".
2565 (check_simple_exit): Add checked cast to rtx_insn when invoking
2566 iv_number_of_iterations for now (until get_condition is
2569 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
2570 "insn" from rtx to rtx_insn *.
2571 (analyze_insns_in_loop): Likewise for local "insn".
2573 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2575 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
2577 (struct invariant): Likewise.
2578 (hash_invariant_expr_1): Likewise for param "insn".
2579 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
2580 (find_exits): Likewise for local "insn".
2581 (create_new_invariant): Likewise for param "insn".
2582 (check_dependencies): Likewise.
2583 (find_invariant_insn): Likewise.
2584 (record_uses): Likewise.
2585 (find_invariants_insn): Likewise.
2586 (find_invariants_bb): Likewise for local "insn".
2587 (get_pressure_class_and_nregs): Likewise for param "insn".
2588 (calculate_loop_reg_pressure): Likewise for local "insn".
2590 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2592 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
2594 (add_test): Likewise for locals "seq", "jump".
2595 (doloop_modify): Likewise for locals "sequence", "jump_insn".
2597 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2599 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
2601 (rebuild_jump_labels_chain): Likewise for param "chain".
2603 * cfgexpand.c (pass_expand::execute): Add checked cast to
2604 rtx_insn * when calling rebuild_jump_labels_chain in region where
2605 we know e->insns.r is non-NULL.
2607 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
2609 (rebuild_jump_labels): Likewise.
2610 (rebuild_jump_labels_chain): Likewise for param "chain".
2611 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
2612 (init_label_info): Likewise for param "f".
2613 (maybe_propagate_label_ref): Likewise for params "jump_insn",
2614 "prev_nonjump_insn".
2615 (mark_all_labels): Likewise for param "f" and locals "insn",
2616 "prev_nonjump_insn".
2618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2620 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
2621 from rtx to rtx_insn *insn.
2622 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
2623 (ira_add_allocno_copy): Likewise.
2624 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
2626 (ira_create_copy): Likewise.
2627 (ira_add_allocno_copy): Likewise.
2628 (create_bb_allocnos): Likewise for local "insn".
2629 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
2630 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
2631 process_regs_for_copy for rtx_insn * param.
2632 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
2633 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
2634 process_regs_for_copy for rtx_insn * param.
2635 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
2636 * ira-costs.c (record_reg_classes): Likewise for param "insn".
2637 (record_operand_costs): Likewise.
2638 (scan_one_insn): Likewise for return type, and for param "insn".
2639 (process_bb_for_costs): Likewise for local "insn".
2640 (process_bb_node_for_hard_reg_moves): Likewise.
2641 * ira-emit.c (struct move): Likewise for field "insn".
2642 (create_move): Eliminate use of NULL_RTX when dealing with an
2644 (emit_move_list): Strengthen return type and locals "result",
2645 "insn" from rtx to rtx_insn *insn.
2646 (emit_moves): Likewise for locals "insns", "tmp".
2647 (ira_emit): Likewise for local "insn".
2648 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
2650 (find_call_crossed_cheap_reg): Likewise.
2651 (process_bb_node_lives): Likewise for local "insn".
2652 * ira.c (decrease_live_ranges_number): Likewise.
2653 (compute_regs_asm_clobbered): Likewise.
2654 (build_insn_chain): Likewise.
2655 (find_moveable_pseudos): Likewise, also locals "def_insn",
2656 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
2657 to rtx_insn **. Add a checked cast when assigning from
2658 "closest_use" into closest_uses array in a region where we know
2659 it's a non-NULL insn.
2660 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
2662 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
2663 "last_interesting_insn", "uin".
2664 (move_unallocated_pseudos): Likewise for locals "def_insn",
2665 "move_insn", "newinsn".
2667 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2669 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
2670 Strengthen locals "done_label", "do_error" from rtx to
2672 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
2673 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
2675 (ubsan_expand_si_overflow_neg_check): Likewise for locals
2676 "done_label", "do_error" to rtx_code_label * and local "last" to
2678 (ubsan_expand_si_overflow_mul_check): Likewise for locals
2679 "done_label", "do_error", "large_op0", "small_op0_large_op1",
2680 "one_small_one_large", "both_ops_large", "after_hipart_neg",
2681 "after_lopart_neg", "do_overflow", "hipart_different" to
2682 rtx_code_label * and local "last" to rtx_insn *.
2684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2686 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
2687 "insn" and "move_insn" from rtx to rtx_insn *.
2689 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2691 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
2693 (cheap_bb_rtx_cost_p): Likewise.
2694 (first_active_insn): Likewise for return type and local "insn".
2695 (last_active_insn): Likewise for return type and locals "insn",
2697 (struct noce_if_info): Likewise for fields "jump", "insn_a",
2699 (end_ifcvt_sequence): Likewise for return type and locals "insn",
2701 (noce_try_move): Likewise for local "seq".
2702 (noce_try_store_flag): Likewise.
2703 (noce_try_store_flag_constants): Likewise.
2704 (noce_try_addcc): Likewise.
2705 (noce_try_store_flag_mask): Likewise.
2706 (noce_try_cmove): Likewise.
2707 (noce_try_minmax): Likewise.
2708 (noce_try_abs): Likewise.
2709 (noce_try_sign_mask): Likewise.
2710 (noce_try_bitop): Likewise.
2711 (noce_can_store_speculate_p): Likewise for local "insn".
2712 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
2714 (check_cond_move_block): Likewise for local "insn".
2715 (cond_move_convert_if_block): Likewise.
2716 (cond_move_process_if_block): Likewise for locals "seq",
2718 (noce_find_if_block): Likewise for local "jump".
2719 (merge_if_block): Likewise for local "last".
2720 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
2721 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
2722 (block_has_only_trap): Likewise for return type and local "trap".
2723 (find_if_case_1): Likewise for local "jump".
2724 (dead_or_predicable): Likewise for locals "head", "end", "jump",
2727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2729 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
2730 "last_insn", "loop_end" from rtx to rtx_insn *.
2732 * hw-doloop.c (scan_loop): Likewise for local "insn".
2733 (discover_loop): Likewise for param "tail_insn".
2734 (discover_loops): Likewise for local "tail".
2736 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
2737 cast to rtx_insn * when assigning from an rtx local to a
2738 hwloop_info's "last_insn" field.
2740 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2742 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
2743 (add_delay_dependencies): Strengthen local "pro" from rtx to
2745 (recompute_todo_spec): Likewise.
2746 (dep_cost_1): Likewise for locals "insn", "used".
2747 (schedule_insn): Likewise for local "dbg".
2748 (schedule_insn): Likewise for locals "pro", "next".
2749 (unschedule_insns_until): Likewise for local "con".
2750 (restore_pattern): Likewise for local "next".
2751 (estimate_insn_tick): Likewise for local "pro".
2752 (resolve_dependencies): Likewise for local "next".
2753 (fix_inter_tick): Likewise.
2754 (fix_tick_ready): Likewise for local "pro".
2755 (add_to_speculative_block): Likewise for locals "check", "twin",
2757 (sched_extend_bb): Likewise for locals "end", "insn".
2758 (init_before_recovery): Likewise for local "x".
2759 (sched_create_recovery_block): Likewise for local "barrier".
2760 (create_check_block_twin): Likewise for local "pro".
2761 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
2763 (unlink_bb_notes): Update for change to type of bb_header.
2764 Strengthen locals "prev", "label", "note", "next" from rtx to
2766 (clear_priorities): Likewise for local "pro".
2768 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2770 * gcse.c (struct occr): Strengthen field "insn" from rtx to
2772 (test_insn): Likewise for this global.
2773 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
2775 (oprs_anticipatable_p): Likewise.
2776 (oprs_available_p): Likewise.
2777 (insert_expr_in_table): Strengthen param "insn" from rtx to
2779 (hash_scan_set): Likewise.
2780 (hash_scan_clobber): Likewise.
2781 (hash_scan_call): Likewise.
2782 (hash_scan_insn): Likewise.
2783 (compute_hash_table_work): Likewise for local "insn".
2784 (process_insert_insn): Likewise for return type and local "pat".
2785 (insert_insn_end_basic_block): Likewise for locals "new_insn",
2786 "pat", "pat_end", "maybe_cc0_setter".
2787 (pre_edge_insert): Likewise for local "insn".
2788 (pre_insert_copy_insn): Likewise for param "insn".
2789 (pre_insert_copies): Likewise for local "insn".
2790 (struct set_data): Likewise for field "insn".
2791 (single_set_gcse): Likewise for param "insn".
2792 (gcse_emit_move_after): Likewise.
2793 (pre_delete): Likewise for local "insn".
2794 (update_bb_reg_pressure): Likewise for param "from" and local
2796 (should_hoist_expr_to_dom): Likewise for param "from".
2797 (hoist_code): Likewise for local "insn".
2798 (get_pressure_class_and_nregs): Likewise for param "insn".
2799 (calculate_bb_reg_pressure): Likewise for local "insn".
2800 (compute_ld_motion_mems): Likewise.
2802 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2804 * genpeep.c (main): Rename param back from "uncast_ins1" to
2805 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
2808 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
2810 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2813 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
2814 documentation to state it is only for VSX operations.
2816 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
2817 constraint only active if VSX.
2819 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
2820 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
2823 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2825 * fwprop.c (single_def_use_dom_walker::before_dom_children):
2826 Strengthen local "insn" from rtx to rtx_insn *.
2827 (use_killed_between): Likewise for param "target_insn".
2828 (all_uses_available_at): Likewise for param "target_insn" and
2830 (update_df_init): Likewise for params "def_insn", "insn".
2831 (update_df): Likewise for param "insn".
2832 (try_fwprop_subst): Likewise for param "def_insn" and local
2834 (free_load_extend): Likewise for param "insn".
2835 (forward_propagate_subreg): Likewise for param "def_insn" and
2837 (forward_propagate_asm): Likewise for param "def_insn" and local
2839 (forward_propagate_and_simplify): Likewise for param "def_insn"
2840 and local "use_insn".
2841 (forward_propagate_into): Likewise for locals "def_insn" and
2844 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2846 * function.c (emit_initial_value_sets): Strengthen local "seq"
2847 from rtx to rtx_insn *.
2848 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
2850 (instantiate_virtual_regs): Likewise for local "insn".
2851 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
2852 (reorder_blocks_1): Likewise for param "insns" and local "insn".
2853 (expand_function_end): Likewise for locals "insn" and "seq".
2854 (epilogue_done): Likewise for local "insn".
2855 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
2857 (reposition_prologue_and_epilogue_notes): Likewise for locals
2858 "insn", "last", "note", "first".
2859 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
2860 (pass_match_asm_constraints::execute): Likewise for local "insn".
2862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2864 * output.h (final_scan_insn): Strengthen return type from rtx to
2866 (final_forward_branch_p): Likewise for param.
2867 (current_output_insn): Likewise for this global.
2869 * final.c (rtx debug_insn): Likewise for this variable.
2870 (current_output_insn): Likewise.
2871 (get_attr_length_1): Rename param "insn" to "uncast_insn",
2872 adding "insn" back in as an rtx_insn * with a checked cast, so
2873 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
2875 (compute_alignments): Strengthen local "label" from rtx to
2877 (shorten_branches): Rename param from "first" to "uncast_first",
2878 introducing a new local rtx_insn * "first" using a checked cast to
2879 effectively strengthen "first" from rtx to rtx_insn * without
2880 affecting the type signature. Strengthen locals "insn", "seq",
2881 "next", "label" from rtx to rtx_insn *.
2882 (change_scope): Strengthen param "orig_insn" and local "insn" from
2884 (final_start_function): Rename param from "first" to "uncast_first",
2885 introducing a new local rtx_insn * "first" using a checked cast to
2886 effectively strengthen "first" from rtx to rtx_insn * without
2887 affecting the type signature. Strengthen local "insn" from rtx to
2889 (dump_basic_block_info): Strengthen param "insn" from rtx to
2891 (final): Rename param from "first" to "uncast_first",
2892 introducing a new local rtx_insn * "first" using a checked cast to
2893 effectively strengthen "first" from rtx to rtx_insn * without
2894 affecting the type signature. Strengthen locals "insn", "next"
2895 from rtx to rtx_insn *.
2896 (output_alternate_entry_point): Strengthen param "insn" from rtx to
2898 (call_from_call_insn): Strengthen param "insn" from rtx to
2900 (final_scan_insn): Rename param from "insn" to "uncast_insn",
2901 introducing a new local rtx_insn * "insn" using a checked cast to
2902 effectively strengthen "insn" from rtx to rtx_insn * without
2903 affecting the type signature. Strengthen return type and locals
2904 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
2905 now-redundant checked cast to rtx_insn * from both invocations of
2906 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
2907 introducing a local "call_insn" for use when invoking
2908 call_from_call_insn.
2909 (notice_source_line): Strengthen param "insn" from rtx to
2911 (leaf_function_p): Likewise for local "insn".
2912 (final_forward_branch_p): Likewise.
2913 (leaf_renumber_regs): Likewise for param "first".
2914 (rest_of_clean_state): Likewise for locals "insn" and "next".
2915 (self_recursive_call_p): Likewise for param "insn".
2916 (collect_fn_hard_reg_usage): Likewise for local "insn".
2917 (get_call_fndecl): Likewise for param "insn".
2918 (get_call_cgraph_rtl_info): Likewise.
2919 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
2920 introducing a new local rtx_insn * "insn" using a checked cast to
2921 effectively strengthen "insn" from rtx to rtx_insn * without
2922 affecting the type signature.
2924 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
2925 cast when assigning from param "insn" to current_output_insn.
2926 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
2927 so that we can assign it back to current_output_insn.
2929 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2931 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
2932 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
2933 atmxt540s and atmxt540sreva devices.
2934 * config/avr/avr-tables.opt: Regenerate.
2935 * config/avr/t-multilib: Regenerate.
2936 * doc/avr-mmcu.texi: Regenerate.
2938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2940 * expr.c (convert_move): Strengthen local "insns" from rtx to
2942 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
2943 "top_label" from rtx to rtx_code_label *.
2944 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
2946 (emit_single_push_insn): Likewise for locals "prev", "last".
2947 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
2948 to rtx_code_label *.
2949 (store_constructor): Likewise for locals "loop_start", "loop_end".
2950 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
2952 (expand_expr_real_2): Likewise.
2953 (expand_expr_real_1): Strengthen local "label" from rtx to
2956 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2958 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
2959 from rtx to rtx_insn *.
2960 (store_bit_field_1): Likewise.
2961 (extract_bit_field_1): Likewise.
2962 (expand_mult_const): Likewise for local "insns".
2963 (expmed_mult_highpart): Strengthen local "label" from rtx to
2965 (expand_smod_pow2): Likewise.
2966 (expand_sdiv_pow2): Likewise.
2967 (expand_divmod): Strengthen locals "last", "insn" from rtx to
2968 rtx_insn *. Strengthen locals "label", "label1", "label2",
2969 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
2970 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
2971 (emit_store_flag): Likewise.
2972 (emit_store_flag_force): Strengthen local "label" from rtx to
2974 (do_cmp_and_jump): Likewise for param "label".
2976 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2978 * explow.c (force_reg): Strengthen local "insn" from rtx to
2980 (adjust_stack_1): Likewise.
2981 (allocate_dynamic_stack_space): Likewise. Strengthen locals
2982 "final_label", "available_label", "space_available" from rtx to
2984 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
2985 (anti_adjust_stack_and_probe): Likewise.
2987 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2989 * except.h (sjlj_emit_function_exit_after): Strengthen param
2990 "after" from rtx to rtx_insn *. This is only called with
2991 result of get_last_insn (in function.c) so type-change should be
2994 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
2995 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
2996 to rtx_insn *. These fields are only used from except.c so this
2997 type-change should be self-contained to this patch.
2999 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3000 local "last" from rtx to rtx_insn *.
3001 (dw2_build_landing_pads): Likewise for local "seq".
3002 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3003 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3004 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3006 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3008 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3009 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3010 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3011 referring to an insn. Strengthen local "dispatch_label" from
3012 rtx to rtx_code_label *.
3013 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3015 (expand_eh_return): Strengthen local "around_label" from
3016 rtx to rtx_code_label *.
3017 (convert_to_eh_region_ranges): Strengthen locals "iter",
3018 "last_action_insn", "first_no_action_insn",
3019 "first_no_action_insn_before_switch",
3020 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3024 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3025 from rtx to rtx_insn *.
3026 (cached_next_real_insn): Likewise.
3027 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3029 (dwarf2out_var_location): Strengthen locals "next_real",
3030 "next_note", "expected_next_loc_note", "last_start", "insn" from
3033 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3035 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3036 from rtx to rtx_insn *.
3037 (create_pseudo_cfg): Likewise for local "insn".
3039 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3041 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3042 from rtx to rtx_insn *.
3043 (df_bb_regno_last_def_find): Likewise.
3045 * df-problems.c (df_rd_bb_local_compute): Likewise.
3046 (df_lr_bb_local_compute): Likewise.
3047 (df_live_bb_local_compute): Likewise.
3048 (df_chain_remove_problem): Likewise.
3049 (df_chain_create_bb): Likewise.
3050 (df_word_lr_bb_local_compute): Likewise.
3051 (df_remove_dead_eq_notes): Likewise for param "insn".
3052 (df_note_bb_compute): Likewise for local "insn".
3053 (simulate_backwards_to_point): Likewise.
3054 (df_md_bb_local_compute): Likewise.
3056 * df-scan.c (df_scan_free_bb_info): Likewise.
3057 (df_scan_start_dump): Likewise.
3058 (df_scan_start_block): Likewise.
3059 (df_install_ref_incremental): Likewise for local "insn".
3060 (df_insn_rescan_all): Likewise.
3061 (df_reorganize_refs_by_reg_by_insn): Likewise.
3062 (df_reorganize_refs_by_insn_bb): Likewise.
3063 (df_recompute_luids): Likewise.
3064 (df_bb_refs_record): Likewise.
3065 (df_update_entry_exit_and_calls): Likewise.
3066 (df_bb_verify): Likewise.
3068 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3070 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3071 "first_note" from rtx to rtx_insn *.
3072 (get_node_of_insn): Likewise for param 2 "insn".
3073 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3075 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3077 (mem_write_insn_p): Likewise.
3078 (mem_access_insn_p): Likewise.
3079 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3080 (def_has_ccmode_p): Likewise for param "insn".
3081 (add_cross_iteration_register_deps): Likewise for locals
3082 "def_insn" and "use_insn".
3083 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3084 (build_intra_loop_deps): Likewise for local "src_insn".
3085 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3087 (get_node_of_insn): Likewise for param "insn".
3089 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3091 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3092 (deletable_insn_p): Strengthen param "insn" from rtx to
3093 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3094 find_call_stack_args, since this is guarded by CALL_P (insn).
3095 (marked_insn_p): Strengthen param "insn" from rtx to
3097 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3098 invoking find_call_stack_args, since this is guarded by
3100 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3101 rtx_insn *; we know this is an insn since this was called by
3103 (mark_nonreg_stores_2): Likewise.
3104 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3106 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3107 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3109 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3110 from rtx to rtx_insn *.
3111 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3113 (delete_unmarked_insns): Likewise for locals "insn", "next".
3114 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3115 (mark_reg_dependencies): Likewise for param "insn".
3116 (rest_of_handle_ud_dce): Likewise for local "insn".
3117 (word_dce_process_block): Likewise.
3118 (dce_process_block): Likewise.
3120 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3122 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3123 from rtx to rtx_insn *.
3124 (struct change_cc_mode_args): Likewise for field "insn".
3125 (this_insn): Strengthen from rtx to rtx_insn *.
3126 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3128 (validate_canon_reg): Strengthen param "insn" from rtx to
3130 (canon_reg): Likewise.
3131 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3133 (record_jump_equiv): Strengthen param "insn" from rtx to
3135 (try_back_substitute_reg): Likewise, also for locals "prev",
3137 (find_sets_in_insn): Likewise for param "insn".
3138 (canonicalize_insn): Likewise.
3139 (cse_insn): Likewise. Add a checked cast.
3140 (invalidate_from_clobbers): Likewise for param "insn".
3141 (invalidate_from_sets_and_clobbers): Likewise.
3142 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3144 (cse_prescan_path): Strengthen local "insn" from rtx to
3146 (cse_extended_basic_block): Likewise for locals "insn" and
3148 (cse_main): Likewise for param "f".
3149 (check_for_label_ref): Likewise for local "insn".
3150 (set_live_p): Likewise for second param ("insn").
3151 (insn_live_p): Likewise for first param ("insn") and for local
3153 (cse_change_cc_mode_insn): Likewise for first param "insn".
3154 (cse_change_cc_mode_insns): Likewise for first and second params
3156 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
3158 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
3161 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3163 Anna Tikhonova <anna.tikhonova@intel.com>
3164 Ilya Tocar <ilya.tocar@intel.com>
3165 Andrey Turetskiy <andrey.turetskiy@intel.com>
3166 Ilya Verbin <ilya.verbin@intel.com>
3167 Kirill Yukhin <kirill.yukhin@intel.com>
3168 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3170 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
3172 * config/i386/sse.md
3173 (define_mode_iterator VI248_AVX2): Delete.
3174 (define_mode_iterator VI2_AVX2_AVX512BW): New.
3175 (define_mode_iterator VI48_AVX2): Ditto.
3176 (define_insn <shift_insn><mode>3): Delete.
3177 (define_insn "<shift_insn><mode>3<mask_name>" with
3178 VI2_AVX2_AVX512BW): New.
3179 (define_insn "<shift_insn><mode>3<mask_name>" with
3182 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3183 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3184 Anna Tikhonova <anna.tikhonova@intel.com>
3185 Ilya Tocar <ilya.tocar@intel.com>
3186 Andrey Turetskiy <andrey.turetskiy@intel.com>
3187 Ilya Verbin <ilya.verbin@intel.com>
3188 Kirill Yukhin <kirill.yukhin@intel.com>
3189 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3191 * config/i386/sse.md
3192 (define_mode_iterator VI4F_BRCST32x2): New.
3193 (define_mode_attr 64x2_mode): Ditto.
3194 (define_mode_attr 32x2mode): Ditto.
3195 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
3196 with VI4F_BRCST32x2): Ditto.
3197 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
3198 with V16FI mode iterator): Ditto.
3199 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3201 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3202 with VI8F_BRCST64x2): Ditto.
3204 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3205 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3206 Anna Tikhonova <anna.tikhonova@intel.com>
3207 Ilya Tocar <ilya.tocar@intel.com>
3208 Andrey Turetskiy <andrey.turetskiy@intel.com>
3209 Ilya Verbin <ilya.verbin@intel.com>
3210 Kirill Yukhin <kirill.yukhin@intel.com>
3211 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3213 * config/i386/sse.md
3214 (define_mode_iterator VI8_AVX512VL): New.
3215 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
3217 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3219 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
3220 (define_mode_iterator V48_AVX512VL): New.
3221 (define_mode_iterator V12_AVX512VL): Ditto.
3222 (define_insn <avx512>_load<mode>_mask): Split into two similar
3223 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
3224 Refactor output template.
3225 (define_insn "<avx512>_store<mode>_mask"): Ditto.
3227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3229 * cprop.c (struct occr): Strengthen field "insn" from rtx to
3231 (reg_available_p): Likewise for param "insn".
3232 (insert_set_in_table): Likewise.
3233 (hash_scan_set): Likewise.
3234 (hash_scan_insn): Likewise.
3235 (make_set_regs_unavailable): Likewise.
3236 (compute_hash_table_work): Likewise for local "insn".
3237 (reg_not_set_p): Strengthen param "insn" from const_rtx to
3239 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
3240 (try_replace_reg): Likewise.
3241 (find_avail_set): Likewise.
3242 (cprop_jump): Likewise for params "setcc", "jump".
3243 (constprop_register): Likewise for param "insn".
3244 (cprop_insn): Likewise.
3245 (do_local_cprop): Likewise.
3246 (local_cprop_pass): Likewise for local "insn".
3247 (bypass_block): Likewise for params "setcc" and "jump".
3248 (bypass_conditional_jumps): Likewise for locals "setcc" and
3250 (one_cprop_pass): Likewise for local "insn".
3252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3254 * compare-elim.c (struct comparison_use): Strengthen field "insn"
3255 from rtx to rtx_insn *.
3256 (struct comparison): Likewise, also for field "prev_clobber".
3257 (conforming_compare): Likewise for param "insn".
3258 (arithmetic_flags_clobber_p): Likewise.
3259 (find_flags_uses_in_insn): Likewise.
3260 (find_comparison_dom_walker::before_dom_children): Likewise for
3261 locals "insn", "next", "last_clobber".
3262 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
3264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3266 * combine-stack-adj.c (struct csa_reflist): Strengthen field
3267 "insn" from rtx to rtx_insn *.
3268 (single_set_for_csa): Likewise for param "insn".
3269 (record_one_stack_ref): Likewise.
3270 (try_apply_stack_adjustment): Likewise.
3271 (struct record_stack_refs_data): Likewise for field "insn".
3272 (maybe_move_args_size_note): Likewise for params "last" and "insn".
3273 (prev_active_insn_bb): Likewise for return type and param "insn".
3274 (next_active_insn_bb): Likewise.
3275 (force_move_args_size_note): Likewise for params "prev" and "last"
3276 and locals "test", "next_candidate", "prev_candidate".
3277 (combine_stack_adjustments_for_block): Strengthen locals
3278 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
3281 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3283 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
3284 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
3285 (subst_insn): Likewise for this variable.
3286 (added_links_insn): Likewise.
3287 (struct insn_link): Likewise for field "insn".
3288 (alloc_insn_link): Likewise for param "insn".
3289 (struct undobuf): Likewise for field "other_insn".
3290 (find_single_use): Likewise for param "insn" and local "next".
3291 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
3292 (delete_noop_moves): Likewise for locals "insn", "next".
3293 (create_log_links): Likewise for locals "insn", "use_insn".
3294 Strengthen local "next_use" from rtx * to rtx_insn **.
3295 (insn_a_feeds_b): Likewise for params "a", "b".
3296 (combine_instructions): Likewise for param "f" and locals "insn",
3297 "next", "prev", "first", "last_combined_insn", "link", "link1",
3298 "temp". Replace use of NULL_RTX with NULL when referring to
3300 (setup_incoming_promotions): Likewise for param "first"
3301 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
3302 (can_combine_p): Likewise for params "insn", "i3", "pred",
3303 "pred2", "succ", "succ2" and for local "p".
3304 (combinable_i3pat): Likewise for param "i3".
3305 (cant_combine_insn_p): Likewise for param "insn".
3306 (likely_spilled_retval_p): Likewise.
3307 (adjust_for_new_dest): Likewise.
3308 (update_cfg_for_uncondjump): Likewise, also for local "insn".
3309 (try_combine): Likewise for return type and for params "i3", "i2",
3310 "i1", "i0", "last_combined_insn", and for locals "insn",
3311 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
3312 "i0_insn". Eliminate local "tem" in favor of new locals
3313 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
3314 checked cast for now to rtx_insn * on the return type of
3315 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
3317 (find_split_point): Strengthen param "insn" from rtx to
3319 (simplify_set): Likewise for local "other_insn".
3320 (recog_for_combine): Likewise for param "insn".
3321 (record_value_for_reg): Likewise.
3322 (record_dead_and_set_regs_1): Likewise for local
3324 (record_dead_and_set_regs): Likewise for param "insn".
3325 (record_promoted_value): Likewise.
3326 (check_promoted_subreg): Likewise.
3327 (get_last_value_validate): Likewise.
3328 (reg_dead_at_p): Likewise.
3329 (move_deaths): Likewise for param "to_insn".
3330 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
3331 and locals "place", "place2", "cc0_setter". Eliminate local "tem
3332 in favor of new locals "tem_note" and "tem_insn", the latter being
3334 (distribute_links): Strengthen locals "place", "insn" from rtx to
3337 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3339 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
3341 (can_delete_label_p): Require a const rtx_code_label * rather than
3343 (delete_insn): Add checked cast to rtx_code_label * when we know
3344 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
3346 (delete_insn_chain): Strengthen locals "prev" and "current" from
3347 rtx to rtx_insn *. Add a checked cast when assigning from
3348 "finish" (strengthening the params will come later). Add a
3349 checked cast to rtx_note * in region where we know
3351 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
3353 (compute_bb_for_insn): Likewise.
3354 (free_bb_for_insn): Likewise for local "insn".
3355 (compute_bb_for_insn): Likewise.
3356 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
3357 local "insn" from rtx to rtx_insn *
3358 (flow_active_insn_p): Require a const rtx_insn * rather than a
3360 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
3362 (can_fallthru): Likewise for locals "insn" and "insn2".
3363 (bb_note): Likewise for local "note".
3364 (first_insn_after_basic_block_note): Likewise for local "note" and
3366 (rtl_split_block): Likewise for locals "insn" and "next".
3367 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
3369 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
3370 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
3372 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
3373 them), "kill_from", "barrier", "new_insn".
3374 (patch_jump_insn): Likewise for params "insn", "old_label".
3375 (redirect_branch_edge): Likewise for locals "old_label", "insn".
3376 (force_nonfallthru_and_redirect): Likewise for locals "insn",
3377 "old_label", "new_label".
3378 (rtl_tidy_fallthru_edge): Likewise for local "q".
3379 (rtl_split_edge): Likewise for locals "before", "last".
3380 (commit_one_edge_insertion): Likewise for locals "before",
3381 "after", "insns", "tmp", "last", adding a checked cast where
3382 currently necessary.
3383 (commit_edge_insertions): Likewise.
3384 (rtl_dump_bb): Likewise for locals "insn", "last".
3385 (print_rtl_with_bb): Likewise for local "x".
3386 (rtl_verify_bb_insns): Likewise for local "x".
3387 (rtl_verify_bb_pointers): Likewise for local "insn".
3388 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
3390 (rtl_verify_fallthru): Likewise for local "insn".
3391 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
3392 (purge_dead_edges): Likewise for local "insn".
3393 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
3394 (skip_insns_after_block): Likewise for return type and for locals
3395 "insn", "last_insn", "next_head", "prev".
3396 (record_effective_endpoints): Likewise for locals "next_insn",
3398 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
3399 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
3400 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
3401 (duplicate_insn_chain): For now, add checked cast from rtx to
3402 rtx_insn * when returning insn.
3403 (cfg_layout_duplicate_bb): Likewise for local "insn".
3404 (cfg_layout_delete_block): Likewise for locals "insn", "next",
3406 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
3407 (rtl_block_empty_p): Likewise.
3408 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
3409 "split_point", "last".
3410 (rtl_block_ends_with_call_p): Likewise for local "insn".
3411 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
3413 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
3414 "split_at_insn" from rtx to rtx_insn *.
3415 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
3416 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
3417 to const rtx_insn *.
3418 (rtl_account_profile_record): Likewise.
3420 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3422 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
3424 (average_num_loop_insns): Likewise.
3425 (init_set_costs): Likewise for local "seq".
3426 (seq_cost): Likewise for param "seq", from const_rtx to const
3429 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3431 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
3434 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3436 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
3437 "f1" and "f2" from rtx * to rtx_insn **.
3438 (flow_find_head_matching_sequence): Likewise.
3440 * cfgcleanup.c (try_simplify_condjump): Strengthen local
3441 "cbranch_insn" from rtx to rtx_insn *.
3442 (thread_jump): Likewise for local "insn".
3443 (try_forward_edges): Likewise for local "last".
3444 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
3445 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
3447 (can_replace_by): Likewise for params "i1", "i2".
3448 (old_insns_match_p): Likewise.
3449 (merge_notes): Likewise.
3450 (walk_to_nondebug_insn): Likewise for param "i1".
3451 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
3452 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
3453 "afterlast1", "afterlast2" from rtx to rtx_insn *.
3454 (flow_find_head_matching_sequence): Strengthen params "f1" and
3455 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
3456 "last1", "last2", "beforelast1", "beforelast2" from rtx to
3458 (outgoing_edges_match): Likewise for locals "last1", "last2".
3459 (try_crossjump_to_edge): Likewise for local "insn".
3460 Replace call to for_each_rtx with for_each_rtx_in_insn.
3462 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
3463 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
3464 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
3465 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
3466 (try_optimize_cfg): Strengthen local "last" from rtx to
3468 (delete_dead_jumptables): Likewise for locals "insn", "next",
3471 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
3472 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
3473 "rtx else_first_tail", to reflect the basic-block.h changes above.
3475 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3477 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
3479 (purge_dead_tablejump_edges): Likewise.
3480 (find_bb_boundaries): Likewise for locals "insn", "end",
3481 "flow_transfer_insn".
3483 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3485 * caller-save.c (save_call_clobbered_regs): Strengthen locals
3486 "ins" and "prev" from rtx to rtx_insn *.
3488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3490 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
3492 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
3493 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
3495 (load_register_parameters): Likewise for local "before_arg".
3496 (check_sibcall_argument_overlap): Likewise for param "insn".
3497 (expand_call): Likewise for locals "normal_call_insns",
3498 "tail_call_insns", "insns", "before_call", "after_args",
3499 "before_arg", "last", "prev". Strengthen one of the "last" from
3500 rtx to rtx_call_insn *.
3501 (fixup_tail_calls): Strengthen local "insn" from rtx to
3503 (emit_library_call_value_1): Likewise for locals "before_call" and
3506 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3508 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
3509 and "last" from rtx to rtx_insn *.
3510 (expand_builtin_nonlocal_goto): Likewise for local "insn".
3511 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
3513 (expand_errno_check): Strengthen local "lab" from rtx to
3515 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
3517 (expand_builtin_mathfn_2): Likewise.
3518 (expand_builtin_mathfn_ternary): Likewise.
3519 (expand_builtin_mathfn_3): Likewise.
3520 (expand_builtin_interclass_mathfn): Likewise for local "last".
3521 (expand_builtin_int_roundingfn): Likewise for local "insns".
3522 (expand_builtin_int_roundingfn_2): Likewise.
3523 (expand_builtin_strlen): Likewise for local "before_strlen".
3524 (expand_builtin_strncmp): Likewise for local "seq".
3525 (expand_builtin_signbit): Likewise for local "last".
3526 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
3527 from rtx to rtx_code_label *.
3528 (expand_stack_restore): Strengthen local "prev" from rtx to
3531 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3533 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
3535 (struct btr_def_s): Likewise.
3536 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
3538 (add_btr_def): Likewise.
3539 (new_btr_user): Likewise.
3540 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
3542 (link_btr_uses): Likewise.
3543 (move_btr_def): Likewise for locals "insp", "old_insn",
3544 "new_insn". Add checked cast to rtx_insn * for now on result of
3546 (can_move_up): Strengthen param "insn" from const_rtx to
3549 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3551 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
3553 (get_uncond_jump_length): Likewise for locals "label", "jump".
3554 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
3556 (add_labels_and_missing_jumps): Likewise for local "new_jump".
3557 (fix_up_fall_thru_edges): Likewise for local "old_jump".
3558 (find_jump_block): Likewise for local "insn".
3559 (fix_crossing_conditional_branches): Likewise for locals
3560 "old_jump", "new_jump".
3561 (fix_crossing_unconditional_branches): Likewise for locals
3562 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
3563 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
3565 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3567 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
3569 (struct mem_insn): Likewise for field "insn".
3570 (reg_next_use): Strengthen from rtx * to rtx_insn **.
3571 (reg_next_inc_use): Likewise.
3572 (reg_next_def): Likewise.
3573 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
3574 from rtx to rtx_insn *.
3575 (move_insn_before): Likewise for param "next_insn" and local "insns".
3576 (attempt_change): Likewise for local "mov_insn".
3577 (try_merge): Likewise for param "last_insn".
3578 (get_next_ref): Likewise for return type and local "insn".
3579 Strengthen param "next_array" from rtx * to rtx_insn **.
3580 (parse_add_or_inc): Strengthen param "insn" from rtx to
3582 (find_inc): Likewise for locals "insn" and "other_insn" (three of
3584 (merge_in_block): Likewise for locals "insn", "curr",
3586 (pass_inc_dec::execute): Update allocations of the arrays to
3587 reflect the stronger types.
3589 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3591 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
3592 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
3593 from rtx to rtx_code_label *.
3595 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3597 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
3600 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3602 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
3603 generated a warning and prevented bootstrapping the compiler.
3605 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3607 * rtl.h (delete_related_insns): Strengthen return type from rtx to
3610 * jump.c (delete_related_insns): Likewise, also for locals "next"
3613 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3615 * genautomata.c (output_internal_insn_latency_func): When writing
3616 the function "internal_insn_latency" to insn-automata.c,
3617 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
3618 allowing the optional guard function of (define_bypass) clauses to
3619 expect a pair of rtx_insn *, rather than a pair of rtx.
3620 (output_insn_latency_func): When writing the function
3621 "insn_latency", add an "uncast_" prefix to params "insn" and
3622 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
3623 using checked casts from the params, thus enabling the above
3624 change to the generated "internal_insn_latency" function.
3626 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
3628 PR tree-optimization/62091
3629 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
3630 handle correctly arrays.
3631 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
3633 (record_known_type): Walk into inner type.
3634 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
3635 condition on no type changes.
3637 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3639 * genattrtab.c (write_attr_get): Within the generated get_attr_
3640 functions, rename param "insn" to "uncast_insn" and reintroduce
3641 "insn" as an local rtx_insn * using a checked cast, so that "insn"
3642 is an rtx_insn * within insn-attrtab.c
3644 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3646 * output.h (peephole): Strengthen return type from rtx to
3648 * rtl.h (delete_for_peephole): Likewise for both params.
3649 * genpeep.c (main): In generated "peephole" function, strengthen
3650 return type and local "insn" from rtx to rtx_insn *. For now,
3651 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
3652 rtx_insn *, with a checked cast.
3653 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
3654 locals "insn", "next", "prev" from rtx to rtx_insn *.
3656 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
3658 PR tree-optimization/62112
3659 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
3660 * gimple-iterator.h (gsi_replace): Return bool.
3661 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
3662 moved from ref_may_alias_global_p.
3663 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
3665 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
3666 (stmt_kills_ref_p_1): Rename...
3667 (stmt_kills_ref_p): ... to this.
3668 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
3669 stmt_kills_ref_p): Declare.
3670 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
3671 Move the self-assignment case...
3672 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
3674 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3676 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
3678 * emit-rtl.c (try_split): Likewise, also for locals "before" and
3679 "after". For now, don't strengthen param "trial", which requires
3680 adding checked casts when returning it.
3682 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3684 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
3685 "label" from rtx to rtx_code_label *. Strengthen param 1 of
3686 "var_location" hook from rtx to rtx_insn *.
3687 (debug_nothing_rtx): Delete in favor of...
3688 (debug_nothing_rtx_code_label): New prototype.
3689 (debug_nothing_rtx_rtx): Delete unused prototype.
3690 (debug_nothing_rtx_insn): New prototype.
3692 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
3693 invoking debug_hooks->var_location (in two places, one in a NOTE
3694 case of a switch statement, the other guarded by a CALL_P
3695 conditional. Add checked cast to rtx_code_label * when invoking
3696 debug_hooks->label (within CODE_LABEL case of switch statement).
3698 * dbxout.c (dbx_debug_hooks): Update "label" hook from
3699 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3700 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
3701 (xcoff_debug_hooks): Likewise.
3702 * debug.c (do_nothing_debug_hooks): Likewise.
3703 (debug_nothing_rtx): Delete in favor of...
3704 (debug_nothing_rtx_insn): New function.
3705 (debug_nothing_rtx_rtx): Delete unused function.
3706 (debug_nothing_rtx_code_label): New function.
3707 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
3708 debug_nothing_rtx to debug_nothing_rtx_code_label.
3709 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
3711 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
3712 debug_nothing_rtx to debug_nothing_rtx_insn.
3713 (sdbout_label): Strengthen param "insn" from rtx to
3715 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
3716 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3717 "var_location" hook from debug_nothing_rtx to
3718 debug_nothing_rtx_insn.
3720 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3722 * recog.h (insn_output_fn): Update this function typedef to match
3723 the changes below to the generated output functions, strengthening
3724 the 2nd param from rtx to rtx_insn *.
3726 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
3727 insn when invoking an output function, to match the new signature
3728 of insn_output_fn with a stronger second param.
3730 * genconditions.c (write_header): In the generated code for
3731 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
3732 to match the other changes in this patch.
3734 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
3735 the generated "gen_" functions from rtx to rtx_insn * within their
3738 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
3739 the subfunctions within the generated "recog_", "split", "peephole2"
3740 function trees from rtx to rtx_insn *. For now, the top-level
3741 generated functions ("recog", "split", "peephole2") continue to
3742 take a plain rtx for "insn", to avoid introducing dependencies on
3743 other patches. Rename this 2nd param from "insn" to
3744 "uncast_insn", and reintroduce "insn" as a local variable of type
3745 rtx_insn *, initialized at the top of the generated function with
3746 a checked cast on "uncast_insn".
3747 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
3748 the generated "gen_" functions from rtx to rtx_insn * within their
3751 * genoutput.c (process_template): Strengthen the 2nd param within
3752 the generated "output_" functions "insn" from rtx to rtx_insn *.
3754 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
3756 * tree-profile.c (tree_profiling): Skip external functions
3757 when doing coverage instrumentation.
3758 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
3760 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3762 * config/rs6000/altivec.h (vec_cpsgn): New #define.
3763 (vec_mergee): Likewise.
3764 (vec_mergeo): Likewise.
3765 (vec_cntlz): Likewise.
3766 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
3767 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
3768 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
3770 * doc/extend.texi: Document various forms of vec_cpsgn,
3771 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
3772 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
3773 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
3774 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
3775 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
3777 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3779 * config/rs6000/rs6000.c (context.h): New include.
3780 (tree-pass.h): Likewise.
3781 (make_pass_analyze_swaps): New decl.
3782 (rs6000_option_override): Register pass_analyze_swaps.
3783 (swap_web_entry): New subsclass of web_entry_base (df.h).
3784 (special_handling_values): New enum.
3785 (union_defs): New function.
3786 (union_uses): Likewise.
3787 (insn_is_load_p): Likewise.
3788 (insn_is_store_p): Likewise.
3789 (insn_is_swap_p): Likewise.
3790 (rtx_is_swappable_p): Likewise.
3791 (insn_is_swappable_p): Likewise.
3792 (chain_purpose): New enum.
3793 (chain_contains_only_swaps): New function.
3794 (mark_swaps_for_removal): Likewise.
3795 (swap_const_vector_halves): Likewise.
3796 (adjust_subreg_index): Likewise.
3797 (permute_load): Likewise.
3798 (permute_store): Likewise.
3799 (handle_special_swappables): Likewise.
3800 (replace_swap_with_copy): Likewise.
3801 (dump_swap_insn_table): Likewise.
3802 (rs6000_analyze_swaps): Likewise.
3803 (pass_data_analyze_swaps): New pass_data.
3804 (pass_analyze_swaps): New rtl_opt_pass.
3805 (make_pass_analyze_swaps): New function.
3806 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
3808 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3810 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
3811 type from rtx to rtx_insn *.
3812 (create_copy_of_insn_rtx): Likewise.
3813 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
3814 (create_copy_of_insn_rtx): Likewise, also for local "res".
3816 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3818 * rtl.h (find_first_parameter_load): Strengthen return type from
3820 * rtlanal.c (find_first_parameter_load): Strengthen return type
3821 from rtx to rtx_insn *. Add checked cast for now, to postpone
3822 strengthening the params.
3824 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3827 * diagnostic.c: Set default caret.
3828 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
3830 * diagnostic.h (struct diagnostic_context):
3832 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3834 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
3835 (sel_bb_head): Strengthen return type insn_t (currently just an
3837 (sel_bb_end): Likewise.
3839 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
3840 (sel_bb_head): Strengthen return type and local "head" from
3841 insn_t (currently just an rtx) to rtx_insn *.
3842 (sel_bb_end): Likewise for return type.
3843 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
3846 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3848 * basic-block.h (get_last_bb_insn): Strengthen return type from
3850 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
3853 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3856 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
3858 (diagnostic_report_diagnostic): ... from here.
3859 * toplev.c (general_init): Move code to c-family.
3861 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3863 * df.h (web_entry_base): Replace existing struct web_entry with a
3864 new class web_entry_base with only the predecessor member.
3865 (unionfind_root): Remove declaration and move to class member.
3866 (unionfind_union): Remove declaration and move to friend
3868 (union_defs): Remove declaration.
3869 * web.c (web_entry_base::unionfind_root): Modify to be member
3870 function and adjust accessors.
3871 (unionfind_union): Modify to be friend function and adjust
3873 (web_entry): New subclass of web_entry_base containing the reg
3875 (union_match_dups): Modify for struct -> class changes.
3876 (union_defs): Likewise.
3877 (entry_register): Likewise.
3878 (pass_web::execute): Likewise.
3880 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
3882 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
3883 builtin define __VEC_ELEMENT_REG_ORDER__.
3885 2014-08-20 Martin Jambor <mjambor@suse.cz>
3886 Wei Mi <wmi@google.com>
3890 * tree-ssa-operands.c (update_stmt_operands): Remove
3891 MODIFIED_NORETURN_CALLS.
3892 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
3893 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
3894 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
3895 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
3896 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
3897 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
3898 (gimple_call_set_ctrl_altering): New func.
3899 (gimple_call_ctrl_altering_p): Ditto.
3900 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
3901 (make_blocks): Use gimple_call_initialize_ctrl_altering.
3902 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
3903 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
3904 remove MODIFIED_NORETURN_CALLS.
3906 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
3908 * coverage.c (coverage_compute_profile_id): Return non-0;
3909 also handle symbols with unique name.
3910 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
3912 2014-08-20 Steve Ellcey <sellcey@mips.com>
3915 * doc/sourcebuild.texi (non_strict_align): New.
3917 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
3919 * cgraphunit.c (ipa_passes, compile): Reshedule
3920 symtab_remove_unreachable_nodes passes; update comments.
3921 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
3922 TODO_remove_functions before the pass; the functions ought to be
3924 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
3925 TODO_remove_functions.
3926 * passes.c (pass_data_early_local_passes): Do not schedule function
3928 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
3930 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3933 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
3934 before setting the option.
3935 * diagnostic.c (diagnostic_classify_diagnostic): Record
3936 command-line status.
3938 2014-08-20 Richard Biener <rguenther@suse.de>
3941 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
3942 to build uint{16,32,64}_type_node.
3944 2014-08-20 Terry Guo <terry.guo@arm.com>
3946 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
3947 with immediate_operand.
3949 2014-08-20 David Malcolm <dmalcolm@redhat.com>
3951 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
3952 "insn" from an as_a to a safe_as_a, for the case when "insn" is
3955 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3957 PR preprocessor/51303
3958 * incpath.c (remove_duplicates): Use cpp_warning.
3960 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3964 * doc/options.texi (CPP): Document it.
3965 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
3966 * optc-gen.awk: Handle CPP.
3967 * opth-gen.awk: Likewise.
3969 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3971 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
3973 (duplicate_insn_chain): Likewise.
3974 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
3975 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
3976 checked cast for now (until we can strengthen the params in the
3978 (duplicate_insn_chain): Likewise.
3980 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3982 * rtl.h (next_cc0_user): Strengthen return type from rtx to
3984 (prev_cc0_setter): Likewise.
3986 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
3987 rtx_insn *, adding checked casts for now as necessary.
3988 (prev_cc0_setter): Likewise.
3990 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3992 * expr.h (emit_move_insn): Strengthen return type from rtx to
3994 (emit_move_insn_1): Likewise.
3995 (emit_move_complex_push): Likewise.
3996 (emit_move_complex_parts): Likewise.
3998 * expr.c (emit_move_via_integer): Strengthen return type from rtx
3999 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4001 (emit_move_complex_push): Strengthen return type from rtx to
4003 (emit_move_complex): Likewise, also for local "ret".
4004 (emit_move_ccmode): Likewise.
4005 (emit_move_multi_word): Likewise for return type and locals
4007 (emit_move_insn_1): Likewise for return type and locals "result",
4009 (emit_move_insn): Likewise for return type and local "last_insn".
4010 (compress_float_constant): Likewise.
4012 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4014 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4015 from rtx to rtx_insn *.
4017 * rtl.h (emit_insn_before): Likewise.
4018 (emit_insn_before_noloc): Likewise.
4019 (emit_insn_before_setloc): Likewise.
4020 (emit_jump_insn_before): Likewise.
4021 (emit_jump_insn_before_noloc): Likewise.
4022 (emit_jump_insn_before_setloc): Likewise.
4023 (emit_call_insn_before): Likewise.
4024 (emit_call_insn_before_noloc): Likewise.
4025 (emit_call_insn_before_setloc): Likewise.
4026 (emit_debug_insn_before): Likewise.
4027 (emit_debug_insn_before_noloc): Likewise.
4028 (emit_debug_insn_before_setloc): Likewise.
4029 (emit_label_before): Likewise.
4030 (emit_insn_after): Likewise.
4031 (emit_insn_after_noloc): Likewise.
4032 (emit_insn_after_setloc): Likewise.
4033 (emit_jump_insn_after): Likewise.
4034 (emit_jump_insn_after_noloc): Likewise.
4035 (emit_jump_insn_after_setloc): Likewise.
4036 (emit_call_insn_after): Likewise.
4037 (emit_call_insn_after_noloc): Likewise.
4038 (emit_call_insn_after_setloc): Likewise.
4039 (emit_debug_insn_after): Likewise.
4040 (emit_debug_insn_after_noloc): Likewise.
4041 (emit_debug_insn_after_setloc): Likewise.
4042 (emit_label_after): Likewise.
4043 (emit_insn): Likewise.
4044 (emit_debug_insn): Likewise.
4045 (emit_jump_insn): Likewise.
4046 (emit_call_insn): Likewise.
4047 (emit_label): Likewise.
4048 (gen_clobber): Likewise.
4049 (emit_clobber): Likewise.
4050 (gen_use): Likewise.
4051 (emit_use): Likewise.
4054 (emit_barrier_before): Strengthen return type from rtx to
4056 (emit_barrier_after): Likewise.
4057 (emit_barrier): Likewise.
4059 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4060 from rtx to rtx_insn *. Add checked casts for now when converting
4061 "last" from rtx to rtx_insn *.
4062 (emit_insn_before_noloc): Likewise for return type.
4063 (emit_jump_insn_before_noloc): Likewise.
4064 (emit_call_insn_before_noloc): Likewise.
4065 (emit_debug_insn_before_noloc): Likewise.
4066 (emit_barrier_before): Strengthen return type and local "insn"
4067 from rtx to rtx_barrier *.
4068 (emit_label_before): Strengthen return type from rtx to
4069 rtx_insn *. Add checked cast for now when returning param
4070 (emit_pattern_after_noloc): Strengthen return type from rtx to
4071 rtx_insn *. Add checked casts for now when converting "last" from
4073 (emit_insn_after_noloc): Strengthen return type from rtx to
4075 (emit_jump_insn_after_noloc): Likewise.
4076 (emit_call_insn_after_noloc): Likewise.
4077 (emit_debug_insn_after_noloc): Likewise.
4078 (emit_barrier_after): Strengthen return type from rtx to
4080 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4081 Add checked cast for now when converting "label" from rtx to
4083 (emit_pattern_after_setloc): Strengthen return type from rtx to
4084 rtx_insn *. Add checked casts for now when converting "last" from
4086 (emit_pattern_after): Strengthen return type from rtx to
4088 (emit_insn_after_setloc): Likewise.
4089 (emit_insn_after): Likewise.
4090 (emit_jump_insn_after_setloc): Likewise.
4091 (emit_jump_insn_after): Likewise.
4092 (emit_call_insn_after_setloc): Likewise.
4093 (emit_call_insn_after): Likewise.
4094 (emit_debug_insn_after_setloc): Likewise.
4095 (emit_debug_insn_after): Likewise.
4096 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4097 when converting "last" from rtx to rtx_insn *.
4098 (emit_pattern_before): Strengthen return type from rtx to
4100 (emit_insn_before_setloc): Likewise.
4101 (emit_insn_before): Likewise.
4102 (emit_jump_insn_before_setloc): Likewise.
4103 (emit_jump_insn_before): Likewise.
4104 (emit_call_insn_before_setloc): Likewise.
4105 (emit_call_insn_before): Likewise.
4106 (emit_debug_insn_before_setloc): Likewise.
4107 (emit_debug_insn_before): Likewise.
4108 (emit_insn): Strengthen return type and locals "last", "insn",
4109 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4110 within cases where we know we have an insn.
4111 (emit_debug_insn): Likewise.
4112 (emit_jump_insn): Likewise.
4113 (emit_call_insn): Strengthen return type and local "insn" from rtx
4115 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4116 a checked cast to rtx_insn * for now on "label".
4117 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4118 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4119 (emit_use): Likewise.
4120 (gen_use): Likewise, also for local "seq".
4121 (emit): Likewise for return type and local "insn".
4122 (rtx_insn): Likewise for return type and local "new_rtx".
4124 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4125 from rtx to rtx_barrier *.
4127 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4128 changed return type from rtx to rtx_insn *, we must update
4129 "emit_fn" type, and this in turn means updating...
4130 (frame_insn): ...this. Strengthen return type from rtx to
4131 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4133 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4135 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4136 rtx to rtx_jump_table_data *. Also for local.
4137 * rtl.h (emit_jump_table_data): Likewise.
4139 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4141 * basic-block.h (create_basic_block_structure): Strengthen third
4142 param "bb_note" from rtx to rtx_note *.
4143 * rtl.h (emit_note_before): Strengthen return type from rtx to
4145 (emit_note_after): Likewise.
4146 (emit_note): Likewise.
4147 (emit_note_copy): Likewise. Also, strengthen param similarly.
4148 * function.h (struct rtl_data): Strengthen field
4149 "x_stack_check_probe_note" from rtx to rtx_note *.
4151 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
4152 from rtx to rtx_note *.
4153 * cfgrtl.c (create_basic_block_structure): Strengthen third param
4154 "bb_note" from rtx to rtx_note *.
4155 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
4156 when calling emit_note_copy.
4157 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
4159 (emit_note_after): Likewise.
4160 (emit_note_before): Likewise.
4161 (emit_note_copy): Likewise. Also, strengthen param similarly.
4162 (emit_note): Likewise.
4163 * except.c (emit_note_eh_region_end): Likewise for return type.
4164 Strengthen local "next" from rtx to rtx_insn *.
4165 (convert_to_eh_region_ranges): Strengthen local "note"
4166 from rtx to rtx_note *.
4167 * final.c (change_scope): Likewise.
4168 (reemit_insn_block_notes): Likewise, for both locals named "note".
4169 Also, strengthen local "insn" from rtx to rtx_insn *.
4170 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
4172 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
4173 strengthen local "seq" from rtx to rtx_insn *.
4174 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
4176 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
4178 (get_bb_note_from_pool): Strengthen return type from rtx to
4180 (sel_create_basic_block): Strengthen local "new_bb_note" from
4181 insn_t to rtx_note *.
4182 * var-tracking.c (emit_note_insn_var_location): Strengthen local
4183 "note" from rtx to rtx_note *.
4184 (emit_notes_in_bb): Likewise.
4186 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4188 * function.h (struct rtl_data): Strengthen field
4189 "x_parm_birth_insn" from rtx to rtx_insn *.
4190 * function.c (struct assign_parm_data_all): Strengthen fields
4191 "first_conversion_insn" and "last_conversion_insn" from rtx to
4194 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4196 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
4197 to rtx_insn *; also for local "var_end_seq".
4198 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
4199 (maybe_cleanup_end_of_block): Likewise for param "last" and local
4201 (expand_gimple_cond): Likewise for locals "last2" and "last".
4202 (mark_transaction_restart_calls): Likewise for local "insn".
4203 (expand_gimple_stmt): Likewise for return type and locals "last"
4205 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
4206 (avoid_complex_debug_insns): Likewise for param "insn".
4207 (expand_debug_locations): Likewise for locals "insn", "last",
4208 "prev_insn" and "insn2".
4209 (expand_gimple_basic_block): Likewise for local "last".
4210 (construct_exit_block): Likewise for locals "head", "end",
4212 (pass_expand::execute): Likewise for locals "var_seq",
4213 "var_ret_seq", "next".
4215 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4217 * asan.h (asan_emit_stack_protection): Strengthen return type from
4219 * asan.c (asan_emit_stack_protection): Likewise. Add local
4220 "insns" to hold the return value.
4222 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4224 * basic-block.h (bb_note): Strengthen return type from rtx to
4226 * sched-int.h (bb_note): Likewise.
4227 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
4229 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4231 * rtl.h (make_insn_raw): Strengthen return type from rtx to
4234 * emit-rtl.c (make_insn_raw): Strengthen return type and local
4235 "insn" from rtx to rtx_insn *.
4236 (make_debug_insn_raw): Strengthen return type from rtx to
4237 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
4238 (make_jump_insn_raw): Strengthen return type from rtx to
4239 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
4240 (make_call_insn_raw): Strengthen return type from rtx to
4241 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
4242 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
4243 callback from rtx to rtx_insn *; likewise for local "insn" and
4244 "next", adding a checked cast to rtx_insn in the relevant cases of
4245 the switch statement.
4246 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
4247 callback from rtx to rtx_insn *.
4248 (emit_pattern_after_setloc): Likewise.
4249 (emit_pattern_after): Likewise.
4250 (emit_pattern_before_setloc): Likewise.
4251 (emit_pattern_before): Likewise.
4253 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4255 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
4257 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
4258 accepting an rtx_insn *.
4259 (last_call_insn): Strengthen return type from rtx to
4262 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4264 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
4265 "insns" from rtx to rtx_insn *.
4266 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
4267 locals "insn" and "prev".
4269 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4271 * rtl.h (tablejump_p): Strengthen third param from rtx * to
4272 rtx_jump_table_data **.
4274 * cfgbuild.c (make_edges): Introduce local "table", using it in
4275 place of "tmp" for jump table data.
4276 (find_bb_boundaries): Strengthen local "table" from rtx to
4277 rtx_jump_table_data *.
4278 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4279 (outgoing_edges_match): Likewise for locals "table1" and "table2".
4280 (try_crossjump_to_edge): Likewise.
4281 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
4283 (patch_jump_insn): Introduce local "table", using it in place of
4284 "tmp" for jump table data.
4285 (force_nonfallthru_and_redirect): Introduce local "table", so that
4286 call to tablejump_p can receive an rtx_jump_table_data **. Update
4287 logic around the call to overwrite "note" appropriately if
4288 tablejump_p returns non-zero.
4289 (get_last_bb_insn): Introduce local "table", using it in place of
4290 "tmp" for jump table data.
4291 * dwarf2cfi.c (create_trace_edges): Likewise.
4293 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
4294 from rtx to rtx_jump_table_data *.
4295 (create_fix_barrier): Strengthen local "tmp" from rtx to
4296 rtx_jump_table_data *.
4297 (arm_reorg): Likewise for local "table".
4299 * config/s390/s390.c (s390_chunkify_start): Likewise.
4301 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4303 * jump.c (delete_related_insns): Strengthen local "lab_next" from
4304 rtx to rtx_jump_table_data *.
4306 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
4307 rtx_jump_table_data **. Add a checked cast when writing through
4308 the pointer: we know there that local "table" is non-NULL and that
4309 JUMP_TABLE_DATA_P (table) holds.
4310 (label_is_jump_target_p): Introduce local "table", using it in
4311 place of "tmp" for jump table data.
4313 2014-08-19 Marek Polacek <polacek@redhat.com>
4316 * doc/invoke.texi: Document -Wbool-compare.
4318 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4320 * rtl.h (entry_of_function): Strengthen return type from rtx to
4322 * cfgrtl.c (entry_of_function): Likewise.
4324 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4326 * emit-rtl.h (get_insns): Strengthen return type from rtx to
4327 rtx_insn *, adding a checked cast for now.
4328 (get_last_insn): Likewise.
4330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4332 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
4335 * emit-rtl.c (gen_label_rtx): Likewise.
4337 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4339 * rtl.h (previous_insn): Strengthen return type from rtx to
4341 (next_insn): Likewise.
4342 (prev_nonnote_insn): Likewise.
4343 (prev_nonnote_insn_bb): Likewise.
4344 (next_nonnote_insn): Likewise.
4345 (next_nonnote_insn_bb): Likewise.
4346 (prev_nondebug_insn): Likewise.
4347 (next_nondebug_insn): Likewise.
4348 (prev_nonnote_nondebug_insn): Likewise.
4349 (next_nonnote_nondebug_insn): Likewise.
4350 (prev_real_insn): Likewise.
4351 (next_real_insn): Likewise.
4352 (prev_active_insn): Likewise.
4353 (next_active_insn): Likewise.
4355 * emit-rtl.c (next_insn): Strengthen return type from rtx to
4356 rtx_insn *, adding a checked cast.
4357 (previous_insn): Likewise.
4358 (next_nonnote_insn): Likewise.
4359 (next_nonnote_insn_bb): Likewise.
4360 (prev_nonnote_insn): Likewise.
4361 (prev_nonnote_insn_bb): Likewise.
4362 (next_nondebug_insn): Likewise.
4363 (prev_nondebug_insn): Likewise.
4364 (next_nonnote_nondebug_insn): Likewise.
4365 (prev_nonnote_nondebug_insn): Likewise.
4366 (next_real_insn): Likewise.
4367 (prev_real_insn): Likewise.
4368 (next_active_insn): Likewise.
4369 (prev_active_insn): Likewise.
4371 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
4372 param "stepfunc" so that it returns an rtx_insn * rather than an
4373 rtx, to track the change to prev_nonnote_insn_bb, which is the
4374 only function this is called with.
4375 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
4377 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
4379 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
4382 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4384 * coretypes.h (class rtx_debug_insn): Add forward declaration.
4385 (class rtx_nonjump_insn): Likewise.
4386 (class rtx_jump_insn): Likewise.
4387 (class rtx_call_insn): Likewise.
4388 (class rtx_jump_table_data): Likewise.
4389 (class rtx_barrier): Likewise.
4390 (class rtx_code_label): Likewise.
4391 (class rtx_note): Likewise.
4393 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
4394 adding the invariant DEBUG_INSN_P (X).
4395 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
4396 the invariant NONJUMP_INSN_P (X).
4397 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
4398 the invariant JUMP_P (X).
4399 (class rtx_call_insn): New, a subclass of rtx_insn, adding
4400 the invariant CALL_P (X).
4401 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
4402 invariant JUMP_TABLE_DATA_P (X).
4403 (class rtx_barrier): New, a subclass of rtx_insn, adding the
4404 invariant BARRIER_P (X).
4405 (class rtx_code_label): New, a subclass of rtx_insn, adding
4406 the invariant LABEL_P (X).
4407 (class rtx_note): New, a subclass of rtx_insn, adding
4408 the invariant NOTE_P(X).
4409 (is_a_helper <rtx_debug_insn *>::test): New.
4410 (is_a_helper <rtx_nonjump_insn *>::test): New.
4411 (is_a_helper <rtx_jump_insn *>::test): New.
4412 (is_a_helper <rtx_call_insn *>::test): New.
4413 (is_a_helper <rtx_jump_table_data *>::test): New functions,
4414 overloaded for both rtx and rtx_insn *.
4415 (is_a_helper <rtx_barrier *>::test): New.
4416 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
4417 for both rtx and rtx_insn *.
4418 (is_a_helper <rtx_note *>::test): New.
4420 2014-08-19 Marek Polacek <polacek@redhat.com>
4422 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
4423 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4424 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
4425 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4427 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4429 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
4430 rtx_insn *. To help with transition, for now, convert from an
4431 access macro into a pair of functions: BND_TO, returning an
4433 (SET_BND_TO): New function, for use where BND_TO is used as an
4436 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
4438 (BND_TO): New function, adding a checked cast.
4439 (SET_BND_TO): New function.
4441 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
4443 (compute_av_set_on_boundaries): Likewise.
4445 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4447 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
4448 destination if it is used in source.
4449 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
4450 (*popcount<mode>2_falsedep_1): Likewise.
4452 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4455 * configure.ac: Set install_gold_as_default to no first.
4456 * configure: Regenerated.
4458 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4460 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
4461 "note_list" field will eventually be an rtx_insn *. To help with
4462 transition, for now, convert from an access macro into a pair of
4463 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
4464 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
4467 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
4468 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
4470 * sel-sched-ir.c (init_bb): Likewise.
4471 (sel_restore_notes): Likewise.
4472 (move_bb_info): Likewise.
4473 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
4474 (SET_BB_NOTE_LIST): New function.
4476 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4478 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
4479 field will eventually be an rtx_insn *. To help with transition,
4480 for now, convert from an access macro into a pair of functions:
4481 VINSN_INSN_RTX, returning an rtx_insn *, and...
4482 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
4483 is used as an lvalue.
4485 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
4486 SET_VINSN_INSN_RTX where it's used as an lvalue.
4487 (VINSN_INSN_RTX): New function.
4488 (SET_VINSN_INSN_RTX): New function.
4490 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4492 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
4493 eventually be rtx_insn *, but to help with transition, for now,
4494 convert from an access macro into a pair of functions: DEP_PRO
4495 returning an rtx_insn * and...
4496 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
4497 lvalue, returning an rtx&.
4498 (DEP_CON): Analogous changes to DEP_PRO above.
4499 (SET_DEP_CON): Likewise.
4501 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
4502 an lvalue to SET_DEP_CON.
4503 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
4504 (sd_copy_back_deps): Likewise for DEP_CON.
4505 (DEP_PRO): New function, adding a checked cast for now.
4506 (DEP_CON): Likewise.
4507 (SET_DEP_PRO): New function.
4508 (SET_DEP_CON): Likewise.
4510 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4512 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
4513 (extra_options): Add i386/cygwin.opt.
4514 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
4515 (CPP_SPEC): Accept -pthread.
4517 (GOMP_SELF_SPECS): Update comment.
4518 * config/i386/cygwin.opt: New file for -pthread flag.
4520 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4522 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
4523 * df.h (DF_REF_INSN): Convert from a macro to a function, so
4524 that we can return an rtx_insn *.
4526 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4528 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
4529 when building executables, not DLLs. Add --large-address-aware
4530 under the same conditions.
4531 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
4532 when building executables, not DLLs. Add --large-address-aware
4533 under the same conditions when using -m32.
4535 * config/i386/cygwin-stdint.h: Throughout, make type
4536 definitions dependent on target architecture, not host.
4538 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4540 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
4541 the return type from rtx to rtx_insn *, which will enable various
4542 conversions in followup patches. For now this is is done by a
4544 (NEXT_INSN): Likewise.
4545 (SET_PREV_INSN): Convert to an inline function. This is intended
4546 for use as an lvalue, and so returns an rtx& to allow in-place
4548 (SET_NEXT_INSN): Likewise.
4550 2014-07-08 Mark Wielaard <mjw@redhat.com>
4553 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
4555 2014-08-19 Marek Polacek <polacek@redhat.com>
4558 * cgraphunit.c (handle_alias_pairs): Fix condition.
4560 2014-08-19 Richard Biener <rguenther@suse.de>
4562 * gimple-fold.c (fold_gimple_assign): Properly build a
4563 null-pointer constant when devirtualizing addresses.
4565 2014-07-07 Mark Wielaard <mjw@redhat.com>
4567 * dwarf2out.c (decl_quals): New function.
4568 (modified_type_die): Take one cv_quals argument instead of two,
4569 one for const and one for volatile.
4570 (add_type_attribute): Likewise.
4571 (generic_parameter_die): Call add_type_attribute with one modifier
4573 (base_type_for_mode): Likewise.
4574 (add_bounds_info): Likewise.
4575 (add_subscript_info): Likewise.
4576 (gen_array_type_die): Likewise.
4577 (gen_descr_array_type_die): Likewise.
4578 (gen_entry_point_die): Likewise.
4579 (gen_enumeration_type_die): Likewise.
4580 (gen_formal_parameter_die): Likewise.
4581 (gen_subprogram_die): Likewise.
4582 (gen_variable_die): Likewise.
4583 (gen_const_die): Likewise.
4584 (gen_field_die): Likewise.
4585 (gen_pointer_type_die): Likewise.
4586 (gen_reference_type_die): Likewise.
4587 (gen_ptr_to_mbr_type_die): Likewise.
4588 (gen_inheritance_die): Likewise.
4589 (gen_subroutine_type_die): Likewise.
4590 (gen_typedef_die): Likewise.
4591 (force_type_die): Likewise.
4593 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4595 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
4597 * configure: Regenerate.
4599 2014-08-19 Richard Biener <rguenther@suse.de>
4601 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
4602 DECL_EXTERNALs in BLOCKs as non-references.
4603 * tree-streamer-out.c (streamer_write_chain): Likewise.
4605 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
4606 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4607 Anna Tikhonova <anna.tikhonova@intel.com>
4608 Ilya Tocar <ilya.tocar@intel.com>
4609 Andrey Turetskiy <andrey.turetskiy@intel.com>
4610 Ilya Verbin <ilya.verbin@intel.com>
4611 Kirill Yukhin <kirill.yukhin@intel.com>
4612 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4614 * config/i386/sse.md
4615 (define_mode_iterator VI48_AVX512F): Delete.
4616 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
4617 (define_mode_iterator VI2_AVX512VL): Ditto.
4618 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
4621 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
4623 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
4624 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
4625 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4626 with VI48_AVX512F_AVX512VL): New.
4627 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4628 with VI2_AVX512VL): Ditto.
4630 2014-08-19 Marek Polacek <polacek@redhat.com>
4632 * doc/invoke.texi: Document -Wc99-c11-compat.
4634 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4636 * rtl.h (PREV_INSN): Split macro in two: the existing one,
4638 (SET_PREV_INSN): New macro, for use as an lvalue.
4639 (NEXT_INSN, SET_NEXT_INSN): Likewise.
4641 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
4642 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
4643 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4644 (fixup_abnormal_edges): Likewise.
4645 (unlink_insn_chain): Likewise.
4646 (fixup_reorder_chain): Likewise.
4647 (cfg_layout_delete_block): Likewise.
4648 (cfg_layout_merge_blocks): Likewise.
4649 * combine.c (update_cfg_for_uncondjump): Likewise.
4650 * emit-rtl.c (link_insn_into_chain): Likewise.
4651 (remove_insn): Likewise.
4652 (delete_insns_since): Likewise.
4653 (reorder_insns_nobb): Likewise.
4654 (emit_insn_after_1): Likewise.
4655 * final.c (rest_of_clean_state): Likewise.
4656 (final_scan_insn): Likewise.
4657 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
4658 * haifa-sched.c (concat_note_lists): Likewise.
4659 (remove_notes): Likewise.
4660 (restore_other_notes): Likewise.
4661 (move_insn): Likewise.
4662 (unlink_bb_notes): Likewise.
4663 (restore_bb_notes): Likewise.
4664 * jump.c (delete_for_peephole): Likewise.
4665 * optabs.c (emit_libcall_block_1): Likewise.
4666 * reorg.c (emit_delay_sequence): Likewise.
4667 (fill_simple_delay_slots): Likewise.
4668 * sel-sched-ir.c (sel_move_insn): Likewise.
4669 (sel_remove_insn): Likewise.
4670 (get_bb_note_from_pool): Likewise.
4671 * sel-sched.c (move_nop_to_previous_block): Likewise.
4673 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
4674 * config/c6x/c6x.c (gen_one_bundle): Likewise.
4675 (c6x_gen_bundles): Likewise.
4676 (hwloop_optimize): Likewise.
4677 * config/frv/frv.c (frv_function_prologue): Likewise.
4678 (frv_register_nop): Likewise.
4679 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
4680 (ia64_reorg): Likewise.
4681 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
4682 (mep_make_bundle): Likewise.
4683 (mep_bundle_insns): Likewise.
4684 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
4685 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
4686 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
4688 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4690 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
4691 return type from rtx to rtx_insn *.
4693 (BB_HEADER): Likewise.
4694 (BB_FOOTER): Likewise.
4695 (SET_BB_HEAD): Convert to a function.
4696 (SET_BB_END): Likewise.
4697 (SET_BB_HEADER): Likewise.
4698 (SET_BB_FOOTER): Likewise.
4700 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
4701 Strengthen the return type from rtx to rtx_insn *. For now, this
4702 is done by adding a checked cast, but this will eventually
4703 become a field lookup.
4705 (BB_HEADER): Likewise.
4706 (BB_FOOTER): Likewise.
4707 (SET_BB_HEAD): New function, from macro of same name. This is
4708 intended for use as an lvalue, and so returns an rtx& to allow
4709 in-place modification.
4710 (SET_BB_END): Likewise.
4711 (SET_BB_HEADER): Likewise.
4712 (SET_BB_FOOTER): Likewise.
4714 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4716 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
4718 (SET_BB_HEAD): New macro, for use as a lvalue.
4719 (BB_END, SET_BB_END): Likewise.
4720 (BB_HEADER, SET_BB_HEADER): Likewise.
4721 (BB_FOOTER, SET_BB_FOOTER): Likewise.
4723 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
4724 of BB_* macros into SET_BB_* macros.
4725 (fix_crossing_unconditional_branches): Likewise.
4726 * caller-save.c (save_call_clobbered_regs): Likewise.
4727 (insert_one_insn): Likewise.
4728 * cfgbuild.c (find_bb_boundaries): Likewise.
4729 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4730 (outgoing_edges_match): Likewise.
4731 (try_optimize_cfg): Likewise.
4732 * cfgexpand.c (expand_gimple_cond): Likewise.
4733 (expand_gimple_tailcall): Likewise.
4734 (expand_gimple_basic_block): Likewise.
4735 (construct_exit_block): Likewise.
4736 * cfgrtl.c (delete_insn): Likewise.
4737 (create_basic_block_structure): Likewise.
4738 (rtl_delete_block): Likewise.
4739 (rtl_split_block): Likewise.
4740 (emit_nop_for_unique_locus_between): Likewise.
4741 (rtl_merge_blocks): Likewise.
4742 (block_label): Likewise.
4743 (try_redirect_by_replacing_jump): Likewise.
4744 (emit_barrier_after_bb): Likewise.
4745 (fixup_abnormal_edges): Likewise.
4746 (record_effective_endpoints): Likewise.
4747 (relink_block_chain): Likewise.
4748 (fixup_reorder_chain): Likewise.
4749 (fixup_fallthru_exit_predecessor): Likewise.
4750 (cfg_layout_duplicate_bb): Likewise.
4751 (cfg_layout_split_block): Likewise.
4752 (cfg_layout_delete_block): Likewise.
4753 (cfg_layout_merge_blocks): Likewise.
4754 * combine.c (update_cfg_for_uncondjump): Likewise.
4755 * emit-rtl.c (add_insn_after): Likewise.
4756 (remove_insn): Likewise.
4757 (reorder_insns): Likewise.
4758 (emit_insn_after_1): Likewise.
4759 * haifa-sched.c (get_ebb_head_tail): Likewise.
4760 (restore_other_notes): Likewise.
4761 (move_insn): Likewise.
4762 (sched_extend_bb): Likewise.
4763 (fix_jump_move): Likewise.
4764 * ifcvt.c (noce_process_if_block): Likewise.
4765 (dead_or_predicable): Likewise.
4766 * ira.c (update_equiv_regs): Likewise.
4767 * reg-stack.c (change_stack): Likewise.
4768 * sel-sched-ir.c (sel_move_insn): Likewise.
4769 * sel-sched.c (move_nop_to_previous_block): Likewise.
4771 * config/c6x/c6x.c (hwloop_optimize): Likewise.
4772 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4774 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4776 * rtl.h (for_each_rtx_in_insn): New function.
4777 * rtlanal.c (for_each_rtx_in_insn): Likewise.
4779 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4781 * coretypes.h (class rtx_insn): Add forward declaration.
4783 * rtl.h: Include is-a.h.
4784 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
4785 workaround to ensure gengtype knows inheritance is occurring,
4786 whilst continuing to use the pre-existing special-casing for
4788 (class rtx_insn): New subclass of rtx_def, adding the
4789 invariant that we're dealing with something we can sanely use
4790 INSN_UID, NEXT_INSN, PREV_INSN on.
4791 (is_a_helper <rtx_insn *>::test): New.
4792 (is_a_helper <const rtx_insn *>::test): New.
4794 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4796 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
4798 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
4800 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
4803 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
4805 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
4806 to BUILT_IN_UNREACHABLE.
4808 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
4811 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
4813 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
4814 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
4815 (ffs<mode>2): Do not expand with tzcnt for
4816 TARGET_AVOID_FALSE_DEP_FOR_BMI.
4817 (ffssi2_no_cmove): Ditto.
4818 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
4819 (ctz<mode>2): New expander.
4820 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
4821 (*ctz<mode>2_falsedep): New insn.
4822 (*ctz<mode>2): Rename from ctz<mode>2.
4823 (clz<mode>2_lzcnt): New expander.
4824 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
4825 (*clz<mode>2_lzcnt_falsedep): New insn.
4826 (*clz<mode>2): Rename from ctz<mode>2.
4827 (popcount<mode>2): New expander.
4828 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
4829 (*popcount<mode>2_falsedep): New insn.
4830 (*popcount<mode>2): Rename from ctz<mode>2.
4831 (*popcount<mode>2_cmp): Remove.
4832 (*popcountsi2_cmp_zext): Ditto.
4834 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
4836 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
4837 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
4838 * config/microblaze/microblaze.h
4839 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
4841 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
4844 * configure.ac: Set install_gold_as_default to no for
4846 * configure: Regenerated.
4848 2014-08-18 Roman Gareev <gareevroman@gmail.com>
4850 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
4851 * config.in: Add undef of HAVE_isl.
4852 * configure: Regenerate.
4853 * configure.ac: Add definition of HAVE_isl.
4854 * graphite-blocking.c: Add checking of HAVE_isl.
4855 * graphite-dependences.c: Likewise.
4856 * graphite-interchange.c: Likewise.
4857 * graphite-isl-ast-to-gimple.c: Likewise.
4858 * graphite-optimize-isl.c: Likewise.
4859 * graphite-poly.c: Likewise.
4860 * graphite-scop-detection.c: Likewise.
4861 * graphite-sese-to-poly.c: Likewise.
4862 * graphite.c: Likewise.
4863 * toplev.c: Replace the checking of HAVE_cloog with the checking
4866 2014-08-18 Richard Biener <rguenther@suse.de>
4868 PR tree-optimization/62090
4869 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
4870 (fold_builtin_3): Do not fold snprintf.
4871 (fold_builtin_4): Likewise.
4872 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
4873 moved from builtins.c.
4874 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
4875 (gimple_fold_builtin): Do not fold sprintf here.
4877 2014-08-18 Richard Biener <rguenther@suse.de>
4879 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
4881 (maybe_canonicalize_mem_ref_addr): ... this function.
4882 (fold_stmt_1): Apply it here before all simplification.
4884 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
4887 * cgraph.h (cgraph_node::create_indirect_edge): Add
4888 compute_indirect_info param.
4889 * cgraph.c (cgraph_node::create_indirect_edge): Compute
4890 indirect_info only when it is required.
4891 * cgraphclones.c (cgraph_clone_edge): Do not recompute
4892 indirect_info fore cloned indirect edge.
4894 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4895 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4896 Anna Tikhonova <anna.tikhonova@intel.com>
4897 Ilya Tocar <ilya.tocar@intel.com>
4898 Andrey Turetskiy <andrey.turetskiy@intel.com>
4899 Ilya Verbin <ilya.verbin@intel.com>
4900 Kirill Yukhin <kirill.yukhin@intel.com>
4901 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4903 * config/i386/sse.md
4904 (define_mode_iterator VI8_AVX2_AVX512BW): New.
4905 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
4907 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4908 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4909 Anna Tikhonova <anna.tikhonova@intel.com>
4910 Ilya Tocar <ilya.tocar@intel.com>
4911 Andrey Turetskiy <andrey.turetskiy@intel.com>
4912 Ilya Verbin <ilya.verbin@intel.com>
4913 Kirill Yukhin <kirill.yukhin@intel.com>
4914 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4916 * config/i386/sse.md
4917 (define_mode_iterator VF1_AVX512VL): New.
4918 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
4919 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
4922 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4923 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4924 Anna Tikhonova <anna.tikhonova@intel.com>
4925 Ilya Tocar <ilya.tocar@intel.com>
4926 Andrey Turetskiy <andrey.turetskiy@intel.com>
4927 Ilya Verbin <ilya.verbin@intel.com>
4928 Kirill Yukhin <kirill.yukhin@intel.com>
4929 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4931 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
4932 * config/i386/i386.md
4933 (define_code_iterator any_float): New.
4934 (define_code_attr floatsuffix): New.
4935 * config/i386/sse.md
4936 (define_mode_iterator VF1_128_256VL): New.
4937 (define_mode_iterator VF2_512_256VL): New.
4938 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
4940 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
4941 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
4943 (define_mode_attr qq2pssuff): New.
4944 (define_mode_attr sselongvecmode): New.
4945 (define_mode_attr sselongvecmodelower): New.
4946 (define_mode_attr sseintvecmode3): New.
4947 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
4949 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
4950 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
4951 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
4952 (define_insn "ufloatv2siv2df2<mask_name>"): New.
4954 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4955 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4956 Anna Tikhonova <anna.tikhonova@intel.com>
4957 Ilya Tocar <ilya.tocar@intel.com>
4958 Andrey Turetskiy <andrey.turetskiy@intel.com>
4959 Ilya Verbin <ilya.verbin@intel.com>
4960 Kirill Yukhin <kirill.yukhin@intel.com>
4961 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4963 * config/i386/sse.md
4964 (define_mode_iterator VF2_AVX512VL): New.
4965 (define_mode_attr sseintvecmode2): New.
4966 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
4967 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
4968 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
4970 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
4972 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
4974 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
4977 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4978 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4979 Anna Tikhonova <anna.tikhonova@intel.com>
4980 Ilya Tocar <ilya.tocar@intel.com>
4981 Andrey Turetskiy <andrey.turetskiy@intel.com>
4982 Ilya Verbin <ilya.verbin@intel.com>
4983 Kirill Yukhin <kirill.yukhin@intel.com>
4984 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4986 * config/i386/i386.md
4987 (define_insn "*movoi_internal_avx"): Add evex version.
4988 (define_insn "*movti_internal"): Ditto.
4990 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4991 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4992 Anna Tikhonova <anna.tikhonova@intel.com>
4993 Ilya Tocar <ilya.tocar@intel.com>
4994 Andrey Turetskiy <andrey.turetskiy@intel.com>
4995 Ilya Verbin <ilya.verbin@intel.com>
4996 Kirill Yukhin <kirill.yukhin@intel.com>
4997 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4999 * config/i386/i386.md
5000 (define_attr "isa"): Add avx512dq, noavx512dq.
5001 (define_attr "enabled"): Ditto.
5002 * config/i386/sse.md
5003 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5005 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5006 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5007 Anna Tikhonova <anna.tikhonova@intel.com>
5008 Ilya Tocar <ilya.tocar@intel.com>
5009 Andrey Turetskiy <andrey.turetskiy@intel.com>
5010 Ilya Verbin <ilya.verbin@intel.com>
5011 Kirill Yukhin <kirill.yukhin@intel.com>
5012 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5014 * config/i386/i386.c
5015 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5016 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5017 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5018 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5019 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5020 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5021 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5022 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5023 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5024 * config/i386/sse.md
5025 (define_mode_iterator VMOVE): Allow V4TI mode.
5026 (define_mode_iterator V_AVX512VL): New.
5027 (define_mode_iterator V): New handling for AVX512VL.
5028 (define_insn "avx512f_load<mode>_mask"): Delete.
5029 (define_insn "<avx512>_load<mode>_mask"): New.
5030 (define_insn "avx512f_store<mode>_mask"): Delete.
5031 (define_insn "<avx512>_store<mode>_mask"): New.
5034 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5037 * asan.c (instrument_derefs): Fix bitfield check.
5039 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5041 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5042 * config/rs6000/htm.md (ttest): Remove clobber.
5043 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5044 (and_operand): Reformat.
5045 (and_2rld_operand): New predicate.
5046 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5048 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5049 parameter. Handle AND directly.
5050 (rs6000_split_logical_di): Remove last parameter.
5051 (rs6000_split_logical): Remove last parameter. Remove obsolete
5053 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5054 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5055 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5056 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5057 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5058 and 5 anonymous splitters): Delete.
5059 (and<mode>3): New expander.
5060 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5061 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5062 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5063 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5064 (floatdisf2_internal1): Remove clobbers.
5065 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5066 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5067 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5068 (and<mode>3 for BOOL_128): Remove clobber.
5069 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5070 rs6000_split_logical.
5071 (*bool<mode>3_internal for BOOL_128): Adjust call of
5072 rs6000_split_logical.
5073 (*boolc<mode>3_internal1 for BOOL_128,
5074 *boolc<mode>3_internal2 for BOOL_128,
5075 *boolcc<mode>3_internal1 for BOOL_128,
5076 *boolcc<mode>3_internal2 for BOOL_128,
5077 *eqv<mode>3_internal1 for BOOL_128,
5078 *eqv<mode>3_internal2 for BOOL_128,
5079 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5080 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5082 (*vec_reload_and_reg_<mptrsize>): Delete.
5084 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5086 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5087 and split, *boolccsi3_internal3 and split): Delete.
5088 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5089 *boolccdi3_internal3 and split): Delete.
5090 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5091 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5093 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5095 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5096 and split, *boolcsi3_internal3 and split): Delete.
5097 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5098 *boolcdi3_internal3 and split): Delete.
5099 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5101 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5103 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5104 <'u'>: Also support printing the low-order 16 bits.
5105 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5106 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5107 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5108 *booldi3_internal3 and split): Delete.
5109 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5110 *bool<mode>3_dot2): New.
5111 (two anonymous define_splits for non_logical_cint_operand): Merge.
5113 2014-08-17 Marek Polacek <polacek@redhat.com>
5114 Manuel López-Ibáñez <manu@gcc.gnu.org>
5117 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5118 (diagnostic_show_locus): Don't print caret diagnostic
5119 if a column is larger than the line_width.
5121 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5123 * common.opt: Make the ISL AST generator to be the main code generator
5126 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5128 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5130 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5133 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5135 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5136 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5137 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5139 * config/pa/pa.md (begin_brtab): Delete insn.
5140 (end_brtab): Likewise.
5142 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5144 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5146 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
5148 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5149 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5150 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5151 (get_dynamic_type): Remove.
5152 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
5153 (clear_speculation): Bring to ipa-deivrt.h
5154 (get_class_context): Rename to ...
5155 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
5156 (contains_type_p): Update.
5157 (get_dynamic_type): Rename to ...
5158 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
5159 (possible_polymorphic_call_targets): UPdate.
5160 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
5161 * ipa-prop.c (ipa_analyze_call_uses): Update.
5163 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
5165 * doc/invoke.texi (SH options): Document missing processor variant
5166 options. Remove references to Hitachi. Undocument deprecated mspace
5169 2014-08-15 Jason Merrill <jason@redhat.com>
5171 * tree.c (type_hash_canon): Uncomment assert.
5173 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5175 * input.h (in_system_header_at): Add comment.
5177 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5180 * diagnostic.c (build_message_string): Make it extern.
5181 * diagnostic.h (build_message_string): Make it extern.
5183 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
5185 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
5186 load/store from/to non-floating class pseudo.
5188 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5190 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
5192 2014-08-15 Richard Biener <rguenther@suse.de>
5194 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
5195 (get_constraint_for_ssa_var): Remove dead code.
5196 (get_constraint_for_1): Adjust.
5197 (find_what_var_points_to): Likewise.
5198 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
5200 2014-08-15 Ilya Tocar <tocarip@gmail.com>
5203 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
5204 (_mm512_mask_cmpge_epu32_mask): Ditto.
5205 (_mm512_cmpge_epu32_mask): Ditto.
5206 (_mm512_mask_cmpge_epi64_mask): Ditto.
5207 (_mm512_cmpge_epi64_mask): Ditto.
5208 (_mm512_mask_cmpge_epu64_mask): Ditto.
5209 (_mm512_cmpge_epu64_mask): Ditto.
5210 (_mm512_mask_cmple_epi32_mask): Ditto.
5211 (_mm512_cmple_epi32_mask): Ditto.
5212 (_mm512_mask_cmple_epu32_mask): Ditto.
5213 (_mm512_cmple_epu32_mask): Ditto.
5214 (_mm512_mask_cmple_epi64_mask): Ditto.
5215 (_mm512_cmple_epi64_mask): Ditto.
5216 (_mm512_mask_cmple_epu64_mask): Ditto.
5217 (_mm512_cmple_epu64_mask): Ditto.
5218 (_mm512_mask_cmplt_epi32_mask): Ditto.
5219 (_mm512_cmplt_epi32_mask): Ditto.
5220 (_mm512_mask_cmplt_epu32_mask): Ditto.
5221 (_mm512_cmplt_epu32_mask): Ditto.
5222 (_mm512_mask_cmplt_epi64_mask): Ditto.
5223 (_mm512_cmplt_epi64_mask): Ditto.
5224 (_mm512_mask_cmplt_epu64_mask): Ditto.
5225 (_mm512_cmplt_epu64_mask): Ditto.
5226 (_mm512_mask_cmpneq_epi32_mask): Ditto.
5227 (_mm512_mask_cmpneq_epu32_mask): Ditto.
5228 (_mm512_cmpneq_epu32_mask): Ditto.
5229 (_mm512_mask_cmpneq_epi64_mask): Ditto.
5230 (_mm512_cmpneq_epi64_mask): Ditto.
5231 (_mm512_mask_cmpneq_epu64_mask): Ditto.
5232 (_mm512_cmpneq_epu64_mask): Ditto.
5233 (_mm512_castpd_ps): Ditto.
5234 (_mm512_castpd_si512): Ditto.
5235 (_mm512_castps_pd): Ditto.
5236 (_mm512_castps_si512): Ditto.
5237 (_mm512_castsi512_ps): Ditto.
5238 (_mm512_castsi512_pd): Ditto.
5239 (_mm512_castpd512_pd128): Ditto.
5240 (_mm512_castps512_ps128): Ditto.
5241 (_mm512_castsi512_si128): Ditto.
5242 (_mm512_castpd512_pd256): Ditto.
5243 (_mm512_castps512_ps256): Ditto.
5244 (_mm512_castsi512_si256): Ditto.
5245 (_mm512_castpd128_pd512): Ditto.
5246 (_mm512_castps128_ps512): Ditto.
5247 (_mm512_castsi128_si512): Ditto.
5248 (_mm512_castpd256_pd512): Ditto.
5249 (_mm512_castps256_ps512): Ditto.
5250 (_mm512_castsi256_si512): Ditto.
5251 (_mm512_cmpeq_epu32_mask): Ditto.
5252 (_mm512_mask_cmpeq_epu32_mask): Ditto.
5253 (_mm512_mask_cmpeq_epu64_mask): Ditto.
5254 (_mm512_cmpeq_epu64_mask): Ditto.
5255 (_mm512_cmpgt_epu32_mask): Ditto.
5256 (_mm512_mask_cmpgt_epu32_mask): Ditto.
5257 (_mm512_mask_cmpgt_epu64_mask): Ditto.
5258 (_mm512_cmpgt_epu64_mask): Ditto.
5259 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
5260 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
5261 * config/i386/i386.c (enum ix86_builtins): Add
5262 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
5263 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
5264 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
5265 (bdesc_args): Add __builtin_ia32_si512_256si,
5266 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
5267 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
5268 __builtin_ia32_pd512_pd.
5269 (ix86_expand_args_builtin): Handle new FTYPEs.
5270 * config/i386/sse.md (castmode): Add 512-bit modes.
5271 (AVX512MODE2P): New.
5272 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
5273 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
5275 2014-08-15 Richard Biener <rguenther@suse.de>
5277 * fold-const.c (tree_swap_operands_p): Put all constants
5278 last, also strip sign-changing NOPs when considering further
5279 canonicalization. Canonicalize also when optimizing for size.
5281 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5283 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
5284 one_match > zero_match case to just before simple_sequence.
5286 2014-08-15 Richard Biener <rguenther@suse.de>
5288 * data-streamer.h (streamer_string_index, string_for_index):
5290 * data-streamer-out.c (streamer_string_index): Make static.
5291 * data-streamer-in.c (string_for_index): Likewise.
5292 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
5293 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
5295 2014-08-15 Richard Biener <rguenther@suse.de>
5297 PR tree-optimization/62031
5298 * tree-data-ref.c (dr_analyze_indices): Do not set
5299 DR_UNCONSTRAINED_BASE.
5300 (dr_may_alias_p): All indirect accesses have to go the
5301 formerly DR_UNCONSTRAINED_BASE path.
5302 * tree-data-ref.h (struct indices): Remove
5303 unconstrained_base member.
5304 (DR_UNCONSTRAINED_BASE): Remove.
5306 2014-08-15 Jakub Jelinek <jakub@redhat.com>
5309 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
5310 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
5311 in OMP_CLAUSE_MAP in some outer target region.
5313 2014-08-15 Bin Cheng <bin.cheng@arm.com>
5315 * tree-ssa-loop-ivopts.c (ivopts_data): New field
5316 name_expansion_cache.
5317 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
5318 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
5319 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
5320 (difference_cannot_overflow_p): New parameter. Use affine
5321 expansion for equality check.
5322 (iv_elimination_compare_lt): Pass new argument.
5324 2014-08-14 DJ Delorie <dj@redhat.com>
5326 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
5327 variables to the accumulator.
5329 * config/rl78/predicates.md (rl78_near_mem_operand): New.
5330 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
5331 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
5334 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
5335 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
5336 (umulqihi3_virt): Likewise.
5337 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
5338 (umulqihi3_real): Likewise.
5340 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
5342 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5344 PR tree-optimization/62091
5345 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
5346 function_entry_reached.
5347 (walk_aliased_vdefs): Clear it here.
5348 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
5350 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5352 * ipa-utils.h (compare_virtual_tables): Declare.
5353 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
5355 2014-08-14 Marek Polacek <polacek@redhat.com>
5358 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
5359 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
5361 2014-08-14 Tom de Vries <tom@codesourcery.com>
5363 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
5365 2014-08-14 Tom de Vries <tom@codesourcery.com>
5367 PR rtl-optimization/62004
5368 PR rtl-optimization/62030
5369 * ifcvt.c (rtx_interchangeable_p): New function.
5370 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
5371 * emit-rtl.h (mem_attrs_eq_p): Declare.
5373 2014-08-14 Roman Gareev <gareevroman@gmail.com>
5375 * graphite-scop-detection.c:
5376 Add inclusion of cp-tree.h.
5377 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
5378 in case they are pointers to object types
5380 2014-08-14 Richard Biener <rguenther@suse.de>
5382 * BASE-VER: Change to 5.0.0
5384 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5385 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5386 Anna Tikhonova <anna.tikhonova@intel.com>
5387 Ilya Tocar <ilya.tocar@intel.com>
5388 Andrey Turetskiy <andrey.turetskiy@intel.com>
5389 Ilya Verbin <ilya.verbin@intel.com>
5390 Kirill Yukhin <kirill.yukhin@intel.com>
5391 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5393 * config/i386/sse.md (define_mode_attr avx512): New.
5394 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
5396 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
5397 (define_mode_attr ssse3_avx2): Ditto.
5398 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
5399 (define_mode_attr avx2_avx512bw): New.
5400 (define_mode_attr ssedoublemodelower): New.
5401 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
5403 (define_mode_attr ssebytemode): Allow V8DI modes.
5404 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
5405 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
5406 (define_mode_attr ssePSmode2): New.
5407 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
5409 (define_mode_attr dbpsadbwmode): New.
5410 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
5411 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
5412 (vi8_sse4_1_avx2_avx512): New.
5413 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
5415 (define_mode_attr blendbits): Move before its immediate use.
5417 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5419 Anna Tikhonova <anna.tikhonova@intel.com>
5420 Ilya Tocar <ilya.tocar@intel.com>
5421 Andrey Turetskiy <andrey.turetskiy@intel.com>
5422 Ilya Verbin <ilya.verbin@intel.com>
5423 Kirill Yukhin <kirill.yukhin@intel.com>
5424 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5426 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
5427 * config/i386/subst.md
5428 (define_mode_iterator SUBST_V): Update.
5429 (define_mode_iterator SUBST_A): Ditto.
5430 (define_subst_attr "mask_operand7"): New.
5431 (define_subst_attr "mask_operand10"): New.
5432 (define_subst_attr "mask_operand_arg34") : New.
5433 (define_subst_attr "mask_expand_op3"): New.
5434 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
5435 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
5436 (define_subst_attr "mask_avx512vl_condition"): New.
5437 (define_subst_attr "round_mask_operand4"): Ditto.
5438 (define_subst_attr "round_mask_scalar_op3"): Delete.
5439 (define_subst_attr "round_mask_op4"): New.
5440 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
5442 (define_subst_attr "round_modev8sf_condition"): New.
5443 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
5445 (define_subst_attr "round_saeonly_mask_operand4"): New.
5446 (define_subst_attr "round_saeonly_mask_op4"): New.
5447 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
5448 V8DImode, V16SImode.
5449 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
5450 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
5451 (define_subst_attr "mask_expand4_args"): New.
5452 (define_subst "mask_expand4"): New.
5454 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5455 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5456 Anna Tikhonova <anna.tikhonova@intel.com>
5457 Ilya Tocar <ilya.tocar@intel.com>
5458 Andrey Turetskiy <andrey.turetskiy@intel.com>
5459 Ilya Verbin <ilya.verbin@intel.com>
5460 Kirill Yukhin <kirill.yukhin@intel.com>
5461 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5463 * config/i386/i386.md
5464 (define_attr "isa"): Add avx512bw,noavx512bw.
5465 (define_attr "enabled"): Ditto.
5466 (define_split): Add 32/64-bit mask logic.
5467 (define_insn "*k<logic>qi"): New.
5468 (define_insn "*k<logic>hi"): New.
5469 (define_insn "*anddi_1"): Add mask version.
5470 (define_insn "*andsi_1"): Ditto.
5471 (define_insn "*<code><mode>_1"): Ditto.
5472 (define_insn "*<code>hi_1"): Ditto.
5473 (define_insn "kxnor<mode>"): New.
5474 (define_insn "kunpcksi"): New.
5475 (define_insn "kunpckdi"): New.
5476 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
5477 (define_insn "*one_cmplhi2_1"): Ditto.
5479 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5481 Anna Tikhonova <anna.tikhonova@intel.com>
5482 Ilya Tocar <ilya.tocar@intel.com>
5483 Andrey Turetskiy <andrey.turetskiy@intel.com>
5484 Ilya Verbin <ilya.verbin@intel.com>
5485 Kirill Yukhin <kirill.yukhin@intel.com>
5486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5488 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
5491 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5492 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5493 Anna Tikhonova <anna.tikhonova@intel.com>
5494 Ilya Tocar <ilya.tocar@intel.com>
5495 Andrey Turetskiy <andrey.turetskiy@intel.com>
5496 Ilya Verbin <ilya.verbin@intel.com>
5497 Kirill Yukhin <kirill.yukhin@intel.com>
5498 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5500 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
5502 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
5503 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
5504 xmm/ymm16+ when availble.
5505 * config/i386/i386.h
5506 (HARD_REGNO_NREGS): Add mask regs.
5507 (VALID_AVX512F_REG_MODE): Ditto.
5508 (VALID_AVX512F_REG_MODE) : Define.
5509 (VALID_MASK_AVX512BW_MODE): Ditto.
5510 (reg_class) (MASK_REG_P(X)): Define.
5511 * config/i386/i386.md: Do not split long moves with mask register,
5512 use kmovb if avx512bw is availible.
5513 (movdi_internal): Handle mask registers.
5515 2014-08-14 Richard Biener <rguenther@suse.de>
5517 PR tree-optimization/62081
5518 * tree-ssa-loop.c (pass_fix_loops): New pass.
5519 (pass_tree_loop::gate): Do not fixup loops here.
5520 * tree-pass.h (make_pass_fix_loops): Declare.
5521 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
5523 2014-08-14 Richard Biener <rguenther@suse.de>
5525 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
5526 (type_hash_canon): ... this and avoid 2nd lookup for the add.
5528 2014-08-14 Richard Biener <rguenther@suse.de>
5530 PR tree-optimization/62090
5531 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
5532 (fold_builtin_2): Do not fold sprintf.
5533 (fold_builtin_3): Likewise.
5534 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
5535 moved from builtins.c.
5536 (gimple_fold_builtin): Fold sprintf.
5538 2014-08-14 Richard Biener <rguenther@suse.de>
5540 PR rtl-optimization/62079
5541 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
5544 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5546 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
5547 current_function_decl.
5549 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5551 * cgraph.c (cgraph_node::function_symbol): Fix wrong
5552 cgraph_function_node to cgraph_node::function_symbol
5555 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
5557 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
5558 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
5560 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
5562 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
5565 2014-08-13 Roman Gareev <gareevroman@gmail.com>
5567 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
5570 2014-08-12 Jakub Jelinek <jakub@redhat.com>
5573 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
5574 any registers that are used in mem_insn.
5576 2014-08-12 Steve Ellcey <sellcey@mips.com>
5578 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
5580 2014-08-12 Steve Ellcey <sellcey@mips.com>
5582 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
5583 (MULTILIB_DIRNAMES): Ditto.
5584 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
5585 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
5586 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
5587 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
5588 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
5589 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
5591 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5594 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
5595 of __ARM_SIZEOF_WCHAR_T.
5597 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5600 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
5601 Remove unnecessary attributes.
5603 2014-08-12 Yury Gribov <y.gribov@samsung.com>
5605 * internal-fn.c (init_internal_fns): Fix off-by-one.
5607 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5608 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5609 Anna Tikhonova <anna.tikhonova@intel.com>
5610 Ilya Tocar <ilya.tocar@intel.com>
5611 Andrey Turetskiy <andrey.turetskiy@intel.com>
5612 Ilya Verbin <ilya.verbin@intel.com>
5613 Kirill Yukhin <kirill.yukhin@intel.com>
5614 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5616 * config/i386/i386.c (standard_sse_constant_opcode): Use
5617 vpxord/vpternlog if avx512 is availible.
5619 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
5622 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
5623 bitfields, that is when size doesn't match the size of type or the
5624 size of the constructor.
5626 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5628 * config/rs6000/constraints.md (wh constraint): New constraint,
5629 for FP registers if direct move is available.
5630 (wi constraint): New constraint, for VSX/FP registers that can
5631 handle 64-bit integers.
5632 (wj constraint): New constraint for VSX/FP registers that can
5633 handle 64-bit integers for direct moves.
5634 (wk constraint): New constraint for VSX/FP registers that can
5635 handle 64-bit doubles for direct moves.
5636 (wy constraint): Make documentation match implementation.
5638 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
5639 scalar_in_vmx_p field to simplify tests of whether SFmode or
5640 DFmode can go in the Altivec registers.
5641 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
5642 (rs6000_setup_reg_addr_masks): Likewise.
5643 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
5644 field, and wh/wi/wj/wk constraints.
5645 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
5646 the wh/wi/wj/wk constraints.
5647 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
5648 upper registers, prefer VSX registers unless the operation is a
5649 memory operation with REG+OFFSET addressing.
5651 * config/rs6000/vsx.md (VSr mode attribute): Add support for
5652 DImode. Change SFmode to use ww constraint instead of d to allow
5653 SF registers in the upper registers.
5656 (VSr5): Fix thinko in comment.
5657 (VSa): New mode attribute that is an alternative to wa, that
5658 returns the VSX register class that a mode can go in, but may not
5659 be the preferred register class.
5660 (VS_64dm): New mode attribute for appropriate register classes for
5661 referencing 64-bit elements of vectors for direct moves and normal
5663 (VS_64reg): Likewise.
5664 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
5665 register allocator to only registers the data type can handle.
5666 (vsx_le_perm_load_<mode>): Likewise.
5667 (vsx_le_perm_store_<mode>): Likewise.
5668 (vsx_xxpermdi2_le_<mode>): Likewise.
5669 (vsx_xxpermdi4_le_<mode>): Likewise.
5670 (vsx_lxvd2x2_le_<mode>): Likewise.
5671 (vsx_lxvd2x4_le_<mode>): Likewise.
5672 (vsx_stxvd2x2_le_<mode>): Likewise.
5673 (vsx_add<mode>3): Likewise.
5674 (vsx_sub<mode>3): Likewise.
5675 (vsx_mul<mode>3): Likewise.
5676 (vsx_div<mode>3): Likewise.
5677 (vsx_tdiv<mode>3_internal): Likewise.
5678 (vsx_fre<mode>2): Likewise.
5679 (vsx_neg<mode>2): Likewise.
5680 (vsx_abs<mode>2): Likewise.
5681 (vsx_nabs<mode>2): Likewise.
5682 (vsx_smax<mode>3): Likewise.
5683 (vsx_smin<mode>3): Likewise.
5684 (vsx_sqrt<mode>2): Likewise.
5685 (vsx_rsqrte<mode>2): Likewise.
5686 (vsx_tsqrt<mode>2_internal): Likewise.
5687 (vsx_fms<mode>4): Likewise.
5688 (vsx_nfma<mode>4): Likewise.
5689 (vsx_eq<mode>): Likewise.
5690 (vsx_gt<mode>): Likewise.
5691 (vsx_ge<mode>): Likewise.
5692 (vsx_eq<mode>_p): Likewise.
5693 (vsx_gt<mode>_p): Likewise.
5694 (vsx_ge<mode>_p): Likewise.
5695 (vsx_xxsel<mode>): Likewise.
5696 (vsx_xxsel<mode>_uns): Likewise.
5697 (vsx_copysign<mode>3): Likewise.
5698 (vsx_float<VSi><mode>2): Likewise.
5699 (vsx_floatuns<VSi><mode>2): Likewise.
5700 (vsx_fix_trunc<mode><VSi>2): Likewise.
5701 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
5702 (vsx_x<VSv>r<VSs>i): Likewise.
5703 (vsx_x<VSv>r<VSs>ic): Likewise.
5704 (vsx_btrunc<mode>2): Likewise.
5705 (vsx_b2trunc<mode>2): Likewise.
5706 (vsx_floor<mode>2): Likewise.
5707 (vsx_ceil<mode>2): Likewise.
5708 (vsx_<VS_spdp_insn>): Likewise.
5709 (vsx_xscvspdp): Likewise.
5710 (vsx_xvcvspuxds): Likewise.
5711 (vsx_float_fix_<mode>2): Likewise.
5712 (vsx_set_<mode>): Likewise.
5713 (vsx_extract_<mode>_internal1): Likewise.
5714 (vsx_extract_<mode>_internal2): Likewise.
5715 (vsx_extract_<mode>_load): Likewise.
5716 (vsx_extract_<mode>_store): Likewise.
5717 (vsx_splat_<mode>): Likewise.
5718 (vsx_xxspltw_<mode>): Likewise.
5719 (vsx_xxspltw_<mode>_direct): Likewise.
5720 (vsx_xxmrghw_<mode>): Likewise.
5721 (vsx_xxmrglw_<mode>): Likewise.
5722 (vsx_xxsldwi_<mode>): Likewise.
5723 (vsx_xscvdpspn): Tighten constraints to only use register classes
5725 (vsx_xscvspdpn): Likewise.
5726 (vsx_xscvdpspn_scalar): Likewise.
5728 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
5729 wj, and wk constraints.
5730 (GPR_REG_CLASS_P): New helper macro for register classes targeting
5731 general purpose registers.
5733 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
5735 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
5736 DImode instead of wm. Use wk constraint for direct move of DFmode
5738 (extendsidi2_lfiwax): Likewise.
5741 (movdi_internal64): Likewise.
5743 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
5744 wk constraints. Make the wy constraint documentation match them
5747 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
5749 Replacement of isl_int by isl_val
5750 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
5751 (compute_bounds_for_param): use isl_val instead of isl_int
5752 (compute_bounds_for_loop): likewise
5753 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
5754 (build_linearized_memory_access): use isl_val instead of isl_int
5755 (pdr_stride_in_loop): likewise
5756 * graphite-optimize-isl.c:
5757 (getPrevectorMap): use isl_val instead of isl_int
5759 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
5760 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
5761 (extern the_isl_ctx): declare
5762 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
5763 (extract_affine_gmp): likewise
5765 (build_loop_iteration_domains): likewise
5766 (add_param_constraints): likewise
5768 2014-08-11 Richard Biener <rguenther@suse.de>
5770 PR tree-optimization/62075
5771 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
5772 handle uses in patterns.
5774 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5776 Anna Tikhonova <anna.tikhonova@intel.com>
5777 Ilya Tocar <ilya.tocar@intel.com>
5778 Andrey Turetskiy <andrey.turetskiy@intel.com>
5779 Ilya Verbin <ilya.verbin@intel.com>
5780 Kirill Yukhin <kirill.yukhin@intel.com>
5781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5783 * common/config/i386/i386-common.c
5784 (OPTION_MASK_ISA_AVX512VL_SET): Define.
5785 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
5786 (ix86_handle_option): Handle OPT_mavx512vl.
5787 * config/i386/cpuid.h (bit_AVX512VL): Define.
5788 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
5789 set -mavx512vl accordingly.
5790 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5791 OPTION_MASK_ISA_AVX512VL.
5792 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
5793 (ix86_option_override_internal): Define PTA_AVX512VL, handle
5794 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
5795 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
5796 * config/i386/i386.h (TARGET_AVX512VL): Define.
5797 (TARGET_AVX512VL_P(x)): Ditto.
5798 * config/i386/i386.opt: Add mavx512vl.
5800 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
5802 PR tree-optimization/62073
5803 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
5806 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5807 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5808 Anna Tikhonova <anna.tikhonova@intel.com>
5809 Ilya Tocar <ilya.tocar@intel.com>
5810 Andrey Turetskiy <andrey.turetskiy@intel.com>
5811 Ilya Verbin <ilya.verbin@intel.com>
5812 Kirill Yukhin <kirill.yukhin@intel.com>
5813 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5815 * common/config/i386/i386-common.c
5816 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
5817 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
5818 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
5819 (ix86_handle_option): Handle OPT_mavx512bw.
5820 * config/i386/cpuid.h (bit_AVX512BW): Define.
5821 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
5822 set -mavx512bw accordingly.
5823 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5824 OPTION_MASK_ISA_AVX512BW.
5825 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
5826 (ix86_option_override_internal): Define PTA_AVX512BW, handle
5827 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
5828 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
5829 * config/i386/i386.h (TARGET_AVX512BW): Define.
5830 (TARGET_AVX512BW_P(x)): Ditto.
5831 * config/i386/i386.opt: Add mavx512bw.
5833 2014-08-11 Richard Biener <rguenther@suse.de>
5835 PR tree-optimization/62070
5836 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
5837 Remove SSA checking.
5839 2014-08-11 Yury Gribov <y.gribov@samsung.com>
5841 * asan.c (asan_check_flags): New enum.
5842 (build_check_stmt_with_calls): Removed function.
5843 (build_check_stmt): Split inlining logic to
5844 asan_expand_check_ifn.
5845 (instrument_derefs): Rename parameter.
5846 (instrument_mem_region_access): Rename parameter.
5847 (instrument_strlen_call): Likewise.
5848 (asan_expand_check_ifn): New function.
5849 (asan_instrument): Remove old code.
5850 (pass_sanopt::execute): Change handling of
5851 asan-instrumentation-with-call-threshold.
5852 (asan_clear_shadow): Fix formatting.
5853 (asan_function_start): Likewise.
5854 (asan_emit_stack_protection): Likewise.
5855 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
5857 * internal-fn.c (expand_ASAN_CHECK): New function.
5858 * internal-fn.def (ASAN_CHECK): New internal function.
5859 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
5861 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
5862 * tree.c: Small comment fix.
5864 2014-08-11 Yury Gribov <y.gribov@samsung.com>
5866 * gimple.c (gimple_call_fnspec): Support internal functions.
5867 (gimple_call_return_flags): Use const.
5868 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
5869 * internal-fn.def: Add fnspec information.
5870 * internal-fn.h (internal_fn_fnspec): New function.
5871 (init_internal_fns): Declare new function.
5872 * internal-fn.c (internal_fn_fnspec_array): New global variable.
5873 (init_internal_fns): New function.
5874 * tree-core.h: Update macro call.
5875 * tree.c (build_common_builtin_nodes): Initialize internal fns.
5877 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
5879 * lto-streamer.h (struct output_block::symbol): Change from
5880 struct symtab_node to plain symtab_node.
5881 (referenced_from_this_partition_p): Change first parameter
5882 from struct symtab_node to plain symtab_node.
5884 2014-08-10 Marek Polacek <polacek@redhat.com>
5887 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
5889 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
5891 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
5892 DECL correctly; do not give up on types in static storage.
5894 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
5896 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
5898 2014-08-09 Roman Gareev <gareevroman@gmail.com>
5900 * graphite-isl-ast-to-gimple.c:
5901 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
5903 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
5905 2014-08-08 Guozhi Wei <carrot@google.com>
5907 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
5909 2014-08-08 Cary Coutant <ccoutant@google.com>
5911 * dwarf2out.c (get_skeleton_type_unit): Remove.
5912 (output_skeleton_debug_sections): Remove skeleton type units.
5913 (output_comdat_type_unit): Likewise.
5914 (dwarf2out_finish): Likewise.
5916 2014-08-07 Yi Yang <ahyangyi@google.com>
5918 * predict.c (expr_expected_value_1): Remove the redundant assignment.
5920 2014-08-08 Richard Biener <rguenther@suse.de>
5922 * lto-streamer.h (struct lto_input_block): Make it a class
5924 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
5925 (struct lto_function_header, struct lto_simple_header,
5926 struct lto_simple_header_with_strings,
5927 struct lto_decl_header, struct lto_function_header): Make
5928 a simple inheritance hieararchy. Remove unused fields.
5929 (struct lto_asm_header): Remove.
5930 * lto-streamer-out.c (produce_asm): Adjust.
5931 (lto_output_toplevel_asms): Likewise.
5932 (produce_asm_for_decls): Likewise.
5933 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
5934 * data-streamer-in.c (string_for_index): Likewise.
5935 * ipa-inline-analysis.c (inline_read_section): Likewise.
5936 * ipa-prop.c (ipa_prop_read_section): Likewise.
5937 (read_replacements_section): Likewise.
5938 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
5939 * lto-section-in.c (lto_create_simple_input_block): Likewise.
5940 (lto_destroy_simple_input_block): Likewise.
5941 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
5942 (lto_input_toplevel_asms): Likewise.
5944 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
5945 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5946 Anna Tikhonova <anna.tikhonova@intel.com>
5947 Ilya Tocar <ilya.tocar@intel.com>
5948 Andrey Turetskiy <andrey.turetskiy@intel.com>
5949 Ilya Verbin <ilya.verbin@intel.com>
5950 Kirill Yukhin <kirill.yukhin@intel.com>
5951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5953 * common/config/i386/i386-common.c
5954 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
5955 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
5956 (ix86_handle_option): Handle OPT_mavx512dq.
5957 * config/i386/cpuid.h (bit_AVX512DQ): Define.
5958 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
5959 set -mavx512dq accordingly.
5960 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5961 OPTION_MASK_ISA_AVX512DQ.
5962 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
5963 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
5964 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
5965 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
5966 * config/i386/i386.h (TARGET_AVX512DQ): Define.
5967 (TARGET_AVX512DQ_P(x)): Ditto.
5968 * config/i386/i386.opt: Add mavx512dq.
5970 2014-08-08 Richard Biener <rguenther@suse.de>
5972 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
5973 target_percent, target_percent_s): Export.
5974 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
5975 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
5976 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
5977 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
5978 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
5979 Move to gimple-fold.c.
5980 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
5982 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
5983 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
5984 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
5985 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
5986 (rewrite_call_expr_array): Remove.
5987 (fold_builtin_sprintf_chk): Likewise.
5988 (fold_builtin_snprintf_chk): Likewise.
5989 (fold_builtin_varargs): Remove handling of sprintf_chk,
5990 vsprintf_chk, snprintf_chk and vsnprintf_chk.
5991 (gimple_fold_builtin_sprintf_chk): Remove.
5992 (gimple_fold_builtin_snprintf_chk): Likewise.
5993 (gimple_fold_builtin_varargs): Likewise.
5994 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
5995 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
5996 * gimple.c (gimple_seq_add_seq_without_update): New function.
5997 * gimple.h (gimple_seq_add_seq_without_update): Declare.
5998 * gimple-fold.c: Include output.h.
5999 (gsi_replace_with_seq_vops): New function, split out from ...
6000 (gimplify_and_update_call_from_tree): ... here.
6001 (replace_call_with_value): New function.
6002 (replace_call_with_call_and_fold): Likewise.
6003 (var_decl_component_p): Moved from builtins.c.
6004 (gimple_fold_builtin_memory_op): Moved from builtins.c
6005 fold_builtin_memory_op and rewritten to GIMPLE.
6006 (gimple_fold_builtin_memset): Likewise.
6007 (gimple_fold_builtin_strcpy): Likewise.
6008 (gimple_fold_builtin_strncpy): Likewise.
6009 (gimple_fold_builtin_strcat): Likewise.
6010 (gimple_fold_builtin_fputs): Likewise.
6011 (gimple_fold_builtin_memory_chk): Likewise.
6012 (gimple_fold_builtin_stxcpy_chk): Likewise.
6013 (gimple_fold_builtin_stxncpy_chk): Likewise.
6014 (gimple_fold_builtin_snprintf_chk): Likewise.
6015 (gimple_fold_builtin_sprintf_chk): Likewise.
6016 (gimple_fold_builtin_strlen): New function.
6017 (gimple_fold_builtin_with_strlen): New function split out from
6018 gimple_fold_builtin.
6019 (gimple_fold_builtin): Change signature and handle
6020 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6021 here. Call gimple_fold_builtin_with_strlen.
6022 (gimple_fold_call): Adjust.
6024 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6026 * calls.c (precompute_arguments): Check
6027 promoted_for_signed_and_unsigned_p and set the promoted mode.
6028 (promoted_for_signed_and_unsigned_p): New function.
6029 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6030 and set the promoted mode.
6031 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6032 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6033 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6036 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6038 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6039 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6040 (expand_call): Likewise.
6041 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6042 to get promoted mode.
6043 * combine.c (record_promoted_value): Skip > 0 comparison with
6044 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6045 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6046 of SUBREG_PROMOTED_UNSIGNED_P.
6047 (convert_modes): Likewise.
6048 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6049 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6050 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6051 SUBREG_PROMOTED_UNSIGNED_SET.
6052 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6053 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6054 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6055 SUBREG_PROMOTED_SET.
6056 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6057 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6058 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6059 of SUBREG_PROMOTED_UNSIGNED_P.
6060 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6061 (SUBREG_PROMOTED_SET): New define.
6062 (SUBREG_PROMOTED_GET): Likewise.
6063 (SUBREG_PROMOTED_SIGN): Likewise.
6064 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6065 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6066 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6067 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6068 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6069 (nonzero_bits1): Skip > 0 comparison with the results as
6070 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6071 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6072 of !SUBREG_PROMOTED_UNSIGNED_P.
6073 * simplify-rtx.c (simplify_unary_operation_1): Use new
6074 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6075 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6076 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6077 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6079 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6081 * ipa-devirt.c: Include gimple-pretty-print.h
6082 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6084 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6085 (get_polymorphic_call_info): Fix return value
6086 (type_change_info): New sturcture based on ipa-prop
6088 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6089 based on ipa-prop variant.
6090 (extr_type_from_vtbl_ptr_store): New function
6091 based on ipa-prop variant.
6092 (record_known_type): New function.
6093 (check_stmt_for_type_change): New function.
6094 (get_dynamic_type): New function.
6095 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6096 * tree-ssa-pre.c: ipa-utils.h
6097 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6098 machinery; sanity check with ipa-prop devirtualization.
6099 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6102 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6104 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6105 * alias.c, cfgexpand.c, cgraphbuild.c,
6106 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6107 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6108 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6109 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6110 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6111 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6112 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6113 dse.c, except.c, gengtype.c, gimple-expr.c,
6114 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6115 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6116 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6117 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6118 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6119 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6121 * pointer-set.c: Remove file.
6122 * pointer-set.h: Remove file.
6124 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6126 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6127 * config/arm/types.md (f_sels, f_seld): Delete.
6129 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6131 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6132 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6133 (aarch64_movdi_<mode>high): Likewise.
6134 (aarch64_mov<mode>high_di): Likewise.
6135 (aarch64_movdi_<mode>low): Likewise.
6136 (aarch64_mov<mode>low_di): Likewise.
6137 (aarch64_movtilow_tilow): Likewise.
6138 Add comment explaining usage of fp,simd attributes and of
6139 TARGET_FLOAT and TARGET_SIMD.
6141 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6142 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6144 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6145 Use MOVN when one of the half-words is 0xffff.
6147 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6149 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6151 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6153 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
6154 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
6155 (rfs_str): String corresponding to RFS_* constants.
6156 (rank_for_schedule_stats_t): New typedef.
6157 (rank_for_schedule_stats): New static variable.
6158 (rfs_result): New static function.
6159 (rank_for_schedule): Track statistics for deciding heuristics.
6160 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
6162 (ready_sort): Use them for debug printouts.
6163 (schedule_block): Init statistics state. Print statistics on
6164 rank_for_schedule decisions.
6166 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6168 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
6170 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
6172 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
6175 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6177 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
6178 function to not conflict.
6179 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
6180 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
6181 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
6182 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
6183 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
6186 2014-08-07 Marek Polacek <polacek@redhat.com>
6188 * fold-const.c (fold_binary_loc): Add folding of
6189 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
6191 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
6193 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
6194 instead of type size.
6195 (ASM_FINISH_DECLARE_OBJECT): Likewise.
6197 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6199 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
6200 (*thumb1_movqi_insn): Likewise.
6201 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
6203 2014-08-07 Tom de Vries <tom@codesourcery.com>
6205 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6206 (glibc_2_11_or_earlier): Remove effective-target keywords.
6208 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6210 * config/arm/arm.c (bdesc_2arg): Fix typo.
6211 (arm_atomic_assign_expand_fenv): Remove The default implementation.
6213 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
6215 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
6217 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
6220 * haifa-sched.c (advance_one_cycle): Fix dump.
6221 (schedule_block): Don't advance cycle if we are already at the
6222 beginning of the cycle.
6224 2014-08-06 Martin Jambor <mjambor@suse.cz>
6227 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
6229 2014-08-06 Richard Biener <rguenther@suse.de>
6232 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
6234 (lto_input_tree): Pop SCCs here.
6236 2014-08-06 Richard Biener <rguenther@suse.de>
6238 PR tree-optimization/61320
6239 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
6240 handle misaligned loads.
6242 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
6244 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
6245 (aarch64_expand_vec_perm_const): Check for dup before zip.
6247 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6249 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
6250 CONST_INT_P instead of GET_CODE and compare.
6251 (aarch64_select_cc_mode): Likewise.
6252 (aarch64_print_operand): Likewise.
6253 (aarch64_rtx_costs): Likewise.
6254 (aarch64_simd_valid_immediate): Likewise.
6255 (aarch64_simd_check_vect_par_cnst_half): Likewise.
6256 (aarch64_simd_emit_pair_result_insn): Likewise.
6258 2014-08-05 David Malcolm <dmalcolm@redhat.com>
6260 * gdbhooks.py (find_gcc_source_dir): New helper function.
6261 (class PassNames): New class, locating and parsing passes.def.
6262 (class BreakOnPass): New command "break-on-pass".
6264 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
6266 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
6269 2014-08-05 Richard Biener <rguenther@suse.de>
6271 PR rtl-optimization/61672
6272 * emit-rtl.h (mem_attrs_eq_p): Declare.
6273 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
6274 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
6275 * cfgcleanup.c (merge_memattrs): Likewise.
6278 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6280 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
6281 rather than singleton vectors.
6282 (vqdmlsls_lane_s32): Likewise.
6284 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6286 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
6287 Use VSDQ_HSI mode iterator.
6288 (aarch64_sqrdmulh_laneq<mode>): Likewise.
6289 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
6290 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
6291 Use BUILTIN_VDQHS macro.
6292 (sqrdmulh_laneq): Likewise.
6293 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
6294 (vqdmlals_laneq_s32): Likewise.
6295 (vqdmlslh_laneq_s16): Likewise.
6296 (vqdmlsls_laneq_s32): Likewise.
6297 (vqdmulhh_laneq_s16): Likewise.
6298 (vqdmulhs_laneq_s32): Likewise.
6299 (vqrdmulhh_laneq_s16): Likewise.
6300 (vqrdmulhs_laneq_s32): Likewise.
6302 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6304 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
6305 (vmuld_laneq_f64): Likewise.
6306 (vmuls_laneq_f32): Likewise.
6307 (vmul_n_f64): Likewise.
6308 (vmuld_lane_f64): Reimplement in C.
6309 (vmuls_lane_f32): Likewise.
6311 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6313 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
6315 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6317 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6319 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
6320 (rbitsi2): Likewise.
6321 (*arm_rev): Set predicable and predicable_short_it attributes.
6323 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6325 * convert.c (convert_to_integer): Guard transformation to lrint by
6328 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6330 * config/aarch64/aarch64-builtins.c
6331 (aarch64_simd_builtin_type_mode): Delete.
6332 (v8qi_UP): Remap to V8QImode.
6333 (v4hi_UP): Remap to V4HImode.
6334 (v2si_UP): Remap to V2SImode.
6335 (v2sf_UP): Remap to V2SFmode.
6336 (v1df_UP): Remap to V1DFmode.
6337 (di_UP): Remap to DImode.
6338 (df_UP): Remap to DFmode.
6339 (v16qi_UP):V16QImode.
6340 (v8hi_UP): Remap to V8HImode.
6341 (v4si_UP): Remap to V4SImode.
6342 (v4sf_UP): Remap to V4SFmode.
6343 (v2di_UP): Remap to V2DImode.
6344 (v2df_UP): Remap to V2DFmode.
6345 (ti_UP): Remap to TImode.
6346 (ei_UP): Remap to EImode.
6347 (oi_UP): Remap to OImode.
6348 (ci_UP): Map to CImode.
6349 (xi_UP): Remap to XImode.
6350 (si_UP): Remap to SImode.
6351 (sf_UP): Remap to SFmode.
6352 (hi_UP): Remap to HImode.
6353 (qi_UP): Remap to QImode.
6354 (aarch64_simd_builtin_datum): Make mode a machine_mode.
6355 (VAR1): Build builtin name.
6356 (aarch64_init_simd_builtins): Remove dead code.
6358 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6360 * graphite-isl-ast-to-gimple.c:
6361 (set_options): New function.
6362 (scop_to_isl_ast): Add calling of set_options.
6364 2014-08-05 Jakub Jelinek <jakub@redhat.com>
6366 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
6367 (analyze_iv_to_split_insn): Don't initialize them.
6368 (get_ivts_expr): Removed.
6369 (allocate_basic_variable, insert_base_initialization): Use
6370 SET_SRC instead of *get_ivts_expr.
6371 (split_iv): Use &SET_SRC instead of get_ivts_expr.
6373 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6375 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
6376 (translate_isl_ast_for_loop): Add checking of the
6377 flag_loop_parallelize_all.
6378 (ast_build_before_for): New function.
6379 (scop_to_isl_ast): Add checking of the
6380 flag_loop_parallelize_all.
6381 * graphite-dependences.c: Move the defenition of the
6382 scop_get_dependences from graphite-optimize-isl.c to this file.
6383 (apply_schedule_on_deps): Add checking of the ux's emptiness.
6384 (carries_deps): Add checking of the x's value.
6385 * graphite-optimize-isl.c: Move the defenition of the
6386 scop_get_dependences to graphite-dependences.c.
6387 * graphite-poly.h: Add declarations of scop_get_dependences
6390 2014-08-04 Rohit <rohitarulraj@freescale.com>
6393 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
6395 (alt_reg_names): Likewise.
6396 (rs6000_dwarf_register_span): For SPE high registers, replace
6397 dwarf register numbers with GCC hard register numbers.
6398 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
6399 (rs6000_dbx_register_number): For SPE high registers, return dwarf
6400 register number for the corresponding GCC hard register number.
6401 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
6402 newly added GCC hard register numbers for SPE high registers.
6403 (DWARF_FRAME_REGISTERS): Likewise.
6404 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
6405 (DWARF_FRAME_REGNUM): Likewise.
6406 (FIXED_REGISTERS): Likewise.
6407 (CALL_USED_REGISTERS): Likewise.
6408 (CALL_REALLY_USED_REGISTERS): Likewise.
6409 (REG_ALLOC_ORDER): Likewise.
6410 (enum reg_class): Likewise.
6411 (REG_CLASS_NAMES): Likewise.
6412 (REG_CLASS_CONTENTS): Likewise.
6413 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
6415 2014-08-04 Richard Biener <rguenther@suse.de>
6417 * gimple-fold.h (gimple_fold_builtin): Remove.
6418 * gimple-fold.c (gimple_fold_builtin): Make static.
6419 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
6420 fold_stmt, not gimple_fold_builtin.
6422 2014-08-04 Martin Liska <mliska@suse.cz>
6424 * cgraph.h (csi_end_p): Removed.
6425 (csi_next): Likewise.
6426 (csi_node): Likewise.
6427 (csi_start): Likewise.
6428 (cgraph_node_in_set_p): Likewise.
6429 (cgraph_node_set_size): Likewise.
6430 (vsi_end_p): Likewise.
6431 (vsi_next): Likewise.
6432 (vsi_node): Likewise.
6433 (vsi_start): Likewise.
6434 (varpool_node_set_size): Likewise.
6435 (cgraph_node_set_nonempty_p): Likewise.
6436 (varpool_node_set_nonempty_p): Likewise.
6437 * cgraphunit.c (cgraph_process_new_functions): vec replaces
6439 * ipa-inline-transform.c: Likewise.
6440 * ipa-utils.c (cgraph_node_set_new): Removed.
6441 (cgraph_node_set_add): Likewise.
6442 (cgraph_node_set_remove): Likewise.
6443 (cgraph_node_set_find): Likewise.
6444 (dump_cgraph_node_set): Likewise.
6445 (debug_cgraph_node_set): Likewise.
6446 (free_cgraph_node_set): Likewise.
6447 (varpool_node_set_new): Likewise.
6448 (varpool_node_set_add): Likewise.
6449 (varpool_node_set_remove): Likewise.
6450 (varpool_node_set_find): Likewise.
6451 (dump_varpool_node_set): Likewise.
6452 (free_varpool_node_set): Likewise.
6453 (debug_varpool_node_set): Likewise.
6454 * tree-emutls.c (struct tls_var_data):
6455 (emutls_index): Removed.
6456 (emutls_decl): Likewise.
6457 (gen_emutls_addr): Function implementation uses newly added
6458 hash_map<varpool_node *, tls_var_data>.
6459 (clear_access_vars): Likewise.
6460 (create_emultls_var): Likewise.
6461 (ipa_lower_emutls): Likewise.
6462 (reset_access): New function.
6464 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6466 * config/i386/i386.c (ix86_option_override_internal): Add
6467 PTA_RDRND and PTA_MOVBE for bdver4.
6469 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6470 James Greenhalgh <james.greenhalgh@arm.com>
6472 * doc/md.texi (clrsb): Document.
6473 (clz): Change reference to x into operand 1.
6475 (popcount): Likewise.
6477 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6480 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
6481 move to subtarget in serial version if result is ignored.
6483 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6484 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6486 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
6487 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
6488 (sched_analyze_insn): Update use of try_group_insn to
6489 sched_macro_fuse_insns.
6490 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
6491 arguments that are not conditional jumps.
6493 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6495 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
6496 family information. Handle BTVER2 cpu with cpuid family value.
6498 2014-08-04 Tom de Vries <tom@codesourcery.com>
6500 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6501 (glibc_2_11_or_earlier): Document effective-target keywords.
6503 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6505 * ipa-devirt.c (odr_type_warn_count): Add type.
6506 (possible_polymorphic_call_targets): Set it.
6507 (ipa_devirt): Use it.
6509 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6511 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
6513 * ipa-devirt.c: Include hash-map.h
6514 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
6515 (clear_speculation): Break out of ...
6516 (get_class_context): ... here; speed up handling obviously useless
6518 (odr_type_warn_count, decl_warn_count): New structures.
6519 (final_warning_record): New structure.
6520 (final_warning_records): New static variable.
6521 (possible_polymorphic_call_targets): Cleanup handling of
6522 speculative info; do not build speculation when user do not care;
6523 record info about warnings when asked for.
6524 (add_decl_warning): New function.
6525 (type_warning_cmp): New function.
6526 (decl_warning_cmp): New function.
6527 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
6528 (gate): Enable pass when warnings are requested.
6529 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
6532 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6534 * hash-map.h (default_hashmap_traits::mark_key_deleted):
6536 (hash_map::remove): New method.
6537 (hash_map::traverse): New method.
6538 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
6539 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
6540 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
6541 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
6542 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
6543 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
6546 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6548 * hash-set.h: new File.
6549 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
6550 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
6551 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
6552 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
6553 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
6554 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
6555 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
6556 varpool.c: Use hash_set instead of pointer_set.
6558 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
6560 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
6562 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6564 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
6565 for frame access when strict_p is false.
6567 2014-08-01 Renlin Li <renlin.li@arm.com>
6568 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6570 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
6571 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
6572 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
6574 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
6576 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
6577 aarch64_mem_pair_offset.
6579 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6581 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
6583 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
6584 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
6586 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
6588 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
6590 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
6593 * cgraphunit.c (analyze_functions): Use get_create rather than get
6594 for decls which are clones of abstract functions.
6596 2014-08-01 Martin Liska <mliska@suse.cz>
6598 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
6599 * ipa-prop.h (count_formal_params): Global function created from static.
6600 * ipa-prop.c (count_formal_params): Likewise.
6601 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
6602 profiles for semantically equivalent functions.
6603 * passes.c (do_per_function): If we load body of a function
6604 during WPA, this condition should behave same.
6605 * varpool.c (ctor_for_folding): More tolerant assert for variable
6606 aliases created during WPA.
6608 2014-08-01 Martin Liska <mliska@suse.cz>
6610 * doc/invoke.texi (Options That Control Optimization): Documentation
6611 for -foptimize-strlen introduced. Optimization levels default options
6614 2014-08-01 Jakub Jelinek <jakub@redhat.com>
6616 * opts.c (common_handle_option): Handle -fsanitize=alignment.
6617 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
6618 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
6620 * stor-layout.h (min_align_of_type): New prototype.
6621 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
6622 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
6624 * ubsan.c: Include builtins.h.
6625 (ubsan_expand_bounds_ifn): Change return type to bool,
6627 (ubsan_expand_null_ifn): Change return type to bool, change
6628 argument to gimple_stmt_iterator *. Handle both null and alignment
6629 sanitization, take type from ckind argument's type rather than
6631 (instrument_member_call): Removed.
6632 (instrument_mem_ref): Remove t argument, add mem and base arguments.
6633 Handle both null and alignment sanitization, don't say whole
6634 struct access is member access. Build 3 argument IFN_UBSAN_NULL
6635 call instead of 2 argument.
6636 (instrument_null): Adjust instrument_mem_ref caller. Don't
6637 instrument calls here.
6638 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
6640 * stor-layout.c (min_align_of_type): New function.
6641 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
6642 Or it into SANITIZE_UNDEFINED.
6643 * doc/invoke.texi (-fsanitize=alignment): Document.
6645 2014-07-31 Andi Kleen <ak@linux.intel.com>
6647 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
6649 2014-07-31 Andi Kleen <ak@linux.intel.com>
6651 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
6653 (vn_reference_compute_hash): Dito.
6654 (vn_nary_op_compute_hash): Dito.
6655 (vn_phi_compute_hash): Dito.
6656 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
6658 2014-07-31 Andi Kleen <ak@linux.intel.com>
6660 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
6661 Rename to inchash:add_expr_commutative. Convert to inchash.
6662 (iterative_hash_hashable_expr): Rename to
6663 inchash:add_hashable_expr. Convert to inchash.
6664 (avail_expr_hash): Dito.
6666 2014-07-31 Andi Kleen <ak@linux.intel.com>
6668 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
6671 2014-07-31 Andi Kleen <ak@linux.intel.com>
6673 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
6675 2014-07-31 Andi Kleen <ak@linux.intel.com>
6677 * Makefile.in (OBJS): Add rtlhash.o
6678 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
6679 (loc_checksum): Dito.
6680 (loc_checksum_ordered): Dito.
6681 (hash_loc_operands): Dito.
6683 (hash_loc_list): Dito.
6684 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
6685 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
6686 * rtlhash.c: New file.
6687 * rtlhash.h: New file.
6689 2014-07-31 Andi Kleen <ak@linux.intel.com>
6691 * inchash.h (inchash): Change inchash class to namespace.
6692 (class hash): ... Rename from inchash.
6693 (add_object): Move from macro to class template.
6694 * lto-streamer-out.c (hash_tree): Change inchash
6696 * tree.c (build_type_attribute_qual_variant): Dito.
6697 (type_hash_list): Dito.
6698 (attribute_hash_list): Dito.
6699 (iterative_hstate_expr): Rename to inchash::add_expr
6700 (build_range_type_1): Change inchash to inchash::hash
6701 and use hash::add_expr.
6702 (build_array_type_1): Dito.
6703 (build_function_type): Dito
6704 (build_method_type_directly): Dito.
6705 (build_offset_type): Dito.
6706 (build_complex_type): Dito.
6707 (make_vector_type): Dito.
6708 * tree.h (iterative_hash_expr): Dito.
6710 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
6712 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
6714 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6716 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
6717 correct alphabetical position.
6718 (vpaddd_f64): Rewrite using builtins.
6719 (vpaddd_s64): Move to correct alphabetical position.
6722 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
6725 * config/sh/sh.c (sh_legitimate_address_p,
6726 sh_legitimize_reload_address): Handle reg+reg address modes when
6727 ALLOW_INDEXED_ADDRESS is false.
6728 * config/sh/predicates.md (general_movsrc_operand,
6729 general_movdst_operand): Likewise.
6731 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6733 * config/aarch64/aarch64-builtins.c
6734 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
6737 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6739 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
6740 the generated mask based on BYTES_BIG_ENDIAN.
6741 (aarch64_simd_check_vect_par_cnst_half): New.
6742 * config/aarch64/aarch64-protos.h
6743 (aarch64_simd_check_vect_par_cnst_half): New.
6744 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
6745 the check out to aarch64_simd_check_vect_par_cnst_half.
6746 (vect_par_cnst_lo_half): Likewise.
6747 * config/aarch64/aarch64-simd.md
6748 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
6749 (move_hi_quad_<mode>): Always generate a low mask.
6751 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6753 * doc/invoke.texi (AVR Options): Add documentation about
6754 __AVR_DEVICE_NAME__ built-in macro.
6756 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
6759 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
6760 constraints are satisfied.
6761 (<shift>di3_neon): Likewise.
6763 2014-07-31 Richard Biener <rguenther@suse.de>
6765 PR tree-optimization/61964
6766 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
6767 by structural equality.
6769 2014-07-31 Yury Gribov <y.gribov@samsung.com>
6771 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
6772 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
6773 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
6775 * gcc.c (sanitize_spec_function): Support new option.
6776 (SANITIZER_SPEC): Remove now redundant check.
6777 * opts.c (common_handle_option): Support new option.
6778 (finish_options): Check for incompatibilities.
6779 * toplev.c (process_options): Split userspace-specific checks.
6781 2014-07-31 Richard Biener <rguenther@suse.de>
6783 * lto-streamer.h (struct output_block): Remove global.
6784 (struct data_in): Remove labels, num_named_labels and
6786 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
6787 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
6789 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
6792 * common.opt (-Wreturn-local-addr): Moved from c.opt.
6793 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
6794 (isolate_path): New argument to avoid inserting a trap.
6795 (find_implicit_erroneous_behaviour): Handle returning the address
6796 of a local variable.
6797 (find_explicit_erroneous_behaviour): Likewise.
6799 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
6802 * toplev.c (init_random_seed): Move piece of code never called to
6804 (set_random_seed): see above.
6806 2014-07-31 Tom de Vries <tom@codesourcery.com>
6808 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
6810 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
6812 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
6813 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
6815 2014-07-31 Richard Biener <rguenther@suse.de>
6817 * data-streamer.h (streamer_write_data_stream): Declare here,
6819 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
6820 * lto-cgraph.c (lto_output_node): Adjust.
6821 (lto_output_varpool_node): Likewise.
6822 * data-streamer-out.c (streamer_string_index): Likewise.
6823 (streamer_write_data_stream, lto_append_block): Move from ...
6824 * lto-section-out.c (lto_output_data_stream,
6825 lto_append_block): ... here.
6827 2014-07-30 Mike Stump <mikestump@comcast.net>
6829 * configure.ac: Also check for popen.
6830 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
6831 * configure: Regenerate.
6832 * config.in: Regenerate.
6834 2014-07-30 Martin Jambor <mjambor@suse.cz>
6836 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
6837 parameter to gimple.
6839 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6841 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
6842 address as second parameter to __tpf_eh_return routine.
6844 2014-07-30 Jiong Wang <jiong.wang@arm.com>
6846 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
6849 2014-07-30 Tom Tromey <tromey@redhat.com>
6852 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
6853 * doc/extend.texi (Type Attributes): Document designated_init
6856 2014-07-30 Roman Gareev <gareevroman@gmail.com>
6858 * graphite-isl-ast-to-gimple.c:
6859 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
6860 (gcc_expression_from_isl_expression): Pass type to
6861 gcc_expression_from_isl_ast_expr_id.
6863 2014-07-30 Richard Biener <rguenther@suse.de>
6865 * lto-streamer.h (lto_write_data): New function.
6866 * langhooks.c (lhd_append_data): Do not free block.
6867 * lto-section-out.c (lto_write_data): New function writing
6868 raw data to the current section.
6869 (lto_write_stream): Adjust for langhook semantic change.
6870 (lto_destroy_simple_output_block): Write header directly.
6871 * lto-opts.c (lto_write_options): Write options directly.
6872 * lto-streamer-out.c (produce_asm): Write heaeder directly.
6873 (lto_output_toplevel_asms): Likewise.
6874 (copy_function_or_variable): Copy data directly.
6875 (write_global_references): Output index table directly.
6876 (lto_output_decl_state_refs): Likewise.
6877 (write_symbol): Write data directly.
6878 (produce_symtab): Adjust.
6879 (produce_asm_for_decls): Output header and refs directly.
6881 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
6883 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
6884 to speculative_targets
6885 (get_class_context): Fix handling of contextes without outer type;
6886 avoid matching non-polymorphic types in LTO.
6887 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
6888 parameter to speculative_targetsp; handle speculation.
6889 (dump_possible_polymorphic_call_targets): Update dumping.
6891 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
6893 * common.opt (Wodr): Enable by default.
6895 2014-07-29 Olivier Hainque <hainque@adacore.com>
6897 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
6899 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
6902 * gengtype.c (strtoken): New function.
6903 (create_user_defined_type): Replace strtok with strtoken.
6905 2014-07-29 Nathan Sidwell <nathan@acm.org>
6907 * gcov-io.c (gcov_var): Make hidden.
6908 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
6909 (gcov_do_dump): Declare.
6910 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
6912 2014-07-29 Martin Jambor <mjambor@suse.cz>
6914 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
6915 parameter to gimple.
6916 (sra_modify_assign): Likewise.
6918 2014-07-29 Richard Biener <rguenther@suse.de>
6921 * expr.c (expand_expr_real_2): Revert last change.
6923 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
6925 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
6926 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
6927 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
6929 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
6930 (contains_type_p): Forward declare.
6931 (polymorphic_call_target_hasher::hash): Hash speculative info.
6932 (polymorphic_call_target_hasher::equal): Compare speculative info.
6933 (get_class_context): Handle speuclation.
6934 (contains_type_p): Update.
6935 (get_polymorphic_call_info_for_decl): Update.
6936 (walk_ssa_copies): Break out from ...
6937 (get_polymorphic_call_info): ... here; set speculative context
6939 * ipa-prop.c (ipa_write_indirect_edge_info,
6940 ipa_read_indirect_edge_info): Stream speculative context.
6941 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
6942 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
6943 SPECULATIVE_MAYBE_DERIVED_TYPE).
6944 (possible_polymorphic_call_targets overriders): Update.
6945 (dump_possible_polymorphic_call_targets overriders): Update.
6946 (dump_possible_polymorphic_call_target_p overriders): Update.
6948 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
6950 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
6951 ipa-devirt path; fix thinko there.
6953 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
6955 * config/i386/i386.c (ix86_return_in_memory): Replace one
6956 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
6958 2014-07-28 Marek Polacek <polacek@redhat.com>
6960 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
6962 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
6964 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
6965 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
6966 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
6967 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6968 (USE_LD_AS_NEEDED): Likewise.
6969 (ASM_APP_ON): Likewise.
6970 (ASM_APP_OFF): Likewise.
6971 (TARGET_POSIX_IO): Likewise.
6972 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
6973 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6974 (USE_LD_AS_NEEDED): Likewise.
6975 (ASM_APP_ON): Likewise.
6976 (ASM_APP_OFF): Likewise.
6977 (TARGET_POSIX_IO): Likewise.
6979 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
6982 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
6983 operators other than the equality operators.
6985 2014-07-28 Richard Biener <rguenther@suse.de>
6988 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
6989 sure to register SImode ones, not only >= word_mode ones.
6990 * expr.c (expand_expr_real_2): When expanding -ftrapv
6991 binops do not use OPTAB_LIB_WIDEN.
6993 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
6996 * tree-outof-ssa.c (insert_partition_copy_on_edge)
6997 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
6998 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
6999 inserting them in the insn stream.
7001 2014-07-28 Marek Polacek <polacek@redhat.com>
7004 * common.opt (Wodr): Add Var.
7006 2014-07-28 Richard Biener <rguenther@suse.de>
7008 PR tree-optimization/61921
7009 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7010 if there is a varpool node before dereferencing it.
7012 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7014 * graphite-sese-to-poly.c:
7015 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7016 id of the pbb), which contains pointer to the pbb1.
7018 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7020 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7022 * graphite-isl-ast-to-gimple.c:
7023 (graphite_create_new_guard): New function.
7024 (translate_isl_ast_node_if): New function.
7025 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7027 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7029 2014-07-27 Anthony Green <green@moxielogic.com>
7031 * config.gcc: Add moxie-*-moxiebox* configuration.
7032 * config/moxie/moxiebox.h: New file.
7034 2014-07-26 Andrew Pinski <apinski@cavium.com>
7036 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7037 from the read only register.
7039 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7041 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7042 as the allocation class if it isn't likely to be spilled.
7044 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7046 * rtl.h (tls_referenced_p): Declare.
7047 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7048 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7049 (mips_cannot_force_const_mem): Use tls_referenced_p.
7050 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7051 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7052 instead of pa_tls_referenced_p.
7053 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7054 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7055 (pa_legitimate_constant_p): Likewise.
7056 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7057 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7058 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7059 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7060 rs6000_tls_referenced_p.
7061 (rs6000_tls_symbol_ref_1): Delete.
7063 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7066 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7067 Optimize inverse of a VEC_CONCAT.
7069 2014-07-25 Xinliang David Li <davidxl@google.com>
7071 * params.def: New parameter.
7072 * coverage.c (get_coverage_counts): Check new flag.
7073 (coverage_compute_profile_id): Check new flag.
7074 (coverage_begin_function): Check new flag.
7075 (coverage_end_function): Check new flag.
7076 * value-prof.c (coverage_node_map_initialized_p): New function.
7077 (init_node_map): Populate map with all functions.
7078 * doc/invoke.texi: Document new parameter.
7080 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7081 Richard Biener <rguenther@suse.de>
7083 * lto-streamer-out.c (struct sccs): Turn to ...
7084 (class DFS): ... this one; refactor the DFS walk so it can
7085 be re-done on per-SCC basis.
7086 (DFS::DFS): New constructor.
7087 (DFS::~DFS): New destructor.
7088 (hash_tree): Add new MAP argument holding in-SCC hash values;
7089 remove POINTER_TYPE hashing hack.
7090 (scc_entry_compare): Rename to ...
7091 (DFS::scc_entry_compare): ... this one.
7092 (hash_scc): Rename to ...
7093 (DFS::hash_scc): ... this one; pass output_block instead
7094 of streamer_cache; work harder to get unique and stable SCC
7096 (DFS_write_tree): Rename to ...
7097 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7098 (lto_output_tree): Update.
7100 2014-07-25 Andi Kleen <ak@linux.intel.com>
7102 * lto-streamer-out.c (hash_tree): Convert to inchash.
7104 2014-07-25 Andi Kleen <ak@linux.intel.com>
7106 * tree.c (build_type_attribute_qual_variant): Use inchash.
7107 (type_hash_list): Dito.
7108 (attribute_hash_list): Dito
7109 (iterative_hstate_expr): Dito.
7110 (iterative_hash_expr): Dito.
7111 (build_range_type_1): Dito.
7112 (build_array_type_1): Dito.
7113 (build_function_type): Dito.
7114 (build_method_type_directly): Dito.
7115 (build_offset_type): Dito.
7116 (build_complex_type): Dito.
7117 (make_vector_type): Dito.
7118 * tree.h (iterative_hash_expr): Add compat wrapper.
7119 (iterative_hstate_expr): Add.
7121 2014-07-25 Andi Kleen <ak@linux.intel.com>
7123 * Makefile.in (OBJS): Add inchash.o.
7124 (PLUGIN_HEADERS): Add inchash.h.
7125 * ipa-devirt.c: Include inchash.h.
7126 * lto-streamer-out.c: Dito.
7127 * tree-ssa-dom.c: Dito.
7128 * tree-ssa-pre.c: Dito.
7129 * tree-ssa-sccvn.c: Dito.
7130 * tree-ssa-tail-merge.c: Dito.
7132 * tree.c (iterative_hash_hashval_t): Move to ...
7133 (iterative_hash_host_wide_int): Move to ...
7134 * inchash.c: Here. New file.
7135 * tree.h (iterative_hash_hashval_t): Move to ...
7136 (iterative_hash_host_wide_int): Move to ...
7137 * inchash.h: Here. New file.
7139 2014-07-25 Richard Biener <rguenther@suse.de>
7143 * fold-const.c (native_encode_int): Add and handle offset
7144 parameter to do partial encodings of expr.
7145 (native_encode_fixed): Likewise.
7146 (native_encode_real): Likewise.
7147 (native_encode_complex): Likewise.
7148 (native_encode_vector): Likewise.
7149 (native_encode_string): Likewise.
7150 (native_encode_expr): Likewise.
7151 * fold-const.c (native_encode_expr): Add offset parameter
7153 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
7154 (fold_ctor_reference): Handle all reads from tcc_constant
7157 2014-07-25 Richard Biener <rguenther@suse.de>
7159 * tree-inline.c (estimate_move_cost): Mark speed_p argument
7162 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7164 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
7166 2014-07-24 Kyle McMartin <kyle@redhat.com>
7168 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
7170 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7172 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
7174 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
7176 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
7177 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7178 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7180 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7182 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
7183 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
7184 aggregate types. Instead, *all* aggregate types, except for single-
7185 element or homogeneous float/vector aggregates, are quadword-aligned
7186 if required by their type alignment. Issue -Wpsabi note when a type
7187 is now treated differently than before.
7189 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7191 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
7192 does not fit fully into floating-point registers, and there is still
7193 space in the register parameter area, use GPRs to pass those parts
7194 of the argument. Issue -Wpsabi note if any parameter is now treated
7195 differently than before.
7196 (rs6000_arg_partial_bytes): Update.
7198 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
7200 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
7202 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7204 * rtl.h (target_rtl): Remove lang_dependent_initialized.
7205 * toplev.c (initialize_rtl): Don't use it. Move previously
7206 "language-dependent" calls to...
7207 (backend_init): ...here.
7208 (lang_dependent_init_target): Don't set lang_dependent_initialized.
7209 Assert that RTL initialization hasn't happend yet.
7211 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7213 PR rtl-optimization/61629
7214 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
7215 they have already been initialized.
7217 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7220 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
7221 DECL_INCOMING_RTL and entry_parm.
7222 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
7223 * calls.c (load_register_parameters): Likewise argument values.
7224 (emit_library_call_value_1, store_one_arg): Likewise argument
7226 * config/i386/i386.c (assign_386_stack_local): Likewise the local
7228 * explow.c (validize_mem): Modify the argument in-place.
7230 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7232 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
7233 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
7235 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7237 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
7238 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
7240 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7242 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
7243 (aarch64_save_callee_saves): New parameter "skip_wb".
7244 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
7246 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7248 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
7250 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
7252 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7254 * graphite-isl-ast-to-gimple.c:
7255 (graphite_create_new_loop): Add calling of isl_id_free to properly
7256 decrement reference counts.
7258 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
7260 2014-07-24 Martin Liska <mliska@suse.cz>
7261 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
7263 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
7264 (rs6000_code_end): Likewise.
7266 2014-07-24 Martin Liska <mliska@suse.cz>
7268 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
7269 symtab_node funtion used.
7270 (rs6000_xcoff_declare_object_name): Likewise.
7272 2014-07-24 Martin Liska <mliska@suse.cz>
7274 * cgraphunit.c (compile): Correct function used.
7276 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7278 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
7281 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7284 * varasm.c (bss_initializer_p): Handle offlined ctors.
7285 (align_variable, get_variable_align): Likewise.
7286 (make_decl_one_only): Likewise.
7287 (default_binds_local_p_1): Likewise.
7288 (decl_binds_to_current_def_p): Likewise.
7289 (get_variable_section): Get constructor if it is offlined.
7290 (assemble_variable_contents): Sanity check that the caller
7291 streamed in the ctor in LTO.
7293 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7295 * graphite-isl-ast-to-gimple.c:
7296 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
7297 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
7298 isl_ast_op_pdiv_r to the different case.
7300 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
7302 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7305 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
7306 when flag_errno_math is on.
7308 2014-07-24 Martin Liska <mliska@suse.cz>
7310 * cgraph.h (varpool_node):
7311 (availability get_availability (void)):
7312 created from cgraph_variable_initializer_availability
7313 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
7314 created from: cgraph_variable_initializer_availability
7315 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
7316 (void finalize_named_section_flags (void)):
7317 created from varpool_finalize_named_section_flags
7318 (bool assemble_decl (void)): created from varpool_assemble_decl
7319 (void analyze (void)): created from varpool_analyze_node
7320 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
7321 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
7322 (void remove_initializer (void)): created from varpool_remove_initializer
7323 (tree get_constructor (void)): created from varpool_get_constructor
7324 (bool externally_visible_p (void)): created from varpool_externally_visible_p
7325 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
7326 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
7327 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
7328 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
7329 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
7330 (static bool output_variables (void)): created from varpool_output_variables
7331 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
7332 created from varpool_extra_name_alias
7333 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
7334 (static void dump_varpool (FILE *f)): created from dump_varpool
7335 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
7336 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
7337 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
7338 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
7339 (void assemble_aliases (void)): created from assemble_aliases
7341 2014-07-24 Martin Liska <mliska@suse.cz>
7343 * cgraph.h (symtab_node):
7344 (void register_symbol (void)): created from symtab_register_node
7345 (void remove (void)): created from symtab_remove_node
7346 (void dump (FILE *f)): created from dump_symtab_node
7347 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
7348 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
7349 (struct ipa_ref *add_reference (symtab_node *referred_node,
7350 enum ipa_ref_use use_type)): created from add_reference
7351 (struct ipa_ref *add_reference (symtab_node *referred_node,
7352 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
7353 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
7354 gimple stmt)): created from maybe_add_reference
7355 (bool semantically_equivalent_p (symtab_node *target)): created from
7356 symtab_semantically_equivalent_p
7357 (void remove_from_same_comdat_group (void)): created from
7358 remove_from_same_comdat_group
7359 (void add_to_same_comdat_group (symtab_node *old_node)): created from
7360 symtab_add_to_same_comdat_group
7361 (void dissolve_same_comdat_group_list (void)): created from
7362 symtab_dissolve_same_comdat_group_list
7363 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
7364 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
7365 created from symtab_alias_ultimate_target
7366 (inline symtab_node *next_defined_symbol (void)): created from
7367 symtab_next_defined_symbol
7368 (bool resolve_alias (symtab_node *target)): created from
7369 symtab_resolve_alias
7370 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
7371 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
7372 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
7373 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
7374 (void set_section (const char *section)): created from set_section_1
7375 (enum availability get_availability (void)): created from symtab_node_availability
7376 (void make_decl_local (void)): created from symtab_make_decl_local
7377 (bool real_symbol_p (void)): created from symtab_read_node
7378 (can_be_discarded_p (void)): created from symtab_can_be_discarded
7379 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
7380 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
7381 symtab_in_same_comdat_p;
7382 (bool address_taken_from_non_vtable_p (void)): created from
7383 address_taken_from_non_vtable_p
7384 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
7385 (static void dump_table (FILE *)): created from dump_symtab
7386 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
7387 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
7388 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
7389 symtab_used_from_object_file_p
7390 (void dump_base (FILE *)): created from dump_symtab_base
7391 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
7392 (void unregister (void)): created from symtab_unregister_node
7393 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
7394 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
7395 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
7396 symtab_nonoverwritable_alias_1
7397 * cgraph.h (cgraph_node):
7398 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
7399 created from cgraph_remove_node_and_inline_clones
7400 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
7401 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
7402 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
7403 (cgraph_node *function_symbol (enum availability *avail = NULL)):
7404 created from cgraph_function_node
7405 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
7406 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
7407 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
7408 created from cgraph_create_clone
7409 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
7410 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
7411 created from cgraph_create_virtual_clone
7412 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
7413 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
7414 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
7415 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
7416 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
7417 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
7418 created from cgraph_function_version_info
7419 (struct cgraph_function_version_info *insert_new_function_version (void)):
7420 created from insert_new_cgraph_node_version
7421 (struct cgraph_function_version_info *function_version (void)): created from
7422 get_cgraph_node_version
7423 (void analyze (void)): created from analyze_function
7424 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
7425 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
7426 tree real_alias) cgraph_add_thunk
7427 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
7428 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
7429 created from cgraph_function_or_thunk_node
7430 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
7431 created from expand_thunk
7432 (void reset (void)): created from cgraph_reset_node
7433 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
7434 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
7435 (void remove (void)): created from cgraph_remove_node
7436 (void dump (FILE *f)): created from dump_cgraph_node
7437 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
7438 (bool get_body (void)): created from cgraph_get_body
7439 (void release_body (void)): created from cgraph_release_function_body
7440 (void unnest (void)): created from cgraph_unnest_node
7441 (void make_local (void)): created from cgraph_make_node_local
7442 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
7443 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
7444 gcov_type count, int freq)): created from cgraph_create_edge
7445 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
7446 gcov_type count, int freq)): created from cgraph_create_indirect_edge
7447 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
7448 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
7449 created from cgraph_create_edge_including_clones
7450 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
7451 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
7452 (void remove_callers (void)): created from cgraph_node_remove_callers
7453 (void remove_callees (void)): created from cgraph_node_remove_callees
7454 (enum availability get_availability (void)): created from cgraph_function_body_availability
7455 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
7456 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
7457 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
7458 (void call_duplication_hooks (cgraph_node *node2)): created from
7459 cgraph_call_node_duplication_hooks
7460 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
7461 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
7462 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
7463 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
7464 (void call_function_insertion_hooks (void)):
7465 created from cgraph_call_function_insertion_hooks
7466 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
7467 (bool local_p (void)): created from cgraph_local_node
7468 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
7469 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
7470 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
7471 (inline bool only_called_directly_or_aliased_p (void)):
7472 created from cgraph_only_called_directly_or_aliased_p
7473 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
7474 created from cgraph_will_be_removed_from_program_if_no_direct_calls
7475 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
7476 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
7477 (bool can_remove_if_no_direct_calls_p (void)):
7478 created from cgraph_can_remove_if_no_direct_calls_p
7479 (inline bool has_gimple_body_p (void)):
7480 created from cgraph_function_with_gimple_body_p
7481 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
7482 (static void dump_cgraph (FILE *f)): created from dump_cgraph
7483 (static inline void debug_cgraph (void)): created from debug_cgraph
7484 (static void record_function_versions (tree decl1, tree decl2)):
7485 created from record_function_versions
7486 (static void delete_function_version (tree decl)):
7487 created from delete_function_version
7488 (static void add_new_function (tree fndecl, bool lowered)):
7489 created from cgraph_add_new_function
7490 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
7491 (static cgraph_node * create (tree decl)): created from cgraph_create_node
7492 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
7493 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
7494 (static cgraph_node *get_for_asmname (tree asmname)):
7495 created from cgraph_node_for_asm
7496 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
7497 created from cgraph_same_body_alias
7498 (static bool used_from_object_file_p_worker (cgraph_node *node,
7499 void *): new function
7500 (static bool non_local_p (cgraph_node *node, void *)):
7501 created from cgraph_non_local_node_p_1
7502 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
7503 created from verify_cgraph
7504 (static bool make_local (cgraph_node *node, void *)):
7505 created from cgraph_make_node_local
7506 (static cgraph_node *create_alias (tree alias, tree target)):
7507 created from cgraph_create_function_alias
7508 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
7509 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
7510 created from cgraph_create_edge_1
7511 * cgraph.h (varpool_node):
7512 (void remove (void)): created from varpool_remove_node
7513 (void dump (FILE *f)): created from dump_varpool_node
7515 2014-07-24 Richard Biener <rguenther@suse.de>
7518 * tree-ssa-structalias.c (create_variable_info_for_1):
7519 Use varpool_get_constructor.
7520 (create_variable_info_for): Likewise.
7522 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7524 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
7525 subtract outgoing area size when restoring stack_pointer_rtx.
7527 2014-07-24 Nick Clifton <nickc@redhat.com>
7529 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
7530 that operations are taking place in parallel.
7531 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
7533 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
7535 * omp-low.c (extract_omp_for_data): Add missing break statement.
7537 2014-07-24 Richard Biener <rguenther@suse.de>
7539 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
7540 * tree-inline.c (estimate_move_cost): Add speed_p parameter
7541 and adjust MOVE_RATIO query accordingly.
7542 (estimate_num_insns): Adjust callers.
7543 * ipa-prop.c (ipa_populate_param_decls): Likewise.
7544 * ipa-cp.c (gather_context_independent_values,
7545 estimate_local_effects): Likewise.
7546 * ipa-split.c (consider_split): Likewise.
7548 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
7550 * config/i386/driver-i386.c: Remove names of unused arguments and
7551 unnecessary unused attributes.
7552 * config/i386/host-mingw32.c: Likewise.
7553 * config/i386/i386.c: Likewise.
7554 * config/i386/winnt-stubs.c: Likewise.
7555 * config/i386/winnt.c: Likewise.
7557 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7559 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
7560 (aarch64_gen_loadwb_pair): New helper function.
7561 (aarch64_expand_epilogue): Simplify code using new helper functions.
7562 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
7564 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7566 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
7567 (aarch64_gen_storewb_pair): New helper function.
7568 (aarch64_expand_prologue): Simplify code using new helper functions.
7569 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
7571 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7573 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
7574 Rename to aarch64_save_callee_saves, remove restore code.
7575 (aarch64_restore_callee_saves): New function.
7577 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7579 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
7580 (aarch64_save_callee_saves): New function to handle reg save
7581 for both core and vectore regs.
7583 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7585 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
7586 (aarch64_gen_store_pair): New helper function.
7587 (aarch64_save_or_restore_callee_save_registers)
7588 (aarch64_save_or_restore_fprs): Use new helper functions.
7590 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7592 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
7593 (aarch64_save_or_restore_callee_save_registers)
7594 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
7596 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7598 * config/aarch64/aarch64.c
7599 (aarch64_save_or_restore_callee_save_registers)
7600 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
7602 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7604 * config/aarch64/aarch64.c
7605 (aarch64_save_or_restore_callee_save_registers)
7606 (aarch64_save_or_restore_fprs): Remove 'increment'.
7608 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7610 * config/aarch64/aarch64.c
7611 (aarch64_save_or_restore_callee_save_registers)
7612 (aarch64_save_or_restore_fprs): Use register offset in
7613 cfun->machine->frame.reg_offset.
7615 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7617 * config/aarch64/aarch64.c
7618 (aarch64_save_or_restore_callee_save_registers)
7619 (aarch64_save_or_restore_fprs): Remove base_rtx.
7621 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7623 * config/aarch64/aarch64.c
7624 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
7625 to 'start_offset'. Remove local variable 'start_offset'.
7627 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7629 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
7630 type to HOST_WIDE_INT.
7632 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7634 * config/aarch64/aarch64.c (aarch64_expand_prologue)
7635 (aarch64_save_or_restore_fprs)
7636 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
7638 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7640 * config/arm/t-rtems-eabi: Add
7641 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
7642 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
7643 mbig-endian/mthumb/march=armv7-r, and
7644 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
7647 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7648 Chris Johns <chrisj@rtems.org>
7649 Joel Sherrill <joel.sherrill@oarcorp.com>
7651 * config.gcc: Add nios2-*-rtems*.
7652 * config/nios2/rtems.h: New file.
7653 * gcc/config/nios2/t-rtems: New file.
7655 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7658 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
7659 constant numbers, not general constants.
7660 (rs6000_expand_vector_init): Ditto.
7662 2014-07-23 Nathan Sidwell <nathan@acm.org>
7664 * gcov-tool.c (gcov_list): Declare here.
7665 (set_gcov_list): Remove.
7666 (gcov_output_files): Set gcov_list directly.
7668 2014-07-23 Host Schirmeier <horst@schirmeier.com>
7670 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
7672 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7674 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
7675 callee-saved registers are available for padding purpose
7676 and r3 is not mandatory, then prefer use those callee-saved
7679 2014-07-23 Richard Biener <rguenther@suse.de>
7681 * params.def (PARAM_MAX_COMBINE_INSNS): New.
7682 * combine.c: Include statistics.h and params.h.
7683 (combine_instructions): Guard three and four insn combines
7684 with max-combine-insns value. Record statistics for combines
7686 * doc/invoke.texi (max-combine-insns): Document new param.
7688 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7690 * graphite-isl-ast-to-gimple.c:
7691 (translate_isl_ast_node_block): New function.
7692 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
7694 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
7695 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
7697 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7699 * graphite-isl-ast-to-gimple.c:
7700 (get_max_schedule_dimensions): New function.
7701 (extend_schedule): Likewise.
7702 (generate_isl_schedule): Add calling of extend_schedule and
7703 get_max_schedule_dimensions.
7705 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7707 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
7708 (case UNSPEC): Handle UNSPEC_RBIT.
7710 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7712 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
7713 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
7715 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7717 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
7719 2014-07-22 Roman Gareev <gareevroman@gmail.com>
7721 * graphite-isl-ast-to-gimple.c:
7722 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
7724 (build_iv_mapping): New function.
7725 (translate_isl_ast_node_user): Likewise.
7726 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
7728 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
7729 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
7730 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
7732 2014-07-21 Bin Cheng <bin.cheng@arm.com>
7735 * config/arm/arm.md (setmem): New pattern.
7736 * config/arm/arm-protos.h (struct tune_params): New fields.
7737 (arm_gen_setmem): New prototype.
7738 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7739 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7740 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7741 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7742 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7743 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7744 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7745 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7746 (arm_const_inline_cost): New function.
7747 (arm_block_set_max_insns): New function.
7748 (arm_block_set_non_vect_profit_p): New function.
7749 (arm_block_set_vect_profit_p): New function.
7750 (arm_block_set_unaligned_vect): New function.
7751 (arm_block_set_aligned_vect): New function.
7752 (arm_block_set_unaligned_non_vect): New function.
7753 (arm_block_set_aligned_non_vect): New function.
7754 (arm_block_set_vect, arm_gen_setmem): New functions.
7756 2014-07-21 Bin Cheng <bin.cheng@arm.com>
7758 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7760 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
7763 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
7764 out of #ifdef __OPTIMIZE__.
7766 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
7768 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
7769 different trapping status if -fnon-call-exceptions is enabled.
7771 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
7773 * expr.c (store_field): Handle VOIDmode for calls that return values
7774 in multiple locations.
7776 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7778 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
7779 (altivec_vsldoi_<mode>): Likewise.
7781 2014-07-20 Roman Gareev <gareevroman@gmail.com>
7783 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
7784 to the number of characters in the line.
7786 2014-07-20 Roman Gareev <gareevroman@gmail.com>
7788 * graphite-isl-ast-to-gimple.c: Add using of
7789 build_nonstandard_integer_type instead of int128_integer_type_node.
7791 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
7793 * toplev.c (output_stack_usage): Adjust the location of the warning.
7795 2014-07-19 Daniel Cederman <cederman@gaisler.com>
7797 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
7798 (*membar_storeload): Disable for LEON3.
7800 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7802 PR rtl-optimization/61461
7803 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
7805 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
7808 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
7809 Fix instruction constraint.
7810 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7812 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
7814 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
7816 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
7818 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
7819 GNU coding standards.
7820 (nds32_register_move_cost): Likewise.
7821 (nds32_memory_move_cost): Likewise.
7822 (nds32_address_cost): Likewise.
7824 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7826 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
7828 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
7830 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
7831 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
7832 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
7833 (HAVE_sync_compare_and_swapqi): Define.
7834 (HAVE_sync_compare_and_swaphi): Likewise.
7835 (HAVE_sync_compare_and_swapsi): Likewise.
7837 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
7839 * config/mips/p5600.md: Add missing cpu tests.
7841 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7843 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
7844 (vmla_f64): Likewise.
7845 (vfms_f64): Likewise.
7846 (vmls_f64): Likewise.
7848 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7850 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
7851 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
7853 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7855 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
7856 (vmlal_high_lane_s32): Likewise.
7857 (vmlal_high_lane_u16): Likewise.
7858 (vmlal_high_lane_u32): Likewise.
7859 (vmlsl_high_lane_s16): Likewise.
7860 (vmlsl_high_lane_s32): Likewise.
7861 (vmlsl_high_lane_u16): Likewise.
7862 (vmlsl_high_lane_u32): Likewise.
7864 2014-07-17 Terry Guo <terry.guo@arm.com>
7866 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
7867 (alus_reg): Renamed to alus_sreg.
7868 * config/arm/arm-fixed.md: Change type of non-dsp instructions
7869 from alu_reg to alu_sreg. Change type of dsp instructions from
7870 alu_reg to alu_dsp_reg.
7871 * config/arm/thumb1.md: Likewise.
7872 * config/arm/thumb2.md: Likewise.
7873 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
7874 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
7875 with alu_sreg and alus_sreg.
7876 * config/arm/arm1026ejs.md (alu_op): Likewise.
7877 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
7878 * config/arm/arm926ejs.md (9_alu_op): Likewise.
7879 * config/arm/fa526.md (526_alu_op): Likewise.
7880 * config/arm/fa606te.md (606te_alu_op): Likewise.
7881 * config/arm/fa626te.md (626te_alu_op): Likewise.
7882 * config/arm/fa726te.md (726te_alu_op): Likewise.
7883 * config/arm/fmp626.md (mp626_alu_op): Likewise.
7884 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
7885 alu_sreg, alu_dsp_reg and alus_sreg.
7886 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
7887 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
7888 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
7889 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
7890 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
7891 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
7892 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
7893 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
7894 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
7895 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
7896 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
7897 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
7898 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
7899 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
7900 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
7901 alus_reg to alus_sreg.
7903 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
7905 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
7908 2014-07-17 Richard Biener <rguenther@suse.de>
7910 PR rtl-optimization/61801
7911 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
7912 don't set reg_pending_barrier if it appears in a debug-insn.
7914 2014-07-16 DJ Delorie <dj@redhat.com>
7916 * config/rx/rx.c (rx_option_override): Fix alignment values.
7917 (rx_align_for_label): Likewise.
7919 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
7922 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
7923 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7924 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
7926 (cris_print_index, cris_print_operand, cris_constant_index_p)
7927 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
7928 (cris_address_cost): Ditto last CONSTANT_P.
7929 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
7930 callers changed. Yield cris_offsettable_symbol for non-PIC
7931 constant symbolic expressions including labels. Yield cris_unspec
7933 (cris_expand_pic_call_address): New parameter MARKERP. Set its
7934 target to pic_offset_table_rtx for calls that will likely go
7935 through PLT, const0_rtx when they can't. All callers changed.
7936 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
7937 symbolic expressions to be PICified. Remove second, redundant,
7938 assert on can_create_pseudo_p returning non-zero. Use
7939 replace_equiv_address_nv, not replace_equiv_address, for final
7941 * config/cris/cris.md ("movsi"): Move variable t to pattern
7942 toplevel. Adjust assert for new cris_symbol_type member. Use
7943 CONSTANT_P instead of CONSTANT_ADDRESS_P.
7944 ("*movsi_internal") <case 9>: Make check for valid unspec operands
7946 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
7947 ("call", "call_value"): Use second incoming operand as a marker
7948 for pic-offset-table-register being used.
7949 ("*expanded_call_non_v32", "*expanded_call_v32")
7950 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
7951 second incoming operand to CALL, match cris_call_type_marker.
7952 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
7953 ("*expanded_call_side"): Ditto. Fix typo in comment.
7954 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
7956 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
7957 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
7958 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
7959 users changed. Add members cris_offsettable_symbol and cris_unspec.
7960 (cris_symbol_type): Rename from cris_pic_symbol_type.
7961 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
7963 * config/cris/cris-protos.h (cris_symbol_type_of,
7964 cris_expand_pic_call_address): Adjust prototypes.
7965 (cris_legitimate_constant_p): New prototype.
7967 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
7968 an existing tmake_file. Don't add t-slibgcc and t-linux.
7970 2014-07-17 Jason Merrill <jason@redhat.com>
7973 * symtab.c (symtab_remove_from_same_comdat_group): Also
7974 set_comdat_group to NULL_TREE.
7975 (verify_symtab): Fix diagnostic.
7977 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
7980 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
7982 2014-07-16 Dodji Seketeli <dodji@redhat.com>
7984 Support location tracking for built-in macro tokens
7985 * input.h (is_location_from_builtin_token): New function declaration.
7986 * input.c (is_location_from_builtin_token): New function definition.
7987 * toplev.c (general_init): Tell libcpp what the pre-defined
7988 spelling location for built-in tokens is.
7990 2014-07-16 Jakub Jelinek <jakub@redhat.com>
7992 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
7993 on the FUNCTION_DECL.
7995 2014-07-16 Richard Biener <rguenther@suse.de>
7998 * doc/extend.texi (always_inline): Clarify.
8000 2014-07-15 Eric Christopher <echristo@gmail.com>
8002 * doc/invoke.texi (Link Options): Document -z option.
8004 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8006 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8007 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8009 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8011 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8013 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8015 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8016 varpool_assemble_decl.
8017 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8020 2014-07-15 Michael Matz <matz@suse.de>
8022 PR rtl-optimization/61772
8023 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8025 2014-07-15 Richard Biener <rguenther@suse.de>
8027 * opts.c (default_options_table): Disable bit-ccp at -Og.
8029 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8031 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8033 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8035 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8036 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8037 call langhook for unknown declaration.
8038 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8039 * tree.h (DECL_ARGUMENTS): Update.
8040 * print-tree.c (print_node): Update.
8041 * tree-core.h (tree_decl_non_common): Remove arguments.
8042 (tree_function_decl): Add arguments.
8044 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8046 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8048 2014-07-14 Richard Biener <rguenther@suse.de>
8050 PR tree-optimization/61779
8051 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8052 simplifying a condition.
8054 2014-07-14 Richard Biener <rguenther@suse.de>
8056 * builtins.c (c_strlen): Make only_value == 2 really only
8057 affect warning generation.
8059 2014-07-14 Richard Biener <rguenther@suse.de>
8061 PR tree-optimization/61757
8062 PR tree-optimization/61783
8063 PR tree-optimization/61787
8064 * tree-ssa-dom.c (record_equality): Revert canonicalization
8065 change and add comment.
8066 (propagate_rhs_into_lhs): Revert previous fix, removing
8067 loop depth restriction again.
8069 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8071 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8072 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8073 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8074 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8075 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8076 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8077 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8079 2014-07-14 Richard Biener <rguenther@suse.de>
8081 * cgraph.h (decl_in_symtab_p): Make inline.
8083 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8086 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8089 * config/i386/i386.c (classify_argument): Don't merge classes above
8092 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8094 * cgraph.h (symtab_node): Add nonzero_address.
8095 (decl_in_symtab_p): Break out from ...
8096 (symtab_get_node): ... here.
8097 * fold-const.c: Include cgraph.h
8098 (tree_single_nonzero_warnv_p): Use symtab to determine
8099 if symbol is non-zero.
8100 * symtab.c (symtab_node::nonzero_address): New method.
8102 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8104 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8105 forgotten in previous commit.
8107 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8109 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8111 * ipa-devirt.c: Include stor-layout.h and intl.h
8112 (odr_subtypes_equivalent_p): New function.
8113 (warn_odr): New function.
8114 (warn_type_mismatch): New function.
8115 (odr_types_equivalent_p): New function.
8116 (add_type_duplicate): Use it.
8117 * common.opt (Wodr): New flag.
8118 * doc/invoke.texi (Wodr): Document new warning.
8120 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8122 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8123 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8124 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8125 (varpool_get_constructor): Push CTORS_IN timevar.
8126 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8128 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8130 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8131 Remove VOID_FTYPE_PUSHORT.
8132 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8133 Change code to USHORT_FTYPE_VOID.
8134 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8135 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8136 (ix86_atomic_assign_expand_fenv): Update for
8137 __builtin_ia32_fnstsw changes.
8138 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8139 (fnstsw): Change operand 0 to nonimmediate operand.
8141 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8143 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8144 (varpool_get_constructor): New function.
8145 (varpool_ctor_useable_for_folding_p): Break out from ...
8146 (ctor_for_folding): ... here; use varpool_get_constructor.
8147 (varpool_assemble_decl): Likewise.
8148 * lto-streamer.h (struct output_block): Turn cgraph_node
8150 (lto_input_variable_constructor): Declare.
8151 * ipa-visibility.c (function_and_variable_visibility): Use
8152 varpool_get_constructor.
8153 * cgraph.h (varpool_get_constructor): Declare.
8154 (varpool_ctor_useable_for_folding_p): New function.
8155 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
8156 parameter; return error_mark_node for non-trivial constructors.
8157 (lto_write_tree_1, DFS_write_tree): Update use of
8158 get_symbol_initial_value.
8159 (output_function): Update initialization of symbol.
8160 (output_constructor): New function.
8161 (copy_function): Rename to ..
8162 (copy_function_or_variable): ... this one; handle vars too.
8163 (lto_output): Output variable sections.
8164 * lto-streamer-in.c (input_constructor): New function.
8165 (lto_read_body): Rename from ...
8166 (lto_read_body_or_constructor): ... this one; handle vars too.
8167 (lto_input_variable_constructor): New function.
8168 * ipa-prop.c (ipa_prop_write_jump_functions,
8169 ipa_prop_write_all_agg_replacement): Update.
8170 * lto-cgraph.c (compute_ltrans_boundary): Use it.
8171 (output_cgraph_opt_summary): Set symbol to NULL.
8173 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8175 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
8176 non-polymorphic types.
8177 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
8178 * ipa-devirt.c (types_same_for_odr): Do not explode when one
8179 of types is not polymorphic.
8181 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
8183 * lra-constraints.c (remove_inheritance_pseudos): Process
8184 destination pseudo too.
8186 2014-07-11 Rong Xu <xur@google.com>
8188 * gcov-tool.c (gcov_output_files): Fix build error introduced in
8191 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8193 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
8194 * config/avr/avr-devices.c (AVR_MCU): Same.
8195 (avr_mcu_types): add text start value to end of device list.
8196 * config/avr/avr-mcus.def: Add text section start for all devices.
8197 (ata5782): Add new avr5 device.
8199 * config/avr/avr-tables.opt: Regenerate.
8200 * config/avr/avr.h: Add declaration for text section start handler.
8201 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
8203 (LINK_SPEC): Include text section start handler to linker spec.
8204 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
8205 pass -Ttext option to linker if the text section start for the device
8207 * config/avr/t-multilib: Regenerate.
8208 * doc/avr-mmcu.texi: Regenerate.
8210 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
8212 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
8213 * config/rs6000/aix52.h (LINK_SPEC): Same.
8214 * config/rs6000/aix53.h (LINK_SPEC): Same.
8215 * config/rs6000/aix61.h (LINK_SPEC): Same.
8216 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
8218 2014-07-11 Roman Gareev <gareevroman@gmail.com>
8220 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
8221 (graphite_verify): New function.
8222 (ivs_params_clear): New function.
8223 (gcc_expression_from_isl_ast_expr_id): New function.
8224 (gcc_expression_from_isl_expr_int): New function.
8225 (binary_op_to_tree): New function.
8226 (ternary_op_to_tree): New function.
8227 (unary_op_to_tree): New function.
8228 (nary_op_to_tree): New function.
8229 (gcc_expression_from_isl_expr_op): New function.
8230 (gcc_expression_from_isl_expression): New function.
8231 (graphite_create_new_loop): New function.
8232 (translate_isl_ast_for_loop): New function.
8233 (get_upper_bound): New function.
8234 (graphite_create_new_loop_guard): New function.
8235 (translate_isl_ast_node_for): New function.
8236 (translate_isl_ast): New function.
8237 (add_parameters_to_ivs_params): New function.
8238 (scop_to_isl_ast): New parameter ip.
8239 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
8241 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8243 * config/xtensa/predicates.md (call expander): Update for
8244 DECL_SECTION_NAME being string.
8246 2014-07-11 Richard Biener <rguenther@suse.de>
8249 * builtins.c (fold_builtin_memory_op): Inline memory moves that
8250 can be implemented with a single load followed by a single store.
8251 (c_strlen): Only warn when only_value is not 2.
8253 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
8255 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
8257 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
8260 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
8261 (*movhi_bytes): Likewise.
8262 (*arm_movqi_insn): Likewise.
8264 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
8267 * config/alpha/alpha.c: Include tree-pass.h, context.h
8269 (pass_data_handle_trap_shadows): New pass.
8270 (pass_handle_trap_shadows::gate): New pass gate function.
8271 (make_pass_handle_trap_shadows): New function.
8272 (rest_of_handle_trap_shadows): Ditto.
8274 (alpha_align_insns_1): Rename from alpha_align_insns.
8275 (pass_data_align_insns): New pass.
8276 (pass_align_insns::gate): New pass gate function.
8277 (make_pass_aling_insns): New function.
8278 (rest_of_align_insns): Ditto.
8279 (alpha_align_insns): Ditto.
8281 (alpha_option_override): Declare handle_trap_shadows info
8282 and align_insns_info. Register handle_trap_shadows and align_insns
8284 (alpha_reorg): Do not call alpha_trap_shadows and
8285 alpha_align_insn from here.
8287 (alpha_pad_function_end): Do not skip BARRIERs.
8289 2014-07-10 Rong Xu <xur@google.com>
8291 Add gcov-tool: an offline gcda profile processing tool support.
8292 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
8293 (gcov_is_error): Ditto.
8294 (gcov_read_string): Ditto.
8295 (gcov_read_sync): Ditto.
8296 * gcov-io.h: Move counter defines to gcov-counter.def.
8297 * gcov-dump.c (tag_counters): Use gcov-counter.def.
8298 * coverage.c: Ditto.
8299 * gcov-tool.c: Offline gcda profile processing tool.
8300 (unlink_gcda_file): Remove one gcda file.
8301 (unlink_profile_dir): Remove gcda files from the profile path.
8302 (gcov_output_files): Output gcda files to an output dir.
8303 (profile_merge): Merge two profiles in directory.
8304 (print_merge_usage_message): Print merge usage.
8305 (merge_usage): Print merge usage and exit.
8306 (do_merge): Driver for profile merge sub-command.
8307 (profile_rewrite): Rewrite profile.
8308 (print_rewrite_usage_message): Print rewrite usage.
8309 (rewrite_usage): Print rewrite usage and exit.
8310 (do_rewrite): Driver for profile rewrite sub-command.
8311 (print_usage): Print gcov-info usage and exit.
8312 (print_version): Print gcov-info version.
8313 (process_args): Process arguments.
8314 (main): Main routine for gcov-tool.
8315 * Makefile.in: Build and install gcov-tool.
8316 * gcov-counter.def: New file split from gcov-io.h.
8317 * doc/gcc.texi: Include gcov-tool.texi.
8318 * doc/gcov-tool.texi: Document for gcov-tool.
8320 2014-07-10 Richard Biener <rguenther@suse.de>
8322 PR tree-optimization/61757
8323 * tree-ssa-dom.c (loop_depth_of_name): Restore.
8324 (propagate_rhs_into_lhs): Revert part of last change.
8326 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
8328 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
8331 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
8334 * function.c (allocate_struct_function): Revert r188667 change.
8336 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
8338 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
8340 * doc/install.texi: Remove links to defunct package providers for
8343 2014-07-09 Tom de Vries <tom@codesourcery.com>
8345 * final.c (get_call_fndecl): Declare.
8346 (self_recursive_call_p): New function.
8347 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
8349 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8351 * ipa-devirt.c (record_node): Walk through aliases.
8353 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8355 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
8357 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8360 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
8362 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8364 * ipa-visibility.c (function_and_variable_visibility): Remove
8365 temporary hack disabling local aliases on AIX.
8367 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8369 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
8370 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
8372 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8374 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
8375 * rs6000/rs6000.c: Inline output of .set instruction.
8376 (declare_alias_data): New struct.
8377 (rs6000_declare_alias): New function.
8378 (rs6000_xcoff_declare_function_name): Use it.
8379 (rs6000_xcoff_declare_object_name): New function.
8380 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
8381 (ASM_OUTPUT_DEF): Turn to empty definition.
8383 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8386 * hash-table.h: use hash_table::value_type instead of
8387 Descriptor::value_type in the return types of several methods.
8389 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8391 * tree-pass.h (pass_data): Remove has_execute member.
8392 * passes.c (execute_one_pass): Don't check pass->has_execute.
8393 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
8394 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
8395 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
8396 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
8397 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
8398 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
8399 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
8400 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
8401 gimple-low.c, gimple-ssa-isolate-paths.c,
8402 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
8403 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
8404 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
8405 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
8406 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8407 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
8408 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
8409 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
8410 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
8411 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
8412 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
8413 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
8414 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8415 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8416 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8417 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
8418 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
8419 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8420 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8421 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
8422 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
8423 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
8424 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
8425 web.c: Remove initializer for pass_data::has_execute.
8427 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8429 * graphite-htab.h: Use hash_map instead of hash_table.
8430 * graphite-clast-to-gimple.c: Adjust.
8431 * passes.c: Use hash_map instead of hash_table.
8433 * sese.h: Remove now unused code.
8435 2014-07-08 Sriraman Tallam <tmsriram@google.com>
8438 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
8441 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8443 PR rtl-optimization/61673
8444 * combine.c (simplify_comparison): Test just mode's sign bit
8445 in tmode rather than the sign bit and any bits above it.
8447 2014-07-08 Roman Gareev <gareevroman@gmail.com>
8449 * graphite-isl-ast-to-gimple.c (generate_isl_context):
8450 Add __isl_give to the declaration.
8451 (generate_isl_schedule): Likewise.
8452 (scop_to_isl_ast): Likewise.
8454 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8456 * config/arm/arm.c (cortexa5_extra_costs): New table.
8457 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
8459 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8461 PR tree-optimization/61725
8462 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
8463 range, use range_includes_zerop_p instead of integer_zerop on
8464 vr0->min, only use log2 of max if min is not negative.
8466 2014-07-08 Richard Biener <rguenther@suse.de>
8468 * tree-ssa-dom.h (loop_depth_of_name): Remove.
8469 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
8470 restriction on loop depth difference.
8471 (record_equality): Likewise.
8472 (propagate_rhs_into_lhs): Likewise. Simplify condition.
8473 (loop_depth_of_name): Remove.
8474 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
8475 restriction on loop depth difference.
8476 (init_copy_prop): Likewise.
8478 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8480 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
8482 (walk_aliased_vdefs): Likewise.
8483 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
8484 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
8485 (detect_type_change_from_memory_writes): Check if entry was reached.
8487 2014-07-08 Richard Biener <rguenther@suse.de>
8489 PR tree-optimization/61681
8490 * tree-ssa-structalias.c (find_what_var_points_to): Expand
8491 NONLOCAL inside ESCAPED.
8493 2014-07-08 Richard Biener <rguenther@suse.de>
8495 PR tree-optimization/61680
8496 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8497 Handle properly all read-write dependences with group accesses.
8499 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8501 PR tree-optimization/61576
8502 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
8503 block containing reduction statement is predecessor of phi basi block.
8505 2014-07-08 Marek Polacek <polacek@redhat.com>
8508 * fold-const.c (round_up_loc): Change the parameter type.
8510 * fold-const.h (round_up_loc): Adjust declaration.
8511 * stor-layout.c (finalize_record_size): Check for too large types.
8513 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
8515 * symtab.c: Include calls.h.
8516 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
8518 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
8520 * config/rs6000/rs6000.c (output_vec_const_move): Handle
8521 little-endian code generation.
8522 * config/rs6000/spe.md (spe_evmergehi): Rename to...
8523 (vec_perm00_v2si): ... this. Handle little-endian code generation.
8524 (spe_evmergehilo): Rename to...
8525 (vec_perm01_v2si): ... this. Handle little-endian code generation.
8526 (spe_evmergelo): Rename to...
8527 (vec_perm11_v2si): ... this. Handle little-endian code generation.
8528 (spe_evmergelohi): Rename to...
8529 (vec_perm10_v2si): ... this. Handle little-endian code generation.
8530 (spe_evmergehi, spe_evmergehilo): New expanders.
8531 (spe_evmergelo, spe_evmergelohi): Likewise.
8532 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
8533 (*frob_tf_ti): Likewise.
8534 (*frob_<mode>_di_2): Likewise.
8535 (*frob_tf_di_8_2): Likewise.
8536 (*frob_di_<mode>): Likewise.
8537 (*frob_ti_tf): Likewise.
8538 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
8539 (*frob_ti_<mode>_8_2): Likewise.
8540 (*frob_ti_tf_2): Likewise.
8541 (mov_si<mode>_e500_subreg0): Rename to...
8542 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
8544 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
8545 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
8546 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
8547 the big endianness only.
8548 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
8549 (*mov_si<mode>_e500_subreg0_2): Rename to...
8550 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
8551 big big endianness only.
8552 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
8553 (*mov_si<mode>_e500_subreg4): Rename to...
8554 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
8556 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
8557 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
8558 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
8559 the big endianness only.
8560 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
8562 (*mov_si<mode>_e500_subreg4_2): Rename to...
8563 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
8565 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
8566 (*mov_sitf_e500_subreg8): Rename to...
8567 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
8569 (*mov_sitf_e500_subreg8_le): New instruction pattern.
8570 (*mov_sitf_e500_subreg8_2): Rename to...
8571 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
8573 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
8574 (*mov_sitf_e500_subreg12): Rename to...
8575 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
8577 (*mov_sitf_e500_subreg12_le): New instruction pattern.
8578 (*mov_sitf_e500_subreg12_2): Rename to...
8579 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
8581 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
8583 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
8585 * asan.c (instrument_strlen_call): Do not instrument first byte
8586 in strlen if already instrumented.
8588 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8590 * config/arm/arm.opt (mwords-little-endian): Delete.
8591 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
8592 of TARGET_LITTLE_WORDS.
8593 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
8594 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
8596 * doc/invoke.texi: Remove references to -mwords-little-endian.
8598 2014-07-07 Jakub Jelinek <jakub@redhat.com>
8600 * expmed.c (struct init_expmed_rtl): Change all fields but
8601 pow2 and cint from struct rtx_def to rtx.
8602 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
8603 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
8606 2014-07-06 Marek Polacek <polacek@redhat.com>
8609 * doc/invoke.texi: Document -Wsizeof-array-argument.
8611 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
8613 * wide-int.h (wide_int_storage): Change declaration from struct
8616 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
8618 * cgraph.c (cgraph_create_indirect_edge): Update call of
8619 get_polymorphic_call_info.
8620 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
8621 (possible_polymorphic_call_targets): Add parameter call.
8622 (decl_maybe_in_construction_p): New predicate.
8623 (get_polymorphic_call_info): Add parameter call;
8624 use decl_maybe_in_construction_p.
8625 * gimple-fold.c (fold_gimple_assign): Update use of
8626 possible_polymorphic_call_targets.
8627 (gimple_fold_call): Likewise.
8628 * ipa-prop.c: Inlcude calls.h
8629 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
8630 (param_type_may_change_p): New predicate.
8631 (detect_type_change_from_memory_writes): Break out from ...
8632 (detect_type_change): ... this one; use param_type_may_change_p.
8633 (detect_type_change_ssa): Use param_type_may_change_p.
8634 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
8636 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
8639 * config/arm/arm-protos.h (arm_legitimate_address_p,
8640 arm_is_constant_pool_ref): Add prototypes.
8641 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
8642 (arm_is_constant_pool_ref) New function.
8643 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
8644 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
8645 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
8646 operand. Remove pool_range and neg_pool_range attributes.
8647 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
8648 pool_range and neg_pool_range attributes.
8649 * config/arm/constraints.md (Uh): New constraint.
8650 (Uq): Don't allow constant pool references.
8652 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
8654 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
8655 (move_lo_quad_internal_be_<mode>): Likewise.
8656 (move_lo_quad_<mode>): Convert to define_expand.
8657 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
8658 (aarch64_simd_move_hi_quad_be_<mode>): New.
8659 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
8660 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
8661 (aarch64_combinez_be<mode>): New.
8662 (aarch64_combine<mode>): Convert to define_expand.
8663 (aarch64_combine_internal<mode>): New.
8664 (aarch64_simd_combine<mode>): Remove bogus RTL description.
8666 2014-07-04 Tom de Vries <tom@codesourcery.com>
8668 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
8669 combination of earlyclobber and read/write modifiers.
8671 2014-07-04 Tom de Vries <tom@codesourcery.com>
8673 * config/aarch64/aarch64-simd.md
8674 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
8676 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
8679 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
8681 2014-07-04 Jakub Jelinek <jakub@redhat.com>
8684 * cgraphunit.c (expand_thunk): Call free_dominance_info.
8686 PR tree-optimization/61684
8687 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
8688 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
8690 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8691 Kito Cheng <kito@0xlab.org>
8692 Monk Chiang <sh.chiang04@gmail.com>
8694 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
8695 (nds32_symbol_load_store_p): Move to ...
8696 (nds32_fp_as_gp_check_available): Move to ...
8697 * config/nds32/nds32-fp-as-gp.c: ... here.
8698 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
8701 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8702 Kito Cheng <kito@0xlab.org>
8703 Monk Chiang <sh.chiang04@gmail.com>
8705 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
8706 (nds32_expand_store_multiple): Move to ...
8707 (nds32_expand_movmemqi): Move to ...
8708 * config/nds32/nds32-memory-manipulation.c: ... here.
8710 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8711 Kito Cheng <kito@0xlab.org>
8712 Monk Chiang <sh.chiang04@gmail.com>
8714 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
8715 (nds32_output_casesi_pc_relative): Move to ...
8716 (nds32_output_casesi): Move to ...
8717 (nds32_mem_format): Move to ...
8718 (nds32_output_16bit_store): Move to ...
8719 (nds32_output_16bit_load): Move to ...
8720 (nds32_output_32bit_store): Move to ...
8721 (nds32_output_32bit_load): Move to ...
8722 (nds32_output_32bit_load_s): Move to ...
8723 (nds32_output_stack_push): Move to ...
8724 (nds32_output_stack_pop): Move to ...
8725 * config/nds32/nds32-md-auxiliary.c: ... here.
8727 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8728 Ling-Hua Tseng <uranus@tinlans.org>
8730 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
8731 the purpose of this file.
8733 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8734 Kito Cheng <kito@0xlab.org>
8735 Monk Chiang <sh.chiang04@gmail.com>
8737 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
8738 (nds32_address_cost): Move implementation to ...
8739 * config/nds32/nds32-cost.c: ... here.
8740 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
8741 (nds32_address_cost_impl): Declare.
8743 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8744 Kito Cheng <kito@0xlab.org>
8745 Monk Chiang <sh.chiang04@gmail.com>
8747 * config/nds32/nds32.c
8748 (nds32_consecutive_registers_load_store_p): Move to ...
8749 (nds32_valid_multiple_load_store): Move to ...
8750 (nds32_valid_stack_push_pop): Move to ...
8751 (nds32_can_use_bclr_p): Move to ...
8752 (nds32_can_use_bset_p): Move to ...
8753 (nds32_can_use_btgl_p): Move to ...
8754 (nds32_can_use_bitci_p): Move to ...
8755 * config/nds32/nds32-predicates.c: ... here.
8757 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8758 Kito Cheng <kito@0xlab.org>
8759 Monk Chiang <sh.chiang04@gmail.com>
8761 * config/nds32/nds32.c
8762 (nds32_expand_builtin_null_ftype_reg): Move to ...
8763 (nds32_expand_builtin_reg_ftype_imm): Move to ...
8764 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
8765 (nds32_init_builtins): Move implementation to ...
8766 (nds32_expand_builtin): Move implementation to ...
8767 * config/nds32/nds32-intrinsic.c: ... here.
8768 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
8769 (nds32_expand_builtin_impl): Declare.
8771 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8772 Kito Cheng <kito@0xlab.org>
8773 Monk Chiang <sh.chiang04@gmail.com>
8775 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
8776 (nds32_emit_section_tail_template): Move to ...
8777 (nds32_emit_isr_jmptbl_section): Move to ...
8778 (nds32_emit_isr_vector_section): Move to ...
8779 (nds32_emit_isr_reset_conten): Move to ...
8780 (nds32_check_isr_attrs_conflict): Move to ...
8781 (nds32_construct_isr_vectors_information): Move to ...
8782 (nds32_asm_file_start): Move implementation to ...
8783 (nds32_asm_file_end): Move implementation to ...
8784 * config/nds32/nds32-isr.c: ... here.
8785 * config/nds32/nds32-protos.h
8786 (nds32_check_isr_attrs_conflict): Declare.
8787 (nds32_construct_isr_vectors_information): Declare.
8788 (nds32_asm_file_start_for_isr): Declare.
8789 (nds32_asm_file_end_for_isr): Declare.
8791 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8792 Kito Cheng <kito@0xlab.org>
8793 Monk Chiang <sh.chiang04@gmail.com>
8795 * config.gcc (nds32*): Add new modules to extra_objs.
8796 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
8797 (nds32be-*-*): Likewise.
8798 * config/nds32/nds32-cost.c: New file.
8799 * config/nds32/nds32-fp-as-gp.c: New file.
8800 * config/nds32/nds32-intrinsic.c: New file.
8801 * config/nds32/nds32-isr.c: New file.
8802 * config/nds32/nds32-md-auxiliary.c: New file.
8803 * config/nds32/nds32-memory-manipulation.c: New file.
8804 * config/nds32/nds32-pipelines-auxiliary.c: New file.
8805 * config/nds32/nds32-predicates.c: New file.
8806 * config/nds32/t-nds32: New file.
8808 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8810 PR tree-optimization/61682
8811 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
8812 using cases and when one of the operands is equal to 1.
8814 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
8816 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
8817 ashr<mode>3): Correct mode of operands[2].
8818 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
8819 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
8820 Correct mode of operands[2]. Fix split condition.
8822 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
8824 * arm.md (arch): Add armv6_or_vfpv3.
8825 (arch_enabled): Add test for the above.
8826 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
8828 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
8830 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8832 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
8833 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
8834 HWI 1 and negate the unsigned value.
8835 * expmed.c (expand_sdiv_pow2): For modes wider than word always
8836 use AND instead of shift.
8837 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
8839 2014-07-03 Marek Polacek <polacek@redhat.com>
8841 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
8842 (-fsanitize=float-divide-by-zero): Move to the table with
8843 -fsanitize=undefined suboptions.
8844 (-fsanitize=float-cast-overflow): Likewise.
8846 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
8848 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
8849 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
8852 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8854 * loop-invariant.c (struct invariant): Add a new member: eqno;
8855 (find_identical_invariants): Update eqno;
8856 (create_new_invariant): Init eqno;
8857 (get_inv_cost): Compute comp_cost with eqno;
8859 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
8861 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
8862 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
8863 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
8864 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
8865 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
8867 2014-07-02 Christian Bruel <christian.bruel@st.com>
8871 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
8872 (make_preds_opaque): Delete.
8873 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
8874 (commit_mode_sets): New function.
8875 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
8876 Process all modes at once.
8877 * basic-block.h (pre_edge_lcm_avs): Declare.
8878 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
8879 Call clear_aux_for_edges. Fix comments.
8880 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
8881 (pre_edge_rev_lcm): Idem.
8882 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
8884 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
8885 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
8887 * config/i386/i386.c (x96_emit_mode_set): Idem.
8888 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
8889 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
8890 (fpscr_toggle) Disallow from delay slot.
8891 * target.def (emit_mode_set): Add prev_mode parameter.
8892 * doc/tm.texi: Regenerate.
8894 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8896 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
8899 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
8901 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
8902 vtable_pointer_value_to_vtable): Constify.
8903 (contains_polymorphic_type_p): Declare.
8904 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
8905 vtable_pointer_value_to_vtable): Constify.
8906 (contains_polymorphic_type_p): New predicate.
8907 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
8909 (ipa_set_ancestor_jf): Likewise.
8910 (detect_type_change): Return false in easy cases.
8911 (compute_complex_assign_jump_func): Require type to contain
8913 (compute_known_type_jump_func): Likewise.
8915 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
8917 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
8919 (type_in_anonymous_namespace_p): Constify argument.
8920 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
8921 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
8922 (main_odr_variant): New function.
8923 (hash_type_name): Make static; update assert; do not ICE on
8925 (types_same_for_odr): Bring here from tree.c; simplify and remove
8926 old structural comparing code that doesn't work for templates.
8927 (odr_hasher::equal): Update assert.
8928 (add_type_duplicate): Return true when bases should be computed;
8929 replace incomplete loader by complete; do not output duplicated
8930 warnings; do not ICE on non-records; set odr_violated flag.
8931 (get_odr_type): Be ready to replace incomplete type by complete
8932 one; work on ODR variants instead of main variants; reorder item
8933 in array so bases have still smaller indexes.
8934 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
8935 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
8937 2014-07-01 Cary Coutant <ccoutant@google.com>
8939 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
8941 (resolve_addr_in_expr): When replacing the rtx in a location list
8942 entry, get a new address table entry.
8943 (dwarf2out_finish): Call index_location_lists even if there are no
8944 addr_index_table entries yet.
8946 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
8948 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
8949 change for not being obvious.
8951 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
8953 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
8956 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8958 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
8959 (vcagt_f64): Likewise.
8960 (vcale_f64): Likewise.
8961 (vcaled_f64): Likewise.
8962 (vcales_f32): Likewise.
8963 (vcalt_f64): Likewise.
8964 (vcaltd_f64): Likewise.
8965 (vcalts_f32): Likewise.
8967 2014-07-01 Marek Polacek <polacek@redhat.com>
8969 * doc/invoke.texi: Document -Wint-conversion.
8971 2014-07-01 Marek Polacek <polacek@redhat.com>
8974 * doc/invoke.texi: Document -Wincompatible-pointer-types.
8976 2014-07-01 Martin Liska <mliska@suse.cz>
8978 IPA REF alias refactoring
8979 * cgraph.h (iterate_direct_aliases): New function.
8980 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
8981 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
8982 FOR_EACH_ALIAS added.
8983 (cgraph_for_node_and_aliases): Likewise.
8984 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
8985 * ipa-inline.c (reset_edge_caches): Likewise.
8986 (update_caller_keys): Likewise.
8987 * trans-mem.c (ipa_tm_execute): Likewise.
8988 *varpool.c (varpool_analyze_node): Likewise.
8989 (varpool_for_node_and_aliases): Likewise.
8990 * ipa-ref.h (first_alias): New function.
8991 (last_alias): Likewise.
8992 (has_aliases_p): Likewise.
8993 * ipa-ref.c (ipa_ref::remove_reference): Removal function
8994 is sensitive to IPA_REF_ALIASes.
8995 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
8996 are put at the beginning of the list.
8997 (symtab_node::iterate_direct_aliases): New function.
8999 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9002 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9004 (write_ts_type_common_tree_pointers): Do not stream fields not set
9005 for incomplete types; do not stream duplicated fields for variants;
9006 sanity check that variant and type match.
9007 (write_ts_type_non_common_tree_pointers): Likewise.
9008 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9009 TYPE_SIZE whether type is complete.
9010 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9011 write_ts_type_common_tree_pointers
9012 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9014 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9016 * var-tracking.c (add_stores): Return instead of asserting if old
9017 and new values for conditional store are the same.
9019 2014-06-30 Richard Henderson <rth@redhat.com>
9023 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9024 the cfg if there were any changes.
9025 * passes.def: Revert move of peephole2 after reorder_blocks;
9026 move duplicate_computed_gotos before peephole2.
9028 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9030 * except.c (emit_note_eh_region_end): New helper function.
9031 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9032 emit EH_REGION_END note.
9033 * jump.c (cleanup_barriers): Do not split a call and its
9034 corresponding CALL_ARG_LOCATION note.
9036 2014-06-30 Jeff Law <law@redhat.com>
9038 PR tree-optimization/61607
9039 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9040 deeper into the SSA_NAME_VALUE chain.
9042 2014-06-30 Marek Polacek <polacek@redhat.com>
9044 * convert.c (convert_to_integer): Don't instrument conversions if the
9045 function has no_sanitize_undefined attribute.
9046 * ubsan.c: Don't run the ubsan pass if the function has
9047 no_sanitize_undefined attribute.
9049 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9051 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9052 -fsanitize=undefined suboptions.
9054 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9056 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9057 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9058 against bigendian and adjust indices.
9060 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9062 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9064 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9067 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9068 Add alternative; make early clobber. Adjust both split patterns
9069 to use operand 0 as the working register.
9071 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9073 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9074 as ira_object_id_map might be NULL, or 1.
9076 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9078 * loop-invariant.c (get_inv_cost): Handle register class.
9079 (gain_for_invariant): Check the register pressure of the inv
9080 and its overlapped register class, other than all.
9082 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9084 * doc/invoke.texi (Optimize Options): Fix descriptions of
9085 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9087 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9089 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9092 2014-06-29 Tobias Grosser <tobias@grosser.es>
9095 * graphite-isl-ast-to-gimple.c: Add missing guards.
9097 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9099 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9100 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9101 * flag-types.h: Add new enum fgraphite_generator.
9102 * graphite-isl-ast-to-gimple.c: New.
9103 * graphite-isl-ast-to-gimple.h: New.
9104 * graphite.c (graphite_transform_loops): Add choice of Graphite
9105 code generator, which depends on flag_graphite_code_gen.
9107 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9109 * graphite-dependences.c (subtract_commutative_associative_deps):
9110 Add NULL checking of the following variables: must_raw_no_source,
9111 may_raw_no_source, must_war_no_source, may_war_no_source,
9112 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9113 must_war, may_war, must_waw, may_waw.
9115 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9117 * graphite-clast-to-gimple.c: gloog is renamed to
9118 graphite_regenerate_ast_cloog. gloog_error is renamed to
9119 graphite_regenerate_error.
9120 * graphite-clast-to-gimple.h: The definition of the struct
9121 bb_pbb_def is moved to graphite-htab.h.
9122 Add inclusion of the hash-table.h.
9123 * graphite-htab.h: The declaration of the function gloog is moved
9124 to graphite-clast-to-gimple.h and renamed to
9125 graphite_regenerate_ast_cloog.
9126 * graphite.c (graphite_transform_loops): gloog is renamed
9127 to graphite_regenerate_ast_cloog.
9129 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9131 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9133 (write_ts_type_common_tree_pointers): Do not stream fields not set
9134 for incomplete types; do not stream duplicated fields for variants;
9135 sanity check that variant and type match.
9136 (write_ts_type_non_common_tree_pointers): Likewise.
9137 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9138 TYPE_SIZE whether type is complete.
9139 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9140 write_ts_type_common_tree_pointers
9141 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9143 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9145 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9147 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9149 * tree-inline.c (remap_type_1): Do not duplicate fields
9150 that are shared in between type and its main variant.
9152 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9154 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
9156 (ipa_set_ancestor_jf) Likewise.
9157 (check_stmt_for_type_change): Check that we work on main variant.
9158 (detect_type_change): Look into main variant.
9159 (compute_known_type_jump_func): Check that main variant has BINFO.
9161 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9163 * ipa-devirt.c (set_type_binfo): New function.
9164 (add_type_duplicate): Use it.
9165 (get_odr_type): Sanity check that binfos points to main variants.
9166 (get_class_context): Be sure the context's outer_type is main variant.
9167 (contains_type_p): Walk main variant.
9168 (get_polymorphic_call_info_for_decl): Set outer_type to be
9170 (get_polymorphic_call_info): Likewise.
9171 (possible_polymorphic_call_targets): Sanity check that we operate
9174 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9176 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9178 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9180 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
9181 accidental change due to wide-int branch merge.
9183 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9185 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
9186 compressed debug support.
9187 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
9188 * configure: Regenerate.
9189 * config.in: Regenerate.
9190 * common.opt (compressed_debug_sections): New enum.
9191 (gz, gz=): New options.
9192 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
9193 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
9194 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
9195 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
9196 LINK_COMPRESS_DEBUG_SPEC.
9197 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
9198 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
9199 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
9200 (Debugging Options): Document -gz[=type].
9202 2014-06-27 Martin Jambor <mjambor@suse.cz>
9205 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
9206 args_to_skip, use those from node instead. Copy args_to_skip and
9207 combined_args_to_skip from node to the new thunk.
9208 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
9209 (cgraph_create_virtual_clone): Moved computation of
9210 combined_args_to_skip...
9211 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
9213 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
9215 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
9216 redundant diagnostic machinary.
9218 2014-06-27 Richard Biener <rguenther@suse.de>
9220 * tree-ssa-math-opts.c (bswap_replace): Fix
9221 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
9223 2014-06-27 Martin Liska <mliska@suse.cz>
9225 * gimple.h (gimple_location_safe): New function introduced.
9226 * cgraphunit.c (walk_polymorphic_call_targets): Usage
9227 of gimple_location_safe replaces gimple_location.
9228 (gimple_fold_call): Likewise.
9229 * ipa-devirt.c (ipa_devirt): Likewise.
9230 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9231 * ipa.c (walk_polymorphic_call_targets): Likewise.
9232 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9234 2014-06-27 Jakub Jelinek <jakub@redhat.com>
9236 PR tree-optimization/57233
9237 PR tree-optimization/61299
9238 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
9240 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
9241 would be lowered to scalar shifts, check if corresponding
9242 shifts and vector BIT_IOR_EXPR are supported and don't lower
9243 or lower just to narrower vector type in that case.
9244 * expmed.c (expand_shift_1): Fix up handling of vector
9247 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
9250 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
9252 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
9254 * doc/invoke.texi (-fsemantic-interposition): Document.
9255 * common.opt (fsemantic-interposition): New flag.
9256 * varasm.c (decl_replaceable_p): Use it.
9258 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9261 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
9262 extraction other than index 3.
9264 2014-06-26 Teresa Johnson <tejohnson@google.com>
9266 * doc/invoke.texi: Fix typo.
9267 * dumpfile.c: Add support for documented -fdump-* options
9268 optimized/missed/note/optall.
9270 2014-06-26 Martin Jambor <mjambor@suse.cz>
9272 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
9273 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
9274 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
9275 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
9276 * opts.c (default_options_optimization): Set
9277 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
9278 * doc/invoke.texi (allow-load-data-races)
9279 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
9280 (allow-store-data-races): Document the new default.
9282 2014-06-26 Martin Jambor <mjambor@suse.cz>
9284 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
9285 renamed to ipa_impossible_devirt_target. Fix typo.
9286 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
9287 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
9288 ipa_impossible_devirt_target.
9290 2014-06-26 Richard Biener <rguenther@suse.de>
9292 PR tree-optimization/61607
9293 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
9294 explaining why we restrict copies on loop depth.
9295 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9297 (record_equivalences_from_phis): Instead add it here.
9299 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
9301 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
9302 (LTO_WRAPPER_OBJS): New variable.
9303 (lto-wrapper$(exeext)): Use it.
9304 * collect2.c: Include "collect-utils.h".
9305 (verbose, debug): Remove variables.
9306 (at_file_supplied): No longer static.
9307 (tool_name): New variable.
9308 (do_wait, fork_execute, maybe_unlink): Don't declare.
9309 (tool_cleanup): No longer static.
9310 (notice): Remove function.
9311 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
9313 (collect_wait, do_wait, collect_execute): Remove functions.
9314 (maybe_unlink): No longer static.
9315 * collect2.h (verbose, debug): Don't declare.
9316 (at_file_supplied): Declare.
9317 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
9319 (collect_execute): Replace with implementation from collect2, plus a
9320 new arg use_atfile. All callers changed.
9321 (collect_wait): Replace with implementation from collect2.
9322 (maybe_unlink_file): Remove function.
9323 (fork_execute): Replace with implementation from collect2, plus a
9324 new arg use_atfile. All callers changed.
9325 (do_wait): Add call to utils_cleanup to the error path.
9326 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
9327 (tool_cleanup): Adjust declarations.
9328 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
9329 * tlink.c: Include "collect-utils.h".
9330 (tlink_execute): New arg use_atfile. All callers changed.
9331 (tlink_init, tlink_execute): Remove declarations.
9333 * collect-utils.c (save_temps): New variable.
9334 (do_wait): Use it instead of debug. Use fatal_error.
9335 * collect-utils.h (save_temps): Declare.
9336 * collect2.c (verbose): Rename from vflag. All uses changed.
9337 (tool_cleanup): New function, copied from collect_atexit.
9338 (collect_atexit, handler): Just call it.
9339 * collect2.h (verbose): Declaration renamed from vflag.
9340 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
9343 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
9344 (lto-wrapper$(exeext)): Link with collect-utils.o.
9345 * collect-utils.c: New file.
9346 * collect-utils.h: New file.
9347 * lto-wrapper.c: Include "collect-utils.h".
9348 (args_name): Delete variable.
9349 (tool_name): New variable.
9350 (tool_cleanup): New function.
9351 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
9352 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
9353 (fork_execute): Remove functions.
9355 2014-06-26 Nick Clifton <nickc@redhat.com>
9357 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
9359 * doc/extend.texi (Function Attributes): Fix typo in description
9360 of RX vector attribute.
9362 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9364 * config.gcc (supported_defaults): Error when passing either
9365 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
9367 2014-06-26 Richard Biener <rguenther@suse.de>
9369 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9370 propagating volatile pointers.
9372 2014-06-26 Richard Biener <rguenther@suse.de>
9374 PR tree-optimization/61607
9375 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
9376 loop if we redirected its latch edge.
9377 (thread_block_1): Do not cancel loops prematurely.
9379 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
9381 * toplev.c (backend_init_target): Move init_emit_regs and
9383 (backend_init) ... here; skip ira_init_once and backend_init_target.
9384 (target_reinit) ... and here; clear
9385 this_target_rtl->lang_dependent_initialized.
9386 (lang_dependent_init_target): Clear
9387 this_target_rtl->lang_dependent_initialized;
9388 break out rtl initialization to ...
9389 (initialize_rtl): ... here; call also backend_init_target
9391 * toplev.h (initialize_rtl): New function.
9392 * function.c: Include toplev.h
9393 (init_function_start): Call initialize_rtl.
9394 * rtl.h (target_rtl): Add target_specific_initialized,
9395 lang_dependent_initialized.
9397 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
9398 Jakub Jelinek <jakub@redhat.com>
9400 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
9402 2014-06-25 Tom de Vries <tom@codesourcery.com>
9404 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
9406 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
9408 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
9409 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
9410 Issue a strict overflow warning if appropriate.
9412 2014-06-25 Martin Liska <mliska@suse.cz>
9415 * Makefile.in: Removed header file (ipa-ref-inline.h).
9416 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
9418 (cgraph_speculative_call_info): Likewise.
9419 (cgraph_for_node_thunks_and_aliases): Likewise.
9420 (cgraph_for_node_and_aliases): Likewise.
9421 (verify_cgraph_node): Likewise.
9422 * cgraph.h: Batch of IPA REF functions become member functions of
9423 symtab_node: add_reference, maybe_add_reference, clone_references,
9424 clone_referring, clone_reference, find_reference,
9425 remove_stmt_references, remove_all_references,
9426 remove_all_referring, dump_references, dump_referring,
9427 has_alias_p, iterate_reference, iterate_referring.
9428 * cgraphbuild.c (record_reference): New IPA REF function used.
9429 (record_type_list): Likewise.
9430 (record_eh_tables): Likewise.
9431 (mark_address): Likewise.
9432 (mark_load): Likewise.
9433 (mark_store): Likewise.
9434 (pass_build_cgraph_edges): Likewise.
9435 (rebuild_cgraph_edge): Likewise.
9436 (cgraph_rebuild_references): Likewise.
9437 (pass_remove_cgraph_callee_edges): Likewise.
9438 * cgraphclones.c (cgraph_clone_node): Likewise.
9439 (cgraph_create_virtual_clone): Likewise.
9440 (cgraph_materialize_clone): Likewise.
9441 (cgraph_materialize_all_clones): Likewise.
9442 * cgraphunit.c (cgraph_reset_node): Likewise.
9443 (cgraph_reset_node): Likewise.
9444 (analyze_function): Likewise.
9445 (assemble_thunks_and_aliases): Likewise.
9446 (expand_function): Likewise.
9447 * ipa-comdats.c (propagate_comdat_group): Likewise.
9448 (enqueue_references): Likewise.
9449 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
9450 (create_specialized_node): Likewise.
9451 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
9452 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
9453 * ipa-inline.c (reset_edge_caches): Likewise.
9454 (update_caller_keys): Likewise.
9455 (execute): Likewise.
9456 * ipa-prop.c (remove_described_reference): Likewise.
9457 (propagate_controlled_uses): Likewise.
9458 (ipa_edge_duplication_hook): Likewise.
9459 (ipa_modify_call_arguments): Likewise.
9460 * ipa-pure-const.c (propagate_pure_const): Likewise.
9461 * ipa-ref-inline.h: Header file removed, functions moved
9462 to symtab_node class.
9463 * ipa-ref.c (remove_reference): New class member function.
9464 (cannot_lead_to_return): New class member function.
9465 (referring_ref_list): Likewise.
9466 (referred_ref_list): Likewise.
9467 Rest of functions moved to symtab_node class.
9468 * ipa-ref.h: New member functions remove_reference,
9469 cannot_lead_to_return, referring_ref_list, referred_ref_list added
9471 ipa_ref_list class has new member functions: first_reference,
9472 first_referring, clear, nreferences.
9473 * ipa-reference.c (analyze_function): New IPA REF function used.
9474 (write_node_summary_p): Likewise.
9475 (ipa_reference_write_optimization_summary): Likewise.
9476 * ipa-split.c (split_function): Likewise.
9477 * ipa-utils.c (ipa_reverse_postorder): Likewise.
9478 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
9479 (function_and_variable_visibility): Likewise.
9480 * ipa.c (has_addr_references_p): Likewise.
9481 (process_references): Argument type changed.
9482 (symtab_remove_unreachable_nodes): New IPA REF function used.
9483 (process_references): Likewise.
9484 (set_writeonly_bit): Likewise.
9485 * lto-cgraph.c: Implementation of new symtab_node member functions
9486 that uses new IPA REF functions.
9487 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
9489 * lto-streamer-out.c (output_symbol_p): Likewise.
9490 * lto-streamer.h (referenced_from_this_partition_p): Argument type
9492 * symtab.c: Implementation of new IPA REF API.
9493 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
9494 (ipa_tm_create_version): Likewise.
9495 (ipa_tm_execute): Likewise.
9496 * tree-emutls.c (gen_emutls_addr): Likewise.
9497 * tree-inline.c (copy_bb): Likewise.
9498 (delete_unreachable_blocks_update_callgraph): Likewise.
9499 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
9500 (varpool_for_node_and_aliases): Likewise.
9502 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9504 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
9506 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9509 * fold-const.c (fold_checksum_tree): Use a hash_table of const
9510 tree_node * instead of tree_node *.
9512 (print_fold_checksum): Likewise.
9513 (fold_check_failed): Likewise.
9514 (debug_fold_checksum): Likewise.
9515 (fold_build1_stat_loc): Likewise.
9516 (fold_build2_stat_loc): Likewise.
9517 (fold_build3_stat_loc): Likewise.
9518 (fold_build_call_array_loc): Likewise.
9520 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
9522 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
9523 implementation with call to...
9524 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
9526 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
9529 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
9531 PR tree-optimization/57742
9532 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
9533 after replacing the statement.
9535 2014-06-25 Nick Clifton <nickc@redhat.com>
9537 * config/v850/v850.c (GHS_default_section_names): Change to const
9539 (GHS_current_section_names): Likewise.
9540 (v850_insert_attributes): Do not build strings, just assign the
9541 names directly. Change the type of 'chosen_section' to const
9543 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
9544 directly to the array entry.
9545 * config/v850/v850.h (GHS_default_section_names): Change to const
9547 (GHS_current_section_names): Likewise.
9549 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9551 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
9552 (LANG_HOOKS_DECLS): Add it.
9553 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
9555 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
9556 * langhooks.h (struct lang_hooks_for_decls): Add
9557 omp_clause_linear_ctor hook.
9558 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
9559 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
9560 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
9561 combined simd loop use omp_clause_linear_ctor hook.
9563 2014-06-24 Cong Hou <congh@google.com>
9565 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
9566 pattern recognition.
9567 (type_conversion_p): PROMOTION is true if it's a type promotion
9568 conversion, and false otherwise. Return true if the given expression
9569 is a type conversion one.
9570 * tree-vectorizer.h: Adjust the number of patterns.
9571 * tree.def: Add SAD_EXPR.
9572 * optabs.def: Add sad_optab.
9573 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
9574 * expr.c (expand_expr_real_2): Likewise.
9575 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
9576 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9577 * optabs.c (optab_for_tree_code): Likewise.
9578 * tree-cfg.c (estimate_operator_cost): Likewise.
9579 * tree-ssa-operands.c (get_expr_operands): Likewise.
9580 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
9581 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
9582 * doc/generic.texi: Add document for SAD_EXPR.
9583 * doc/md.texi: Add document for ssad and usad.
9585 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9587 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
9588 qualification in cast.
9590 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
9592 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
9593 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
9594 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
9595 (tree_function_decl): ... here.
9596 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
9597 streaming of vindex to ...
9598 (write_ts_function_decl_tree_pointers): ... here.
9599 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
9600 Do not stream DECL_VINDEX.
9601 (lto_input_ts_function_decl_tree_pointers): Stream it here.
9603 2014-06-24 Catherine Moore <clm@codesourcery.com>
9604 Sandra Loosemore <sandra@codesourcery.com>
9606 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
9607 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
9608 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
9610 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9612 * doc/invoke.texi (Warning Options): Remove duplicated
9613 -Wmaybe-uninitialized.
9615 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9617 PR tree-optimization/57742
9618 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
9619 (handle_builtin_malloc, handle_builtin_memset): New functions.
9620 (strlen_optimize_stmt): Call them.
9621 * passes.def: Move strlen after loop+dom but before vrp.
9623 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9626 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
9627 model family 6 CPU with has_longmode never use a CPU without
9630 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
9633 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
9636 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9638 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
9639 * dominance.c (iterate_fix_dominators): Use hash_map instead of
9641 * hash-map.h: New file.
9642 * ipa-comdats.c: Use hash_map instead of pointer_map.
9644 * lto-section-out.c: Adjust.
9645 * lto-streamer.h: Replace pointer_map with hash_map.
9646 * symtab.c (verify_symtab): Likewise.
9647 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
9648 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
9649 * tree-streamer.h: Likewise.
9650 * tree-streamer.c: Adjust.
9651 * pointer-set.h: Remove pointer_map.
9653 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9655 * hash-table.h: Add a template arg to choose between storing values
9656 and storing pointers to values, and then provide partial
9657 specializations for both.
9658 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
9659 should store, not the type values should point to.
9660 * tree-into-ssa.c (var_info_hasher): Likewise.
9661 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9662 * tree-complex.c: Adjust.
9663 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
9664 table instead of int_tree_map *.
9665 * tree-parloops.c: Adjust.
9666 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
9667 type is being stored.
9668 * tree-vectorizer.c: Adjust.
9670 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9672 * hash-table.h: Remove a layer of indirection from hash_table so that
9673 it contains the hash table's data instead of a pointer to the data.
9674 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
9675 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
9676 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
9677 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
9678 fold-const.c, gcse.c, ggc-common.c,
9679 gimple-ssa-strength-reduction.c, gimplify.c,
9680 graphite-clast-to-gimple.c, graphite-dependences.c,
9681 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
9682 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9683 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
9684 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
9685 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
9686 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
9687 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
9688 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
9689 tree-ssa-live.c, tree-ssa-loop-im.c,
9690 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
9691 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
9692 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9693 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
9694 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
9695 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
9696 vtable-verify.c, vtable-verify.h: Adjust.
9698 2014-06-24 Richard Biener <rguenther@suse.de>
9700 PR tree-optimization/61572
9701 * tree-ssa-sink.c (statement_sink_location): Do not sink
9702 loads from hard registers.
9704 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9706 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
9707 not mentioned in clauses use private clause if the iterator is
9708 declared in #pragma omp for simd, and when adding lastprivate
9709 instead, add it to the outer #pragma omp for too. Diagnose
9710 if the variable is private in outer context. For simd collapse > 1
9711 loops, replace all iterators with temporaries.
9712 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
9713 same even in collapse > 1 loops.
9715 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
9716 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
9718 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
9719 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
9721 (gimplify_adjust_omp_clauses): Likewise.
9722 * omp-low.c (lower_rec_simd_input_clauses,
9723 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
9724 safelen the same as safelen(1).
9725 * tree-nested.c (convert_nonlocal_omp_clauses,
9726 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
9727 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
9728 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
9729 Fixup handling of GIMPLE_OMP_TARGET.
9730 (convert_tramp_reference_stmt, convert_gimple_call): Handle
9733 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
9735 PR tree-optimization/61554
9736 * tree-ssa-propagate.c: Include "bitmap.h".
9737 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
9738 properly update constructor/destructor.
9739 (substitute_and_fold_dom_walker::before_dom_children):
9740 Remove call to gimple_purge_dead_eh_edges, add bb->index to
9741 need_eh_cleaup instead.
9742 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
9745 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
9747 * varpool.c (dump_varpool_node): Dump used_by_single_function.
9748 * tree-pass.h (make_pass_ipa_single_use): New pass.
9749 * cgraph.h (used_by_single_function): New flag.
9750 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
9752 * passes.def (pass_ipa_single_use): Scedule.
9753 * ipa.c (BOTTOM): New macro.
9754 (meet): New function
9755 (propagate_single_user): New function.
9756 (ipa_single_use): New function.
9757 (pass_data_ipa_single_use): New pass.
9758 (pass_ipa_single_use): New pass.
9759 (pass_ipa_single_use::gate): New gate.
9760 (make_pass_ipa_single_use): New function.
9762 2014-06-23 Kai Tietz <ktietz@redhat.com>
9765 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
9766 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
9768 2014-06-23 Richard Biener <rguenther@suse.de>
9770 * tree-ssa-loop.c (gate_loop): New function.
9771 (pass_tree_loop::gate): Call it.
9772 (pass_data_tree_no_loop, pass_tree_no_loop,
9773 make_pass_tree_no_loop): New.
9774 * tree-vectorizer.c: Include tree-scalar-evolution.c
9775 (pass_slp_vectorize::execute): Initialize loops and SCEV if
9777 (pass_slp_vectorize::clone): New method.
9778 * timevar.def (TV_TREE_NOLOOP): New.
9779 * tree-pass.h (make_pass_tree_no_loop): Declare.
9780 * passes.def (pass_tree_no_loop): New pass group with
9783 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
9786 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
9787 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
9789 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
9791 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
9794 2014-06-23 Alan Modra <amodra@gmail.com>
9797 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
9798 to zero on debug statements.
9800 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
9803 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
9804 Ignore third operand if present by marking qualifier_internal.
9806 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
9808 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
9810 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
9811 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
9812 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
9813 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
9814 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
9815 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
9816 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
9817 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
9818 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
9819 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
9820 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
9821 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
9822 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
9823 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
9824 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
9825 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
9826 logic in GCC vector extensions
9828 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
9829 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
9830 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
9831 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
9832 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
9833 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
9834 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
9835 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
9836 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
9837 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
9839 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
9841 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
9844 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
9845 (vget_low_s64): Use __GET_LOW macro.
9846 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
9847 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
9848 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
9849 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
9850 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
9852 (vcombine_s64): Use GCC vector extensions; remove cast.
9853 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
9854 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
9855 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
9856 Fix type signature; remove cast.
9858 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
9861 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
9863 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
9866 (BUILTIN_VD_RE): Remove.
9867 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
9868 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
9869 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
9871 (vreinterpretv1df*, vreinterpret*v1df): New.
9872 (vreinterpretdf*, vreinterpret*df): Remove.
9873 * config/aarch64/aarch64-simd.md (aarch64_create,
9874 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
9875 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
9877 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
9878 (vcreate_f64): Remove cast, use v1df builtin.
9879 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
9880 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
9881 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
9882 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
9883 vmov_n_f64, vst1_f64): Use gcc vector extensions.
9884 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
9885 add range check using __builtin_aarch64_im_lane_boundsi.
9886 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
9887 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
9888 type signature, use gcc vector extensions.
9889 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
9890 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
9891 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
9892 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
9893 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
9894 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
9895 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
9896 vreinterpret_u64_f64): Use v1df builtin not df.
9898 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
9900 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
9903 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
9905 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
9908 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9910 * loop-invariant.c (pre_check_invariant_p): New function.
9911 (find_invariant_insn): Call pre_check_invariant_p.
9913 2014-06-22 Richard Henderson <rth@redhat.com>
9916 * compare-elim.c (struct comparison): Add eh_note.
9917 (find_comparison_dom_walker::before_dom_children): Don't eliminate
9918 a redundant comparison in a different EH region. Purge EH edges if
9921 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9923 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
9924 (var_shift): Use it.
9925 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
9926 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9927 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9928 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9929 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9930 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
9931 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
9932 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
9933 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
9934 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
9935 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
9936 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
9937 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
9938 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
9939 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
9940 *rotldi3_internal15be): Use the new attribute. Merge register and
9941 integer alternatives.
9943 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9945 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
9946 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
9947 split, *ashrdi3_internal3 and split): Delete, merge into...
9948 (ashr<mode>3): New expander.
9949 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
9950 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
9952 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9954 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
9955 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
9956 *rotldi3_internal3 and split): Delete, merge into...
9957 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
9958 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
9959 Use "rotlw" extended mnemonic.
9961 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9963 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
9964 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
9965 and split, *ashldi3_internal3 and split): Delete, merge into...
9966 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
9967 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
9969 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9971 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
9972 (lshrsi3, two anonymous define_insns and define_splits,
9973 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
9974 *lshrdi3_internal3 and split): Delete, merge into...
9975 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
9976 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
9978 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9980 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
9981 Remove "O" alternative.
9983 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
9985 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
9986 (mips_move_from_gpr_cost): Likewise.
9987 (mips_register_move_cost): Update accordingly.
9988 (mips_secondary_reload_class): Remove name of in_p.
9990 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
9993 * config/i386/i386.md (x86_64_shrd, x86_shrd,
9994 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
9996 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9998 * config/nios2/nios2.c: Include "builtins.h".
10000 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10002 * cgraph.h (tls_model_names): New variable.
10003 * print-tree.c (print_node): Simplify.
10004 * varpool.c (tls_model_names): New variable.
10005 (dump_varpool_node): Output tls model.
10007 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10009 * ipa-visibility.c (function_and_variable_visibility): Disable
10010 temporarily local aliases for some targets.
10012 2014-06-20 Marek Polacek <polacek@redhat.com>
10014 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10015 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10016 into SANITIZE_UNDEFINED.
10017 * doc/invoke.texi: Describe -fsanitize=bounds.
10018 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10019 functions created in the FEs.
10020 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10021 (expand_UBSAN_BOUNDS): New function.
10022 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10023 * internal-fn.h: Don't define internal functions here.
10024 * opts.c (common_handle_option): Add -fsanitize=bounds.
10025 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10026 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10027 * tree-core.h: Define internal functions here.
10028 (struct tree_base): Add ifn field.
10029 * tree-pretty-print.c: Include "internal-fn.h".
10030 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10031 * tree.c (get_callee_fndecl): Likewise.
10032 (build_call_expr_internal_loc): New function.
10033 * tree.def (CALL_EXPR): Update description.
10034 * tree.h (CALL_EXPR_IFN): Define.
10035 (build_call_expr_internal_loc): Declare.
10036 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10038 (ubsan_type_descriptor): Change bool parameter to enum
10039 ubsan_print_style. Adjust the code. Add handling of
10041 (ubsan_expand_bounds_ifn): New function.
10042 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10043 (ubsan_build_overflow_builtin): Likewise.
10044 (instrument_bool_enum_load): Likewise.
10045 (ubsan_instrument_float_cast): Likewise.
10046 * ubsan.h (enum ubsan_print_style): New enum.
10047 (ubsan_expand_bounds_ifn): Declare.
10048 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10050 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10052 * config/rs6000/rs6000.md: Append `DONE' to preparation
10053 statements of `bswap' pattern splitters.
10055 2014-06-20 Tom de Vries <tom@codesourcery.com>
10057 * target.def (call_fusage_contains_non_callee_clobbers): Update
10059 * doc/tm.texi: Regenerate.
10061 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10062 Max Ostapenko <m.ostapenko@partner.samsung.com>
10065 * asan.c (instrument_strlen_call): Fixed instrumentation of
10068 2014-06-20 Martin Jambor <mjambor@suse.cz>
10071 * ipa-prop.c (impossible_devirt_target): New function.
10072 (try_make_edge_direct_virtual_call): Use it, also instead of
10075 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10076 Max Ostapenko <m.ostapenko@partner.samsung.com>
10079 * asan.c (build_check_stmt): Add condition.
10081 2014-06-20 Martin Jambor <mjambor@suse.cz>
10084 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10087 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10089 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10091 (VCONQ): Make comment more helpful.
10093 * config/aarch64/aarch64-simd.md
10094 (aarch64_sqdmulh_lane<mode>):
10095 Use VCOND for operands 2. Update lane checking and flipping logic.
10096 (aarch64_sqrdmulh_lane<mode>): Likewise.
10097 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10098 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10099 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10100 attribute of operand 3 to VCOND.
10101 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10102 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10103 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10104 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10105 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10106 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10108 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10109 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10110 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10111 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10112 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10113 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10114 operand to VCOND. Update lane flipping and bounds checking logic.
10115 (aarch64_sqdmlal2_lane<mode>): Likewise.
10116 (aarch64_sqdmlsl_lane<mode>): Likewise.
10117 (aarch64_sqdmull_lane<mode>): Likewise.
10118 (aarch64_sqdmull2_lane<mode>): Likewise.
10119 (aarch64_sqdmlal_laneq<mode>):
10120 Replace VCON usage with VCONQ.
10121 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10122 (aarch64_sqdmlal2_laneq<mode>): Emit
10123 aarch64_sqdmlal2_laneq<mode>_internal insn.
10124 Replace VCON with VCONQ.
10125 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10126 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10127 (aarch64_sqdmull_laneq<mode>): Emit
10128 aarch64_sqdmull_laneq<mode>_internal insn.
10129 Replace VCON with VCONQ.
10130 (aarch64_sqdmull2_laneq<mode>): Emit
10131 aarch64_sqdmull2_laneq<mode>_internal insn.
10132 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10133 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10134 of 3rd argument to int16x4_t.
10135 (vqdmlalh_lane_s16): Likewise.
10136 (vqdmlslh_lane_s16): Likewise.
10137 (vqdmull_high_lane_s16): Likewise.
10138 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10139 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10140 (vqdmlsl_lane_s16): Likewise.
10141 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10142 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10143 (vqdmlals_lane_s32): Likewise.
10144 (vqdmlsls_lane_s32): Likewise.
10145 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10146 (vqdmulls_lane_s32): Likewise.
10147 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10148 (vqdmlsl_lane_s32): Likewise.
10149 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10150 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10151 (vqrdmulhh_lane_s16): Likewise.
10152 (vqdmlsl_high_lane_s16): Likewise.
10153 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
10154 (vqdmlsl_high_lane_s32): Likewise.
10155 (vqrdmulhs_lane_s32): Likewise.
10157 2014-06-20 Tom de Vries <tom@codesourcery.com>
10159 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
10160 get_call_reg_set_usage.
10162 2014-06-20 Tom de Vries <tom@codesourcery.com>
10164 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
10165 it contains all call_used_regs.
10167 2014-06-20 Tom de Vries <tom@codesourcery.com>
10169 * final.c (collect_fn_hard_reg_usage): Add and use variable
10170 function_used_regs.
10172 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10174 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
10175 (set_init_priority, get_init_priority, set_fini_priority,
10176 get_fini_priority): New methods.
10177 * tree.c (init_priority_for_decl): Remove.
10178 (init_ttree): Do not initialize init priority.
10179 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
10180 (decl_priority_info): Remove.
10181 (decl_init_priority_insert): Rewrite.
10182 (decl_fini_priority_insert): Rewrite.
10183 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
10184 tree_priority_map_marked_p): Remove.
10185 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
10186 * lto-streamer-out.c (hash_tree): Do not hash priorities.
10187 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
10188 not output priorities.
10189 (pack_ts_function_decl_value_fields): Likewise.
10190 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10191 not input priorities.
10192 (unpack_ts_function_decl_value_fields): Likewise.
10193 * symtab.c (symbol_priority_map): Declare.
10194 (init_priority_hash): Declare.
10195 (symtab_unregister_node): Unregister from priority hash, too.
10196 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
10198 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
10199 (symbol_priority_info): New function.
10200 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
10202 * tree-core.h (tree_priority_map): Remove.
10204 2014-06-20 Jakub Jelinek <jakub@redhat.com>
10206 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
10207 0xff to uint64_t before shifting it up.
10209 2014-06-20 Julian Brown <julian@codesourcery.com>
10210 Chung-Lin Tang <cltang@codesourcery.com>
10212 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
10213 TARGET_THUMB1_ONLY. Add comments.
10215 2014-06-19 Tom de Vries <tom@codesourcery.com>
10217 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
10218 return type to void.
10219 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
10221 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10223 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
10224 as "move", from depends_on.
10226 2014-06-19 Terry Guo <terry.guo@arm.com>
10228 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
10231 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10233 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
10235 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
10237 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10240 * config/sh/sh.c (prepare_move_operands): Don't process TLS
10241 addresses here if reload in progress or completed.
10243 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10245 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
10246 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
10247 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
10248 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
10249 (mips_register_priority): New function that implements the target
10250 hook TARGET_REGISTER_PRIORITY.
10251 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
10252 (mips_lra_p): Likewise for TARGET_LRA_P.
10253 (TARGET_REGISTER_PRIORITY): Define macro.
10254 (TARGET_SPILL_CLASS): Likewise.
10255 (TARGET_LRA_P): Likewise.
10256 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
10258 (REG_CLASS_NAMES): Likewise.
10259 (REG_CLASS_CONTENTS): Likewise.
10260 (BASE_REG_CLASS): Use M16_SP_REGS.
10261 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
10262 New set attribute to enable alternatives depending on the register
10264 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
10265 (*lea64): Disable pattern for MIPS16.
10266 * config/mips/mips.opt (mlra): New option.
10268 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10270 * lra-constraints.c (base_to_reg): New function.
10271 (process_address): Use new function.
10273 2014-06-18 Tom de Vries <tom@codesourcery.com>
10275 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
10276 * config/aarch64/aarch64.c
10277 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
10278 (aarch64_emit_call_insn): New function.
10279 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
10281 * config/aarch64/aarch64.md (define_expand "call_internal")
10282 (define_expand "call_value_internal", define_expand "sibcall_internal")
10283 (define_expand "sibcall_value_internal"): New.
10284 (define_expand "call", define_expand "call_value")
10285 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
10286 expand variant and aarch64_emit_call_insn.
10288 2014-06-18 Radovan Obradovic <robradovic@mips.com>
10289 Tom de Vries <tom@codesourcery.com>
10291 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
10292 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10294 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
10295 clobbers to CALL_INSN_FUNCTION_USAGE.
10296 (define_expand "sibcall_internal")
10297 (define_expand "sibcall_value_internal"): New.
10298 (define_expand "call", define_expand "call_value"): Add argument to
10299 arm_emit_call_insn.
10300 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
10301 (define_expand "sibcall_value"): Use sibcall_value_internal and
10302 arm_emit_call_insn.
10304 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10306 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
10308 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10310 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
10313 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10315 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
10316 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
10317 annotations. Fix DWARF information.
10319 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10321 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
10322 __udivmoddi4, and fixups for negative operands.
10324 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10326 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
10328 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10330 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
10333 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10335 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
10338 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10340 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
10341 describing register usage on function entry and exit.
10343 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10345 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
10346 (__aeabi_ldivmod): Fix whitespace.
10348 2014-06-18 Andreas Schwab <schwab@suse.de>
10350 * doc/md.texi (Standard Names): Use @itemx for grouped items.
10351 Remove blank line after @item.
10353 2014-06-18 Richard Henderson <rth@redhat.com>
10356 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
10358 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10360 * config/arm/arm.c (neon_vector_mem_operand): Allow register
10361 POST_MODIFY for neon loads and stores.
10362 (arm_print_operand): Output post-index register for neon loads and
10365 2014-06-18 Richard Biener <rguenther@suse.de>
10367 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
10369 2014-06-18 Richard Biener <rguenther@suse.de>
10371 * tree-pass.h (make_pass_dce_loop): Remove.
10372 * passes.def: Replace pass_dce_loop with pass_dce.
10373 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
10374 changed free niter estimates and reset the scev cache.
10375 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
10376 make_pass_dce_loop): Remove.
10377 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
10378 (fini_copy_prop): Return whether something changed. Always
10379 let substitute_and_fold perform DCE and free niter estimates
10380 and reset the scev cache if so.
10381 (execute_copy_prop): If sth changed schedule cleanup-cfg.
10382 (pass_data_copy_prop): Do not unconditionally schedule
10383 cleanup-cfg or update-ssa.
10385 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10387 PR tree-optimization/61518
10388 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
10389 reduction var is used in reduction stmt or phi-function only.
10391 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10393 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
10395 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
10397 PR tree-optimization/61517
10398 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
10399 whose rhs's first tree is the source expression instead of the
10401 (find_bswap_or_nop): Likewise.
10402 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
10403 gimple stmt whose rhs's first tree is the source. In the memory source
10404 case, move the stmt to be replaced close to one of the original load to
10405 avoid the problem of a store between the load and the stmt's original
10407 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
10410 2014-06-18 Andreas Schwab <schwab@suse.de>
10412 PR rtl-optimization/54555
10413 * postreload.c (move2add_use_add2_insn): Substitute
10414 STRICT_LOW_PART only if it is cheaper.
10416 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
10418 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
10419 Do not use unspec as call operand. Use memory_operand instead of
10420 memory_nox32_operand and add "m" operand constraint. Disable
10421 pattern for TARGET_X32.
10422 (*sibcall_pop_memory): Ditto.
10423 (*sibcall_value_memory): Ditto.
10424 (*sibcall_value_pop_memory): Ditto.
10425 (sibcall peepholes): Merge SImode and DImode patterns using
10426 W mode iterator. Use memory_operand instead of memory_nox32_operand.
10427 Disable pattern for TARGET_X32. Check if eliminated register is
10428 really dead after call insn. Generate call RTX without unspec operand.
10429 (sibcall_value peepholes): Ditto.
10430 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
10431 instead of memory_nox32_operand. Check if eliminated register is
10432 really dead after call insn. Generate call RTX without unspec operand.
10433 (sibcall_value_pop peepholes): Ditto.
10434 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
10436 2014-06-18 Terry Guo <terry.guo@arm.com>
10439 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
10442 2014-06-18 Olivier Hainque <hainque@adacore.com>
10444 * tree-core.h (tree_block): Add an "end_locus" field, allowing
10445 memorization of the end of block source location.
10446 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
10447 * gimplify.c (gimplify_bind_expr): Propagate the block start and
10448 end source location info we have on the block entry/exit code we
10451 2014-06-18 Richard Biener <rguenther@suse.de>
10453 * common.opt (fssa-phiopt): New option.
10454 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
10456 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
10457 * doc/invoke.texi (-fssa-phiopt): Document.
10459 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10461 * genattrtab.c (n_bypassed): New variable.
10462 (process_bypasses): Initialise n_bypassed.
10463 Count number of bypassed reservations.
10464 (make_automaton_attrs): Allocate space for bypassed reservations
10465 rather than number of bypasses.
10467 2014-06-18 Richard Biener <rguenther@suse.de>
10469 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
10470 we propagated anything.
10471 (substitute_and_fold_dom_walker::before_dom_children): Something
10472 changed if we propagated into PHI arguments.
10473 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
10476 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
10478 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
10480 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
10481 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
10482 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
10483 Introduces alternative way of loads group permutaions.
10484 (vect_transform_grouped_load): Try alternative way of permutations.
10486 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10488 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
10489 changed in ORT_TARGET region, don't jump to do_outer.
10490 (struct gimplify_adjust_omp_clauses_data): New type.
10491 (gimplify_adjust_omp_clauses_1): Adjust for data being
10492 a struct gimplify_adjust_omp_clauses_data pointer instead
10493 of tree *. Pass pre_p as a new argument to
10494 lang_hooks.decls.omp_finish_clause hook.
10495 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
10496 splay_tree_foreach to pass both list_p and pre_p.
10497 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
10498 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
10499 gimplify_adjust_omp_clauses callers.
10500 * langhooks.c (lhd_omp_finish_clause): New function.
10501 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
10502 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
10503 * langhooks.h (struct lang_hooks_for_decls): Add a new
10504 gimple_seq * argument to omp_finish_clause hook.
10505 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
10506 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
10507 (scan_omp_parallel, lower_omp_for): When adding
10508 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
10509 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
10510 * tree-nested.c (convert_nonlocal_omp_clauses,
10511 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
10512 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
10514 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
10516 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
10517 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
10519 2014-06-17 Xinliang David Li <davidxl@google.com>
10521 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
10522 * passes.c (pass_init_dump_file): Do not set initialize
10523 flag to false unconditionally.
10525 2014-06-17 Richard Biener <rguenther@suse.de>
10527 * genopinit.c (main): Use vec<>::qsort method.
10528 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
10530 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
10532 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
10534 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
10535 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
10536 (mips_move_to_gpr_cost): Remove ST_REGS case.
10537 (mips_move_from_gpr_cost): Likewise.
10538 (mips_register_move_cost): Likewise.
10539 (mips_secondary_reload_class): Likewise.
10541 2014-06-17 Richard Biener <rguenther@suse.de>
10543 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
10544 (pass_all_optimizations): Move 3rd copy-prop pass from after
10545 fre to before ifcombine/phiopt.
10547 2014-06-17 Richard Biener <rguenther@suse.de>
10549 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
10550 and allow all blocks to be forwarders.
10552 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
10555 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
10556 variable 'size'; calculate 'size' right in the front; use
10557 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
10558 pcum->aapcs_stack_words.
10560 2014-06-17 Nick Clifton <nickc@redhat.com>
10562 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
10563 (umulhi3, mulsidi3, umulsidi3): Likewise.
10565 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
10567 PR middle-end/61508
10568 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
10569 check for section name.
10571 2014-06-17 Richard Biener <rguenther@suse.de>
10573 * tree-ssa-propagate.c: Include domwalk.h.
10574 (substitute_and_fold): Outline main worker into a domwalker ...
10575 (substitute_and_fold_dom_walker::before_dom_children): ... here.
10576 Schedule stmts we can fully propagate for removal. Remove
10578 (substitute_and_fold): Apply a dominator walk to perform
10579 substitution. Process stmts scheduled for removal here.
10581 2014-06-17 Richard Biener <rguenther@suse.de>
10583 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
10584 of PHI node moving.
10586 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
10588 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
10589 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
10590 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10591 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
10592 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
10594 (get_fpscr) : Likewise.
10596 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10598 PR rtl-optimization/61325
10599 * lra-constraints.c (valid_address_p): Add forward declaration.
10600 (simplify_operand_subreg): Check address validity before and after
10601 alter_reg of memory subreg.
10603 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
10605 * config/i386/i386.c (decide_alg): Correctly handle
10606 maximum size of stringop algorithm.
10608 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10610 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
10612 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10614 PR rtl-optimization/61522
10615 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
10617 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
10620 * symtab.c (symtab_node::reset_section): New method.
10621 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
10623 * cgraph.h (reset_section): Declare.
10624 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
10625 do not consider comdat locals.
10626 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
10628 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
10629 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
10630 reset sections of symbols dragged out of the comdats.
10631 (function_and_variable_visibility): Reset sections of
10634 2014-06-16 Richard Biener <rguenther@suse.de>
10636 PR tree-optimization/61482
10637 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
10638 [-INF(OVF), +INF(OVF)] range.
10640 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10642 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
10643 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
10644 handling 32-bit multiplication.
10646 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
10648 PR middle-end/61430
10649 * lra-lives.c (process_bb_lives): Skip creating copy during
10650 insn scan when src/dest has constrained to same regno.
10652 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10654 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
10655 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
10657 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10659 * asan.c (check_func): New function.
10660 (maybe_create_ssa_name): Likewise.
10661 (build_check_stmt_with_calls): Likewise.
10662 (use_calls_p): Likewise.
10663 (report_error_func): Change interface.
10664 (build_check_stmt): Allow non-integer lengths; add support
10666 (asan_instrument): Likewise.
10667 (instrument_mem_region_access): Moved code to build_check_stmt.
10668 (instrument_derefs): Likewise.
10669 (instrument_strlen_call): Likewise.
10670 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
10671 * doc/invoke.texi: Describe new parameter.
10672 * params.def: Define new parameter.
10673 * params.h: Likewise.
10674 * sanitizer.def: Describe new builtins.
10676 2014-06-16 Richard Biener <rguenther@suse.de>
10678 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10679 Make all defs available at the end.
10680 (eliminate): If we remove a PHI node schedule cfg-cleanup.
10682 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10685 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
10687 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
10690 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
10691 initialization. Replace remaining use of uid.
10693 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10695 * c-family/c-common.c (handle_tls_model_attribute): Use
10696 set_decl_tls_model.
10697 * c-family/c-common.c (handle_tls_model_attribute): Use
10698 set_decl_tls_model.
10699 * cgraph.h (struct varpool_node): Add tls_model.
10700 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
10701 * tree.h (DECL_TLS_MODEL): Update.
10702 (DECL_THREAD_LOCAL_P): Check that variable is static.
10703 (decl_tls_model): Declare.
10704 (set_decl_tls_model): Declare.
10705 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
10706 set symbol prorperties.
10707 (get_emutls_init_templ_addr): Cleanup.
10708 (new_emutls_decl): Update.
10709 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
10710 (lto_input_varpool_node): Likewise.
10711 * lto-streamer-out.c (hash_tree): Likewise.
10712 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10713 not stream DECL_TLS_MODEL.
10714 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
10715 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
10717 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10719 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
10721 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10723 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
10724 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
10726 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
10727 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
10728 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
10729 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
10730 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
10731 (df_get_artificial_defs, df_get_artificial_uses)
10732 (df_single_def, df_single_use): Update accordingly.
10733 (df_refs_chain_dump): Take the first element in a linked list as
10734 parameter, rather than a pointer to an array of pointers.
10735 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
10736 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
10737 (df_chain_create_bb_process_use): Likewise.
10738 (df_md_bb_local_compute_process_def): Likewise.
10739 * fwprop.c (process_defs, process_uses): Likewise.
10740 (register_active_defs, update_uses): Likewise.
10741 (forward_propagate_asm): Update for new df_ref linking.
10742 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
10743 (df_null_ref_rec, df_null_mw_rec): Likewise.
10744 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
10746 (df_scan_free_bb_info): Remove check for null artificial_defs.
10747 (df_install_ref_incremental): Adjust for new df_ref linking.
10748 Use a single-element insertion rather than a full sort.
10749 (df_ref_chain_delete_du_chain): Take the first element
10750 in a linked list as parameter, rather than a pointer to an array of
10752 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
10753 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
10754 (df_insn_info_delete): Remove check for null defs and call to
10755 df_scan_free_mws_vec.
10756 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
10757 null rather than df_null_*_rec.
10758 (df_insn_rescan_debug_internal): Likewise, and update null
10759 checks in the same way. Remove check for null defs.
10760 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
10761 Move a single element rather doing a full sort.
10762 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
10764 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
10765 Initialize df_ref and df_mw_hardreg lists to null rather than
10767 (df_ref_compare): Take df_refs as parameter, transferring the
10768 old interface to...
10769 (df_ref_ptr_compare): ...this new function.
10770 (df_sort_and_compress_refs): Update accordingly.
10771 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
10772 old interface to...
10773 (df_mw_ptr_compare): ...this new function.
10774 (df_sort_and_compress_mws): Update accordingly.
10775 (df_install_refs, df_install_mws): Return a linked list rather than
10776 an array of pointers.
10777 (df_refs_add_to_chains): Assert that old lists are empty rather
10779 (df_insn_refs_verify): Don't handle null defs speciailly.
10780 * web.c (union_match_dups): Update for new df_ref linking.
10782 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10784 * df.h (df_ref_create, df_ref_remove): Delete.
10785 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
10786 (df_ref_remove): Likewise.
10788 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10790 * df.h (df_single_def, df_single_use): New functions.
10791 * ira.c (find_moveable_pseudos): Use them.
10793 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10795 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
10796 * df-problems.c (df_note_bb_compute): Use it.
10797 * regstat.c (regstat_bb_compute_ri): Likewise.
10799 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10801 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
10802 * cse.c (cse_extended_basic_block): Use them.
10803 * dce.c (mark_artificial_use): Likewise.
10804 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
10805 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
10806 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
10807 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
10808 (df_simulate_initialize_backwards): Likewise.
10809 (df_simulate_finalize_backwards): Likewise.
10810 (df_simulate_initialize_forwards): Likewise.
10811 (df_md_simulate_artificial_defs_at_top): Likewise.
10812 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
10813 * regrename.c (init_rename_info): Likewise.
10814 * regstat.c (regstat_bb_compute_ri): Likewise.
10815 (regstat_bb_compute_calls_crossed): Likewise.
10817 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10819 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
10820 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
10821 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
10822 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
10823 * combine.c (create_log_links): Likewise.
10824 * compare-elim.c (find_flags_uses_in_insn): Likewise.
10825 (try_eliminate_compare): Likewise.
10826 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
10827 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
10828 (remove_reg_equal_equiv_notes_for_defs): Likewise.
10829 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
10830 (word_dce_process_block, dce_process_block): Likewise.
10831 * ddg.c (def_has_ccmode_p): Likewise.
10832 * df-core.c (df_bb_regno_first_def_find): Likewise.
10833 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
10834 * df-problems.c (df_rd_simulate_one_insn): Likewise.
10835 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
10836 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
10837 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
10838 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
10839 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
10840 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
10841 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
10842 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
10843 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
10844 * fwprop.c (local_ref_killed_between_p): Likewise.
10845 (all_uses_available_at, free_load_extend): Likewise.
10846 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
10847 * hw-doloop.c (scan_loop): Likewise.
10848 * ifcvt.c (dead_or_predicable): Likewise.
10849 * init-regs.c (initialize_uninitialized_regs): Likewise.
10850 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
10851 (process_bb_node_lives): Likewise.
10852 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
10853 (find_moveable_pseudos): Likewise.
10854 * loop-invariant.c (check_dependencies, record_uses): Likewise.
10855 * recog.c (peep2_find_free_register): Likewise.
10856 * ree.c (get_defs): Likewise.
10857 * regstat.c (regstat_bb_compute_ri): Likewise.
10858 (regstat_bb_compute_calls_crossed): Likewise.
10859 * sched-deps.c (find_inc, find_mem): Likewise.
10860 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
10861 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
10862 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10863 (prepare_shrink_wrap): Likewise.
10864 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
10865 * web.c (union_defs, pass_web::execute): Likewise.
10866 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
10867 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
10869 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
10871 * lra-assign.c (assign_by_spills): Add code to assign vector regs
10872 to inheritance pseudos.
10873 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
10875 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
10878 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
10879 (BU_MISC_2): Rename to ...
10880 (BU_LDBL128_2): ... this.
10881 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
10882 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
10883 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
10884 RS6000_BTM_LDBL128.
10885 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
10886 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
10887 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
10888 (unpacktf_1): Likewise.
10889 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
10890 (__builtin_longdouble_dw1): Likewise.
10891 * doc/sourcebuild.texi (longdouble128): Document.
10893 2014-06-13 Jeff Law <law@redhat.com>
10895 PR rtl-optimization/61094
10896 PR rtl-optimization/61446
10897 * ree.c (combine_reaching_defs): Get the mode for the copy from
10898 the extension insn rather than the defining insn.
10900 2014-06-13 Dehao Chen <dehao@google.com>
10902 * dwarf2out.c (add_linkage_name): Emit more linkage name.
10904 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
10906 * doc/install.texi (--enable-linker-plugin-configure-flags)
10907 (--enable-linker-plugin-flags): Document new flags.
10909 2014-06-13 Martin Jambor <mjambor@suse.cz>
10912 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
10913 cache_token if returning early.
10915 2014-06-13 Nick Clifton <nickc@redhat.com>
10917 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
10918 requested alignment is active.
10919 (LABEL_ALIGN): Likewise.
10920 (LOOP_ALIGN): Likewise.
10922 2014-06-13 Richard Biener <rguenther@suse.de>
10924 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10925 Rewrite to propagate the VN result into all uses where
10926 possible and to remove stmts becoming dead because of that.
10927 (eliminate): Generalize stmt removal handling, remove in
10928 reverse dominator order to support proper debug stmt
10929 generation. Update stmts before removing stmts.
10930 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
10932 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
10934 PR tree-optimization/61375
10935 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
10936 symbolic number cannot be represented in an uint64_t.
10937 (find_bswap_or_nop_1): Likewise.
10939 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
10941 * symtab.c (symtab_node::reset_section): New method.
10942 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
10944 * cgraph.h (reset_section): Declare.
10945 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
10946 do not consider comdat locals.
10947 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
10949 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
10950 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
10951 reset sections of symbols dragged out of the comdats.
10952 (function_and_variable_visibility): Reset sections of
10955 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
10957 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
10958 to use symtab and decl_binds_to_current_def_p
10959 * tree-vectorizer.c (increase_alignment): Increase alignment
10960 of alias target, too.
10962 2014-06-12 Jakub Jelinek <jakub@redhat.com>
10964 PR middle-end/61486
10965 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
10966 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
10967 if outer combined construct is distribute.
10968 (gimplify_omp_for): For OMP_DISTRIBUTE set
10969 gimplify_omp_ctxp->distribute.
10970 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
10971 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
10972 mapping into decl map.
10974 2014-06-12 Jason Merrill <jason@redhat.com>
10976 * common.opt (fabi-version): Change default to 0.
10978 2014-06-12 Jason Merrill <jason@redhat.com>
10980 * toplev.c (process_options): Reject -fabi-version=1.
10982 2014-06-12 Jeff Law <law@redhat.com>
10984 PR tree-optimization/61009
10985 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
10986 value when we stop processing a block due to problematic PHIs.
10988 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
10990 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
10991 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
10992 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
10993 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
10994 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
10995 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
10996 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
10997 are not in the spec.
10999 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11002 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11003 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11006 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11008 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11010 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11013 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11014 loading from address spaces.
11016 2014-06-12 Martin Liska <mliska@suse.cz>
11019 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11020 statement is reachable.
11022 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11024 * symtab.c (section_hash): New hash.
11025 (symtab_unregister_node): Clear section before freeing.
11026 (hash_section_hash_entry): New haser.
11027 (eq_sections): New function.
11028 (symtab_node::set_section_for_node): New method.
11029 (set_section_1): Update.
11030 (symtab_node::set_section): Take string instead of tree as parameter.
11031 (symtab_resolve_alias): Update.
11032 * cgraph.h (section_hash_entry_d): New structure.
11033 (section_hash_entry): New typedef.
11034 (cgraph_node): Change comdat_group_ to x_comdat_group,
11035 change section_ to x_section and turn into section_hash_entry;
11036 update accestors; put set_section_for_node offline.
11037 * tree.c (decl_section_name): Turn into string.
11038 (set_decl_section_name): Change parameter to be string.
11039 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11040 * sdbout.c (sdbout_one_type): Update.
11041 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11042 * varasm.c (IN_NAMED_SECTION, get_named_section,
11043 resolve_unique_section, hot_function_section, get_named_text_section,
11044 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11045 make_decl_rtl, default_unique_section): Update.
11046 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11047 (c6x_elf_unique_section): Update.
11048 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11049 * config/pa/pa.c (pa_function_section): Update.
11050 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11051 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11052 * config/arc/arc.c (arc_in_small_data_p): Update.
11053 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11054 * config/mcore/mcore.c (mcore_unique_section): Update.
11055 * config/mips/mips.c (mips16_build_function_stub): Update.
11056 (mips16_build_call_stub): Update.
11057 (mips_function_rodata_section): Update.
11058 (mips_in_small_data_p): Update.
11059 * config/score/score.c (score_in_small_data_p): Update.
11060 * config/rx/rx.c (rx_in_small_data): Update.
11061 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11062 (rs6000_xcoff_asm_named_section): Update.
11063 (rs6000_xcoff_unique_section): Update.
11064 * config/frv/frv.c (frv_string_begins_with): Update.
11065 (frv_in_small_data_p): Update.
11066 * config/v850/v850.c (v850_encode_data_area): Update.
11067 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11068 (bfin_handle_l1_data_attribute): Update.
11069 (bfin_handle_l2_attribute): Update.
11070 * config/mep/mep.c (mep_unique_section): Update.
11071 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11073 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11074 (h8300_handle_tiny_data_attribute): Update.
11075 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11076 (m32r_in_small_data_p): Update.
11077 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11078 * config/i386/i386.c (ix86_in_large_data_p): Update.
11079 * config/i386/winnt.c (i386_pe_unique_section): Update.
11080 * config/darwin.c (darwin_function_section): Update.
11081 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11082 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11083 (new_emutls_decl): Update.
11084 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11085 input_varpool_node): Update.
11086 (ead_string_cst): Turn to ...
11087 (read_string): ... this one.
11088 * dwarf2out.c (secname_for_decl): Update.
11089 * asan.c (asan_protect_global): Update.
11091 2014-06-11 DJ Delorie <dj@redhat.com>
11093 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11095 * config/rx/rx.c (rx_option_override): Likewise.
11096 (rx_align_for_label): Likewise.
11098 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11100 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11102 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11105 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11107 * common.md: New file.
11108 * doc/md.texi: Update description of generic, machine-independent
11110 * config/s390/constraints.md (e): Delete.
11111 * Makefile.in (md_file): Include common.md.
11112 * config/m32c/t-m32c (md_file): Likewise.
11113 * genpreds.c (general_mem): New array.
11114 (generic_constraint_letters): Remove constraints now defined by
11116 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11117 Allow the first character to be '<' or '>' as well.
11118 * genoutput.c (general_mem): New array.
11119 (indep_constraints): Remove constraints now defined by common.md.
11120 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11121 Remove special handling of 'm'.
11122 * ira-costs.c (record_reg_classes): Remove special handling of
11123 constraints now defined by common.md.
11124 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11125 * ira-lives.c (single_reg_class): Likewise.
11126 (ira_implicitly_set_insn_hard_regs): Likewise.
11127 * lra-constraints.c (reg_class_from_constraints): Likewise.
11128 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11129 * postreload.c (reload_cse_simplify_operands): Likewise.
11130 * reload.c (push_secondary_reload, scratch_reload_class)
11131 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11132 * reload1.c (maybe_fix_stack_asms): Likewise.
11133 * targhooks.c (default_secondary_reload): Likewise.
11134 * stmt.c (parse_output_constraint): Likewise.
11135 * recog.c (preprocess_constraints): Likewise.
11136 (constrain_operands, peep2_find_free_register): Likewise.
11137 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11138 must be handled specially.
11140 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11142 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11143 * genpreds.c (have_const_dbl_constraints): Delete.
11144 (add_constraint): Don't set it.
11145 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11146 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11147 constraints using the lookup_constraint logic.
11148 * ira-lives.c (single_reg_class): Likewise.
11149 * ira.c (ira_setup_alts): Likewise.
11150 * lra-constraints.c (process_alt_operands): Likewise.
11151 * recog.c (asm_operand_ok, constrain_operands): Likewise.
11152 * reload.c (find_reloads): Likewise.
11154 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11156 * genpreds.c (const_int_start, const_int_end): New variables.
11157 (choose_enum_order): Output CONST_INT constraints before memory
11159 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
11161 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
11162 * ira.c (ira_setup_alts): Likewise.
11163 * lra-constraints.c (process_alt_operands): Likewise.
11164 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11165 * reload.c (find_reloads): Likewise.
11167 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11169 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
11170 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
11171 * recog.c (preprocess_constraints): Update accordingly.
11173 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11175 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
11176 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
11177 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
11178 * genpreds.c (print_type_tree): New function.
11179 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
11180 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
11181 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
11182 Write out enum constraint_type and get_constraint_type.
11183 * lra-constraints.c (satisfies_memory_constraint_p): Take a
11184 constraint_num rather than a constraint string.
11185 (satisfies_address_constraint_p): Likewise.
11186 (reg_class_from_constraints): Avoid old constraint macros.
11187 (process_alt_operands, process_address_1): Likewise.
11188 (curr_insn_transform): Likewise.
11189 * ira-costs.c (record_reg_classes): Likewise.
11190 (record_operand_costs): Likewise.
11191 * ira-lives.c (single_reg_class): Likewise.
11192 (ira_implicitly_set_insn_hard_regs): Likewise.
11193 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11194 * postreload.c (reload_cse_simplify_operands): Likewise.
11195 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11196 (constrain_operands, peep2_find_free_register): Likewise.
11197 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
11198 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11199 * reload1.c (maybe_fix_stack_asms): Likewise.
11200 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11201 * targhooks.c (default_secondary_reload): Likewise.
11202 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
11203 to EXTRA_CONSTRAINT_STR.
11204 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
11206 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11208 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
11209 (write_constraint_satisfied_p_array): ...this new function.
11210 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
11212 (write_insn_preds_c): Update accordingly.
11214 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11216 * genpreds.c (write_lookup_constraint): Rename to...
11217 (write_lookup_constraint_1): ...this.
11218 (write_lookup_constraint_array): New function.
11219 (write_tm_preds_h): Define lookup_constraint as an inline function
11220 that uses write_lookup_constraint_array where possible.
11221 (write_insn_preds_c): Update for the changes above.
11223 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11225 * doc/md.texi (regclass_for_constraint): Rename to...
11226 (reg_class_for_constraint): ...this.
11227 * genpreds.c (num_constraints, enum_order, register_start)
11228 (register_end, satisfied_start, memory_start, memory_end)
11229 (address_start, address_end): New variables.
11230 (add_constraint): Count the number of constraints.
11231 (choose_enum_order): New function.
11232 (write_enum_constraint_num): Iterate over enum_order.
11233 (write_regclass_for_constraint): Rename to...
11234 (write_reg_class_for_constraint_1): ...this and update output
11236 (write_constraint_satisfied_p): Rename to...
11237 (write_constraint_satisfied_p_1): ...this and update output
11238 accordingly. Do nothing if all extra constraints are register
11240 (write_insn_extra_memory_constraint): Delete.
11241 (write_insn_extra_address_constraint): Delete.
11242 (write_range_function): New function.
11243 (write_tm_preds_h): Define constraint_satisfied_p and
11244 reg_class_for_constraint as inline functions that do a range check
11245 before calling the out-of-line function. Use write_range_function
11246 to implement insn_extra_{register,memory,address}_constraint,
11247 the first of which is new.
11248 (write_insn_preds_c): Update after above changes to write_* functions.
11249 (main): Call choose_enum_order.
11251 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11253 PR tree-optimization/61306
11254 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
11255 expression instead of its size.
11256 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
11257 false to prevent optimization when the result is unpredictable due to
11258 arithmetic right shift of signed type with highest byte is set.
11259 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
11260 (init_symbolic_number): Likewise.
11261 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
11262 when the result is unpredictable due to sign extension.
11264 2014-06-11 Terry Guo <terry.guo@arm.com>
11266 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
11267 (*thumb1_addsi3): Ditto.
11268 (*thumb_subdi3): Ditto.
11269 (thumb1_subsi3_insn): Ditto.
11270 (*thumb_mulsi3): Ditto.
11271 (*thumb_mulsi3_v6): Ditto.
11272 (*thumb1_andsi3_insn): Ditto.
11273 (thumb1_bicsi3): Ditto.
11274 (*thumb1_iorsi3_insn): Ditto.
11275 (*thumb1_xorsi3_insn): Ditto.
11276 (*thumb1_ashlsi3): Ditto.
11277 (*thumb1_ashrsi3): Ditto.
11278 (*thumb1_lshrsi3): Ditto.
11279 (*thumb1_rotrsi3): Ditto.
11280 (*thumb1_negdi2): Ditto.
11281 (*thumb1_negsi2): Ditto.
11282 (*thumb1_abssi2): Ditto.
11283 (*thumb1_neg_abssi2): Ditto.
11284 (*thumb1_one_cmplsi2): Ditto.
11285 (*thumb1_zero_extendhisi2): Ditto.
11286 (*thumb1_zero_extendqisi2): Ditto.
11287 (*thumb1_zero_extendqisi2_v6): Ditto.
11288 (thumb1_extendhisi2): Ditto.
11289 (thumb1_extendqisi2): Ditto.
11290 (*thumb1_movdi_insn): Ditto.
11291 (*thumb1_movsi_insn): Ditto.
11292 (*thumb1_movhi_insn): Ditto.
11293 (thumb_movhi_clobber): Ditto.
11294 (*thumb1_movqi_insn): Ditto.
11295 (*thumb1_movhf): Ditto.
11296 (*thumb1_movsf_insn): Ditto.
11297 (*thumb_movdf_insn): Ditto.
11298 (movmem12b): Ditto.
11300 (cbranchqi4): Ditto.
11301 (cbranchsi4_insn): Ditto.
11302 (cbranchsi4_scratch): Ditto.
11303 (*negated_cbranchsi4): Ditto.
11304 (*tbit_cbranch): Ditto.
11305 (*tlobits_cbranch): Ditto.
11306 (*tstsi3_cbranch): Ditto.
11307 (*cbranchne_decr1): Ditto.
11308 (*addsi3_cbranch): Ditto.
11309 (*addsi3_cbranch_scratch): Ditto.
11310 (*thumb_cmpdi_zero): Ditto.
11311 (cstoresi_eq0_thumb1): Ditto.
11312 (cstoresi_ne0_thumb1): Ditto.
11313 (*cstoresi_eq0_thumb1_insn): Ditto.
11314 (*cstoresi_ne0_thumb1_insn): Ditto.
11315 (cstoresi_nltu_thumb1): Ditto.
11316 (cstoresi_ltu_thumb1): Ditto.
11317 (thumb1_addsi3_addgeu): Ditto.
11318 (*thumb_jump): Ditto.
11319 (*call_reg_thumb1_v5): Ditto.
11320 (*call_reg_thumb1): Ditto.
11321 (*call_value_reg_thumb1_v5): Ditto.
11322 (*call_value_reg_thumb1): Ditto.
11323 (*call_insn): Ditto.
11324 (*call_value_insn): Ditto.
11325 (thumb1_casesi_internal_pic): Ditto.
11326 (thumb1_casesi_dispatch): Ditto.
11327 (*thumb1_indirect_jump): Ditto.
11328 (prologue_thumb1_interwork): Ditto.
11329 (*epilogue_insns): Ditto.
11330 (consttable_1): Ditto.
11331 (consttable_2): Ditto.
11332 (tablejump): Ditto.
11333 (*thumb1_tablejump): Ditto.
11334 (thumb_eh_return): Ditto.
11335 (define_peephole2): Two of them are thumb1 only and got moved into
11336 new file thumb1.md.
11337 (define_split): Six of them are thumb1 only and got moved into new
11339 * config/arm/thumb1.md: New file comprised of above thumb1 only
11342 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11344 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
11345 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
11347 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
11348 (aarch64_crc_builtin_datum): New struct.
11349 (aarch64_crc_builtin_data): New.
11350 (aarch64_init_crc32_builtins): New function.
11351 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
11352 (aarch64_crc32_expand_builtin): New.
11353 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
11354 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11355 __ARM_FEATURE_CRC32 when appropriate.
11356 (TARGET_CRC32): Define.
11357 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
11358 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
11359 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
11360 (aarch64_<crc_variant>): New pattern.
11361 * config/aarch64/arm_acle.h: New file.
11362 * config/aarch64/iterators.md (CRC): New int iterator.
11363 (crc_variant, crc_mode): New int attributes.
11364 * doc/aarch64-acle-intrinsics.texi: New file.
11365 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
11366 Include aarch64-acle-intrinsics.texi.
11368 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
11370 * tree-vect-data-refs.c (vect_grouped_store_supported): New
11371 check for stores group of length 3.
11372 (vect_permute_store_chain): New permutations for stores group of
11374 * tree-vect-stmts.c (vect_model_store_cost): Change cost
11375 of vec_perm_shuffle for the new permutations.
11377 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11379 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
11380 table rewriting temporarily on targets not supporting ONE_ONLY.
11382 2014-06-11 Richard Biener <rguenther@suse.de>
11384 PR middle-end/61437
11386 2014-06-04 Richard Biener <rguenther@suse.de>
11388 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
11389 TREE_PUBLIC and DECL_EXTERNAL decls.
11391 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11393 * varasm.c (set_implicit_section): New function.
11394 (resolve_unique_section): Use it to set implicit section
11396 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
11397 (default_function_section): Likewise.
11398 (decl_binds_to_current_def_p): Constify argument.
11399 * varasm.h (decl_binds_to_current_def_p): Update prototype.
11400 * asan.c (asan_protect_global): Use
11401 symtab_get_node (decl)->implicit_section.
11402 * symtab.c (dump_symtab_base): Dump implicit sections.
11403 (verify_symtab_base): Verify sanity of sectoins and comdats.
11404 (symtab_resolve_alias): Alias share the section of its target.
11405 (set_section_1): New function.
11406 (symtab_node::set_section): Move here, recurse to aliases.
11407 (verify_symtab): Check for duplicated symtab lists.
11408 * tree-core.h (implicit_section_name_p): Remove.
11409 * tree-vect-data-refs.c: Include varasm.h.
11410 (vect_can_force_dr_alignment_p): Fix conditional on when
11411 decl bints to current definition; use
11412 symtab_get_node (decl)->implicit_section.
11413 * cgraph.c (cgraph_make_node_local_1): Fix section set.
11414 * cgraph.h (struct symtab_node): Add implicit_section.
11415 (set_section): Rename to ...
11416 (set_section_for_node): ... this one.
11417 (set_section): Declare.
11418 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
11419 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11420 input_overwrite_node, input_varpool_node): Stream implicit_section.
11421 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
11422 removal; it will fail in LTO.
11424 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11426 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
11427 Change second alternative type to f_mcr.
11428 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
11429 and 12th alternatives' types to f_mcr and f_mrc.
11430 (*movdi_aarch64): Same for 12th and 13th alternatives.
11431 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
11432 (aarch64_movtilow_tilow): Change type to fmov.
11434 2014-06-10 Jiong Wang <jiong.wang@arm.com>
11436 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
11437 (aarch64_save_or_restore_callee_save_registers): Fix layout.
11439 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11441 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
11443 (aarch64_sqrdmulh_lane<mode>): Likewise.
11444 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11445 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11446 (aarch64_sqdmulh_laneq<mode>): New expander.
11447 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11448 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
11449 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
11450 (aarch64_sqdmulh_lane<mode>): New expander.
11451 (aarch64_sqrdmulh_lane<mode>): Likewise.
11452 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11453 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11454 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
11455 (aarch64_sqdmlal_laneq<mode>): Likewise.
11456 (aarch64_sqdmlsl_lane<mode>): Likewise.
11457 (aarch64_sqdmlsl_laneq<mode>): Likewise.
11458 (aarch64_sqdmlal2_lane<mode>): Likewise.
11459 (aarch64_sqdmlal2_laneq<mode>): Likewise.
11460 (aarch64_sqdmlsl2_lane<mode>): Likewise.
11461 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11462 (aarch64_sqdmull_lane<mode>): Likewise.
11463 (aarch64_sqdmull_laneq<mode>): Likewise.
11464 (aarch64_sqdmull2_lane<mode>): Likewise.
11465 (aarch64_sqdmull2_laneq<mode>): Likewise.
11467 2014-06-10 Richard Biener <rguenther@suse.de>
11469 PR tree-optimization/61438
11470 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
11471 (eliminate_dom_walker::before_dom_children): Only try to inhibit
11472 insertion of IVs if running PRE.
11473 (eliminate): Adjust.
11474 (pass_pre::execute): Likewise.
11475 (pass_fre::execute): Likewise.
11477 2014-06-10 Richard Biener <rguenther@suse.de>
11479 PR middle-end/61456
11480 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11481 Do not use the main variant for the type comparison.
11482 (ncr_compar): Likewise.
11483 (nonoverlapping_component_refs_p): Likewise.
11485 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
11487 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
11488 REG_CFA_RESTORE mode.
11490 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
11492 * config/i386/i386.c (expand_vec_perm_pblendv): New.
11493 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
11494 expand_vec_perm_pblendv.
11496 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11498 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
11500 Simplify description of __crc32d and __crc32cd intrinsics.
11501 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
11504 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
11507 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
11508 * config.in: Regenerate.
11509 * configure: Likewise.
11511 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11513 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
11515 (intersect_static_var_sets): Remove.
11516 (propagate): Do not prune local statics.
11518 2014-06-10 Jakub Jelinek <jakub@redhat.com>
11521 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
11522 Set lastprivate_firstprivate even if omp_private_outer_ref
11523 langhook returns true.
11524 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
11525 langhook, call unshare_expr on new_var and call
11526 build_outer_var_ref to get the last argument.
11528 2014-06-10 Marek Polacek <polacek@redhat.com>
11531 * doc/extend.texi: Add cindex for transparent_union.
11533 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
11535 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
11536 init_symbolic_number ().
11538 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
11540 PR middle-end/61141
11541 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
11542 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
11543 (verify_rtl_sharing): Likewise.
11545 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
11548 * tree.c (build_qualified_type): Use a canonical type for
11551 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11553 * config/arm/arm-modes.def: Remove XFmode.
11555 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
11558 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
11559 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
11560 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
11561 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
11562 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
11563 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
11564 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
11565 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
11566 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
11568 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
11570 * tree-core.h (tree_decl_with_vis): Remove section_name.
11572 2014-06-09 Kito Cheng <kito@0xlab.org>
11574 * ira.c (ira): Don't call init_caller_save if LRA enabled
11575 since LRA use its own infrastructure to handle that.
11577 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11579 * symtab.c (dump_symtab_base): Update dumping.
11580 (symtab_make_decl_local): Clear only DECL_COMDAT.
11581 * tree-vect-data-refs.c (Check that variable is static before
11582 tampering with sections.
11583 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
11584 (cgraph_create_virtual_clone): Likewise.
11585 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
11586 (decl_section_name, set_decl_section_name): New accessors.
11587 (find_decls_types_r): Do not walk section name
11588 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
11589 (decl_comdat_group, decl_comdat_group_id): Constify.
11590 (decl_section_name, set_decl_section_name): Update.
11591 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
11592 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
11593 (cgraph_make_node_local_1): Clear section and comdat group.
11594 * cgraph.h (set_comdat_group): Sanity check.
11595 (get_section, set_section): New.
11596 * ipa-comdats.c (ipa_comdats): Use get_section.
11597 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
11598 * lto-streamer-out.c: Do not follow section names.
11599 * c-family/c-common.c (handle_section_attribute): Update.
11600 * lto-cgraph.c (lto_output_node): Output section.
11601 (lto_output_varpool_node): Likewise.
11602 (read_comdat_group): Rename to ...
11603 (read_identifier): ... this one.
11604 (read_string_cst): New function.
11605 (input_node, input_varpool_node): Input section names.
11606 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11607 (new_emutls_decl): Update.
11608 (secname_for_decl): Check section names only of static vars.
11609 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
11610 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
11611 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11612 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11613 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
11614 * config/mcore/mcore.c (mcore_unique_section): Likewise.
11615 * config/mips/mips.c (mips16_build_function_stub): Likewise.
11616 * config/v850/v850.c (v850_insert_attributes): Likewise.
11617 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
11619 (h8300_handle_tiny_data_attribute): Likewise.
11620 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
11621 (bfin_handle_l2_attribute): Likewise.
11623 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11625 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
11626 remove static initializer.
11628 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11630 * varasm.c (use_blocks_for_decl_p): Check symbol table
11631 instead of alias attribute.
11632 (place_block_symbol): Recurse on aliases.
11634 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11636 * ipa-visibility.c: Include varasm.h
11637 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
11639 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11641 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
11642 outputting aliases.
11644 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
11646 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
11647 from test_insn into GGC space escape via SET_SRC.
11649 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
11651 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
11652 call statement, if any.
11653 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
11654 statements, if any. Tidy up.
11656 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11659 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
11660 iterators, VSX_D that handles 64-bit types, and VSX_LE that
11661 handles swapping the two 64-bit double words on little endian
11662 systems. Include V1TImode and optionally TImode in VSX_LE so that
11663 these types are properly swapped. Change all of the insns and
11664 splits that do the 64-bit swaps to use VSX_LE.
11665 (vsx_le_perm_load_<mode>): Likewise.
11666 (vsx_le_perm_store_<mode>): Likewise.
11667 (splitters for little endian memory operations): Likewise.
11668 (vsx_xxpermdi2_le_<mode>): Likewise.
11669 (vsx_lxvd2x2_le_<mode>): Likewise.
11670 (vsx_stxvd2x2_le_<mode>): Likewise.
11672 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
11675 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
11676 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
11677 and corresponding splitters. Zero extend general register
11678 or memory input operand to XMM temporary. Enable for
11679 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
11680 (floatunssi<mode>2): Update expander predicate.
11682 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
11684 PR rtl-optimization/61325
11685 * lra-constraints.c (process_address_1): Check scale equal to one
11686 to prevent transformation: base + scale * index => base + new_reg.
11688 2014-06-06 Richard Biener <rguenther@suse.de>
11690 PR tree-optimization/59299
11691 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
11693 (nearest_common_dominator_of_uses): Likewise.
11694 (statement_sink_location): Adjust. Support sinking loads.
11696 2014-06-06 Martin Jambor <mjambor@suse.cz>
11698 * ipa-prop.c (get_place_in_agg_contents_list): New function.
11699 (build_agg_jump_func_from_list): Likewise.
11700 (determine_known_aggregate_parts): Renamed to
11701 determine_locally_known_aggregate_parts. Moved some functionality
11702 to the two functions above, removed bound checks.
11704 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
11706 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
11707 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
11708 (aarch64_progress_pointer): Likewise.
11709 (aarch64_copy_one_part_and_move_pointers): Likewise.
11710 (aarch64_expand_movmen): Likewise.
11711 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
11712 * config/aarch64/aarch64.md (movmem<mode>): New.
11714 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
11716 * targhooks.c (default_add_stmt_cost): Call target specific
11717 hook instead of default one.
11719 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11721 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
11722 endianness instead of host endianness.
11723 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
11726 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11729 * function.c (instantiate_decls): Process the saved static chain.
11730 (expand_function_start): If not optimizing, save the static chain
11732 * tree-nested.c (convert_all_function_calls): Always create the static
11733 chain for nested functions if not optimizing.
11735 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11737 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
11739 2014-06-06 Richard Biener <rguenther@suse.de>
11741 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
11742 (construct_init_block): Likewise.
11743 (construct_exit_block): Likewise.
11744 (pass_expand::execute): Likewise.
11745 * graphite.c (graphite_transforms): Replace check for current_loops
11746 with a check for > 1 loops.
11747 (pass_graphite_transforms::execute): Adjust.
11748 * ipa-split.c (split_function): Remove check for current_loops.
11749 * omp-low.c (expand_parallel_call): Likewise.
11750 (expand_omp_for_init_counts): Likewise.
11751 (extract_omp_for_update_vars): Likewise.
11752 (expand_omp_for_generic): Likewise.
11753 (expand_omp_sections): Likewise.
11754 (expand_omp_target): Likewise.
11755 * tracer.c (tail_duplicate): Likewise.
11756 (pass_tracer::execute): Likewise.
11757 * trans-mem.c (expand_transaction): Likewise.
11758 * tree-complex.c (expand_complex_div_wide): Likewise.
11759 * tree-eh.c (lower_resx): Likewise.
11760 (cleanup_empty_eh_merge_phis): Likewise.
11761 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
11762 current_loops with a check for > 1 loops.
11763 (pass_predcom::execute): Adjust.
11764 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
11765 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
11766 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
11767 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
11768 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
11769 * tree-switch-conversion.c (process_switch): Likewise.
11770 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
11771 * tree-vrp.c (vrp_visit_phi_node): Likewise.
11772 (execute_vrp): Likewise.
11773 * ubsan.c (ubsan_expand_null_ifn): Likewise.
11775 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11777 * rtl.h (insn_location): Declare.
11778 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
11779 with UNKNOWN_LOCATION.
11780 * emit-rtl.c (insn_location): New function.
11781 * final.c (notice_source_line): Check that the instruction has a
11782 location before retrieving it and use insn_location.
11783 * modulo-sched.c (loop_single_full_bb_p): Likewise.
11784 * print-rtl.c (print_rtx): Likewise.
11786 2014-06-06 Richard Biener <rguenther@suse.de>
11788 * passes.def: Move 2nd VRP pass before phi-only-cprop.
11790 2014-06-06 Christian Bruel <christian.bruel@st.com>
11792 PR tree-optimization/43934
11793 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
11796 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
11798 * ira-lives.c (single_reg_class): Add missing break. Explicitly
11799 return NO_REGS for extra address and memory constraints. Handle
11800 operands that match (or are equivalent to something that matches)
11801 extra constant constraints. Ignore other non-register operands.
11803 2014-06-06 Alan Modra <amodra@gmail.com>
11806 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
11807 * doc/tm.texi: Regenerate.
11808 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
11809 Use throughout in place of REG_PARM_STACK_SPACE.
11810 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
11811 "incoming" param. Pass to rs6000_function_parms_need_stack.
11812 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
11813 prototype_p when incoming. Use function decl when incoming
11814 to handle K&R style functions.
11815 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
11816 (INCOMING_REG_PARM_STACK_SPACE): Define.
11818 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11821 * cfgexpand.c (expand_debug_expr): Use address space of nested
11822 TREE_TYPE for ADDR_EXPR and MEM_REF.
11824 2014-06-05 Jeff Law <law@redhat.com>
11826 PR tree-optimization/61289
11827 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
11828 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
11829 looking for those which match LHS. All callers changed.
11830 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
11831 parameters and code which manipulated them. All callers changed.
11832 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
11833 and DST_MAP parameters. Simplify invalidation code by just calling
11834 invalidate_equivalences. All callers changed.
11835 (thread_across_edge): Simplify now that we don't need to maintain
11836 the map of equivalences to invalidate.
11838 2014-06-05 Kai Tietz <ktietz@redhat.com>
11839 Richard Henderson <rth@redhat.com>
11842 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
11843 checking for !TARGET_X32.
11844 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
11845 (sibcall_intern): New define_insn, plus required peepholes.
11846 (sibcall_pop_intern): Likewise.
11847 (sibcall_value_intern): Likewise.
11848 (sibcall_value_pop_intern): Likewise.
11850 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
11852 * tree-inline.c (tree_function_versioning): Check DF info existence
11853 before accessing it.
11855 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11857 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
11859 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
11860 aarch64_frame hard_fp_offset and frame_size.
11861 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
11862 frame_size; remove original_frame_size.
11863 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
11864 (aarch64_initial_elimination_offset): Remove frame_size and
11865 offset. Use aarch64_frame frame_size.
11867 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11868 Jiong Wang <jiong.wang@arm.com>
11869 Renlin <renlin.li@arm.com>
11871 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
11872 initialization of R30 offset. Update offset. Iterate core
11873 regisers upto X30. Remove X29, X30 specific code.
11875 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11876 Jiong Wang <jiong.wang@arm.com>
11878 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
11879 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
11880 (aarch64_register_saved_on_entry): Adjust test.
11882 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11884 * config/aarch64/aarch64.h (machine_function): Move
11885 saved_varargs_size from here...
11886 (aarch64_frame): ... to here.
11888 * config/aarch64/aarch64.c (aarch64_expand_prologue)
11889 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
11890 (aarch64_initial_elimination_offset)
11891 (aarch64_setup_incoming_varargs): Adjust location of
11892 saved_varargs_size.
11894 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11896 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
11899 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
11900 Prachi Godbole <Prachi.Godbole@imgtec.com>
11902 * config/mips/mips-cpus.def: Add definition for p5600. Updated
11903 mips32r5 entry to use PROCESSOR_P5600.
11904 * config/mips/mips-tables.opt: Regenerate.
11905 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
11906 * config/mips/mips.c (mips_fmadd_bypass): New function.
11907 (mips_rtx_cost_data): Add costs for p5600.
11908 (mips_issue_rate): Add support for p5600.
11909 (mips_multipass_dfa_lookahead): Likewise.
11910 * config/mips/mips.h (TUNE_P5600): New define.
11911 (TUNE_MACC_CHAINS): Add TUNE_P5600.
11912 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
11913 * config/mips/mips.md: Include p5600.md.
11914 (processor): Add p5600.
11915 * config/mips/p5600.md: New file.
11917 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
11919 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
11920 * config/i386/predicates.md (palignr_operand): New.
11921 Indicates if permutation is suitable for palignr instruction.
11923 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
11925 PR tree-optimization/61319
11926 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11927 stmt belongs to loop.
11929 2014-06-05 Richard Biener <rguenther@suse.de>
11931 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
11932 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
11933 (lookup_tmp_var): Adjust.
11934 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
11936 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11938 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
11940 2014-06-05 Marek Polacek <polacek@redhat.com>
11943 * doc/invoke.texi: Document -Wlogical-not-parentheses.
11945 2014-06-04 Tom de Vries <tom@codesourcery.com>
11947 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
11950 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
11952 PR tree-optimization/61385
11953 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
11955 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
11957 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
11958 changed to use fatal_error.
11959 (main): Ensure lto_wrapper_cleanup is run atexit.
11961 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11963 * lra-constraints.c (valid_address_p): Move earlier in file.
11964 (address_eliminator): New structure.
11965 (satisfies_memory_constraint_p): New function.
11966 (satisfies_address_constraint_p): Likewise.
11967 (process_alt_operands, process_address, curr_insn_transform): Use them.
11969 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11971 * lra-int.h (lra_static_insn_data): Make operand_alternative a
11973 (target_lra_int, default_target_lra_int, this_target_lra_int)
11974 (op_alt_data): Delete.
11975 * lra.h (lra_init): Delete.
11976 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
11977 (init_insn_code_data_once): Remove op_alt_data handling.
11978 (finish_insn_code_data_once): Likewise.
11979 (init_op_alt_data): Delete.
11980 (get_static_insn_data): Initialize operand_alternative to null.
11981 (free_insn_recog_data): Cast operand_alternative before freeing it.
11982 (setup_operand_alternative): Take the operand_alternative as
11983 parameter and assume it isn't already cached in the static
11985 (lra_set_insn_recog_data): Update accordingly.
11986 (lra_init): Delete.
11987 * ira.c (ira_init): Don't call lra_init.
11988 * target-globals.h (this_target_lra_int): Declare.
11989 (target_globals): Remove lra_int.
11990 (restore_target_globals): Update accordingly.
11991 * target-globals.c: Don't include lra-int.h.
11992 (default_target_globals, save_target_globals): Remove lra_int.
11994 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11996 * recog.h (operand_alternative): Convert reg_class, reject,
11997 matched and matches into bitfields.
11998 (preprocess_constraints): New overload.
11999 (preprocess_insn_constraints): New function.
12000 (preprocess_constraints): Take the insn as parameter.
12001 (recog_op_alt): Change into a pointer.
12002 (target_recog): Add x_op_alt.
12003 * recog.c (asm_op_alt): New variable.
12004 (recog_op_alt): Change into a pointer.
12005 (preprocess_constraints): New overload, replacing the old function
12006 definition with one that doesn't use global state.
12007 (preprocess_insn_constraints): New function.
12008 (preprocess_constraints): Use them. Take the insn as parameter.
12009 Use asm_op_alt for asms.
12010 (recog_init): Free existing x_op_alt entries.
12011 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12013 (make_early_clobber_and_input_conflicts): Likewise.
12014 (process_bb_node_lives): Pass the insn to process_constraints.
12015 * reg-stack.c (check_asm_stack_operands): Likewise.
12016 (subst_asm_stack_regs): Likewise.
12017 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12018 * regrename.c (build_def_use): Likewise.
12019 * sched-deps.c (sched_analyze_insn): Likewise.
12020 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12021 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12022 (note_invalid_constants): Likewise.
12023 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12024 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12027 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12029 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12030 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12032 (make_early_clobber_and_input_conflicts): Likewise.
12033 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12035 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12037 * recog.h (alternative_class): New function.
12038 (which_op_alt): Return a const recog_op_alt.
12039 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12040 (subst_asm_stack_regs): Likewise.
12041 * config/arm/arm.c (note_invalid_constants): Likewise.
12042 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12043 the operand_alternative; use alternative class instead.
12044 * sel-sched.c (get_reg_class): Likewise.
12045 * regrename.c (build_def_use): Likewise.
12046 (hide_operands, restore_operands, record_out_operands): Update type
12049 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12051 * recog.h (recog_op_alt): Convert to a flat array.
12052 (which_op_alt): New function.
12053 * recog.c (recog_op_alt): Convert to a flat array.
12054 (preprocess_constraints): Update accordingly, grouping all
12055 operands of the same alternative together, rather than the
12057 * ira-lives.c (check_and_make_def_conflict): Likewise.
12058 (make_early_clobber_and_input_conflicts): Likewise.
12059 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12060 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12061 (subst_asm_stack_regs): Likewise.
12062 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12063 * regrename.c (hide_operands, record_out_operands): Likewise.
12064 (build_def_use): Likewise.
12065 * sel-sched.c (get_reg_class): Likewise.
12066 * config/arm/arm.c (note_invalid_constants): Likewise.
12068 2014-06-04 Jason Merrill <jason@redhat.com>
12072 * gimplify.c (gimplify_arg): Non-static.
12073 * gimplify.h: Declare it.
12075 2014-06-04 Richard Biener <rguenther@suse.de>
12077 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12078 TREE_PUBLIC and DECL_EXTERNAL decls.
12080 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12082 * regcprop.c (copyprop_hardreg_forward_1): Account for
12083 HARD_REGNO_CALL_PART_CLOBBERED.
12085 2014-06-04 Richard Biener <rguenther@suse.de>
12087 * configure.ac: Check whether the underlying type of int64_t
12088 is long or long long.
12089 * configure: Regenerate.
12090 * config.in: Likewise.
12091 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12092 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12094 2014-06-04 Richard Biener <rguenther@suse.de>
12096 PR tree-optimization/60098
12097 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12099 (dse_optimize_stmt): Simplify, now that we found a kill
12102 2014-06-04 Richard Biener <rguenther@suse.de>
12104 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12105 of accesses with non-invariant address.
12107 2014-06-04 Martin Liska <mliska@suse.cz>
12109 * cgraph.h (cgraph_make_wrapper): New function introduced.
12110 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12111 * ipa-inline.h (inline_analyze_function): The function is global.
12112 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12114 2014-06-04 Martin Liska <mliska@suse.cz>
12116 * tree.h (private_lookup_attribute_starting): New function.
12117 (lookup_attribute_starting): Likewise.
12118 * tree.c (private_lookup_attribute_starting): Likewise.
12120 2014-06-04 Martin Liska <mliska@suse.cz>
12122 * cgraph.h (expand_thunk): New argument added.
12123 (address_taken_from_non_vtable_p): New global function.
12124 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12125 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12126 * cgraphunit.c (analyze_function): Likewise.
12127 (assemble_thunks_and_aliases): Argument added to call.
12128 (expand_thunk): New argument forces to produce GIMPLE thunk.
12130 2014-06-04 Martin Liska <mliska@suse.cz>
12132 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12133 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12134 * profile.c (branch_prob): Likewise.
12136 2014-06-04 Martin Jambor <mjambor@suse.cz>
12139 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12140 handler for switch on an ipa_ref_use enum.
12141 * ipa-reference.c (analyze_function): Likewise.
12143 2014-06-04 Kai Tietz <ktietz@redhat.com>
12145 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12146 from old call-instruction.
12148 2014-06-04 Bin Cheng <bin.cheng@arm.com>
12150 * config/aarch64/aarch64.c (aarch64_classify_address)
12151 (aarch64_legitimize_reload_address): Support full addressing modes
12153 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
12154 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
12156 2014-06-03 Andrew Pinski <apinski@cavium.com>
12158 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
12161 2014-06-03 Andrew Pinski <apinski@cavium.com>
12163 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
12164 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
12166 2014-06-03 Kai Tietz <ktietz@redhat.com>
12168 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
12171 2014-06-03 Dehao Chen <dehao@google.com>
12173 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
12176 2014-06-03 Marek Polacek <polacek@redhat.com>
12179 * doc/invoke.texi: Document -Wswitch-bool.
12180 * function.c (stack_protect_epilogue): Cast controlling expression of
12182 * gengtype.c (walk_type): Generate switch expression with its
12183 controlling expression cast to int.
12185 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
12187 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
12189 * config/avr/avr-tables.opt: Regenerate.
12190 * config/avr/t-multilib: Regenerate.
12191 * doc/avr-mmcu.texi: Regenerate.
12193 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
12194 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12196 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
12197 (ata6617c, ata664251): Add new avr35 devices.
12198 (ata6612c): Add new avr4 device.
12199 (ata6613c, ata6614q): Add new avr5 devices.
12200 * config/avr/avr-tables.opt: Regenerate.
12201 * config/avr/t-multilib: Regenerate.
12202 * doc/avr-mmcu.texi: Regenerate.
12204 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12206 * gcc/config/aarch64/aarch64-builtins.c
12207 (aarch64_types_binop_ssu_qualifiers): New static data.
12208 (TYPES_BINOP_SSU): Define.
12209 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
12210 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
12211 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
12212 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
12213 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
12214 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
12215 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
12216 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
12217 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
12218 suffix to builtin function name, remove cast.
12219 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
12220 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
12221 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
12223 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12225 * gcc/config/aarch64/aarch64-builtins.c
12226 (aarch64_types_binop_uus_qualifiers,
12227 aarch64_types_shift_to_unsigned_qualifiers,
12228 aarch64_types_unsigned_shiftacc_qualifiers): Define.
12229 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
12230 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
12231 sqshlu_n, uqshl_n): Update qualifiers.
12232 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
12233 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
12234 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
12235 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
12236 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
12237 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
12238 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
12239 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
12240 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
12241 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
12242 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
12243 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
12244 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
12245 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
12246 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
12247 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
12248 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
12249 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
12250 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
12251 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
12252 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
12253 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
12254 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
12255 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
12256 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
12257 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
12258 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
12260 2014-06-03 Teresa Johnson <tejohnson@google.com>
12262 * tree-sra.c (modify_function): Record caller nodes after rebuild.
12264 2014-06-02 Jason Merrill <jason@redhat.com>
12267 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
12269 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12271 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
12274 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12276 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
12278 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
12279 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
12280 * config/aarch64/iterators.md (REVERSE): New iterator.
12281 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
12282 (rev_op): New int_attribute.
12283 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
12284 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
12285 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
12286 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
12287 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
12288 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
12289 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
12290 Replace temporary __asm__ with __builtin_shuffle.
12292 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12294 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
12296 * config/mips/mips-tables.opt: Regenerate.
12297 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
12298 to use mips_isa_rev rather than ISA_MIPS32R2.
12299 * config/mips/mips.h (ISA_MIPS32R3): New define.
12300 (ISA_MIPS32R5): New define.
12301 (ISA_MIPS64R3): New define.
12302 (ISA_MIPS64R5): New define.
12303 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
12304 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
12305 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
12307 (MIPS_ISA_SYNCI_SPEC): Likewise.
12308 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
12309 (LINK_SPEC): Added mips32r3 and mips32r5.
12310 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
12311 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
12312 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
12313 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
12314 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
12315 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
12316 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
12318 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12320 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
12322 * config/mips/mips.opt (mxpa): New option.
12323 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
12326 2014-06-03 Martin Jambor <mjambor@suse.cz>
12329 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
12332 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12334 PR tree-optimization/61328
12335 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
12336 initialization from find_bswap_or_nop_1.
12337 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
12338 in source_expr2 before using the size value the function sets. Also
12339 make use of init_symbolic_number () in both the old place and
12340 find_bswap_or_nop_load () to avoid reading uninitialized memory when
12341 doing recursion in the GIMPLE_BINARY_RHS case.
12343 2014-06-03 Richard Biener <rguenther@suse.de>
12345 PR tree-optimization/61383
12346 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
12349 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12351 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
12352 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
12353 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
12354 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
12356 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
12357 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
12358 * system.h: ...here and make it unconditional.
12359 * target.def (conditional_register_usage): Mention
12360 define_register_constraint instead of old-style constraint macros.
12361 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
12362 * doc/tm.texi: Regenerate.
12363 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
12364 protected by !USE_MD_CONSTRAINTS.
12365 * config/frv/frv.md: Remove quote from old version of documentation.
12366 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
12367 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
12368 CONST_DOUBLE_OK_FOR_LETTER.
12369 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
12371 2014-06-02 Andrew Pinski <apinski@cavium.com>
12373 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
12374 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
12375 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
12376 file whose name depends on -mabi= and -mbig-endian.
12377 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
12378 Handle LP64 better and handle ilp32 too.
12379 (MULTILIB_OPTIONS): Delete.
12380 (MULTILIB_DIRNAMES): Delete.
12382 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
12384 * expr.h: Remove prototypes of functions defined in builtins.c.
12385 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
12386 Remove prototypes of functions defined in builtins.c.
12387 * builtins.h: Update prototype list to include all exported functions.
12388 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
12389 no_c99_libc_has_function): Move to targhooks.c
12390 (build_string_literal, build_call_expr_loc_array,
12391 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
12393 (expand_builtin_object_size, fold_builtin_object_size): Make static.
12394 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
12395 no_c99_libc_has_function): Relocate from builtins.c.
12396 * tree.c: Include builtins.h.
12397 (build_call_expr_loc_array, build_call_expr_loc_vec,
12398 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
12400 * fold-const.h (fold_fma): Move prototype to builtins.h.
12401 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
12402 * asan.c: Include builtins.h.
12403 * cfgexpand.c: Likewise.
12404 * convert.c: Likewise.
12405 * emit-rtl.c: Likewise.
12406 * except.c: Likewise.
12407 * expr.c: Likewise.
12408 * fold-const.c: Likewise.
12409 * gimple-fold.c: Likewise.
12410 * gimple-ssa-strength-reduction.c: Likewise.
12411 * gimplify.c: Likewise.
12412 * ipa-inline.c: Likewise.
12413 * ipa-prop.c: Likewise.
12414 * lto-streamer-out.c: Likewise.
12415 * stmt.c: Likewise.
12416 * tree-inline.c: Likewise.
12417 * tree-object-size.c: Likewise.
12418 * tree-sra.c: Likewise.
12419 * tree-ssa-ccp.c: Likewise.
12420 * tree-ssa-forwprop.c: Likewise.
12421 * tree-ssa-loop-ivcanon.c: Likewise.
12422 * tree-ssa-loop-ivopts.c: Likewise.
12423 * tree-ssa-math-opts.c: Likewise.
12424 * tree-ssa-reassoc.c: Likewise.
12425 * tree-ssa-threadedge.c: Likewise.
12426 * tree-streamer-in.c: Likewise.
12427 * tree-vect-data-refs.c: Likewise.
12428 * tree-vect-patterns.c: Likewise.
12429 * tree-vect-stmts.c: Likewise.
12430 * config/aarch64/aarch64.c: Likewise.
12431 * config/alpha/alpha.c: Likewise.
12432 * config/arc/arc.c: Likewise.
12433 * config/arm/arm.c: Likewise.
12434 * config/avr/avr.c: Likewise.
12435 * config/bfin/bfin.c: Likewise.
12436 * config/c6x/c6x.c: Likewise.
12437 * config/cr16/cr16.c: Likewise.
12438 * config/cris/cris.c: Likewise.
12439 * config/epiphany/epiphany.c: Likewise.
12440 * config/fr30/fr30.c: Likewise.
12441 * config/frv/frv.c: Likewise.
12442 * config/h8300/h8300.c: Likewise.
12443 * config/i386/i386.c: Likewise.
12444 * config/i386/winnt.c: Likewise.
12445 * config/ia64/ia64.c: Likewise.
12446 * config/iq2000/iq2000.c: Likewise.
12447 * config/lm32/lm32.c: Likewise.
12448 * config/m32c/m32c.c: Likewise.
12449 * config/m32r/m32r.c: Likewise.
12450 * config/m68k/m68k.c: Likewise.
12451 * config/mcore/mcore.c: Likewise.
12452 * config/mep/mep.c: Likewise.
12453 * config/microblaze/microblaze.c: Likewise.
12454 * config/mips/mips.c: Likewise.
12455 * config/mmix/mmix.c: Likewise.
12456 * config/mn10300/mn10300.c: Likewise.
12457 * config/moxie/moxie.c: Likewise.
12458 * config/msp430/msp430.c: Likewise.
12459 * config/nds32/nds32.c: Likewise.
12460 * config/pa/pa.c: Likewise.
12461 * config/pdp11/pdp11.c: Likewise.
12462 * config/picochip/picochip.c: Likewise.
12463 * config/rl78/rl78.c: Likewise.
12464 * config/rs6000/rs6000.c: Likewise.
12465 * config/rx/rx.c: Likewise.
12466 * config/s390/s390.c: Likewise.
12467 * config/score/score.c: Likewise.
12468 * config/sh/sh.c: Likewise.
12469 * config/sparc/sparc.c: Likewise.
12470 * config/spu/spu.c: Likewise.
12471 * config/stormy16/stormy16.c: Likewise.
12472 * config/tilegx/tilegx.c: Likewise.
12473 * config/tilepro/tilepro.c: Likewise.
12474 * config/v850/v850.c: Likewise.
12475 * config/vax/vax.c: Likewise.
12476 * config/xtensa/xtensa.c: Likewise.
12478 2014-06-02 Jeff Law <law@redhat.com>
12480 PR rtl-optimization/61094
12481 * ree.c (combine_reaching_defs): Do not reextend an insn if it
12482 was marked as do_no_reextend. If a copy is needed to eliminate
12483 an extension, then mark it as do_not_reextend.
12485 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
12487 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
12489 2014-06-02 Richard Henderson <rth@redhat.com>
12492 * config/alpha/alpha.c (print_operand_address): Allow symbolic
12493 addresses inside asms. Use output_operand_lossage instead of
12496 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
12499 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
12500 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
12502 2014-06-02 Tom de Vries <tom@codesourcery.com>
12504 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
12505 case that x has VOIDmode.
12507 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
12509 * varasm.c (copy_constant): Delete function.
12510 (build_constant_desc): Don't call it.
12512 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12515 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
12516 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
12517 with immediate_operand.
12519 2014-06-02 Andreas Schwab <schwab@suse.de>
12521 * config/ia64/ia64.c
12522 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
12523 pending_data_specs first.
12525 2014-06-02 Richard Biener <rguenther@suse.de>
12527 PR tree-optimization/61378
12528 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
12529 valueized_anything.
12531 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
12533 * config/i386/constraints.md (Bw): Rename from 'w'.
12534 (Bz): Rename from 'z'.
12535 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
12537 2014-06-01 Kai Tietz <ktietz@redhat.com>
12540 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
12541 * config/i386/i386.md (sibcall_insn_operand): Use Bs
12542 instead of m constraint.
12544 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
12546 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
12547 a separate alternative where the scratch operand 2 is marked as
12550 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
12552 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12553 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
12554 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
12555 and __builtins_arm_get_fpscr.
12556 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12557 __builtins_arm_get_fpscr.
12558 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
12559 __builtins_arm_ldfpscr.
12560 (arm_atomic_assign_expand_fenv): New function.
12561 * config/arm/vfp.md (set_fpscr): New pattern.
12562 (get_fpscr) : Likewise.
12563 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
12565 * doc/extend.texi (AARCH64 Built-in Functions) : Document
12566 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
12568 2014-05-30 Jakub Jelinek <jakub@redhat.com>
12570 * asan.c (report_error_func): Add SLOW_P argument, use
12571 BUILT_IN_ASAN_*_N if set.
12572 (build_check_stmt): Likewise.
12573 (instrument_derefs): If T has insufficient alignment,
12574 force same handling as for odd sizes.
12576 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
12577 BUILT_IN_ASAN_REPORT_STORE_N): New.
12578 * asan.c (struct asan_mem_ref): Change access_size type to
12580 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
12581 update_mem_ref_hash_table): Likewise.
12582 (asan_mem_ref_hasher::hash): Hash in a HWI.
12583 (report_error_func): Change size_in_bytes argument to HWI.
12584 Use *_N builtins if size_in_bytes is larger than 16 or not power of
12586 (build_shadow_mem_access): New function.
12587 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
12588 Handle size_in_bytes not power of two or larger than 16.
12589 (instrument_derefs): Don't give up if size_in_bytes is not
12590 power of two or is larger than 16.
12592 2014-05-30 Kai Tietz <ktietz@redhat.com>
12595 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
12596 for sibling-tail-calls.
12597 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
12599 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
12600 (sibcall_insn_operand): Add check for sibcall_memory_operand.
12602 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12604 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
12605 * config/avr/avr-tables.opt: Regenerate.
12606 * config/avr/t-multilib: Regenerate.
12607 * doc/avr-mmcu.texi: Regenerate.
12609 2014-05-30 Ian Lance Taylor <iant@google.com>
12611 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
12614 2014-05-30 Tom de Vries <tom@codesourcery.com>
12616 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
12619 2014-05-30 Tom de Vries <tom@codesourcery.com>
12621 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12622 * lra.c (initialize_lra_reg_info_element): Add init of
12623 actual_call_used_reg_set field.
12624 (lra): Call lra_create_live_ranges before lra_inheritance for
12626 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12628 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
12629 instead of call_used_reg_set for -fuse-caller-save.
12630 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12632 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12634 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
12636 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
12638 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12640 * ira.c (ira_get_dup_out_num): Check for output operands at
12641 the start of the loop. Handle cases where an included alternative
12642 follows an excluded one.
12644 2014-05-29 Mike Stump <mikestump@comcast.net>
12647 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
12648 post ld passes when lto is used.
12650 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
12652 PR rtl-optimization/61325
12653 * lra-constraints.c (process_address): Rename to process_address_1.
12654 (process_address): New function.
12656 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
12658 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
12659 TYPES_BINOPV): New static data.
12660 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
12662 * config/aarch64/aarch64-simd.md (aarch64_ext,
12663 aarch64_im_lane_boundsi): New patterns.
12664 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
12666 (aarch64_evpc_ext): New function.
12668 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
12670 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
12671 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
12672 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
12673 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
12674 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
12676 2014-05-29 Tom de Vries <tom@codesourcery.com>
12678 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
12680 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
12681 Richard Sandiford <rdsandiford@googlemail.com>
12683 * arm/iterators.md (shiftable_ops): New code iterator.
12684 (t2_binop0, arith_shift_insn): New code attributes.
12685 * arm/predicates.md (shift_nomul_operator): New predicate.
12686 * arm/arm.md (insn_enabled): Delete.
12687 (enabled): Remove insn_enabled test.
12688 (*arith_shiftsi): Delete. Replace with ...
12689 (*<arith_shift_insn>_multsi): ... new pattern.
12690 (*<arith_shift_insn>_shiftsi): ... new pattern.
12691 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
12693 2014-05-29 Radovan Obradovic <robradovic@mips.com>
12694 Tom de Vries <tom@codesourcery.com>
12696 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
12697 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
12699 (mips_split_call): Use POST_CALL_TMP_REG.
12700 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
12702 2014-05-29 Tom de Vries <tom@codesourcery.com>
12704 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
12705 with #ifdef STACK_REGS.
12707 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
12709 * varasm.c (get_variable_section): Walk aliases.
12710 (place_block_symbol): Walk aliases.
12712 2014-05-28 Tom de Vries <tom@codesourcery.com>
12715 2014-05-28 Tom de Vries <tom@codesourcery.com>
12717 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12718 * lra.c (initialize_lra_reg_info_element): Add init of
12719 actual_call_used_reg_set field.
12720 (lra): Call lra_create_live_ranges before lra_inheritance for
12722 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12724 * lra-constraints.c (need_for_call_save_p): Use
12725 actual_call_used_reg_set instead of call_used_reg_set for
12727 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12729 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12731 * doc/md.texi: Document that the % constraint character must
12732 be at the beginning of the string.
12733 * genoutput.c (validate_insn_alternatives): Check that '=',
12734 '+' and '%' only appear at the beginning of a constraint.
12735 * ira.c (commutative_constraint_p): Delete.
12736 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
12737 at the start of the string.
12738 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
12740 * config/arm/neon.md (bicdi3_neon): Likewise.
12741 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
12742 (slt_si, sltu_si): Likewise.
12743 * config/vax/vax.md (sbcdi3): Likewise.
12744 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
12745 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
12746 (mul64): Move '%' to beginning of constraint.
12747 * config/arm/arm.md (*xordi3_insn): Likewise.
12748 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
12749 (xorsi3): Likewise.
12751 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12753 * doc/md.texi: Document the restrictions on the "enabled" attribute.
12755 2014-05-28 Jason Merrill <jason@redhat.com>
12758 * cgraph.h (symtab_node::get_comdat_group_id): New.
12759 * cgraphunit.c (analyze_functions): Call it.
12760 * symtab.c (dump_symtab_node): Likewise.
12761 * tree.c (decl_comdat_group_id): New.
12762 * tree.h: Declare it.
12763 * lto-streamer-out.c (write_symbol): Use it.
12764 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
12766 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12768 PR bootstrap/PR61146
12769 * wide-int.cc: Do not include longlong.h when compiling with clang.
12771 2014-05-28 Richard Biener <rguenther@suse.de>
12773 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
12774 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
12775 (vrp_visit_assignment_or_call): Print less vertical space.
12776 (vrp_visit_stmt): Likewise.
12777 (vrp_visit_phi_node): Likewise. For a PHI argument with
12778 VR_VARYING range consider recording it as copy.
12780 2014-05-28 Richard Biener <rguenther@suse.de>
12783 2014-05-28 Richard Biener <rguenther@suse.de>
12785 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12787 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
12789 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
12790 sufficiently aligned and an offset is used at the same time.
12791 (expand_expr_real_1): Likewise.
12793 2014-05-28 Richard Biener <rguenther@suse.de>
12795 PR middle-end/61045
12796 * fold-const.c (fold_comparison): When folding
12797 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
12798 the sign of the remaining constant operand stays the same.
12800 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
12802 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12803 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
12804 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
12806 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
12807 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
12808 (m32bit-doubles) Likewise.
12809 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
12810 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
12813 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12815 * configure.ac ($gcc_cv_ld_clearcap): New test.
12816 * configure: Regenerate.
12817 * config.in: Regenerate.
12818 * config/sol2.opt (mclear-hwcap): New option.
12819 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
12820 * config/sol2-clearcap.map: Moved here from
12821 testsuite/gcc.target/i386/clearcap.map.
12822 * config/sol2-clearcapv2.map: Move here from
12823 gcc.target/i386/clearcapv2.map.
12824 * config/t-sol2 (install): Depend on install-clearcap-map.
12825 (install-clearcap-map): New target.
12826 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
12829 2014-05-28 Richard Biener <rguenther@suse.de>
12831 * hwint.h (*_HALF_WIDE_INT*): Move to ...
12832 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
12833 ... here and remove the rest.
12834 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12836 2014-05-28 Richard Biener <rguenther@suse.de>
12838 PR tree-optimization/61335
12839 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
12840 new range fails, drop to varying.
12842 2014-05-28 Olivier Hainque <hainque@adacore.com>
12844 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
12845 (CPP_SPEC): Add entry for -mcpu=8548.
12846 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
12847 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
12849 2014-05-28 Tom de Vries <tom@codesourcery.com>
12851 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12852 * lra.c (initialize_lra_reg_info_element): Add init of
12853 actual_call_used_reg_set field.
12854 (lra): Call lra_create_live_ranges before lra_inheritance for
12856 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12858 * lra-constraints.c (need_for_call_save_p): Use
12859 actual_call_used_reg_set instead of call_used_reg_set for
12861 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12863 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12864 Tom de Vries <tom@codesourcery.com>
12866 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
12868 (@item -fuse-caller-save): New item.
12870 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12871 Tom de Vries <tom@codesourcery.com>
12873 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
12874 OPT_fuse_caller_save.
12876 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12877 Tom de Vries <tom@codesourcery.com>
12879 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
12880 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
12881 get_call_reg_set_usage.
12882 * resource.c (mark_set_resources, mark_target_live_regs): Use
12883 get_call_reg_set_usage.
12884 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
12886 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
12887 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
12888 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12889 * ira-build.c (ira_create_allocno): Init
12890 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12891 (create_cap_allocno, propagate_allocno_info)
12892 (propagate_some_info_from_allocno)
12893 (copy_info_to_removed_store_destinations): Handle
12894 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12895 * ira-costs.c (ira_tune_allocno_costs): Use
12896 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
12898 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12899 Tom de Vries <tom@codesourcery.com>
12901 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
12902 and function_used_regs_valid fields.
12903 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
12904 find_all_hard_reg_sets.
12905 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
12906 (get_call_reg_set_usage): New function.
12907 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
12908 * regs.h (get_call_reg_set_usage): Declare.
12910 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
12913 * config/dbx.h (License): Add Runtime Library Exception.
12914 * config/newlib-stdint.h (License): Same.
12915 * config/rtems.h (License): Same
12916 * config/initfini-array.h (License): Same
12917 * config/v850/v850.h (License): Same.
12918 * config/v850/v850-opts.h (License): Same
12919 * config/v850/rtems.h (License): Same.
12921 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
12924 * doc/extend.texi (Local Labels): Note that label differences are
12925 not supported for AVR.
12927 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12928 Olivier Hainque <hainque@adacore.com>
12930 * rtl.h (set_for_reg_notes): Declare.
12931 * emit-rtl.c (set_for_reg_notes): New function.
12932 (set_unique_reg_note): Use it.
12933 * optabs.c (add_equal_note): Likewise
12935 2014-05-27 Andrew Pinski <apinski@cavium.com>
12937 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
12938 Use <w> for the register in assembly template.
12939 (stack_protect_test): Use the mode of operands[0] for the result.
12940 (stack_protect_test_<mode>): Use <w> for the register
12941 in assembly template.
12943 2014-05-27 DJ Delorie <dj@redhat.com>
12945 * config/rx/rx.c (add_vector_labels): New.
12946 (rx_output_function_prologue): Call it.
12947 (rx_handle_func_attribute): Don't require empty arguments.
12948 (rx_handle_vector_attribute): New.
12949 (rx_attribute_table): Add "vector" attribute.
12950 * doc/extend.texi (interrupt, vector): Document new/changed
12951 RX-specific attributes.
12953 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
12955 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
12957 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
12958 predicate to detect a negative quotient.
12960 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
12962 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
12963 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
12964 Add X - Y CMP 0 to X CMP Y transformation.
12965 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
12967 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
12969 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
12972 2014-05-27 Steve Ellcey <sellcey@mips.com>
12974 * config/mips/mips.c: Add include of cgraph.h.
12976 2014-05-27 Richard Biener <rguenther@suse.de>
12978 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
12980 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
12983 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
12984 * config/arm/arm-cores.def (License): Same.
12985 * config/arm/arm-opts.h (License): Same.
12986 * config/arm/aout.h (License): Same.
12987 * config/arm/bpabi.h (License): Same.
12988 * config/arm/elf.h (License): Same.
12989 * config/arm/linux-elf.h (License): Same.
12990 * config/arm/linux-gas.h (License): Same.
12991 * config/arm/netbsd-elf.h (License): Same.
12992 * config/arm/uclinux-eabi.h (License): Same.
12993 * config/arm/uclinux-elf.h (License): Same.
12994 * config/arm/vxworks.h (License): Same.
12996 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12998 * config/arm/neon.md (neon_bswap<mode>): New pattern.
12999 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13000 (arm_init_neon_builtins): Handle NEON_BSWAP.
13001 Define required type nodes.
13002 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13003 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13004 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13005 * config/arm/iterators.md (VDQHSD): New mode iterator.
13007 2014-05-27 Richard Biener <rguenther@suse.de>
13009 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13010 Try using literal operands when comparing value-ranges failed.
13012 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13014 * ira.c (commutative_operand): Adjust for change to recog_data.
13015 [Missing from previous commit.]
13017 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13019 * system.h (TEST_BIT): New macro.
13020 * recog.h (alternative_mask): New type.
13021 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13022 (recog_data_d): Replace alternative_enabled_p array with
13023 enabled_alternatives.
13024 (target_recog): New structure.
13025 (default_target_recog, this_target_recog): Declare.
13026 (get_enabled_alternatives, recog_init): Likewise.
13027 * recog.c (default_target_recog, this_target_recog): New variables.
13028 (get_enabled_alternatives): New function.
13029 (extract_insn): Use it.
13030 (recog_init): New function.
13031 (preprocess_constraints, constrain_operands): Adjust for change to
13033 * postreload.c (reload_cse_simplify_operands): Likewise.
13034 * reload.c (find_reloads): Likewise.
13035 * ira-costs.c (record_reg_classes): Likewise.
13036 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13037 all alternatives after a disabled one would be skipped.
13038 (ira_implicitly_set_insn_hard_regs): Likewise.
13039 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13040 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13041 with enabled_alternatives.
13042 * lra.c (free_insn_recog_data): Update accordingly.
13043 (lra_update_insn_recog_data): Likewise.
13044 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13045 * lra-constraints.c (process_alt_operands): Likewise. Handle
13046 only_alternative as part of the enabled mask.
13047 * target-globals.h (this_target_recog): Declare.
13048 (target_globals): Add a recog field.
13049 (restore_target_globals): Restore this_target_recog.
13050 * target-globals.c: Include recog.h.
13051 (default_target_globals): Initialize recog field.
13052 (save_target_globals): Likewise.
13053 * reginfo.c (reinit_regs): Call recog_init.
13054 * toplev.c (backend_init_target): Likewise.
13056 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13058 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13059 rather than any named insn's code.
13061 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13064 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13065 * config/arm/arm-cores.def (License): Same.
13067 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13069 * tree.h (decl_comdat_group): Declare.
13070 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13071 * tree.c (decl_comdat_group): Here.
13073 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13075 PR rtl-optimization/61222
13076 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13077 the shift, truncate the PLUS operand to the result mode.
13079 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13082 * config/i386/i386.c (ix86_rtx_costs)
13083 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13086 2014-05-26 Martin Jambor <mjambor@suse.cz>
13088 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13091 2014-05-26 Richard Biener <rguenther@suse.de>
13093 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13094 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13095 Provide specializations.
13096 (wi::int_traits <HOST_WIDE_INT>,
13097 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13099 2014-05-26 Alan Modra <amodra@gmail.com>
13102 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13103 params and return a bool. Remove dead code. Update comment.
13104 Assert we have a const_int source. Remove bogus code from
13105 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13106 handling of constants > 2G and reg_equal note, from..
13107 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13108 return value. Update comment. If we can, use a new pseudo
13109 for intermediate calculations.
13110 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13112 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13113 call to rs6000_emit_set_const in splitter.
13114 (movdi_internal64+2, +3): Likewise.
13116 2014-05-26 Richard Biener <rguenther@suse.de>
13118 * system.h: Define __STDC_FORMAT_MACROS before
13119 including inttypes.h.
13120 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13121 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13122 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13123 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13124 HOST_WIDEST_INT_C): Remove.
13125 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13126 if C99 inttypes.h is not available.
13127 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13128 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13129 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13130 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13131 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13132 (struct output_info): Likewise.
13133 (print_statistics): Adjust.
13134 (dump_bitmap_statistics): Likewise.
13135 * bt-load.c (migrate_btr_defs): Print with PRId64.
13136 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13137 (MAX_SAFE_MULTIPLIER): Adjust.
13138 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13139 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13140 dump_cgraph_node): Likewise.
13141 * final.c (dump_basic_block_info): Likewise.
13142 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13143 * gcov.c (format_gcov): Likewise.
13144 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
13146 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13147 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13148 (inline_small_functions, dump_overall_stats, dump_inline_stats):
13149 Use PRId64 for dumping.
13150 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13151 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
13152 (add_allocno_hard_regs): Adjust.
13153 * loop-doloop.c (doloop_modify): Print using PRId64.
13154 * loop-iv.c (inverse): Compute in uint64_t.
13155 (determine_max_iter, iv_number_of_iterations): Likewise.
13156 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
13157 Print using PRId64.
13158 * lto-streamer-out.c (write_symbol): Use uint64_t.
13159 * mcf.c (CAP_INFINITY): Use int64_t maximum.
13160 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
13161 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
13162 * modulo-sched.c (const_iteration_count): Use int64_t.
13163 (sms_schedule): Dump using PRId64.
13164 * predict.c (dump_prediction): Likewise.
13165 * pretty-print.h (pp_widest_integer): Remove.
13166 * profile.c (get_working_sets, is_edge_inconsistent,
13167 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
13168 * tree-pretty-print.c (pp_double_int): Remove case handling
13169 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
13170 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
13172 (pass_optimize_bswap::execute): Remove restriction on hosts.
13173 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
13174 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13175 * tree.c (widest_int_cst_value): Remove.
13176 * tree.h (widest_int_cst_value): Likewise.
13177 * value-prof.c (dump_histogram_value): Print using PRId64.
13178 * gengtype.c (main): Also inject int64_t.
13179 * ggc-page.c (struct max_alignment): Use int64_t.
13180 * alloc-pool.c (struct allocation_object_def): Likewise.
13181 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
13183 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
13184 * doc/tm.texi: Regenerated.
13185 * gengtype-lex.l (IWORD): Handle [u]int64_t.
13186 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
13187 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
13188 mmix_output_register_setting): Use [u]int64_t in prototypes.
13189 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
13190 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
13191 mmix_output_octa, mmix_output_shifted_value): Adjust.
13192 (mmix_intval): Adjust. Remove unreachable case.
13193 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
13195 2014-05-26 Richard Biener <rguenther@suse.de>
13197 * configure.ac: Drop __int64 type check. Insist that we
13198 found uint64_t and int64_t.
13199 * hwint.h (HOST_BITS_PER___INT64): Remove.
13200 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
13201 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
13202 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
13203 (HOST_WIDEST_FAST_INT): Remove __int64 case.
13204 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
13205 for dst_q_src_df_rms_cdt.
13206 * configure: Regenerate.
13207 * config.in: Likewise.
13209 2014-05-26 Michael Tautschnig <mt@debian.org>
13212 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
13213 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
13215 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13217 PR rtl-optimization/61278
13218 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
13220 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13222 PR rtl-optimization/61220
13223 Part of PR rtl-optimization/61225
13224 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
13225 insn; skip split_edge for a block with only one successor.
13227 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13229 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
13232 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13234 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
13235 (update_vtable_references): New function.
13236 (function_and_variable_visibility): Rewrite also vtable initializers.
13237 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
13239 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13241 * ggc.h (ggc_grow): New function.
13242 * ggc-none.c (ggc_grow): New function.
13243 * ggc-page.c (ggc_grow): Likewise.
13245 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13247 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
13248 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
13249 comdat_can_be_unshared_p, cgraph_externally_visible_p,
13250 varpool_externally_visible_p, can_replace_by_local_alias,
13251 update_visibility_by_resolution_info, function_and_variable_visibility,
13252 pass_data_ipa_function_and_variable_visibility,
13253 make_pass_ipa_function_and_variable_visibility,
13254 whole_program_function_and_variable_visibility,
13255 pass_data_ipa_whole_program_visibility,
13256 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
13257 * cgraph.h (cgraph_local_node_p): Declare.
13258 * ipa-visibility.c: New file.
13259 * Makefile.in (OBJS): Add ipa-visiblity.o
13261 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13263 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
13264 that var decl is available.
13266 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13268 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
13269 symtab_node pointer.
13270 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
13271 (find_decls_types_r): Do not walk COMDAT_GROUP.
13272 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
13273 * varasm.c (make_decl_one_only): Use set_comdat_group;
13274 create node if needed.
13275 * ipa-inline-transform.c (save_inline_function_body): Update
13276 way we decl->symtab mapping.
13277 * symtab.c (symtab_hash, hash_node, eq_node
13278 symtab_insert_node_to_hashtable): Remove.
13279 (symtab_register_node): Update.
13280 (symtab_unregister_node): Update.
13281 (symtab_get_node): Reimplement as inline function.
13282 (symtab_add_to_same_comdat_group): Update.
13283 (symtab_dissolve_same_comdat_group_list): Update.
13284 (dump_symtab_base): Update.
13285 (verify_symtab_base): Update.
13286 (symtab_make_decl_local): Update.
13287 (fixup_same_cpp_alias_visibility): Update.
13288 (symtab_nonoverwritable_alias): Update.
13289 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
13290 * ipa.c (update_visibility_by_resolution_info): UPdate.
13291 * bb-reorder.c: Include cgraph.h
13292 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
13293 with comdat groups.
13294 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
13295 * cgraph.c (cgraph_get_create_node): Update.
13296 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
13298 (symtab_get_node): Make inline.
13299 (symtab_insert_node_to_hashtable): Remove.
13300 (symtab_can_be_discarded): Update.
13301 (decl_comdat_group): New function.
13302 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
13304 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
13306 (read_comdat_group): New function.
13307 (input_node, input_varpool_node): Use it.
13308 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
13310 * mips.c (mips_start_unique_function): Likewise.
13311 (ix86_code_end): Likewise.
13312 (rs6000_code_end): Likweise.
13313 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
13315 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13317 * gengtype-state.c (fatal_reading_state): Bring offline.
13318 * optabs.c (widening_optab_handler): Bring offline.
13319 * optabs.h (widening_optab_handler): Likewise.
13320 * final.c (get_attr_length_1): Likewise.
13322 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13324 * sched-int.h (sd_iterator_cond): Manually tail recurse.
13326 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13328 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
13329 (ppc440-compare): Include shift with dot.
13330 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
13331 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
13333 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
13335 (e6500_sfx2): Include it.
13336 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
13337 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13338 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
13339 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
13340 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
13341 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
13342 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
13343 *lshiftrt_internal1le, *lshiftrt_internal1be,
13344 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
13345 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
13346 *rotldi3_internal10le, *rotldi3_internal10be,
13347 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
13348 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
13349 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
13350 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
13351 define_insns): Use type "shift" in the appropriate alternatives.
13353 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13355 * config/rs6000/rs6000.md (type): Add "logical". Delete
13357 (dot): Adjust comment.
13358 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
13359 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
13360 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
13361 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
13362 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
13363 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
13364 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
13365 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13367 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13368 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13369 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13370 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13371 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13372 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13373 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13374 * config/rs6000/8540.md (ppc8540_su): Adjust.
13375 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13376 cell-cmp-microcoded): Adjust.
13377 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13378 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13379 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13380 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13381 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13382 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13383 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13384 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13385 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13387 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13388 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
13389 Adjust. Adjust comment.
13390 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13391 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13393 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13395 * config/rs6000/rs6000.md (type): Add "add".
13396 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
13397 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
13398 define_insns): Use it.
13399 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13401 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13402 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13403 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13404 * config/rs6000/601.md (ppc601-integer): Adjust.
13405 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13406 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13407 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13408 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13409 * config/rs6000/8540.md (ppc8540_su): Adjust.
13410 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13411 cell-cmp-microcoded): Adjust.
13412 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13413 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13414 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13415 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13416 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13417 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13418 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13419 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13420 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13422 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13423 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
13424 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13425 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13427 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13429 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
13430 "delayed_compare", "var_delayed_compare".
13431 (var_shift): New attribute.
13432 (cell_micro): Adjust.
13433 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
13434 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
13435 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
13436 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13437 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13438 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13439 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13440 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
13441 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
13442 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13443 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
13444 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
13445 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
13446 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
13447 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
13448 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
13449 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
13450 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
13451 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
13452 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
13453 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
13454 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
13455 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
13456 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13457 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13459 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13460 * config/rs6000/440.md (ppc440-integer): Adjust.
13461 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13462 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
13463 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13464 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13465 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13466 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13467 * config/rs6000/8540.md (ppc8540_su): Adjust.
13468 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13469 cell-cmp-microcoded): Adjust.
13470 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
13471 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13472 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
13473 e500mc64_delayed): Adjust.
13474 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
13475 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
13476 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13477 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
13478 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
13479 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
13480 power6-delayed-compare, power6-var-delayed-compare): Adjust.
13481 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
13482 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
13484 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13485 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13487 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13489 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
13490 (bits): New mode_attr.
13491 (idiv_ldiv): Delete mode_attr.
13492 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
13493 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13494 rs6000_adjust_priority, is_nonpipeline_insn,
13495 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13497 * config/rs6000/40x.md (ppc403-idiv): Adjust.
13498 * config/rs6000/440.md (ppc440-idiv): Adjust.
13499 * config/rs6000/476.md (ppc476-idiv): Adjust.
13500 * config/rs6000/601.md (ppc601-idiv): Adjust.
13501 * config/rs6000/603.md (ppc603-idiv): Adjust.
13502 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
13503 ppc620-ldiv): Adjust.
13504 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
13505 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
13506 * config/rs6000/8540.md (ppc8540_divide): Adjust.
13507 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
13508 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
13509 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
13510 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
13511 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
13512 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
13513 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
13514 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
13515 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
13516 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
13517 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
13518 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
13519 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
13520 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
13521 * config/rs6000/titan.md (titan_fxu_div): Adjust.
13523 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13525 * config/rs6000/rs6000.md (type): Delete "insert_word",
13526 "insert_dword". Add "insert".
13527 (size): Update comment.
13528 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13529 insn_must_be_first_in_group): Adjust.
13530 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13531 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13532 *insvsi_internal6, insvdi_internal): Adjust.
13534 * config/rs6000/40x.md (ppc403-integer): Adjust.
13535 * config/rs6000/440.md (ppc440-integer): Adjust.
13536 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
13537 * config/rs6000/601.md (ppc601-integer): Adjust.
13538 * config/rs6000/603.md (ppc603-integer): Adjust.
13539 * config/rs6000/6xx.md (ppc604-integer): Adjust.
13540 * config/rs6000/7450.md (ppc7450-integer): Adjust.
13541 * config/rs6000/7xx.md (ppc750-integer): Adjust.
13542 * config/rs6000/8540.md (ppc8540_su): Adjust.
13543 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
13544 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
13545 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13546 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
13547 * config/rs6000/e5500.md (e5500_sfx): Adjust.
13548 * config/rs6000/e6500.md (e6500_sfx): Adjust.
13549 * config/rs6000/mpc.md (mpccore-integer): Adjust.
13550 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
13551 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
13552 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
13553 * config/rs6000/power7.md (power7-integer): Adjust.
13554 * config/rs6000/power8.md (power8-1cyc): Adjust.
13555 * config/rs6000/rs64.md (rs64a-integer): Adjust.
13556 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13558 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13560 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
13561 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
13562 (size): New attribute.
13563 (dot): New attribute.
13564 (cell_micro): Adjust.
13565 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
13566 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
13567 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
13568 umuldi3_highpart): Adjust.
13569 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13570 rs6000_adjust_priority, is_nonpipeline_insn,
13571 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13573 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
13574 ppc405-imul3): Adjust.
13575 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
13576 * config/rs6000/476.md (ppc476-imul): Adjust.
13577 * config/rs6000/601.md (ppc601-imul): Adjust.
13578 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
13579 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
13580 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
13581 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
13582 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
13584 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
13585 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
13586 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
13587 cell-imul): Adjust.
13588 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
13589 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
13590 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
13591 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
13592 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
13593 * config/rs6000/mpc.md (mpccore-imul): Adjust.
13594 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
13595 power4-lmul, power4-imul, power4-imul3): Adjust.
13596 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
13597 power5-lmul, power5-imul, power5-imul3): Adjust.
13598 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
13599 power6-lmul, power6-imul, power6-imul3): Adjust.
13600 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
13601 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
13603 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
13604 rs64a-lmul): Adjust.
13605 * config/rs6000/titan.md (titan_imul): Adjust.
13607 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13609 * config/rs6000/rs6000.md (type): Add new value "halfmul".
13610 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
13611 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
13612 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
13613 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
13614 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
13615 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
13616 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
13617 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
13618 * config/rs6000/titan.md: Delete nonsensical comment.
13619 (titan_imul): Add type imul3.
13620 (titan_mulhw): Remove type imul3; add type halfmul.
13622 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13624 * config/rs6000/rs6000.md (type): Reorder, reformat.
13626 2014-05-23 Martin Jambor <mjambor@suse.cz>
13628 PR tree-optimization/53787
13629 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
13630 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
13631 analysis_done, update all uses.
13632 * ipa-prop.c: Include domwalk.h
13633 (param_analysis_info): Removed.
13634 (param_aa_status): New type.
13635 (ipa_bb_info): Likewise.
13636 (func_body_info): Likewise.
13637 (ipa_get_bb_info): New function.
13638 (aa_overwalked): Likewise.
13639 (find_dominating_aa_status): Likewise.
13640 (parm_bb_aa_status_for_bb): Likewise.
13641 (parm_preserved_before_stmt_p): Changed to use new param AA info.
13642 (load_from_unmodified_param): Accept func_body_info as a parameter
13643 instead of parms_ainfo.
13644 (parm_ref_data_preserved_p): Changed to use new param AA info.
13645 (parm_ref_data_pass_through_p): Likewise.
13646 (ipa_load_from_parm_agg_1): Likewise. Update callers.
13647 (compute_complex_assign_jump_func): Changed to use new param AA info.
13648 (compute_complex_ancestor_jump_func): Likewise.
13649 (ipa_compute_jump_functions_for_edge): Likewise.
13650 (ipa_compute_jump_functions): Removed.
13651 (ipa_compute_jump_functions_for_bb): New function.
13652 (ipa_analyze_indirect_call_uses): Likewise, moved variable
13654 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
13655 and info, moved variable declarations down.
13656 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
13658 (ipa_analyze_stmt_uses): Likewise.
13659 (ipa_analyze_params_uses): Removed.
13660 (ipa_analyze_params_uses_in_bb): New function.
13661 (ipa_analyze_controlled_uses): Likewise.
13662 (free_ipa_bb_info): Likewise.
13663 (analysis_dom_walker): New class.
13664 (ipa_analyze_node): Handle node-specific forbidden analysis,
13665 initialize and free func_body_info, use dominator walker.
13666 (ipcp_modif_dom_walker): New class.
13667 (ipcp_transform_function): Create and free func_body_info, use
13668 ipcp_modif_dom_walker, moved a lot of functionality there.
13670 2014-05-23 Marek Polacek <polacek@redhat.com>
13671 Jakub Jelinek <jakub@redhat.com>
13673 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
13674 * gcc.c (sanitize_spec_function): Likewise.
13675 * convert.c (convert_to_integer): Include "ubsan.h". Add
13676 floating-point to integer instrumentation.
13677 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
13678 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
13679 SANITIZE_NONDEFAULT.
13680 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
13681 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
13682 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
13683 * ubsan.c: Include "realmpfr.h" and "dfp.h".
13684 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
13685 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
13686 float/double/long double.
13687 (ubsan_instrument_float_cast): New function.
13688 * ubsan.h (ubsan_instrument_float_cast): Declare.
13690 2014-05-23 Jiong Wang <jiong.wang@arm.com>
13692 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
13694 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
13695 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
13696 Adjust for tailcalling through registers.
13697 * config/aarch64/aarch64.h (enum reg_class): New caller save
13699 (REG_CLASS_NAMES): Likewise.
13700 (REG_CLASS_CONTENTS): Likewise.
13701 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
13702 Allow tailcalling without decls.
13704 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13706 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13707 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
13709 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
13710 gsi, and variables v_* to v*.
13712 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
13714 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
13716 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13718 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
13719 * omp-low.c: Update accordingly.
13721 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
13722 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
13723 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
13724 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
13725 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
13726 GF_OMP_TARGET_KIND_UPDATE.
13728 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13729 Explicitly enumerate the expected region types.
13731 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
13734 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
13735 documentation; the old documentation didn't clearly state the
13736 constraints on the contents of the pointed-to storage.
13738 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13740 Fix bootstrap error on ia64
13741 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
13742 Return default value.
13744 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
13746 PR tree-optimization/54733
13747 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
13749 (find_bswap_or_nop_load): New.
13750 (find_bswap_1): Renamed to ...
13751 (find_bswap_or_nop_1): This. Also add support for memory source.
13752 (find_bswap): Renamed to ...
13753 (find_bswap_or_nop): This. Also add support for memory source and
13754 detection of bitwise operations equivalent to load in target
13756 (execute_optimize_bswap): Likewise. Also move its leading comment back
13757 in place and split statement transformation into ...
13758 (bswap_replace): This.
13760 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
13762 PR rtl-optimization/61215
13763 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
13764 simplify_gen_subreg until final substitution.
13766 2014-05-23 Alan Modra <amodra@gmail.com>
13769 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
13770 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
13771 Use "Y" constraint rather than "m".
13773 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13775 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
13777 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
13778 New function declaration.
13779 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
13780 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
13781 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
13782 (aarch64_init_builtins) : Initialize builtins
13783 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
13784 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
13785 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
13786 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
13787 and __builtins_aarch64_set_fpsr.
13788 (aarch64_atomic_assign_expand_fenv): New function.
13789 * config/aarch64/aarch64.md (set_fpcr): New pattern.
13790 (get_fpcr) : Likewise.
13791 (set_fpsr) : Likewise.
13792 (get_fpsr) : Likewise.
13793 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
13794 and UNSPECV_SET_FPSR.
13795 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13796 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
13797 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
13799 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
13801 PR rtl-optimization/60969
13802 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
13803 constraints. Set up mem cost for NO_REGS case.
13805 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
13807 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
13809 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
13811 * config/darwin.c: Include "lto-section-names.h".
13812 (LTO_SEGMENT_NAME): Don't define.
13813 * config/i386/winnt.c: Include "lto-section-names.h".
13814 * lto-streamer.c: Include "lto-section-names.h".
13815 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
13816 * lto-wrapper.c: Include "lto-section-names.h".
13817 (LTO_SECTION_NAME_PREFIX): Don't define.
13818 * lto-section-names.h: New file.
13819 * cgraphunit.c: Include "lto-section-names.h".
13821 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
13823 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
13825 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
13828 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
13830 2014-05-22 Nick Clifton <nickc@redhat.com>
13832 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
13834 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
13836 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
13837 -> (T)A transformation to integer types.
13839 2014-05-22 Teresa Johnson <tejohnson@google.com>
13841 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
13842 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
13843 (gcov_rewrite): Use gcov_nonruntime_assert.
13844 (gcov_open): Ditto.
13845 (gcov_write_words): Ditto.
13846 (gcov_write_length): Ditto.
13847 (gcov_read_words): Use gcov_nonruntime_assert, and remove
13848 gcc_assert from IN_LIBGCOV code.
13849 (gcov_read_summary): Use gcov_error to flag profile corruption.
13850 (gcov_sync): Use gcov_nonruntime_assert.
13851 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
13852 (gcov_histo_index): Use gcov_nonruntime_assert.
13853 (static void gcov_histogram_merge): Ditto.
13854 (compute_working_sets): Ditto.
13855 * gcov-io.h (gcov_nonruntime_assert): Define.
13856 (gcov_error): Define for !IN_LIBGCOV
13858 2014-05-22 Richard Biener <rguenther@suse.de>
13860 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13861 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
13862 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
13863 and deallocation site.
13864 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13865 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
13866 passing through the incoming points-to set.
13867 (handle_lhs_call): Use flags argument instead of recomputing it.
13868 (find_func_aliases_for_call): Call handle_lhs_call with proper
13871 2014-05-22 Jakub Jelinek <jakub@redhat.com>
13873 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
13874 all padding bits in REAL_VALUE_TYPE are cleared.
13876 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13878 Cleanup and improve multipass_dfa_lookahead_guard
13879 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
13880 (core2i7_first_cycle_multipass_begin,)
13881 (core2i7_first_cycle_multipass_issue,)
13882 (core2i7_first_cycle_multipass_backtrack): Update signature.
13883 * config/ia64/ia64.c
13884 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
13885 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
13886 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
13888 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
13889 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
13891 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
13893 * doc/tm.texi: Regenerate.
13895 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
13896 * haifa-sched.c (ready_try): Make signed to allow negative values.
13897 (rebug_ready_list_1): Update.
13898 (choose_ready): Simplify.
13899 (sched_extend_ready_list): Update.
13901 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13903 Remove IA64 speculation tweaking flags
13904 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
13905 speculation tuning flags.
13906 (msched-prefer-non-data-spec-insns,)
13907 (msched-prefer-non-control-spec-insns): Obsolete options.
13908 * haifa-sched.c (choose_ready): Remove handling of
13909 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
13910 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
13911 and PREFER_NON_DATA_SPEC.
13912 * sel-sched.c (process_spec_exprs): Remove handling of
13913 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
13915 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13917 Improve scheduling debug output
13918 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
13919 (advance_one_cycle): Update.
13920 (schedule_insn, queue_to_ready): Add debug printouts.
13921 (debug_ready_list_1): New static function.
13922 (debug_ready_list): Update.
13923 (max_issue): Add debug printouts.
13924 (dump_insn_stream): New static function.
13925 (schedule_block): Use it. Also better indent printouts.
13927 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13929 Fix sched_insn debug counter
13930 * haifa-sched.c (schedule_insn): Update.
13931 (struct haifa_saved_data): Add nonscheduled_insns_begin.
13932 (save_backtrack_point, restore_backtrack_point): Update.
13933 (first_nonscheduled_insn): New static function.
13934 (queue_to_ready, choose_ready): Use it.
13935 (schedule_block): Init nonscheduled_insns_begin.
13936 (sched_emit_insn): Update.
13939 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13941 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
13943 (aarch64_secondary_reload) : LikeWise.
13944 (aarch64_class_max_nregs) : Remove CORE_REGS.
13945 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
13946 (REG_CLASS_NAMES) : Likewise.
13947 (REG_CLASS_CONTENTS) : LikeWise.
13948 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
13950 2014-05-21 Guozhi Wei <carrot@google.com>
13953 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
13955 (vqdmulhq_n_s16): Likewise.
13957 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13959 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
13961 2014-05-21 Marek Polacek <polacek@redhat.com>
13964 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
13966 2014-05-21 Martin Jambor <mjambor@suse.cz>
13968 * doc/invoke.texi (Optimize Options): Document parameters
13969 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
13970 ipa-cp-array-index-hint-bonus.
13972 2014-05-21 Mark Wielaard <mjw@redhat.com>
13975 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
13976 version >= 3 or not strict DWARF.
13977 * langhooks.h (struct lang_hooks_for_types): Add
13978 enum_underlying_base_type.
13979 * langhooks.c (lhd_enum_underlying_base_type): New function.
13980 * gcc/langhooks.h (struct lang_hooks_for_types): Add
13981 enum_underlying_base_type.
13982 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
13983 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
13984 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
13986 2014-05-21 Richard Biener <rguenther@suse.de>
13988 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
13990 2014-05-21 John Marino <gnugcc@marino.st>
13992 * config.gcc (*-*-dragonfly*): New target.
13993 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
13994 * configure: Regenerate.
13995 * config/dragonfly-stdint.h: New.
13996 * config/dragonfly.h: New.
13997 * config/dragonfly.opt: New.
13998 * config/i386/dragonfly.h: New.
13999 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14001 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14003 * tree.def (VOID_CST): New.
14004 * tree-core.h (TI_VOID): New.
14005 * tree.h (void_node): New.
14006 * tree.c (tree_node_structure_for_code, tree_code_size)
14007 (iterative_hash_expr): Handle VOID_CST.
14008 (build_common_tree_nodes): Initialize void_node.
14010 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14012 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14014 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14016 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14019 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14020 flag_reorder_blocks_and_partition.
14021 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14023 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14026 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14028 (*addc_r_t): Add new insn_and_split.
14030 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14032 PR middle-end/61252
14033 * omp-low.c (handle_simd_reference): New function.
14034 (lower_rec_input_clauses): Use it. Defer adding reference
14035 initialization even for reduction without placeholder if in simd,
14036 handle it properly later on.
14038 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14040 PR tree-optimization/60899
14041 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14042 assume all static symbols will have definition wile parsing and
14043 check the do have definition later in compilation; check that
14044 variable referring symbol will be output before concluding that
14045 reference is safe; be conservative for referring local statics;
14046 be more precise about when comdat is output in other partition.
14048 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14051 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14053 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14054 (ipa_inline): Loop inline_to_all_callers until no more aliases
14057 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14059 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14060 set writeonly flag only for vars actually written to.
14062 2014-05-20 Dehao Chen <dehao@google.com>
14064 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14065 and callee count to get clone count.
14066 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14067 count in copy_body.
14069 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14071 PR rtl-optimization/61243
14072 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14074 2014-05-20 Xinliang David Li <davidxl@google.com>
14076 * cgraphunit.c (walk_polymorphic_call_targets): Add
14077 dbgcnt and fopt-info support.
14078 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14079 * ipa-devirt.c (ipa_devirt): Ditto.
14080 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14081 * ipa.c (walk_polymorphic_call_targets): Ditto.
14082 * gimple-fold.c (fold_gimple_assign): Ditto.
14083 (gimple_fold_call): Ditto.
14084 * dbgcnt.def: New counter.
14086 2014-05-20 DJ Delorie <dj@redhat.com>
14088 * config/msp430/msp430.md (split): Don't allow subregs when
14089 splitting SImode adds.
14090 (andneghi): Fix subtraction logic.
14091 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14093 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14095 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14097 * except.c (switch_to_exception_section, resolve_unique_section,
14098 get_named_text_section, default_function_rodata_section,
14099 align_variable, get_block_for_decl, default_section_type_flags):
14100 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14101 * symtab.c (symtab_add_to_same_comdat_group,
14102 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14103 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14105 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14106 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14107 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14108 (c6x_function_in_section_p): Likewise.
14109 * config/darwin.c (machopic_select_section): Likewise.
14110 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14111 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14112 * config/mep/mep.c (mep_select_section): LIkewise.
14113 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14115 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14117 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14118 EH region of calls to pure functions that can throw an exception.
14119 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14120 (copy_reference_ops_from_call): Also copy the EH region of the call if
14121 it can throw an exception.
14123 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14125 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14126 nested VEC_SELECTs that are inverses of each other.
14128 2014-05-20 Richard Biener <rguenther@suse.de>
14130 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14131 (extract_and_process_scc_for_name): not here.
14132 (cond_dom_walker::before_dom_children): Only process
14133 stmts that end the BB in interesting ways.
14134 (run_scc_vn): Mark param uses as visited.
14136 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14138 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14141 2014-05-20 Nick Clifton <nickc@redhat.com>
14143 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14144 (msp430_gimplify_va_arg_expr): New function.
14145 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14147 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14148 operand 0 in order to prevent confusion about the number of
14149 registers involved.
14151 2014-05-20 Richard Biener <rguenther@suse.de>
14153 PR tree-optimization/61221
14154 * tree-ssa-pre.c (el_to_update): Remove.
14155 (eliminate_dom_walker::before_dom_children): Handle released
14156 VDEFs by value-numbering them to the associated VUSE. Update
14157 stmt immediately for substituted call address.
14158 (eliminate): Remove delayed stmt updating code.
14159 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
14160 possibly late re-numbered vuses.
14161 (vn_reference_lookup_2): Adjust.
14162 (vn_reference_lookup_pieces): Likewise.
14163 (vn_reference_lookup): Likewise.
14165 2014-05-20 Richard Biener <rguenther@suse.de>
14167 * config.gcc: Remove need_64bit_hwint.
14168 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
14169 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
14171 * config.in: Regenerate.
14172 * configure: Likewise.
14174 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
14176 * doc/extend.texi: Create Label Attributes section,
14177 move all label attributes into it and reference it.
14179 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
14181 * arm.c (thumb1_reorg): When scanning backwards skip anything
14182 that's not a proper insn.
14184 2014-05-19 Richard Biener <rguenther@suse.de>
14186 PR tree-optimization/61221
14187 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14188 Do nothing for unreachable blocks.
14189 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
14190 Improve unreachability detection.
14192 2014-05-19 Richard Biener <rguenther@suse.de>
14194 PR tree-optimization/61209
14195 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
14197 2014-05-19 Nick Clifton <nickc@redhat.com>
14199 * except.c (init_eh): Fix computation of builtin setjmp buffer
14200 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
14202 2014-05-19 Richard Biener <rguenther@suse.de>
14204 PR tree-optimization/61184
14205 * tree-vrp.c (is_negative_overflow_infinity): Use
14206 TREE_OVERFLOW_P and do that check first.
14207 (is_positive_overflow_infinity): Likewise.
14208 (is_overflow_infinity): Likewise.
14209 (vrp_operand_equal_p): Properly treat operands with
14210 differing overflow as not equal.
14212 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
14214 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
14215 shift simplification where it was intended.
14217 2014-05-19 Christian Bruel <christian.bruel@st.com>
14220 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
14222 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
14225 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
14228 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14230 * reg-notes.def (CROSSING_JUMP): Likewise.
14231 * rtl.h (rtx_def): Update comment for jump flag.
14232 (CROSSING_JUMP_P): Define.
14233 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
14234 of a REG_CROSSING_JUMP note.
14235 * cfghooks.c (tidy_fallthru_edges): Likewise.
14236 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
14237 * emit-rtl.c (try_split): Likewise.
14238 * haifa-sched.c (sched_create_recovery_edges): Likewise.
14239 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14240 * jump.c (redirect_jump_2): Likewise.
14241 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
14242 (relax_delay_slots): Likewise.
14243 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
14244 (bbit_di): Likewise.
14245 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
14246 * config/sh/sh.md (jump_compact): Likewise.
14247 * bb-reorder.c (rotate_loop): Likewise.
14248 (pass_duplicate_computed_gotos::execute): Likewise.
14249 (add_reg_crossing_jump_notes): Rename to...
14250 (update_crossing_jump_flags): ...this.
14251 (pass_partition_blocks::execute): Update accordingly.
14253 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14255 * tree.h: Remove extraneous template <>.
14257 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14259 * ipa.c (symtab_remove_unreachable_nodes): Remove
14260 symbol from comdat group if its body was eliminated.
14261 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
14262 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
14263 (symtab_unregister_node): ... this one.
14264 (verify_symtab_base): More strict checking of comdats.
14265 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
14267 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14269 * tree-pass.h (make_pass_ipa_comdats): New pass.
14270 * timevar.def (TV_IPA_COMDATS): New timevar.
14271 * passes.def (pass_ipa_comdats): Add.
14272 * Makefile.in (OBJS): Add ipa-comdats.o
14273 * ipa-comdats.c: New file.
14275 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14277 * ipa.c (update_visibility_by_resolution_info): New function.
14278 (function_and_variable_visibility): Use it.
14280 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14282 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
14284 (FOR_EACH_DEFINED_SYMBOL): New macro.
14285 (varpool_first_static_initializer, varpool_next_static_initializer,
14286 varpool_first_defined_variable, varpool_next_defined_variable):
14288 (symtab_in_same_comdat_p): Correctly deal with inline functions.
14290 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14292 * ggc-page.c (ggc_handle_finalizers): Add comment.
14294 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14296 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
14297 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
14298 (ggc_internal_cleared_alloc): Likewise.
14299 * ggc-page.c (finalizer): New class.
14300 (vec_finalizer): Likewise.
14301 (globals::finalizers): New member.
14302 (globals::vec_finalizers): Likewise.
14303 (ggc_internal_alloc): Record the finalizer if any for the block being
14305 (ggc_handle_finalizers): New function.
14306 (ggc_collect): Call ggc_handle_finalizers.
14307 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
14309 (ggc_internal_cleared_alloc): Likewise.
14310 (finalize): New function.
14311 (need_finalization_p): Likewise.
14312 (ggc_alloc): Install the type's destructor as the finalizer if it
14313 might do something.
14314 (ggc_cleared_alloc): Likewise.
14315 (ggc_vec_alloc): Likewise.
14316 (ggc_cleared_vec_alloc): Likewise.
14318 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14320 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
14322 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14324 * alias.c (record_alias_subset): Adjust.
14325 * bitmap.c (bitmap_element_allocate): Likewise.
14326 (bitmap_gc_alloc_stat): Likewise.
14327 * cfg.c (init_flow): Likewise.
14328 (alloc_block): Likewise.
14329 (unchecked_make_edge): Likewise.
14330 * cfgloop.c (alloc_loop): Likewise.
14331 (flow_loops_find): Likewise.
14332 (rescan_loop_exit): Likewise.
14333 * cfgrtl.c (init_rtl_bb_info): Likewise.
14334 * cgraph.c (insert_new_cgraph_node_version): Likewise.
14335 (cgraph_allocate_node): Likewise.
14336 (cgraph_create_edge_1): Likewise.
14337 (cgraph_allocate_init_indirect_info): Likewise.
14338 * cgraphclones.c (cgraph_clone_edge): Likewise.
14339 * cgraphunit.c (add_asm_node): Likewise.
14340 (init_lowered_empty_function): Likewise.
14341 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
14342 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14343 (alpha_use_linkage): Likewise.
14344 * config/arc/arc.c (arc_init_machine_status): Likewise.
14345 * config/arm/arm.c (arm_init_machine_status): Likewise.
14346 * config/avr/avr.c (avr_init_machine_status): Likewise.
14347 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14348 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
14349 * config/cris/cris.c (cris_init_machine_status): Likewise.
14350 * config/darwin.c (machopic_indirection_name): Likewise.
14351 (darwin_build_constant_cfstring): Likewise.
14352 (darwin_enter_string_into_cfstring_table): Likewise.
14353 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
14354 * config/frv/frv.c (frv_init_machine_status): Likewise.
14355 * config/i386/i386.c (get_dllimport_decl): Likewise.
14356 (ix86_init_machine_status): Likewise.
14357 (assign_386_stack_local): Likewise.
14358 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
14359 (i386_pe_maybe_record_exported_symbol): Likewise.
14360 (i386_pe_record_stub): Likewise.
14361 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
14362 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
14363 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
14364 (m32c_note_pragma_address): Likewise.
14365 * config/mep/mep.c (mep_init_machine_status): Likewise.
14366 (mep_note_pragma_flag): Likewise.
14367 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
14368 (mips16_local_alias): Likewise.
14369 (mips_init_machine_status): Likewise.
14370 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
14371 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
14372 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
14373 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
14374 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
14375 * config/pa/pa.c (pa_init_machine_status): Likewise.
14376 (pa_get_deferred_plabel): Likewise.
14377 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
14378 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
14379 (rs6000_init_machine_status): Likewise.
14380 (output_toc): Likewise.
14381 * config/s390/s390.c (s390_init_machine_status): Likewise.
14382 * config/score/score.c (score_output_external): Likewise.
14383 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14384 * config/spu/spu.c (spu_init_machine_status): Likewise.
14385 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
14386 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
14387 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14388 * coverage.c (coverage_end_function): Likewise.
14389 * dbxout.c (dbxout_init): Likewise.
14390 * doc/gty.texi: Don't mention variable_size attribute.
14391 * dwarf2cfi.c (new_cfi): Adjust.
14392 (new_cfi_row): Likewise.
14393 (copy_cfi_row): Likewise.
14394 (create_cie_data): Likewise.
14395 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
14396 (new_loc_descr): Likewise.
14397 (find_AT_string_in_table): Likewise.
14398 (add_addr_table_entry): Likewise.
14399 (new_die): Likewise.
14400 (add_var_loc_to_decl): Likewise.
14401 (clone_die): Likewise.
14402 (clone_as_declaration): Likewise.
14403 (break_out_comdat_types): Likewise.
14404 (new_loc_list): Likewise.
14405 (add_loc_descr_to_each): Likewise.
14406 (add_location_or_const_value_attribute): Likewise.
14407 (add_linkage_name): Likewise.
14408 (lookup_filename): Likewise.
14409 (dwarf2out_var_location): Likewise.
14410 (new_line_info_table): Likewise.
14411 (dwarf2out_init): Likewise.
14412 (mem_loc_descriptor): Likewise.
14413 (loc_descriptor): Likewise.
14414 (add_const_value_attribute): Likewise.
14415 (tree_add_const_value_attribute): Likewise.
14416 (comp_dir_string): Likewise.
14417 (dwarf2out_vms_debug_main_pointer): Likewise.
14418 (string_cst_pool_decl): Likewise.
14419 * emit-rtl.c (set_mem_attrs): Likewise.
14420 (get_reg_attrs): Likewise.
14421 (start_sequence): Likewise.
14422 (init_emit): Likewise.
14423 (init_emit_regs): Likewise.
14424 * except.c (init_eh_for_function): Likewise.
14425 (gen_eh_region): Likewise.
14426 (gen_eh_region_catch): Likewise.
14427 (gen_eh_landing_pad): Likewise.
14428 (add_call_site): Likewise.
14429 * function.c (add_frame_space): Likewise.
14430 (insert_temp_slot_address): Likewise.
14431 (assign_stack_temp_for_type): Likewise.
14432 (get_hard_reg_initial_val): Likewise.
14433 (allocate_struct_function): Likewise.
14434 (prepare_function_start): Likewise.
14435 (types_used_by_var_decl_insert): Likewise.
14436 * gengtype.c (variable_size_p): Remove function.
14437 (enum alloc_quantity): Remove enum.
14438 (write_typed_alloc_def): Remove function.
14439 (write_typed_struct_alloc_def): Likewise.
14440 (write_typed_typedef_alloc_def): Likewise.
14441 (write_typed_alloc_defns): Likewise.
14443 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
14444 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
14445 * ggc.h (ggc_alloc): new function.
14446 (ggc_cleared_alloc): Likewise.
14447 (ggc_vec_alloc): Template on type of vector element, and remove
14448 element size argument.
14449 (ggc_cleared_vec_alloc): Likewise.
14450 * gimple.c (gimple_build_omp_for): Adjust.
14451 (gimple_copy): Likewise.
14452 * ipa-cp.c (get_replacement_map): Likewise.
14453 (find_aggregate_values_for_callers_subset): Likewise.
14454 (known_aggs_to_agg_replacement_list): Likewise.
14455 * ipa-devirt.c (get_odr_type): Likewise.
14456 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
14457 (read_agg_replacement_chain): Likewise.
14458 * loop-iv.c (get_simple_loop_desc): Likewise.
14459 * lto-cgraph.c (input_node_opt_summary): Likewise.
14460 * lto-section-in.c (lto_new_in_decl_state): Likewise.
14461 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
14462 (input_eh_region): Likewise.
14463 (input_eh_lp): Likewise.
14464 (input_cfg): Likewise.
14465 * optabs.c (set_optab_libfunc): Likewise.
14466 (init_tree_optimization_optabs): Likewise.
14467 (set_conv_libfunc): Likewise.
14468 * passes.c (do_per_function_toporder): Likewise.
14469 * rtl.h: Don't use variable_size gty attribute.
14470 * sese.c (if_region_set_false_region): Adjust.
14471 * stringpool.c (gt_pch_save_stringpool): Likewise.
14472 * target-globals.c (save_target_globals): Likewise.
14473 * toplev.c (general_init): Likewise.
14474 * trans-mem.c (record_tm_replacement): Likewise.
14475 (split_bb_make_tm_edge): Likewise.
14476 * tree-cfg.c (move_sese_region_to_fn): Likewise.
14477 * tree-data-ref.h (lambda_vector_new): Likewise.
14478 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
14479 * tree-iterator.c (tsi_link_before): Likewise.
14480 (tsi_link_after): Likewise.
14481 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
14482 * tree-ssa-loop-niter.c (record_estimate): Likewise.
14483 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
14484 * tree-ssa-operands.h: Don't use variable_size gty attribute.
14485 * tree-ssa.c (init_tree_ssa): Adjust.
14486 * tree-ssanames.c (set_range_info): Likewise.
14487 (get_ptr_info): Likewise.
14488 (duplicate_ssa_name_ptr_info): Likewise.
14489 (duplicate_ssa_name_range_info): Likewise.
14490 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
14491 (unpack_ts_fixed_cst_value_fields): Likewise.
14492 * tree.c (build_fixed): Likewise.
14493 (build_real): Likewise.
14494 (build_string): Likewise.
14495 (decl_priority_info): Likewise.
14496 (decl_debug_expr_insert): Likewise.
14497 (decl_value_expr_insert): Likewise.
14498 (decl_debug_args_insert): Likewise.
14499 (type_hash_add): Likewise.
14500 (build_omp_clause): Likewise.
14501 * ubsan.c (decl_for_type_insert): Likewise.
14502 * varasm.c (get_unnamed_section): Likewise.
14503 (get_noswitch_section): Likewise.
14504 (get_section): Likewise.
14505 (get_block_for_section): Likewise.
14506 (create_block_symbol): Likewise.
14507 (build_constant_desc): Likewise.
14508 (create_constant_pool): Likewise.
14509 (force_const_mem): Likewise.
14510 (record_tm_clone_pair): Likewise.
14511 * varpool.c (varpool_create_empty_node): Likewise.
14513 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14515 * dwarf2out.c (tree_add_const_value_attribute): Call
14516 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
14517 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
14518 instead of ggc_internal_<x>alloc_stat.
14519 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
14520 (ggc_realloc): Likewise.
14521 * ggc-none.c (ggc_internal_alloc): Likewise.
14522 (ggc_internal_cleared_alloc): Likewise.
14523 * ggc-page.c: Likewise.
14524 * ggc.h (ggc_internal_alloc_stat): Likewise.
14525 (ggc_internal_alloc): Remove macro.
14526 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
14527 (ggc_internal_cleared_alloc): Remove macro.
14528 (GGC_RESIZEVEC): Adjust.
14529 (ggc_resizevar): Remove macro.
14530 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
14531 (ggc_internal_cleared_vec_alloc_stat): Likewise.
14532 (ggc_internal_vec_cleared_alloc): Remove macro.
14533 (ggc_alloc_atomic_stat): Drop _stat suffix.
14534 (ggc_alloc_atomic): Remove macro.
14535 (ggc_alloc_cleared_atomic): Remove macro.
14536 (ggc_alloc_string_stat): Drop _stat suffix.
14537 (ggc_alloc_string): Remove macro.
14538 (ggc_alloc_rtx_def_stat): Adjust.
14539 (ggc_alloc_tree_node_stat): Likewise.
14540 (ggc_alloc_cleared_tree_node_stat): Likewise.
14541 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
14542 (ggc_alloc_cleared_simd_clone_stat): Likewise.
14543 * gimple.c (gimple_build_omp_for): Likewise.
14544 (gimple_copy): Likewise.
14545 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
14546 * toplev.c (realloc_for_line_map): Adjust.
14547 * tree-data-ref.h (lambda_vector_new): Likewise.
14548 * tree-phinodes.c (allocate_phi_node): Likewise.
14549 * tree.c (grow_tree_vec_stat): Likewise.
14550 * vec.h (va_gc::reserve): Adjust.
14552 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
14554 * config/microblaze/microblaze.c (break_handler): New Declaration.
14555 (microblaze_break_function_p,microblaze_is_break_handler): New.
14556 (compute_frame_size): Use microblaze_break_function_p.
14557 Add the test of break_handler.
14558 (microblaze_function_prologue) : Add the test of variable
14559 break_handler. Check the fnname by BREAK_HANDLER_NAME.
14560 (microblaze_function_epilogue) : Add the test of break_handler.
14561 (microblaze_globalize_label) : Add the test of break_handler.
14562 Check the name by BREAK_HANDLER_NAME.
14564 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
14566 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
14567 microblaze_is_break_handler test.
14568 (call_internal1,call_value_intern): Use microblaze_break_function_p.
14569 Use SYMBOL_REF_DECL.
14571 * config/microblaze/microblaze-protos.h
14572 (microblaze_break_function_p,microblaze_is_break_handler):
14575 * doc/extend.texi (MicroBlaze break_handler Functions): Document
14576 new MicroBlaze break_handler functions.
14578 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14580 * doc/extend.texi (Size of an asm): Move node text according
14581 to its @menu entry position.
14583 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
14585 PR tree-optimization/61140
14586 PR tree-optimization/61150
14587 PR tree-optimization/61197
14588 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
14590 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14592 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
14594 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
14596 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
14597 __SIZEOF_INT128__ is defined.
14599 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14601 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
14602 (rs6000_delegitimize_address): Use it.
14604 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14606 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
14607 inplace argument. Store the new address in the original MEM when true.
14608 * emit-rtl.c (change_address_1): Likewise.
14609 (adjust_address_1, adjust_automodify_address_1, offset_address):
14610 Update accordingly.
14611 * rtl.h (plus_constant): Add an inplace argument.
14612 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
14613 when true. Avoid generating (plus X (const_int 0)).
14614 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
14615 in-place. Pass true to plus_constant.
14616 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
14618 2014-05-16 Dehao Chen <dehao@google.com>
14620 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
14622 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14625 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
14627 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
14629 2014-05-16 Dehao Chen <dehao@google.com>
14631 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
14632 optimize_function_for_size_p.
14633 * regs.h (REG_FREQ_FROM_BB): Likewise.
14635 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14638 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
14639 negt_reg_operand cases.
14640 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
14642 * config/sh/predicates.md (cbranch_treg_value): Simplify.
14644 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14646 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
14649 2014-05-16 David Malcolm <dmalcolm@redhat.com>
14652 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14654 * tree-cfg.c (dump_function_to_file): Dump the return type of
14655 functions, in a line to itself before the function body, mimicking
14656 the layout of a C function.
14658 2014-05-16 Dehao Chen <dehao@google.com>
14660 * cfghooks.c (make_forwarder_block): Use direct computation to
14661 get fall-through edge's count and frequency.
14663 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
14665 * config/arc/arc.c (arc_init): Fix typo in error message.
14666 * config/i386/i386.c (ix86_expand_builtin): Likewise.
14667 (split_stack_prologue_scratch_regno): Likewise.
14668 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
14669 word from error message.
14671 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14673 * ira-costs.c: Fix typo in comment.
14675 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
14677 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
14679 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
14681 * varpool.c (dump_varpool_node): Dump write-only flag.
14682 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
14684 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
14685 write-only variables.
14686 * ipa.c (process_references): New function.
14687 (set_readonly_bit): New function.
14688 (set_writeonly_bit): New function.
14689 (clear_addressable_bit): New function.
14690 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
14691 fix handling of aliases.
14692 * cgraph.h (struct varpool_node): Add writeonly flag.
14694 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
14696 PR rtl-optimization/60969
14697 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
14698 Calculate costs for this case.
14700 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
14702 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
14703 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
14705 2014-05-16 Richard Biener <rguenther@suse.de>
14707 PR tree-optimization/61194
14708 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
14709 bool patterns ending in a COND_EXPR.
14711 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14713 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
14715 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14717 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
14718 where we were unable to cost an RTX.
14720 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14722 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
14725 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14726 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14728 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
14730 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14731 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14733 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
14734 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
14736 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14737 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14739 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
14742 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14743 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14745 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
14748 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14749 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14751 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
14752 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
14754 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14755 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14757 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
14758 rotates and shifts.
14760 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14761 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14763 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
14764 ZERO_EXTEND and SIGN_EXTEND better.
14766 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14767 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14769 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
14770 logical operations.
14772 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14773 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14775 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
14776 costs when costing loads and stores to memory.
14778 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14779 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
14781 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
14784 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14786 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
14788 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14789 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14791 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
14793 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
14795 (aarch64_rtx_mult_cost): New.
14796 (aarch64_rtx_costs): Use it, refactor as appropriate.
14798 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14799 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14801 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
14802 emit instructions, return number of instructions which would
14804 (aarch64_add_constant): Update call to aarch64_build_constant.
14805 (aarch64_output_mi_thunk): Likewise.
14806 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
14809 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14811 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
14812 (TARGET_RTX_COSTS): Call it.
14814 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14816 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
14817 (cortexa57_vector_cost): Likewise.
14818 (cortexa57_tunings): Use them.
14820 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14822 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
14823 (cpu_addrcost_table): Use it.
14824 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
14825 (aarch64_address_cost): Rewrite using aarch64_classify_address,
14828 2014-05-16 Richard Biener <rguenther@suse.de>
14830 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
14831 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
14832 (visit_phi): Ignore edges marked as not executable.
14833 (class cond_dom_walker): New.
14834 (cond_dom_walker::before_dom_children): Value-number
14835 control statements and mark successor edges as not
14836 executable if possible.
14837 (run_scc_vn): First walk all control statements in
14838 dominator order, marking edges as not executable.
14839 * tree-inline.c (copy_edges_for_bb): Be not confused
14840 about random edge flags.
14842 2014-05-16 Richard Biener <rguenther@suse.de>
14844 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
14846 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
14849 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
14850 (__TM_simple_begin): Use it.
14851 (__TM_begin): Likewise.
14853 2014-05-15 Martin Jambor <mjambor@suse.cz>
14856 * ipa-prop.c (update_indirect_edges_after_inlining): Check
14857 type_preserved flag when the indirect edge is polymorphic.
14859 2014-05-15 Martin Jambor <mjambor@suse.cz>
14861 PR tree-optimization/61090
14862 * tree-sra.c (sra_modify_expr): Pass the current gsi to
14863 build_ref_for_model.
14865 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14867 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
14868 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
14870 2014-05-15 Jakub Jelinek <jakub@redhat.com>
14872 PR tree-optimization/61158
14873 * fold-const.c (fold_binary_loc): If X is zero-extended and
14874 shiftc >= prec, make sure zerobits is all ones instead of
14875 invoking undefined behavior.
14877 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14879 * regcprop.h: New file.
14880 * regcprop.c (skip_debug_insn_p): New decl.
14881 (replace_oldest_value_reg): Check skip_debug_insn_p.
14882 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
14883 * shrink-wrap.c: Include regcprop.h.
14884 (prepare_shrink_wrap): Call
14885 copyprop_hardreg_forward_bb_without_debug_insn.
14887 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14889 * shrink-wrap.h: Update comment.
14890 * shrink-wrap.c: Update comment.
14891 (next_block_for_reg): Rename to live_edge_for_reg.
14892 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
14893 (move_insn_for_shrink_wrap): Split live_edge.
14894 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
14896 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
14898 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
14900 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
14901 * config/sparc/sparc.md (fptype_ut699): New attribute.
14902 (in_branch_delay): Return false if -mfix-ut699 is specified and
14903 fptype_ut699 is set to single.
14904 (truncdfsf2): Add fptype_ut699 attribute.
14905 (fix_truncdfsi2): Likewise.
14906 (floatsisf2): Change fptype attribute.
14907 (fix_truncsfsi2): Likewise.
14908 (negtf2_notv9): Delete.
14909 (negtf2_v9): Likewise.
14910 (negtf2_hq): New instruction.
14911 (negtf2): New instruction and splitter.
14912 (negdf2_notv9): Rewrite.
14913 (abstf2_notv9): Delete.
14914 (abstf2_hq_v9): Likewise.
14915 (abstf2_v9): Likewise.
14916 (abstf2_hq): New instruction.
14917 (abstf2): New instruction and splitter.
14918 (absdf2_notv9): Rewrite.
14920 2014-05-14 Cary Coutant <ccoutant@google.com>
14923 * opts.c (common_handle_option): Don't special-case "-g".
14924 (set_debug_level): Default to at least level 2 with "-g".
14926 2014-05-14 DJ Delorie <dj@redhat.com>
14928 * config/msp430/msp430.c (msp430_builtin): Add
14929 MSP430_BUILTIN_DELAY_CYCLES.
14930 (msp430_init_builtins): Register void __delay_cycles(long long).
14931 (msp430_builtin_decl): Add it.
14932 (cg_magic_constant): New.
14933 (msp430_expand_delay_cycles): New.
14934 (msp430_expand_builtin): Call it.
14935 (msp430_print_operand_raw): Change integer printing from "int" to
14937 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
14938 (delay_cycles_start): New.
14939 (delay_cycles_end): New.
14940 (delay_cycles_32): New.
14941 (delay_cycles_32x): New.
14942 (delay_cycles_16): New.
14943 (delay_cycles_16x): New.
14944 (delay_cycles_2): New.
14945 (delay_cycles_1): New.
14946 * doc/extend.texi: Document __delay_cycles().
14948 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
14950 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
14951 length attribute computation.
14953 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
14956 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
14958 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
14961 * config/sparc/sparc.md: Fix types of low and high in DI constant
14962 splitter. Use gen_int_mode in some other splitters.
14964 2014-05-14 Martin Jambor <mjambor@suse.cz>
14967 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
14969 2014-05-14 James Norris <jnorris@codesourcery.com>
14971 * omp-low.c (expand_parallel_call): Remove shadow variable.
14972 (expand_omp_taskreg): Likewise.
14974 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
14976 * common/config/i386/i386-common.c
14977 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
14978 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
14979 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
14980 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
14981 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
14982 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
14983 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
14984 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
14985 xsavecintrin.h, xsavesintrin.h.
14986 (x86_64-*-*): Ditto.
14987 * config/i386/clflushoptintrin.h: New.
14988 * config/i386/xsavecintrin.h: Ditto.
14989 * config/i386/xsavesintrin.h: Ditto.
14990 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
14991 (bit_XSAVES): Ditto.
14992 (bit_XSAVES): Ditto.
14993 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
14994 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
14996 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14997 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
14998 OPTION_MASK_ISA_XSAVES.
14999 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15000 -mxsavec, -mxsaves.
15001 (PTA_CLFLUSHOPT) Define.
15002 (PTA_XSAVEC): Ditto.
15003 (PTA_XSAVES): Ditto.
15004 (ix86_option_override_internal): Handle new options.
15005 (ix86_valid_target_attribute_inner_p): Ditto.
15006 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15007 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15008 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15009 (bdesc_special_args): Add __builtin_ia32_xsaves,
15010 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15011 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15012 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15013 (ix86_expand_builtin): Handle new builtins.
15014 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15015 (TARGET_CLFLUSHOPT_P): Ditto.
15016 (TARGET_XSAVEC): Ditto.
15017 (TARGET_XSAVEC_P): Ditto.
15018 (TARGET_XSAVES): Ditto.
15019 (TARGET_XSAVES_P): Ditto.
15020 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15021 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15022 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15024 (ANY_XRSTOR64): Ditto.
15026 (xrstor): Change into <xrstor>.
15027 (xrstor_rex64): Change into <xrstor>_rex64.
15028 (xrstor64): Change into <xrstor>64
15030 * config/i386/i386.opt (mclflushopt): New.
15033 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15035 * doc/invoke.texi: Document new options.
15037 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15039 PR rtl-optimization/60866
15040 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15041 Default it to -1. Pass it down to init_simplejump_data.
15042 (init_simplejump_data): New parameter old_seqno. Pass it down
15043 to get_seqno_for_a_jump.
15044 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15045 initializing new jump seqno as a last resort. Add comment.
15046 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15047 jump and pass it down to sel_init_new_insn.
15048 (sel_redirect_edge_and_branch_force): Likewise.
15050 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15052 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15053 shifted values to avoid build warning.
15055 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15057 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15058 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15059 (cfg_layout_merge_blocks): Likewise.
15060 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15062 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15064 PR rtl-optimization/60901
15065 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15066 bb predecessor belongs to the same scheduling region. Adjust comment.
15068 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15070 * doc/sourcebuild.texi: (dfp_hw): Document.
15071 (p8vector_hw): Likewise.
15072 (powerpc_eabi_ok): Likewise.
15073 (powerpc_elfv2): Likewise.
15074 (powerpc_htm_ok): Likewise.
15075 (ppc_recip_hw): Likewise.
15076 (vsx_hw): Likewise.
15078 2014-05-13 Cary Coutant <ccoutant@google.com>
15080 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15082 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15084 * gengtype-parse.c (require3): Eliminate in favor of...
15086 (require_template_declaration): Update to support optional single *
15089 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15090 (create_user_defined_type): Handle a single level of explicit
15091 pointerness within template arguments.
15092 (struct write_types_data): Add field "kind".
15093 (filter_type_name): Handle "*" character.
15094 (write_user_func_for_structure_ptr): Require a write_types_data
15095 rather than just a prefix string, so that we can look up the kind
15096 of the wtd and use it as an index into wrote_user_func_for_ptr,
15097 ensuring that such functions are written at most once. Support
15098 subclasses by invoking the marking function of the ultimate base class.
15099 (write_user_func_for_structure_body): Require a write_types_data
15100 rather than just a prefix string, so that we can pass this to
15101 write_user_func_for_structure_ptr.
15102 (write_func_for_structure): Likewise.
15103 (ggc_wtd): Add initializer of new "kind" field.
15104 (pch_wtd): Likewise.
15106 * gengtype.h (enum write_types_kinds): New.
15107 (struct type): Add field wrote_user_func_for_ptr to the "s"
15110 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15112 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15113 instead of const_binop.
15114 (fold_binary_loc): Likewise.
15116 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15118 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15119 calculation to match get_ref_base_and_extent.
15121 2014-05-13 Catherine Moore <clm@codesourcery.com>
15122 Sandra Loosemore <sandra@codesourcery.com>
15124 * configure.ac: Fix assembly for explicit JALR relocation check.
15125 * configure: Regenerate.
15127 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15129 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15130 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15131 Remove associated type declarations and initialisations.
15132 (arm_expand_neon_builtin): Likewise.
15133 (neon_emit_pair_result_insn): Delete.
15134 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15135 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15136 (neon_vzip<mode>): Likewise.
15137 (neon_vuzp<mode>): Likewise.
15139 2014-05-13 Richard Biener <rguenther@suse.de>
15142 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15143 it needs revisiting whether the call still may be tail-called.
15145 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15147 * rtl.def (SYMBOL_REF): Remove middle "0" field.
15148 * rtl.h (block_symbol): Reduce number of fields to 2.
15149 (rtx_def): Add u2.symbol_ref_flags.
15150 (SYMBOL_REF_FLAGS): Use it.
15151 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
15152 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
15153 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
15154 Lower index of SYMBOL_REF_DATA.
15155 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
15156 Print SYMBOL_REF_FLAGS at the same time.
15157 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
15159 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15161 * rtl.def (VAR_LOCATION): Remove "i" field.
15162 * rtl.h (rtx_def): Add u2.var_location_status.
15163 (PAT_VAR_LOCATION_STATUS): Use it.
15164 (gen_rtx_VAR_LOCATION): Declare.
15165 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
15166 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
15167 * var-tracking.c (emit_note_insn_var_location): Remove casts.
15169 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15171 * rtl.def (scratch): Fix outdated comment and remove "0" field.
15172 * gengtype.c (adjust_field_rtx_def): Update accordingly.
15174 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15176 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
15177 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
15178 * rtl.h (rtx_def): Add insn_uid to u2 field.
15179 (RTX_FLAG_CHECK8): Delete in favor of...
15180 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
15181 (INSN_DELETED_P): Update accordingly.
15182 (INSN_UID): Use u2.insn_uid.
15183 (INSN_CHAIN_CODE_P): Define.
15184 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
15185 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
15186 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
15187 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
15188 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
15189 indices accordingly.
15190 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
15191 Update indices for insn-chain rtxes.
15192 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
15193 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
15194 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
15195 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
15196 * combine.c (try_combine): Likewise.
15197 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15199 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15201 * rtl.def (REG): Remove middle field.
15202 * rtl.h (rtx_def): Add orignal_regno to u2.
15203 (ORIGINAL_REGNO): Use it instead of field 1.
15204 (REG_ATTRS): Lower field index accordingly.
15205 * gengtype.c (adjust_field_rtx_def): Remove handling of
15206 ORIGINAL_REGNO. Move REG_ATTRS index down.
15207 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
15208 code that prints the REGNO.
15210 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15212 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
15215 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15217 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
15219 2014-05-13 Bin Cheng <bin.cheng@arm.com>
15221 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
15222 (alloc_iv): Lower base expressions containing ADDR_EXPR.
15224 2014-05-13 Ian Bolton <ian.bolton@arm.com>
15226 * config/aarch64/aarch64-protos.h
15227 (aarch64_hard_regno_caller_save_mode): New prototype.
15228 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
15230 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
15232 2014-05-13 Christian Bruel <christian.bruel@st.com>
15234 * target.def (mode_switching): New hook vector.
15235 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
15236 (mode_exit, modepriority_to_mode): Likewise.
15237 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
15238 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15239 * target.h: Include tm.h and hard-reg-set.h.
15240 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
15241 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
15242 * doc/tm.texi Regenerate.
15243 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15244 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15245 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
15246 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
15247 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15248 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15249 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
15250 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
15251 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
15252 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
15253 (ix86_emit_mode_set): Hookify.
15254 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
15256 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15257 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
15258 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
15259 (epiphany_mode_priority_to_mode): Remove declaration.
15260 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
15261 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
15262 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
15264 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
15265 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
15266 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
15268 2014-05-13 Jakub Jelinek <jakub@redhat.com>
15271 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
15272 is const0_rtx, return immediately. Don't test count == 0 when
15275 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15277 * Makefile.in: add shrink-wrap.o.
15278 * config/i386/i386.c: include "shrink-wrap.h"
15279 * function.c: Likewise.
15280 (requires_stack_frame_p, next_block_for_reg,
15281 move_insn_for_shrink_wrap, prepare_shrink_wrap,
15282 dup_block_and_redirect): Move to shrink-wrap.c
15283 (thread_prologue_and_epilogue_insns): Extract three code segments
15284 as functions in shrink-wrap.c
15285 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
15287 * shrink-wrap.c: New file.
15288 * shrink-wrap.h: New file.
15290 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15292 * doc/extend.texi: Reflect current numbers of pragmas. Remove
15293 reference to Solaris.
15295 2014-05-12 Mike Stump <mikestump@comcast.net>
15298 * genattrtab.c (filename): Add.
15299 (convert_set_attr_alternative): Improve error message.
15300 (check_defs): Restore read_md_filename for error messages.
15301 (gen_insn): Save filename.
15303 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
15305 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
15306 -fno-local-ivars and -fivar-visibility.
15307 * c-family/c.opt: Make -Wshadow also implicitly enable
15310 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15312 * doc/tm.texi: Remove reference to deleted macro.
15313 * doc/tm.texi.in: Likewise.
15315 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15318 * config/avr/avr.c (avr_out_store_psi): Use correct constant
15321 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
15324 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
15325 * config/arm/aout.h (License): Same.
15326 * config/arm/bpabi.h (License): Same.
15327 * config/arm/elf.h (License): Same.
15328 * config/arm/linux-elf.h (License): Same.
15329 * config/arm/linux-gas.h (License): Same.
15330 * config/arm/netbsd-elf.h (License): Same.
15331 * config/arm/uclinux-eabi.h (License): Same.
15332 * config/arm/uclinux-elf.h (License): Same.
15333 * config/arm/vxworks.h (License): Same.
15335 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15337 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
15338 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
15339 number of operands to 3.
15340 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
15341 * tree-nested.c (convert_nonlocal_omp_clauses,
15342 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
15343 * gimplify.c (gimplify_scan_omp_clauses): Handle
15344 OMP_CLAUSE_LINEAR_STMT.
15345 * omp-low.c (lower_rec_input_clauses): Fix typo.
15346 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
15347 cast between Fortran boolean_type_node and C _Bool if
15350 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
15352 PR tree-optimization/61136
15353 * wide-int.h (multiple_of_p): Define a version that doesn't return
15355 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
15356 integer_zerop/const_binop pair.
15357 (multiple_of_p): Likewise, converting both operands to widest_int
15360 2014-05-09 Teresa Johnson <tejohnson@google.com>
15362 * cgraphunit.c (analyze_functions): Use correct dump file.
15364 2014-05-09 Florian Weimer <fweimer@redhat.com>
15366 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
15368 (stack_protect_return_slot_p): New function.
15369 (expand_used_vars): Call stack_protect_decl_p and
15370 stack_protect_return_slot_p for -fstack-protector-strong.
15372 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
15373 Andrew Haley <aph@redhat.com>
15374 Richard Sandiford <rdsandiford@googlemail.com>
15376 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
15379 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
15381 PR middle-end/61111
15382 * fold-const.c (fold_binary_loc): Changed width of mask.
15384 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15386 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
15387 unsigned int initializers for regno_in, regno_out.
15389 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15392 * config/avr/avr.md (cc): Add new attribute set_vzn.
15393 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
15394 Set cc insn attribute to set_vzn instead of set_zn for alternatives
15395 with INC, DEC or NEG.
15396 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
15397 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
15398 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
15400 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15403 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15405 * wide-int.cc (UTItype): Define.
15406 (UDWtype): Define for appropriate W_TYPE_SIZE.
15408 2014-05-09 Richard Biener <rguenther@suse.de>
15410 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
15411 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
15412 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
15413 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
15414 ssa_propagate): Adjust.
15416 2014-05-08 Jeff Law <law@redhat.com>
15418 PR tree-optimization/61009
15419 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
15420 tri-state rather than a boolean. When a block is too big to
15421 thread through, inform caller via negative return value.
15422 (thread_across_edge): If a block was too big for normal threading,
15423 then it's too big for a joiner too, so remove temporary equivalences
15424 and return immediately.
15426 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15427 Matthias Klose <doko@ubuntu.com>
15430 * optc-gen.awk: Fix option handling for -Wunused-parameter.
15432 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15435 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
15437 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15440 * config/alpha/alpha.c: Include gimple-iterator.h.
15441 (alpha_gimple_fold_builtin): New function. Move
15442 ALPHA_BUILTIN_UMULH folding from ...
15443 (alpha_fold_builtin): ... here.
15444 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
15446 2014-05-08 Wei Mi <wmi@google.com>
15449 * config/i386/i386.c (ix86_compute_frame_layout): Update
15450 preferred_stack_boundary for call, expanded from tls descriptor.
15451 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
15452 to depend on SP register.
15453 (*tls_local_dynamic_base_32_gnu): Ditto.
15454 (*tls_local_dynamic_32_once): Ditto.
15455 (tls_global_dynamic_64_<mode>): Set
15456 ix86_tls_descriptor_calls_expanded_in_cfun.
15457 (tls_local_dynamic_base_64_<mode>): Ditto.
15458 (tls_global_dynamic_32): Set
15459 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
15460 to depend on SP register.
15461 (tls_local_dynamic_base_32): Ditto.
15463 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15465 * config/arm/arm_neon.h: Update comment.
15466 * config/arm/neon-docgen.ml: Delete.
15467 * config/arm/neon-gen.ml: Delete.
15468 * doc/arm-neon-intrinsics.texi: Update comment.
15470 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15472 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
15474 (vand, vorr, veor, vorn, vbic): Remove.
15475 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
15477 (neon_vsub_unspec): Likewise.
15478 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
15480 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15482 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
15483 (vadd_s16): Likewise.
15484 (vadd_s32): Likewise.
15485 (vadd_f32): Likewise.
15486 (vadd_u8): Likewise.
15487 (vadd_u16): Likewise.
15488 (vadd_u32): Likewise.
15489 (vadd_s64): Likewise.
15490 (vadd_u64): Likewise.
15491 (vaddq_s8): Likewise.
15492 (vaddq_s16): Likewise.
15493 (vaddq_s32): Likewise.
15494 (vaddq_s64): Likewise.
15495 (vaddq_f32): Likewise.
15496 (vaddq_u8): Likewise.
15497 (vaddq_u16): Likewise.
15498 (vaddq_u32): Likewise.
15499 (vaddq_u64): Likewise.
15500 (vmul_s8): Likewise.
15501 (vmul_s16): Likewise.
15502 (vmul_s32): Likewise.
15503 (vmul_f32): Likewise.
15504 (vmul_u8): Likewise.
15505 (vmul_u16): Likewise.
15506 (vmul_u32): Likewise.
15507 (vmul_p8): Likewise.
15508 (vmulq_s8): Likewise.
15509 (vmulq_s16): Likewise.
15510 (vmulq_s32): Likewise.
15511 (vmulq_f32): Likewise.
15512 (vmulq_u8): Likewise.
15513 (vmulq_u16): Likewise.
15514 (vmulq_u32): Likewise.
15515 (vsub_s8): Likewise.
15516 (vsub_s16): Likewise.
15517 (vsub_s32): Likewise.
15518 (vsub_f32): Likewise.
15519 (vsub_u8): Likewise.
15520 (vsub_u16): Likewise.
15521 (vsub_u32): Likewise.
15522 (vsub_s64): Likewise.
15523 (vsub_u64): Likewise.
15524 (vsubq_s8): Likewise.
15525 (vsubq_s16): Likewise.
15526 (vsubq_s32): Likewise.
15527 (vsubq_s64): Likewise.
15528 (vsubq_f32): Likewise.
15529 (vsubq_u8): Likewise.
15530 (vsubq_u16): Likewise.
15531 (vsubq_u32): Likewise.
15532 (vsubq_u64): Likewise.
15533 (vand_s8): Likewise.
15534 (vand_s16): Likewise.
15535 (vand_s32): Likewise.
15536 (vand_u8): Likewise.
15537 (vand_u16): Likewise.
15538 (vand_u32): Likewise.
15539 (vand_s64): Likewise.
15540 (vand_u64): Likewise.
15541 (vandq_s8): Likewise.
15542 (vandq_s16): Likewise.
15543 (vandq_s32): Likewise.
15544 (vandq_s64): Likewise.
15545 (vandq_u8): Likewise.
15546 (vandq_u16): Likewise.
15547 (vandq_u32): Likewise.
15548 (vandq_u64): Likewise.
15549 (vorr_s8): Likewise.
15550 (vorr_s16): Likewise.
15551 (vorr_s32): Likewise.
15552 (vorr_u8): Likewise.
15553 (vorr_u16): Likewise.
15554 (vorr_u32): Likewise.
15555 (vorr_s64): Likewise.
15556 (vorr_u64): Likewise.
15557 (vorrq_s8): Likewise.
15558 (vorrq_s16): Likewise.
15559 (vorrq_s32): Likewise.
15560 (vorrq_s64): Likewise.
15561 (vorrq_u8): Likewise.
15562 (vorrq_u16): Likewise.
15563 (vorrq_u32): Likewise.
15564 (vorrq_u64): Likewise.
15565 (veor_s8): Likewise.
15566 (veor_s16): Likewise.
15567 (veor_s32): Likewise.
15568 (veor_u8): Likewise.
15569 (veor_u16): Likewise.
15570 (veor_u32): Likewise.
15571 (veor_s64): Likewise.
15572 (veor_u64): Likewise.
15573 (veorq_s8): Likewise.
15574 (veorq_s16): Likewise.
15575 (veorq_s32): Likewise.
15576 (veorq_s64): Likewise.
15577 (veorq_u8): Likewise.
15578 (veorq_u16): Likewise.
15579 (veorq_u32): Likewise.
15580 (veorq_u64): Likewise.
15581 (vbic_s8): Likewise.
15582 (vbic_s16): Likewise.
15583 (vbic_s32): Likewise.
15584 (vbic_u8): Likewise.
15585 (vbic_u16): Likewise.
15586 (vbic_u32): Likewise.
15587 (vbic_s64): Likewise.
15588 (vbic_u64): Likewise.
15589 (vbicq_s8): Likewise.
15590 (vbicq_s16): Likewise.
15591 (vbicq_s32): Likewise.
15592 (vbicq_s64): Likewise.
15593 (vbicq_u8): Likewise.
15594 (vbicq_u16): Likewise.
15595 (vbicq_u32): Likewise.
15596 (vbicq_u64): Likewise.
15597 (vorn_s8): Likewise.
15598 (vorn_s16): Likewise.
15599 (vorn_s32): Likewise.
15600 (vorn_u8): Likewise.
15601 (vorn_u16): Likewise.
15602 (vorn_u32): Likewise.
15603 (vorn_s64): Likewise.
15604 (vorn_u64): Likewise.
15605 (vornq_s8): Likewise.
15606 (vornq_s16): Likewise.
15607 (vornq_s32): Likewise.
15608 (vornq_s64): Likewise.
15609 (vornq_u8): Likewise.
15610 (vornq_u16): Likewise.
15611 (vornq_u32): Likewise.
15612 (vornq_u64): Likewise.
15614 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15616 * wide-int.cc (UTItype): Define.
15617 (UDWtype): Define for appropriate W_TYPE_SIZE.
15619 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
15621 PR tree-optimization/59100
15622 * tree-ssa-phiopt.c: Include tree-inline.h.
15623 (neutral_element_p, absorbing_element_p): New functions.
15624 (value_replacement): Handle conditional binary operations with a
15625 neutral or absorbing element.
15627 2014-05-08 Richard Biener <rguenther@suse.de>
15629 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
15630 folding the expression.
15631 (valueize_expr): Remove.
15632 (visit_reference_op_load): Do not valueize the result of
15634 (simplify_binary_expression): Likewise.
15635 (simplify_unary_expression): Likewise.
15637 2014-05-08 Richard Biener <rguenther@suse.de>
15639 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
15640 looking at TYPE_ARG_TYPES.
15642 2014-05-08 Richard Biener <rguenther@suse.de>
15644 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15645 pointer propagation special-case.
15647 2014-05-08 Bin Cheng <bin.cheng@arm.com>
15649 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
15650 core part of address expressions.
15652 2014-05-08 Alan Modra <amodra@gmail.com>
15655 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
15656 loads and stores when -mno-strict-align at any alignment.
15657 (expand_block_clear): Similarly. Also correct calculation of
15660 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15662 PR middle-end/39246
15663 * tree-complex.c (expand_complex_move): Keep line info when expanding
15665 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
15666 of complex expression. Use new argument to display correct location
15667 for values coming from phi statement.
15668 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
15669 (warn_uninitialized_phi): Pass location of phi argument to
15671 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
15672 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
15674 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
15676 * config/rs6000/predicates.md (indexed_address_mem): New.
15677 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
15678 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
15679 fpstore_ux, fpstore_u.
15680 (sign_extend, indexed, update): New.
15681 (cell_micro): Adjust.
15682 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
15683 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
15684 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
15685 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
15686 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15687 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
15688 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
15689 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
15690 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
15691 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
15692 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
15693 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
15694 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
15695 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
15696 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
15698 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
15699 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
15700 *vsx_extract_<mode>_store): Adjust.
15701 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
15702 is_cracked_insn, insn_must_be_first_in_group,
15703 insn_must_be_last_in_group): Adjust.
15705 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
15707 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
15708 ppc440-fpstore): Adjust.
15709 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
15710 ppc476-fpstore): Adjust.
15711 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
15712 ppc601-fpstore): Adjust.
15713 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
15715 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
15717 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
15718 ppc7450-fpstore): Adjust.
15719 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
15720 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
15721 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
15723 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
15724 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
15725 cell-fpstore, cell-fpstore-update): Adjust.
15726 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
15727 ppce300c3_store, ppce300c3_fpstore): Adjust.
15728 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
15729 e500mc_fpstore): Adjust.
15730 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
15731 e500mc64_store, e500mc64_fpstore): Adjust.
15732 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
15733 e5500_fpstore): Adjust.
15734 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
15735 e6500_fpstore): Adjust.
15736 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
15738 * config/rs6000/power4.md (power4-load, power4-load-ext,
15739 power4-load-ext-update, power4-load-ext-update-indexed,
15740 power4-load-update-indexed, power4-load-update, power4-fpload,
15741 power4-fpload-update, power4-store, power4-store-update,
15742 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
15744 * config/rs6000/power5.md (power5-load, power5-load-ext,
15745 power5-load-ext-update, power5-load-ext-update-indexed,
15746 power5-load-update-indexed, power5-load-update, power5-fpload,
15747 power5-fpload-update, power5-store, power5-store-update,
15748 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
15750 * config/rs6000/power6.md (power6-load, power6-load-ext,
15751 power6-load-update, power6-load-update-indexed,
15752 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
15753 power6-fpload-update, power6-store, power6-store-update,
15754 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
15756 * config/rs6000/power7.md (power7-load, power7-load-ext,
15757 power7-load-update, power7-load-update-indexed,
15758 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
15759 power7-fpload-update, power7-store, power7-store-update,
15760 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
15762 * config/rs6000/power8.md (power8-load, power8-load-update,
15763 power8-load-ext, power8-load-ext-update, power8-fpload,
15764 power8-fpload-update, power8-store, power8-store-update-indexed,
15765 power8-fpstore, power8-fpstore-update): Adjust.
15766 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
15768 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
15769 titan_lsu_store, titan_lsu_fpstore): Adjust.
15770 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
15772 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
15775 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
15776 unrolled byte insns. Emit address increments after move insns.
15778 2014-05-07 David Malcolm <dmalcolm@redhat.com>
15780 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
15781 const_gimple, rather than a gimple.
15782 (gimple_call_builtin_p): Likewise, for the three variants.
15784 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
15785 (gimple_call_builtin_p): Likewise, for the three variants.
15787 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15789 PR tree-optimization/61095
15790 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
15792 2014-05-07 Richard Biener <rguenther@suse.de>
15794 PR tree-optimization/61034
15795 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
15796 (maybe_skip_until): Use translate to take into account
15797 lattices when trying to do disambiguations.
15798 (get_continuation_for_phi_1): Likewise.
15799 (get_continuation_for_phi): Adjust for added translate arguments.
15800 (walk_non_aliased_vuses): Likewise.
15801 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
15802 (walk_non_aliased_vuses): Likewise.
15803 (call_may_clobber_ref_p_1): Declare.
15804 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
15805 calls. Stop early if we are only supposed to disambiguate.
15806 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
15808 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
15810 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
15811 Emit an error when the function has arguments.
15813 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
15815 * cfgloop.h (unswitch_loops): Remove.
15816 * doc/passes.texi: Remove references to loop-unswitch.c
15817 * timevar.def (TV_LOOP_UNSWITCH): Remove.
15819 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
15821 * tree-vect-data-refs.c (vect_grouped_load_supported): New
15822 check for loads group of length 3.
15823 (vect_permute_load_chain): New permutations for loads group of
15825 * tree-vect-stmts.c (vect_model_load_cost): Change cost
15826 of vec_perm_shuffle for the new permutations.
15828 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
15830 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
15831 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
15832 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
15833 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
15834 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
15835 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
15836 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
15837 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
15839 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
15841 * loop-unswitch.c: Delete.
15843 2014-05-07 Richard Biener <rguenther@suse.de>
15845 * config.gcc: Always set need_64bit_hwint to yes.
15847 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
15849 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
15850 of using optimize_size.
15852 2014-05-06 Mike Stump <mikestump@comcast.net>
15854 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
15856 2014-05-06 Joseph Myers <joseph@codesourcery.com>
15858 * config/i386/sse.md (*mov<mode>_internal)
15859 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
15860 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
15861 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
15862 (*<code><mode>3, *andnot<mode>3<mask_name>)
15863 (<mask_codefor><code><mode>3<mask_name>): Only consider
15864 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
15866 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
15869 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
15871 * lra-constraints.c (valid_address_p): Move earlier in file.
15872 Add a constraint argument to the address_info version.
15873 (satisfies_memory_constraint_p): New function.
15874 (satisfies_address_constraint_p): Likewise.
15875 (process_alt_operands, curr_insn_transform): Use them.
15876 (process_address): Pass the constraint to valid_address_p when
15877 checking address operands.
15879 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
15881 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
15882 to their respective blocks. Fix inadvertent use of "node".
15884 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
15886 * emit-rtl.c (init_derived_machine_modes): New functionm, split
15888 (init_emit_once): ...here.
15889 * rtl.h (init_derived_machine_modes): Declare.
15890 * toplev.c (do_compile): Call it even if no_backend.
15892 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
15893 Mike Stump <mikestump@comcast.net>
15894 Richard Sandiford <rdsandiford@googlemail.com>
15895 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15897 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
15898 (rtx_equal_for_memref_p): Update comment.
15899 (adjust_offset_for_component_ref): Use wide-int interfaces.
15900 * builtins.c (get_object_alignment_2): Likewise.
15901 (c_readstr): Likewise.
15902 (target_char_cast): Add comment.
15903 (determine_block_size): Use wide-int interfaces.
15904 (expand_builtin_signbit): Likewise.
15905 (fold_builtin_int_roundingfn): Likewise.
15906 (fold_builtin_bitop): Likewise.
15907 (fold_builtin_bswap): Likewise.
15908 (fold_builtin_logarithm): Use signop.
15909 (fold_builtin_pow): Likewise.
15910 (fold_builtin_memory_op): Use wide-int interfaces.
15911 (fold_builtin_object_size): Likewise.
15912 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
15913 nb_iterations_estimate.
15914 (record_niter_bound): Use wide-int interfaces.
15915 (get_estimated_loop_iterations_int): Likewise.
15916 (get_estimated_loop_iterations): Likewise.
15917 (get_max_loop_iterations): Likewise.
15918 * cfgloop.h: Include wide-int.h.
15919 (struct nb_iter_bound): Change bound to widest_int.
15920 (struct loop): Change nb_iterations_upper_bound and
15921 nb_iterations_estimate to widest_int.
15922 (record_niter_bound): Switch to use widest_int.
15923 (get_estimated_loop_iterations): Likewise.
15924 (get_max_loop_iterations): Likewise.
15925 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
15926 update for wide-int.
15927 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
15928 * combine.c (try_combine): Likewise.
15929 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
15930 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
15932 (aarch64_float_const_representable_p): Likewise.
15933 * config/arc/arc.c: Include wide-int.h.
15934 (arc_can_use_doloop_p): Use wide-int interfaces.
15935 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
15936 (vfp3_const_double_index): Likewise.
15937 * config/avr/avr.c (avr_out_round): Likewise.
15938 (avr_fold_builtin): Likewise.
15939 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
15940 (bfin_can_use_doloop_p): Likewise.
15941 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
15942 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
15943 * config/i386/i386.c: Include wide-int.h.
15944 (ix86_data_alignment): Use wide-int interfaces.
15945 (ix86_local_alignment): Likewise.
15946 (ix86_emit_swsqrtsf): Update real_from_integer.
15947 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
15948 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15949 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
15950 (zero_constant): Likewise.
15951 (input_operand): Likewise.
15952 (splat_input_operand): Likewise.
15953 (non_logical_cint_operand): Change const_double to const_wide_int.
15954 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
15955 (easy_altivec_constant): Remove comment.
15956 (paired_expand_vector_init): Use CONSTANT_P.
15957 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
15958 (rs6000_emit_move): Update checks.
15959 (rs6000_aggregate_candidate): Use wide-int interfaces.
15960 (rs6000_expand_ternop_builtin): Likewise.
15961 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
15962 (rs6000_assemble_integer): Likewise.
15963 (rs6000_hash_constant): Likewise.
15964 (output_toc): Likewise.
15965 (rs6000_rtx_costs): Likewise.
15966 (rs6000_emit_swrsqrt); Update call to real_from_integer.
15967 * config/rs6000/rs6000-c.c: Include wide-int.h.
15968 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
15969 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
15970 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
15971 Handle CONST_WIDE_INT.
15972 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
15973 Use tree_fits_uhwi_p.
15974 * config/sparc/sparc.c: Include wide-int.h.
15975 (sparc_fold_builtin): Use wide-int interfaces.
15976 * config/vax/vax.c: Include wide-int.h.
15977 (vax_float_literal): Use real_from_integer.
15978 * coretypes.h (struct hwivec_def): New.
15980 (const_hwivec): New.
15981 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
15982 (equiv_constant): Handle CONST_WIDE_INT.
15983 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
15984 (cselib_hash_rtx): Handle CONST_WIDE_INT.
15985 * dbxout.c (stabstr_U): Use wide-int interfaces.
15986 (dbxout_type): Update to use cst_fits_shwi_p.
15987 * defaults.h (LOG2_BITS_PER_UNIT): Define.
15988 (TARGET_SUPPORTS_WIDE_INT): Add default.
15989 * dfp.c: Include wide-int.h.
15990 (decimal_real_to_integer2): Use wide-int interfaces and rename to
15991 decimal_real_to_integer.
15992 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
15993 decimal_real_to_integer.
15994 * doc/generic.texi (Constant expressions): Update for wide_int.
15995 * doc/rtl.texi (const_double): Likewise.
15996 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
15997 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
15998 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
15999 (REAL_VALUE_FROM_INT): Remove.
16000 (TARGET_SUPPORTS_WIDE_INT): New.
16001 * doc/tm.texi: Regenerate.
16002 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16003 * double-int.h: Include wide-int.h.
16004 (struct wi::int_traits): New.
16005 * dwarf2out.c (get_full_len): New.
16006 (dw_val_equal_p): Add case dw_val_class_wide_int.
16007 (size_of_loc_descr): Likewise.
16008 (output_loc_operands): Likewise.
16009 (insert_double): Remove.
16010 (insert_wide_int): New.
16011 (add_AT_wide): New.
16012 (print_die): Add case dw_val_class_wide_int.
16013 (attr_checksum): Likewise.
16014 (attr_checksum_ordered): Likewise.
16015 (same_dw_val_p): Likewise.
16016 (size_of_die): Likewise.
16017 (value_format): Likewise.
16018 (output_die): Likewise.
16019 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16021 (clz_loc_descriptor): Use wide-int interfaces.
16022 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16023 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16024 (round_up_to_align): Use wide-int interfaces.
16025 (field_byte_offset): Likewise.
16026 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16027 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16028 CONST_DOUBLE handling. Use wide-int interfaces.
16029 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16030 (gen_enumeration_type_die): Use add_AT_wide.
16031 (hash_loc_operands): Add case dw_val_class_wide_int.
16032 (compare_loc_operands): Likewise.
16033 * dwarf2out.h: Include wide-int.h.
16034 (wide_int_ptr): New.
16035 (enum dw_val_class): Add dw_val_class_wide_int.
16036 (struct dw_val_struct): Add val_wide.
16037 * emit-rtl.c (const_wide_int_htab): New.
16038 (const_wide_int_htab_hash): New.
16039 (const_wide_int_htab_eq): New.
16040 (lookup_const_wide_int): New.
16041 (const_double_htab_hash): Use wide-int interfaces.
16042 (const_double_htab_eq): Likewise.
16043 (rtx_to_double_int): Conditionally compile for wide-int.
16044 (immed_double_int_const): Rename to immed_wide_int_const and
16045 update for wide-int.
16046 (immed_double_const): Conditionally compile for wide-int.
16047 (init_emit_once): Use wide-int interfaces.
16048 * explow.c (plus_constant): Likewise.
16049 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16050 (lshift_value): Use wide-int interfaces.
16051 (expand_mult): Likewise.
16052 (choose_multiplier): Likewise.
16053 (expand_smod_pow2): Likewise.
16054 (make_tree): Likewise.
16055 * expr.c (convert_modes): Consolidate handling of constants.
16056 Use wide-int interfaces.
16057 (emit_group_load_1): Add note.
16058 (store_expr): Update comment.
16059 (get_inner_reference): Use wide-int interfaces.
16060 (expand_constructor): Update comment.
16061 (expand_expr_real_2): Use wide-int interfaces.
16062 (expand_expr_real_1): Likewise.
16063 (reduce_to_bit_field_precision): Likewise.
16064 (const_vector_from_tree): Likewise.
16065 * final.c: Include wide-int-print.h.
16066 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16067 * fixed-value.c: Include wide-int.h.
16068 (fixed_from_string): Use wide-int interfaces.
16069 (fixed_to_decimal): Likewise.
16070 (fixed_convert_from_real): Likewise.
16071 (real_convert_from_fixed): Likewise.
16072 * fold-const.h (mem_ref_offset): Return an offset_int.
16073 (div_if_zero_remainder): Remove code parameter.
16074 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16075 Use wide-int interfaces.
16076 (may_negate_without_overflow_p): Use wide-int interfaces.
16077 (negate_expr_p): Likewise.
16078 (fold_negate_expr): Likewise.
16079 (int_const_binop_1): Likewise.
16080 (const_binop): Likewise.
16081 (fold_convert_const_int_from_int): Likewise.
16082 (fold_convert_const_int_from_real): Likewise.
16083 (fold_convert_const_int_from_fixed): Likewise.
16084 (fold_convert_const_fixed_from_int): Likewise.
16085 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16086 (sign_bit_p): Use wide-int interfaces.
16087 (make_range_step): Likewise.
16088 (build_range_check): Likewise. Pass an integer of the correct type
16089 instead of using integer_one_node.
16090 (range_predecessor): Pass an integer of the correct type instead
16091 of using integer_one_node.
16092 (range_successor): Likewise.
16093 (merge_ranges): Likewise.
16094 (unextend): Use wide-int interfaces.
16095 (extract_muldiv_1): Likewise.
16096 (fold_div_compare): Likewise.
16097 (fold_single_bit_test): Likewise.
16098 (fold_sign_changed_comparison): Likewise.
16099 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16100 (fold_plusminus_mult_expr): Use wide-int interfaces.
16101 (native_encode_int): Likewise.
16102 (native_interpret_int): Likewise.
16103 (fold_unary_loc): Likewise.
16104 (pointer_may_wrap_p): Likewise.
16105 (size_low_cst): Likewise.
16106 (mask_with_tz): Likewise.
16107 (fold_binary_loc): Likewise.
16108 (fold_ternary_loc): Likewise.
16109 (multiple_of_p): Likewise.
16110 (tree_call_nonnegative_warnv_p): Update calls to
16111 tree_int_cst_min_precision and real_from_integer.
16112 (fold_negate_const): Use wide-int interfaces.
16113 (fold_abs_const): Likewise.
16114 (fold_relational_const): Use tree_int_cst_lt.
16115 (round_up_loc): Use wide-int interfaces.
16116 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16117 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16118 * gengtype.c: Remove include of double-int.h.
16119 (do_typedef): Use wide-int interfaces.
16120 (open_base_files): Add wide-int.h.
16121 (main): Add offset_int and widest_int typedefs.
16122 * gengtype-lex.l: Handle "^".
16123 (CXX_KEYWORD): Add "static".
16124 * gengtype-parse.c (require3): New.
16125 (require_template_declaration): Handle constant template arguments
16126 and nested templates.
16127 * gengtype-state.c: Don't include "double-int.h".
16128 * genpreds.c (write_one_predicate_function): Update comment.
16129 (write_tm_constrs_h): Add check for hval and lval use in
16131 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16132 (add_to_sequence): Likewise.
16133 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16134 and const_double_operand.
16135 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16137 * gimple-fold.c (get_base_constructor): Likewise.
16138 (fold_array_ctor_reference): Likewise.
16139 (fold_nonarray_ctor_reference): Likewise.
16140 (fold_const_aggregate_ref_1): Likewise.
16141 (gimple_val_nonnegative_real_p): Likewise.
16142 (gimple_fold_indirect_ref): Likewise.
16143 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16144 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16145 (struct slsr_cand_d): Change index to be widest_int.
16146 (struct incr_info_d): Change incr to be widest_int.
16147 (alloc_cand_and_find_basis): Use wide-int interfaces.
16148 (slsr_process_phi): Likewise.
16149 (backtrace_base_for_ref): Likewise. Return a widest_int.
16150 (restructure_reference): Take a widest_int instead of a double_int.
16151 (slsr_process_ref): Use wide-int interfaces.
16152 (create_mul_ssa_cand): Likewise.
16153 (create_mul_imm_cand): Likewise.
16154 (create_add_ssa_cand): Likewise.
16155 (create_add_imm_cand): Take a widest_int instead of a double_int.
16156 (slsr_process_add): Use wide-int interfaces.
16157 (slsr_process_cast): Likewise.
16158 (slsr_process_copy): Likewise.
16159 (dump_candidate): Likewise.
16160 (dump_incr_vec): Likewise.
16161 (replace_ref): Likewise.
16162 (cand_increment): Likewise. Return a widest_int.
16163 (cand_abs_increment): Likewise.
16164 (replace_mult_candidate): Take a widest_int instead of a double_int.
16165 (replace_unconditional_candidate): Use wide-int interfaces.
16166 (incr_vec_index): Take a widest_int instead of a double_int.
16167 (create_add_on_incoming_edge): Likewise.
16168 (create_phi_basis): Use wide-int interfaces.
16169 (replace_conditional_candidate): Likewise.
16170 (record_increment): Take a widest_int instead of a double_int.
16171 (record_phi_increments): Use wide-int interfaces.
16172 (phi_incr_cost): Take a widest_int instead of a double_int.
16173 (lowest_cost_path): Likewise.
16174 (total_savings): Likewise.
16175 (analyze_increments): Use wide-int interfaces.
16176 (ncd_with_phi): Take a widest_int instead of a double_int.
16177 (ncd_of_cand_and_phis): Likewise.
16178 (nearest_common_dominator_for_cands): Likewise.
16179 (insert_initializers): Use wide-int interfaces.
16180 (all_phi_incrs_profitable): Likewise.
16181 (replace_one_candidate): Likewise.
16182 (replace_profitable_candidates): Likewise.
16183 * godump.c: Include wide-int-print.h.
16184 (go_output_typedef): Use wide-int interfaces.
16185 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
16186 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
16187 (build_loop_iteration_domains): Likewise.
16188 * hooks.h: Include wide-int.h rather than double-int.h.
16189 (hook_bool_dint_dint_uint_bool_true): Delete.
16190 (hook_bool_wint_wint_uint_bool_true): Declare.
16191 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
16192 (hook_bool_wint_wint_uint_bool_true): New.
16193 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
16195 (ubsan_expand_si_overflow_mul_check): Likewise.
16196 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
16197 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
16198 (get_ancestor_addr_info): Likewise.
16199 (ipa_modify_call_arguments): Likewise.
16200 * loop-doloop.c (doloop_modify): Likewise.
16201 (doloop_optimize): Likewise.
16202 * loop-iv.c (iv_number_of_iterations): Likewise.
16203 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
16204 (unroll_loop_constant_iterations): Likewise.
16205 (decide_unroll_runtime_iterations): Likewise.
16206 (unroll_loop_runtime_iterations): Likewise.
16207 (decide_peel_simple): Likewise.
16208 (decide_unroll_stupid): Likewise.
16209 * lto-streamer-in.c (streamer_read_wi): Add.
16210 (input_cfg): Use wide-int interfaces.
16211 (lto_input_tree_1): Likewise.
16212 * lto-streamer-out.c (streamer_write_wi): Add.
16213 (hash_tree): Use wide-int interfaces.
16214 (output_cfg): Likewise.
16215 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
16216 (GTFILES): Add wide-int.h and signop.h.
16217 (TAGS): Look for .cc files too.
16218 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
16219 * optabs.c (expand_subword_shift): Likewise.
16220 (expand_doubleword_shift): Likewise.
16221 (expand_absneg_bit): Likewise.
16222 (expand_copysign_absneg): Likewise.
16223 (expand_copysign_bit): Likewise.
16224 * postreload.c (reload_cse_simplify_set): Likewise.
16225 * predict.c (predict_iv_comparison): Likewise.
16226 * pretty-print.h: Include wide-int-print.h.
16228 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
16229 * print-tree.c: Include wide-int-print.h.
16230 (print_node_brief): Use wide-int interfaces.
16231 (print_node): Likewise.
16232 * read-rtl.c (validate_const_wide_int): New.
16233 (read_rtx_code): Add CONST_WIDE_INT case.
16234 * real.c: Include wide-int.h.
16235 (real_to_integer2): Delete.
16236 (real_to_integer): New function, returning a wide_int.
16237 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16238 (ten_to_ptwo): Update call to real_from_integer.
16239 (real_digit): Likewise.
16240 * real.h: Include signop.h, wide-int.h and insn-modes.h.
16241 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
16242 (REAL_VALUE_TO_INT): Delete.
16243 (real_to_integer): Declare a wide-int form.
16244 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16245 * recog.c (const_int_operand): Improve comment.
16246 (const_scalar_int_operand): New.
16247 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
16248 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
16249 (split_double): Likewise.
16250 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
16251 (rtx_size): Likewise.
16252 (rtx_alloc_stat_v): New.
16253 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
16254 (cwi_output_hex): New.
16255 (iterative_hash_rtx): Handle CONST_WIDE_INT.
16256 (cwi_check_failed_bounds): New.
16257 * rtl.def (CONST_WIDE_INT): New.
16258 * rtl.h: Include <utility> and wide-int.h.
16259 (struct hwivec_def): New.
16260 (CWI_GET_NUM_ELEM): New.
16261 (CWI_PUT_NUM_ELEM): New.
16262 (struct rtx_def): Add num_elem and hwiv.
16263 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
16264 (CASE_CONST_UNIQUE): Likewise.
16265 (CASE_CONST_ANY): Likewise.
16266 (CONST_SCALAR_INT_P): Likewise.
16267 (CONST_WIDE_INT_P): New.
16269 (HWIVEC_CHECK): New.
16270 (cwi_check_failed_bounds): New.
16272 (HWIVEC_CHECK): New.
16273 (CONST_WIDE_INT_VEC) New.
16274 (CONST_WIDE_INT_NUNITS) New.
16275 (CONST_WIDE_INT_ELT) New.
16276 (rtx_mode_t): New type.
16277 (wi::int_traits <rtx_mode_t>): New.
16279 (wi::min_value): New.
16280 (wi::max_value): New.
16282 (const_wide_int_alloc): New.
16283 (immed_wide_int_const): New.
16284 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
16285 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
16286 * signop.h: New file.
16287 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
16288 (simplify_const_unary_operation): Use wide-int interfaces.
16289 (simplify_binary_operation_1): Likewise.
16290 (simplify_const_binary_operation): Likewise.
16291 (simplify_const_relational_operation): Likewise.
16292 (simplify_immed_subreg): Likewise.
16293 * stmt.c (expand_case): Likewise.
16294 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
16295 signop rather than a bool.
16296 * stor-layout.c (layout_type): Use wide-int interfaces.
16297 (initialize_sizetypes): Update calls to
16298 set_min_and_max_values_for_integral_type.
16299 (set_min_and_max_values_for_integral_type): Take a signop rather
16300 than a bool. Use wide-int interfaces.
16301 (fixup_signed_type): Update accordingly. Remove
16302 HOST_BITS_PER_DOUBLE_INT limit.
16303 (fixup_unsigned_type): Likewise.
16304 * system.h (STATIC_CONSTANT_P): New.
16305 (STATIC_ASSERT): New.
16306 * target.def (can_use_doloop_p): Take widest_ints rather than
16308 * target.h: Include wide-int.h rather than double-int.h.
16309 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
16311 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
16312 rather than INT_CST_LT_UNSIGNED.
16313 (can_use_doloop_if_innermost): Take widest_ints rather than
16315 * tree-affine.c: Include wide-int-print.h.
16316 (double_int_ext_for_comb): Delete.
16317 (wide_int_ext_for_comb): New.
16318 (aff_combination_zero): Use wide-int interfaces.
16319 (aff_combination_const): Take a widest_int instead of a double_int.
16320 (aff_combination_elt): Use wide-int interfaces.
16321 (aff_combination_scale): Take a widest_int instead of a double_int.
16322 (aff_combination_add_elt): Likewise.
16323 (aff_combination_add_cst): Likewise.
16324 (aff_combination_add): Use wide-int interfaces.
16325 (aff_combination_convert): Likewise.
16326 (tree_to_aff_combination): Likewise.
16327 (add_elt_to_tree): Take a widest_int instead of a double_int.
16328 (aff_combination_to_tree): Use wide-int interfaces.
16329 (aff_combination_remove_elt): Likewise.
16330 (aff_combination_add_product): Take a widest_int instead of
16332 (aff_combination_mult): Use wide-int interfaces.
16333 (aff_combination_expand): Likewise.
16334 (double_int_constant_multiple_p): Delete.
16335 (wide_int_constant_multiple_p): New.
16336 (aff_combination_constant_multiple_p): Take a widest_int pointer
16337 instead of a double_int pointer.
16338 (print_aff): Use wide-int interfaces.
16339 (get_inner_reference_aff): Take a widest_int pointer
16340 instead of a double_int pointer.
16341 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
16342 * tree-affine.h: Include wide-int.h.
16343 (struct aff_comb_elt): Change type of coef to widest_int.
16344 (struct affine_tree_combination): Change type of offset to widest_int.
16345 (double_int_ext_for_comb): Delete.
16346 (wide_int_ext_for_comb): New.
16347 (aff_combination_const): Use widest_int instead of double_int.
16348 (aff_combination_scale): Likewise.
16349 (aff_combination_add_elt): Likewise.
16350 (aff_combination_constant_multiple_p): Likewise.
16351 (get_inner_reference_aff): Likewise.
16352 (aff_comb_cannot_overlap_p): Likewise.
16353 (aff_combination_zero_p): Use wide-int interfaces.
16354 * tree.c: Include tree.h.
16355 (init_ttree): Use make_int_cst.
16356 (tree_code_size): Removed code for INTEGER_CST case.
16357 (tree_size): Add INTEGER_CST case.
16358 (make_node_stat): Update comment.
16359 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
16360 (build_int_cst_type): Use wide-int interfaces.
16361 (double_int_to_tree): Likewise.
16362 (double_int_fits_to_tree_p): Delete.
16363 (force_fit_type_double): Delete.
16364 (force_fit_type): New.
16365 (int_cst_hash_hash): Use wide-int interfaces.
16366 (int_cst_hash_eq): Likewise.
16367 (build_int_cst_wide): Delete.
16368 (wide_int_to_tree): New.
16369 (cache_integer_cst): Use wide-int interfaces.
16370 (build_low_bits_mask): Likewise.
16371 (cst_and_fits_in_hwi): Likewise.
16372 (real_value_from_int_cst): Likewise.
16373 (make_int_cst_stat): New.
16374 (integer_zerop): Use wide_int interfaces.
16375 (integer_onep): Likewise.
16376 (integer_all_onesp): Likewise.
16377 (integer_pow2p): Likewise.
16378 (integer_nonzerop): Likewise.
16379 (tree_log2): Likewise.
16380 (tree_floor_log2): Likewise.
16381 (tree_ctz): Likewise.
16382 (int_size_in_bytes): Likewise.
16383 (mem_ref_offset): Return an offset_int rather than a double_int.
16384 (build_type_attribute_qual_variant): Use wide_int interfaces.
16385 (type_hash_eq): Likewise
16386 (tree_int_cst_equal): Likewise.
16387 (tree_int_cst_lt): Delete.
16388 (tree_int_cst_compare): Likewise.
16389 (tree_fits_shwi_p): Use wide_int interfaces.
16390 (tree_fits_uhwi_p): Likewise.
16391 (tree_int_cst_sign_bit): Likewise.
16392 (tree_int_cst_sgn): Likewise.
16393 (tree_int_cst_min_precision): Take a signop rather than a bool.
16394 (simple_cst_equal): Use wide_int interfaces.
16395 (compare_tree_int): Likewise.
16396 (iterative_hash_expr): Likewise.
16397 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
16399 (get_type_static_bounds): Use wide_int interfaces.
16400 (tree_int_cst_elt_check_failed): New.
16401 (build_common_tree_nodes): Reordered to set prec before filling in
16403 (int_cst_value): Check cst_and_fits_in_hwi.
16404 (widest_int_cst_value): Use wide_int interfaces.
16405 (upper_bound_in_type): Likewise.
16406 (lower_bound_in_type): Likewise.
16407 (num_ending_zeros): Likewise.
16408 (drop_tree_overflow): Likewise.
16409 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
16410 (gen_conditions_for_pow_cst_base): Likewise.
16411 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
16412 (group_case_labels_stmt): Use wide-int interfaces.
16413 (verify_gimple_assign_binary): Likewise.
16414 (print_loop): Likewise.
16415 * tree-chrec.c (tree_fold_binomial): Likewise.
16416 * tree-core.h (struct tree_base): Add int_length.
16417 (struct tree_int_cst): Change rep of value.
16418 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
16419 (dr_may_alias_p): Likewise.
16420 (max_stmt_executions_tree): Likewise.
16421 * tree.def (INTEGER_CST): Update comment.
16422 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
16423 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
16424 * tree-dump.c: Include wide-int.h and wide-int-print.h.
16425 (dequeue_and_dump): Use wide-int interfaces.
16426 * tree.h: Include wide-int.h.
16427 (NULL_TREE): Moved to earlier loc in file.
16428 (TREE_INT_CST_ELT_CHECK): New.
16429 (tree_int_cst_elt_check_failed): New.
16431 (TREE_INT_CST): Delete.
16432 (TREE_INT_CST_LOW): Use wide-int interfaces.
16433 (TREE_INT_CST_HIGH): Delete.
16434 (TREE_INT_CST_NUNITS): New.
16435 (TREE_INT_CST_EXT_NUNITS): Likewise.
16436 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
16437 (TREE_INT_CST_ELT): Likewise.
16438 (INT_CST_LT): Delete.
16439 (tree_int_cst_elt_check): New (two forms).
16440 (type_code_size): Update comment.
16441 (make_int_cst_stat, make_int_cst): New.
16442 (tree_to_double_int): Delete.
16443 (double_int_fits_to_tree_p): Delete.
16444 (force_fit_type_double): Delete.
16445 (build_int_cstu): Replace with out-of-line function.
16446 (build_int_cst_wide): Delete.
16447 (tree_int_cst_lt): Define inline.
16448 (tree_int_cst_le): New.
16449 (tree_int_cst_compare): Define inline.
16450 (tree_int_cst_min_precision): Take a signop rather than a bool.
16451 (wi::int_traits <const_tree>): New.
16452 (wi::int_traits <tree>): New.
16453 (wi::extended_tree): New.
16454 (wi::int_traits <wi::extended_tree>): New.
16455 (wi::to_widest): New.
16456 (wi::to_offset): New.
16457 (wi::fits_to_tree_p): New.
16458 (wi::min_value): New.
16459 (wi::max_value): New.
16460 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
16461 (copy_tree_body_r): Likewise.
16462 * tree-object-size.c (compute_object_offset): Likewise.
16463 (addr_object_size): Likewise.
16464 * tree-predcom.c: Include wide-int-print.h.
16465 (struct dref_d): Change type of offset to widest_int.
16466 (dump_dref): Call wide-int printer.
16467 (aff_combination_dr_offset): Use wide-int interfaces.
16468 (determine_offset): Take a widest_int pointer rather than a
16469 double_int pointer.
16470 (split_data_refs_to_components): Use wide-int interfaces.
16471 (suitable_component_p): Likewise.
16472 (order_drefs): Likewise.
16473 (add_ref_to_chain): Likewise.
16474 (valid_initializer_p): Likewise.
16475 (determine_roots_comp): Likewise.
16476 * tree-pretty-print.c: Include wide-int-print.h.
16477 (dump_generic_node): Use wide-int interfaces.
16478 * tree-sra.c (sra_ipa_modify_expr): Likewise.
16479 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
16480 (move_fixed_address_to_symbol): Likewise.
16481 (move_hint_to_base): Likewise.
16482 (move_pointer_to_base): Likewise.
16483 (move_variant_to_index): Likewise.
16484 (most_expensive_mult_to_index): Likewise.
16485 (addr_to_parts): Likewise.
16486 (copy_ref_info): Likewise.
16487 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16488 (indirect_refs_may_alias_p): Likewise.
16489 (stmt_kills_ref_p_1): Likewise.
16490 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
16491 * tree-ssa-ccp.c: Update comment at top of file. Include
16493 (struct prop_value_d): Change type of mask to widest_int.
16494 (extend_mask): New function.
16495 (dump_lattice_value): Use wide-int interfaces.
16496 (get_default_value): Likewise.
16497 (set_constant_value): Likewise.
16498 (set_value_varying): Likewise.
16499 (valid_lattice_transition): Likewise.
16500 (set_lattice_value): Likewise.
16501 (value_to_double_int): Delete.
16502 (value_to_wide_int): New.
16503 (get_value_from_alignment): Use wide-int interfaces.
16504 (get_value_for_expr): Likewise.
16505 (do_dbg_cnt): Likewise.
16506 (ccp_finalize): Likewise.
16507 (ccp_lattice_meet): Likewise.
16508 (bit_value_unop_1): Use widest_ints rather than double_ints.
16509 (bit_value_binop_1): Likewise.
16510 (bit_value_unop): Use wide-int interfaces.
16511 (bit_value_binop): Likewise.
16512 (bit_value_assume_aligned): Likewise.
16513 (evaluate_stmt): Likewise.
16514 (ccp_fold_stmt): Likewise.
16515 (visit_cond_stmt): Likewise.
16516 (ccp_visit_stmt): Likewise.
16517 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16518 (constant_pointer_difference): Likewise.
16519 (associate_pointerplus): Likewise.
16520 (combine_conversions): Likewise.
16521 * tree-ssa-loop.h: Include wide-int.h.
16522 (struct tree_niter_desc): Change type of max to widest_int.
16523 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
16524 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
16525 (remove_redundant_iv_tests): Likewise.
16526 (canonicalize_loop_induction_variables): Likewise.
16527 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
16528 (constant_multiple_of): Take a widest_int pointer instead of
16529 a double_int pointer.
16530 (get_computation_aff): Use wide-int interfaces.
16531 (ptr_difference_cost): Likewise.
16532 (difference_cost): Likewise.
16533 (get_loop_invariant_expr_id): Likewise.
16534 (get_computation_cost_at): Likewise.
16535 (iv_elimination_compare_lt): Likewise.
16536 (may_eliminate_iv): Likewise.
16537 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
16538 instead of double_int.
16539 (max_loop_iterations): Likewise.
16540 (max_stmt_executions): Likewise.
16541 (estimated_stmt_executions): Likewise.
16542 * tree-ssa-loop-niter.c: Include wide-int-print.h.
16543 (split_to_var_and_offset): Use wide-int interfaces.
16544 (determine_value_range): Likewise.
16545 (bound_difference_of_offsetted_base): Likewise.
16546 (bounds_add): Take a widest_int instead of a double_int.
16547 (number_of_iterations_ne_max): Use wide-int interfaces.
16548 (number_of_iterations_ne): Likewise.
16549 (number_of_iterations_lt_to_ne): Likewise.
16550 (assert_loop_rolls_lt): Likewise.
16551 (number_of_iterations_lt): Likewise.
16552 (number_of_iterations_le): Likewise.
16553 (number_of_iterations_cond): Likewise.
16554 (number_of_iterations_exit): Likewise.
16555 (finite_loop_p): Likewise.
16556 (derive_constant_upper_bound_assign): Likewise.
16557 (derive_constant_upper_bound): Return a widest_int.
16558 (derive_constant_upper_bound_ops): Likewise.
16559 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
16560 (record_estimate): Take a widest_int rather than a double_int.
16561 (record_nonwrapping_iv): Use wide-int interfaces.
16562 (double_int_cmp): Delete.
16563 (wide_int_cmp): New.
16564 (bound_index): Take a widest_int rather than a double_int.
16565 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
16566 (maybe_lower_iteration_bound): Likewise.
16567 (estimate_numbers_of_iterations_loop): Likewise.
16568 (estimated_loop_iterations): Take a widest_int pointer than than
16569 a double_int pointer.
16570 (estimated_loop_iterations_int): Use wide-int interfaces.
16571 (max_loop_iterations): Take a widest_int pointer than than
16572 a double_int pointer.
16573 (max_loop_iterations_int): Use wide-int interfaces.
16574 (max_stmt_executions): Take a widest_int pointer than than
16575 a double_int pointer.
16576 (estimated_stmt_executions): Likewise.
16577 (n_of_executions_at_most): Use wide-int interfaces.
16578 (scev_probably_wraps_p): Likewise.
16579 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
16580 to real_to_integer.
16581 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
16583 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
16584 double_ints. Adjust for trailing_wide_ints <3> representation.
16585 (set_nonzero_bits): Likewise.
16586 (get_range_info): Return wide_ints rather than double_ints.
16587 Adjust for trailing_wide_ints <3> representation.
16588 (get_nonzero_bits): Likewise.
16589 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
16591 * tree-ssanames.h (struct range_info_def): Replace min, max and
16592 nonzero_bits with a trailing_wide_ints <3>.
16593 (set_range_info): Use wide_int_refs rather than double_ints.
16594 (set_nonzero_bits): Likewise.
16595 (get_range_info): Return wide_ints rather than double_ints.
16596 (get_nonzero_bits): Likewise.
16597 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
16598 * tree-ssa-pre.c (phi_translate_1): Likewise.
16599 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
16600 (acceptable_pow_call): Likewise.
16601 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
16603 (vn_reference_fold_indirect): Likewise.
16604 (vn_reference_maybe_forwprop_address): Likewise.
16605 (valueize_refs_1): Likewise.
16606 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
16607 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
16608 tree_int_cst_lt and tree_int_cst_le.
16609 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
16611 (streamer_alloc_tree): Likewise.
16612 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
16613 (streamer_write_tree_header): Likewise.
16614 (streamer_write_integer_cst): Likewise.
16615 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16616 (build_constructors): Likewise.
16617 (array_value_type): Likewise.
16618 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
16619 (vect_check_gather): Likewise.
16620 * tree-vect-generic.c (build_replicated_const): Likewise.
16621 (expand_vector_divmod): Likewise.
16622 * tree-vect-loop.c (vect_transform_loop): Likewise.
16623 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
16624 (vect_do_peeling_for_alignment): Likewise.
16625 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
16626 * tree-vrp.c: Include wide-int.h.
16627 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
16628 (extract_range_from_assert): Use wide-int interfaces.
16629 (vrp_int_const_binop): Likewise.
16630 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
16631 double_int pointers.
16632 (ranges_from_anti_range): Use wide-int interfaces.
16633 (quad_int_cmp): Delete.
16634 (quad_int_pair_sort): Likewise.
16635 (extract_range_from_binary_expr_1): Use wide-int interfaces.
16636 (extract_range_from_unary_expr_1): Likewise.
16637 (adjust_range_with_scev): Likewise.
16638 (masked_increment): Take and return wide_ints rather than double_ints.
16639 (register_edge_assert_for_2): Use wide-int interfaces.
16640 (check_array_ref): Likewise.
16641 (search_for_addr_array): Likewise.
16642 (maybe_set_nonzero_bits): Likewise.
16643 (union_ranges): Pass an integer of the correct type instead of
16644 using integer_one_node.
16645 (intersect_ranges): Likewise.
16646 (simplify_truth_ops_using_ranges): Likewise.
16647 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
16648 (range_fits_type_p): Likewise.
16649 (simplify_cond_using_ranges): Likewise. Take a signop rather than
16651 (simplify_conversion_using_ranges): Use wide-int interfaces.
16652 (simplify_float_conversion_using_ranges): Likewise.
16653 (vrp_finalize): Likewise.
16654 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
16655 (gimple_stringops_transform): Likewise.
16656 * varasm.c (decode_addr_const): Likewise.
16657 (const_hash_1): Likewise.
16658 (const_rtx_hash_1): Likewise
16659 (output_constant): Likewise.
16660 (array_size_for_constructor): Likewise.
16661 (output_constructor_regular_field): Likewise.
16662 (output_constructor_bitfield): Likewise.
16663 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
16664 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
16666 * gencheck.c: Define BITS_PER_UNIT.
16667 * wide-int.cc: New.
16669 * wide-int-print.cc: New.
16670 * wide-int-print.h: New.
16672 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16674 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
16676 2014-05-06 Richard Biener <rguenther@suse.de>
16678 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
16679 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
16680 (TODO_verify_all): Adjust.
16681 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
16682 TODO_verify_stmts and TODO_verify_rtl_sharing.
16683 * bb-reorder.c: Likewise.
16684 * cfgexpand.c: Likewise.
16685 * cprop.c: Likewise.
16687 * function.c: Likewise.
16688 * fwprop.c: Likewise.
16689 * gcse.c: Likewise.
16690 * gimple-ssa-isolate-paths.c: Likewise.
16691 * gimple-ssa-strength-reduction.c: Likewise.
16692 * ipa-split.c: Likewise.
16693 * loop-init.c: Likewise.
16694 * loop-unroll.c: Likewise.
16695 * lower-subreg.c: Likewise.
16696 * modulo-sched.c: Likewise.
16697 * postreload-gcse.c: Likewise.
16698 * predict.c: Likewise.
16699 * recog.c: Likewise.
16700 * sched-rgn.c: Likewise.
16701 * store-motion.c: Likewise.
16702 * tracer.c: Likewise.
16703 * trans-mem.c: Likewise.
16704 * tree-call-cdce.c: Likewise.
16705 * tree-cfg.c: Likewise.
16706 * tree-cfgcleanup.c: Likewise.
16707 * tree-complex.c: Likewise.
16708 * tree-eh.c: Likewise.
16709 * tree-emutls.c: Likewise.
16710 * tree-if-conv.c: Likewise.
16711 * tree-into-ssa.c: Likewise.
16712 * tree-loop-distribution.c: Likewise.
16713 * tree-object-size.c: Likewise.
16714 * tree-parloops.c: Likewise.
16715 * tree-pass.h: Likewise.
16716 * tree-sra.c: Likewise.
16717 * tree-ssa-ccp.c: Likewise.
16718 * tree-ssa-copy.c: Likewise.
16719 * tree-ssa-copyrename.c: Likewise.
16720 * tree-ssa-dce.c: Likewise.
16721 * tree-ssa-dom.c: Likewise.
16722 * tree-ssa-dse.c: Likewise.
16723 * tree-ssa-forwprop.c: Likewise.
16724 * tree-ssa-ifcombine.c: Likewise.
16725 * tree-ssa-loop-ch.c: Likewise.
16726 * tree-ssa-loop-ivcanon.c: Likewise.
16727 * tree-ssa-loop.c: Likewise.
16728 * tree-ssa-math-opts.c: Likewise.
16729 * tree-ssa-phiopt.c: Likewise.
16730 * tree-ssa-phiprop.c: Likewise.
16731 * tree-ssa-pre.c: Likewise.
16732 * tree-ssa-reassoc.c: Likewise.
16733 * tree-ssa-sink.c: Likewise.
16734 * tree-ssa-strlen.c: Likewise.
16735 * tree-ssa-tail-merge.c: Likewise.
16736 * tree-ssa-uncprop.c: Likewise.
16737 * tree-switch-conversion.c: Likewise.
16738 * tree-tailcall.c: Likewise.
16739 * tree-vect-generic.c: Likewise.
16740 * tree-vectorizer.c: Likewise.
16741 * tree-vrp.c: Likewise.
16742 * tsan.c: Likewise.
16743 * var-tracking.c: Likewise.
16744 * bt-load.c: Likewise.
16745 * cfgcleanup.c: Likewise.
16746 * combine-stack-adj.c: Likewise.
16747 * combine.c: Likewise.
16748 * compare-elim.c: Likewise.
16749 * config/epiphany/resolve-sw-modes.c: Likewise.
16750 * config/i386/i386.c: Likewise.
16751 * config/mips/mips.c: Likewise.
16752 * config/s390/s390.c: Likewise.
16753 * config/sh/sh_treg_combine.cc: Likewise.
16754 * config/sparc/sparc.c: Likewise.
16757 * final.c: Likewise.
16758 * ifcvt.c: Likewise.
16759 * mode-switching.c: Likewise.
16760 * passes.c: Likewise.
16761 * postreload.c: Likewise.
16763 * reg-stack.c: Likewise.
16764 * regcprop.c: Likewise.
16765 * regrename.c: Likewise.
16768 2014-05-06 Richard Biener <rguenther@suse.de>
16770 PR middle-end/61070
16771 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
16772 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
16774 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
16777 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
16779 2014-05-05 Radovan Obradovic <robradovic@mips.com>
16780 Tom de Vries <tom@codesourcery.com>
16782 * target.def (call_fusage_contains_non_callee_clobbers): New
16784 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
16786 (@node Miscellaneous Register Hooks): New node.
16787 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
16788 * doc/tm.texi: Regenerate.
16790 2014-05-05 Marek Polacek <polacek@redhat.com>
16793 * opts.c (common_handle_option): Call error_at instead of warning_at.
16795 2014-05-05 Richard Biener <rguenther@suse.de>
16797 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
16798 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
16799 under the TODO_verify_il umbrella.
16801 2014-05-05 Richard Biener <rguenther@suse.de>
16803 * passes.c (execute_function_todo): Move TODO_verify_flow under
16804 the TODO_verify_ul umbrella.
16806 2014-05-05 Richard Biener <rguenther@suse.de>
16808 PR middle-end/61010
16809 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
16810 X & CST away from a CST that is the mask of a mode.
16812 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16814 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
16815 int argument to enum machine_mode.
16816 (picochip_class_max_nregs): Ditto.
16817 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
16818 (picochip_class_max_nregs): Ditto.
16820 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16822 * target.def: Add new target hook.
16823 * doc/tm.texi: Regenerate.
16824 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
16825 * targhooks.c (default_keep_leaf_when_profiled): New function.
16827 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
16828 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
16830 2014-05-05 Bin Cheng <bin.cheng@arm.com>
16832 PR tree-optimization/60363
16833 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
16834 (copy_phi_args): New parameters. Call get_value_locus_in_path.
16835 (update_destination_phis): New parameter.
16836 (create_edge_and_update_destination_phis): Ditto.
16837 (ssa_fix_duplicate_block_edges): Pass new arguments.
16838 (thread_single_edge): Ditto.
16840 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
16842 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
16843 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
16844 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
16845 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
16846 Use RS6000_BTM_HARD_FLOAT.
16847 (BU_MISC_2): Likewise.
16848 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16849 RS6000_BTM_HARD_FLOAT.
16850 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
16851 is explicitly used.
16852 (rs6000_invalid_builtin): Add hard floating builtin support.
16853 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
16854 hard float builtins.
16855 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
16857 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16859 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
16860 Add missing function* argument.
16862 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16864 * lra-constraints.c (valid_address_p): Move earlier in file.
16865 Add a constraint argument to the address_info version.
16866 (satisfies_memory_constraint_p): New function.
16867 (satisfies_address_constraint_p): Likewise.
16868 (process_alt_operands, curr_insn_transform): Use them.
16869 (process_address): Pass the constraint to valid_address_p when
16870 checking address operands.
16872 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16874 * config/mips/mips.c (mips_isa_rev): New variable.
16875 (mips_set_architecture): Set it.
16876 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
16878 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
16879 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
16880 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
16881 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
16882 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
16883 conditions in terms of mips_isa_rev.
16884 (mips_isa_rev): Declare.
16886 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16888 * config/sh/sh-mem.cc: Use tabs instead of spaces.
16889 (prob_unlikely, prob_likely): Make variables const.
16891 2014-05-03 Denis Chertykov <chertykov@gmail.com>
16893 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
16895 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16897 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
16899 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16901 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
16902 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
16903 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
16905 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
16906 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
16908 Replace usage of ROUND_REG with sh_round_reg.
16909 Use CEIL instead of ROUND_ADVANCE.
16911 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16914 * config/sh/sh.c: Include stdlib headers before everything else.
16916 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16918 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
16919 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
16920 (gimplify_adjust_omp_clauses): Simd region is never
16921 directly nested in combined parallel. Instead, for linear
16922 with copyin/copyout, if in combined for simd loop, make decl
16923 firstprivate/lastprivate on OMP_FOR.
16924 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
16925 expand_omp_for_static_chunk): When setting endvar, also set
16926 fd->loop.v to the same value.
16928 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16930 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
16932 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
16934 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
16937 2014-05-02 Marek Polacek <polacek@redhat.com>
16939 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
16941 2014-05-02 Kito Cheng <kito@0xlab.org>
16943 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
16944 to a C expression marco.
16945 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
16946 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
16947 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
16948 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
16949 HONOR_REG_ALLOC_ORDER.
16950 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
16952 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16954 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
16956 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16958 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
16960 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
16962 * tree-if-conv.c (is_cond_scalar_reduction): New function.
16963 (convert_scalar_cond_reduction): Likewise.
16964 (predicate_scalar_phi): Add recognition and transformation
16965 of simple conditioanl reduction to be vectorizable.
16967 2014-05-01 Marek Polacek <polacek@redhat.com>
16970 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
16972 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
16974 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
16975 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
16976 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
16977 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
16978 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
16979 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
16980 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
16981 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
16983 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
16985 * config/arc/arc.opt (mlra): Move comment above option name
16986 to avoid mis-parsing as language options.
16988 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16990 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
16991 * config/sol2.h: ... here.
16992 * config/sol2-10.h: Remove.
16994 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
16995 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
16996 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
16997 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
16998 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
16999 * config/sol2.h: ... here.
17000 (SECTION_NAME_FORMAT): Don't redefine.
17001 (STARTFILE_ARCH32_SPEC): Rename to ...
17002 (STARTFILE_ARCH_SPEC): ... this.
17003 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17004 * config/sparc/sol2.h: ... here.
17005 (SECTION_NAME_FORMAT): Don't undef.
17006 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17007 (SUBTARGET_EXTRA_SPECS): Remove.
17008 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17010 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17011 (MD_STARTFILE_PREFIX): Remove.
17012 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17013 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17014 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17015 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17016 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17017 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17018 * config/i386/sol2.h: ... here.
17019 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17020 * config/i386/sol2-bi.h: Remove.
17021 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17022 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17024 * config/i386/t-sol2-64: Rename to ...
17025 * config/i386/t-sol2: ... this.
17026 * config/sparc/t-sol2-64: Rename to ...
17027 * config/sparc/t-sol2: ... this.
17029 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17030 sol2_tm_file_head, sol2_tm_file_tail.
17031 Include ${cpu_type}/sol2.h before sol2.h.
17033 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17034 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17035 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17036 Reflect i386/t-sol2-64 renaming.
17037 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17038 Reflect sparc/t-sol2-64 renaming.
17040 2014-04-30 Richard Biener <rguenther@suse.de>
17042 * passes.c (execute_function_todo): Move TODO_verify_stmts
17043 and TODO_verify_ssa under the TODO_verify_il umbrella.
17044 * tree-ssa.h (verify_ssa): Adjust prototype.
17045 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17046 we should verify SSA operands.
17047 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17048 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17049 whether we should verify whether not throwing stmts have EH info.
17050 * graphite-scop-detection.c (create_sese_edges): Adjust.
17051 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17052 * tree-eh.c (lower_try_finally_switch): Do not add the
17053 default case label twice.
17055 2014-04-30 Marek Polacek <polacek@redhat.com>
17057 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17058 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17059 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17060 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17062 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17064 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17065 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17066 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17067 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17068 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17069 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17070 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17071 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17073 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17075 * tree-cfg.c (dump_function_to_file): Dump the return type of
17076 functions, in a line to itself before the function body, mimicking
17077 the layout of a C function.
17079 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17081 PR tree-optimization/60971
17082 * tree-tailcall.c (process_assignment): Reject conversions which
17085 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17087 * calls.c (initialize_argument_information): Always treat
17088 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17089 (expand_call): Likewise.
17090 (emit_library_call_calue_1): Likewise.
17091 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17092 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17095 2014-04-29 Nick Clifton <nickc@redhat.com>
17097 * config/msp430/msp430.md (umulsidi): Fix typo.
17098 (mulhisi3): Enable even inside interrupt handlers.
17099 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17100 bigger return address pushed in large mode.
17102 2014-04-29 Nick Clifton <nickc@redhat.com>
17104 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17105 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17107 * config/m32r/m32r.c (init_reg_tables): Likewise.
17108 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17109 enum to hold the modes.
17111 2014-04-29 Richard Biener <rguenther@suse.de>
17113 * dominance.c (free_dominance_info): Add overload with
17114 function parameter.
17115 (dom_info_state): Likewise.
17116 (dom_info_available_p): Likewise.
17117 * basic-block.h (free_dominance_info, dom_info_state,
17118 dom_info_available_p): Declare overloads.
17119 * passes.c (execute_function_todo): Verify that verifiers
17120 don't change dominator info state. Drop dominator info
17121 for IPA pass invocations.
17122 * cgraph.c (release_function_body): Restore asserts that
17123 dominator information is released.
17125 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17127 * doc/invoke.texi: Fix typo.
17128 * tree-vrp.c: Fix typos.
17129 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17131 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17133 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17135 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17137 * config/aarch64/aarch64-builtins.c
17138 (aarch64_types_storestruct_lane_qualifiers): New.
17139 (TYPES_STORESTRUCT_LANE): Likewise.
17140 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17141 (st3_lane): Likewise.
17142 (st4_lane): Likewise.
17143 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17144 (vec_store_lanesci_lane<mode>): Likewise.
17145 (vec_store_lanesxi_lane<mode>): Likewise.
17146 (aarch64_st2_lane<VQ:mode>): Likewise.
17147 (aarch64_st3_lane<VQ:mode>): Likewise.
17148 (aarch64_st4_lane<VQ:mode>): Likewise.
17149 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17150 * config/aarch64/arm_neon.h
17151 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
17152 use new macro arguments.
17153 (__ST3_LANE_FUNC): Likewise.
17154 (__ST4_LANE_FUNC): Likewise.
17155 * config/aarch64/iterators.md (V_TWO_ELEM): New.
17156 (V_THREE_ELEM): Likewise.
17157 (V_FOUR_ELEM): Likewise.
17159 2014-04-28 David Malcolm <dmalcolm@redhat.com>
17161 * doc/gimple.texi: Replace the description of the now-defunct
17162 union gimple_statement_d with a diagram showing the
17163 gimple_statement_base class hierarchy and its relationships to
17164 the GSS_ and GIMPLE_ enums.
17166 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17168 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
17169 * config/aarch64/aarch64.c
17170 (aarch64_cannot_change_mode_class): Weaken conditions.
17171 (aarch64_modes_tieable_p): New.
17172 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
17174 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
17176 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17177 (loadsync_<mode>): Change mode.
17178 (load_quadpti, store_quadpti): New.
17179 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17180 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17182 2014-04-28 Martin Jambor <mjambor@suse.cz>
17184 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
17185 same alias type as the original statement.
17186 (subreplacement_assignment_data): New type.
17187 (handle_unscalarized_data_in_subtree): New type of parameter,
17188 generate new memory accesses with same alias type as the original
17190 (load_assign_lhs_subreplacements): Likewise.
17191 (sra_modify_constructor_assign): Generate new memory accesses with
17192 same alias type as the original statement.
17194 2014-04-28 Richard Biener <rguenther@suse.de>
17196 * tree-pass.h (TODO_verify_il): Define.
17197 (TODO_verify_all): Complete properly.
17198 * passes.c (execute_function_todo): Move existing loop-closed
17199 SSA verification under TODO_verify_il.
17200 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
17201 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
17202 Fix tree sharing issue.
17204 2014-04-28 Richard Biener <rguenther@suse.de>
17206 PR middle-end/60092
17207 * builtins.def (DEF_C11_BUILTIN): Add.
17208 (BUILT_IN_ALIGNED_ALLOC): Likewise.
17209 * coretypes.h (enum function_class): Add function_c11_misc.
17210 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17211 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
17212 (call_may_clobber_ref_p_1): Likewise.
17213 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17214 (mark_all_reaching_defs_necessary_1): Likewise.
17215 (propagate_necessity): Likewise.
17216 (eliminate_unnecessary_stmts): Likewise.
17217 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
17219 2014-04-28 Richard Biener <rguenther@suse.de>
17221 * tree-vrp.c (vrp_var_may_overflow): Remove.
17222 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
17223 with overflow immediately bump to one before that value and
17224 let iteration figure out overflow status.
17226 2014-04-28 Richard Biener <rguenther@suse.de>
17228 * configure.ac: Do valgrind header checks unconditionally.
17229 Add --enable-valgrind-annotations.
17230 * system.h: Guard valgrind header inclusion with
17231 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
17232 * alloc-pool.c (pool_alloc, pool_free): Use
17233 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
17234 to guard possibly dead code.
17235 * config.in: Regenerated.
17236 * configure: Likewise.
17238 2014-04-28 Jeff Law <law@redhat.com>
17240 PR tree-optimization/60902
17241 * tree-ssa-threadedge.c
17242 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
17243 over real defs when invalidating outputs from statements that do not
17244 produce useful outputs for threading.
17246 2014-04-28 Richard Biener <rguenther@suse.de>
17248 PR tree-optimization/60979
17249 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
17250 SCOPs that end in a block with a successor with abnormal
17253 2014-04-28 Richard Biener <rguenther@suse.de>
17255 * tree-pass.h (execute_pass_list): Adjust prototype.
17256 * passes.c (pass_manager::execute_early_local_passes): Adjust.
17257 (do_per_function): Change callback signature, push all actual
17258 work to the callbals.
17259 (do_per_function_toporder): Likewise.
17260 (execute_function_dump): Adjust.
17261 (execute_function_todo): Likewise.
17262 (clear_last_verified): Likewise.
17263 (verify_curr_properties): Likewise.
17264 (update_properties_after_pass): Likewise.
17265 (execute_pass_list_1): Split out from ...
17266 (execute_pass_list): ... here. Adjust.
17267 (execute_ipa_pass_list): Likewise.
17268 * cgraphunit.c (cgraph_add_new_function): Adjust.
17269 (analyze_function): Likewise.
17270 (expand_function): Likewise.
17271 * cgraph.c (release_function_body): Free dominance info
17272 here instead of asserting it was magically freed elsewhere.
17274 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
17276 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
17277 * configure: Regenerate.
17278 * config/sparc/sparc.opt (muser-mode): New option.
17279 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
17281 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
17282 * doc/invoke.texi (SPARC options): Document -muser-mode.
17284 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
17286 * cselib.c (find_slot_memmode): Delete.
17287 (cselib_hasher): Change compare_type to a struct.
17288 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
17290 (preserve_constants_and_equivs): Adjust for new compare_type.
17291 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
17292 (wrap_constant): Delete.
17293 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
17295 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
17297 * doc/install.texi (Building with profile feedback): Remove
17300 2014-04-26 Tom de Vries <tom@codesourcery.com>
17302 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
17305 2014-04-25 Cary Coutant <ccoutant@google.com>
17308 * dwarf2out.c (should_move_die_to_comdat): A type definition
17309 can contain a subprogram definition, but don't move it to a
17311 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
17312 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
17314 (clone_tree_hash): Rename to...
17315 (clone_tree_partial): ...this; change callers. Copy
17316 DW_TAG_subprogram DIEs as declarations.
17317 (copy_decls_walk): Don't copy children of a declaration into a
17320 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
17323 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
17326 2014-04-25 Jiong Wang <jiong.wang@arm.com>
17328 * config/arm/predicates.md (call_insn_operand): Add long_call check.
17329 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
17331 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
17334 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17336 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
17338 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17340 PR tree-optimization/60930
17341 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
17342 creating a multiply candidate by folding two constant
17343 multiplicands when the result overflows.
17345 2014-04-25 Jakub Jelinek <jakub@redhat.com>
17347 PR tree-optimization/60960
17348 * tree-vect-generic.c (expand_vector_operation): Only call
17349 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
17351 2014-04-25 Tom de Vries <tom@codesourcery.com>
17353 * expr.c (clobber_reg_mode): New function.
17354 * expr.h (clobber_reg): New function.
17356 2014-04-25 Tom de Vries <tom@codesourcery.com>
17358 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
17361 2014-04-25 Radovan Obradovic <robradovic@mips.com>
17362 Tom de Vries <tom@codesourcery.com>
17364 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
17366 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
17367 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
17368 new argument to find_all_hard_reg_sets call.
17370 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17372 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
17373 Use HOST_WIDE_INT_C for mask literal.
17374 (aarch_rev16_shleft_mask_imm_p): Likewise.
17376 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
17379 * config/sparc/sparc.md (ashlsi3_extend): Delete.
17381 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
17383 PR preprocessor/56540
17384 * config/i386/i386-c.c (ix86_target_macros): Define
17385 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
17387 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17389 * configure.ac (tga_func): Remove.
17390 (LIB_TLS_SPEC): Remove.
17391 * configure: Regenerate.
17392 * config.in: Regenerate.
17393 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
17395 2014-04-25 Richard Biener <rguenther@suse.de>
17398 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
17399 call stmt use/clobber sets during stmt walk instead of
17400 walking the possibly incomplete set of caller edges.
17402 2014-04-25 Richard Biener <rguenther@suse.de>
17405 * passes.c (apply_ipa_transforms): Inline into only caller ...
17406 (execute_one_pass): ... here. Properly bring in function
17407 bodies for nodes we want to apply IPA transforms to.
17409 2014-04-24 Cong Hou <congh@google.com>
17411 PR tree-optimization/60896
17412 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
17413 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
17414 (vect_mark_pattern_stmts): Set the def type of all statements in
17415 PATTERN_DEF_SEQ as vect_internal_def.
17417 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17419 * doc/extend.texi (PowerPC Built-in Functions): Document new
17420 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
17421 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
17423 * config/rs6000/predicates.md (const_0_to_3_operand): New
17424 predicate to match 0..3 integer constants.
17426 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
17427 to support adding miscellaneous builtin functions.
17428 (BU_DFP_MISC_2): Likewise.
17429 (BU_P7_MISC_1): Likewise.
17430 (BU_P7_MISC_2): Likewise.
17431 (BU_P8V_MISC_3): Likewise.
17432 (BU_MISC_1): Likewise.
17433 (BU_MISC_2): Likewise.
17434 (DIVWE): Add extended divide builtin functions.
17435 (DIVWEO): Likewise.
17436 (DIVWEU): Likewise.
17437 (DIVWEUO): Likewise.
17439 (DIVDEO): Likewise.
17440 (DIVDEU): Likewise.
17441 (DIVDEUO): Likewise.
17442 (DXEX): Add decimal floating-point builtin functions.
17444 (DDEDPD): Likewise.
17445 (DDEDPDQ): Likewise.
17446 (DENBCD): Likewise.
17447 (DENBCDQ): Likewise.
17451 (DSCLIQ): Likewise.
17453 (DSCRIQ): Likewise.
17454 (CDTBCD): Add new BCD builtin functions.
17455 (CBCDTD): Likewise.
17456 (ADDG6S): Likewise.
17457 (BCDADD): Likewise.
17458 (BCDADD_LT): Likewise.
17459 (BCDADD_EQ): Likewise.
17460 (BCDADD_GT): Likewise.
17461 (BCDADD_OV): Likewise.
17462 (BCDSUB): Likewise.
17463 (BCDSUB_LT): Likewise.
17464 (BCDSUB_EQ): Likewise.
17465 (BCDSUB_GT): Likewise.
17466 (BCDSUB_OV): Likewise.
17467 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
17468 (UNPACK_TD): Likewise.
17469 (PACK_TF): Likewise.
17470 (UNPACK_TF): Likewise.
17471 (UNPACK_TF_0): Likewise.
17472 (UNPACK_TF_1): Likewise.
17473 (PACK_V1TI): Likewise.
17474 (UNPACK_V1TI): Likewise.
17476 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17477 support for decimal floating point builtin functions.
17478 (rs6000_expand_ternop_builtin): Add checks for the new builtin
17479 functions that take constant arguments.
17480 (rs6000_invalid_builtin): Add decimal floating point builtin support.
17481 (rs6000_init_builtins): Setup long double, _Decimal64, and
17482 _Decimal128 types for new builtin functions.
17483 (builtin_function_type): Set the unsigned flags appropriately for
17484 the new builtin functions.
17485 (rs6000_opt_masks): Add support for decimal floating point builtin
17488 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
17489 floating point builtin functions.
17490 (RS6000_BTM_COMMON): Likewise.
17491 (RS6000_BTI_long_double): Likewise.
17492 (RS6000_BTI_dfloat64): Likewise.
17493 (RS6000_BTI_dfloat128): Likewise.
17494 (long_double_type_internal_node): Likewise.
17495 (dfloat64_type_internal_node): Likewise.
17496 (dfloat128_type_internal_node): Likewise.
17498 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
17499 2.07 bcd arithmetic instructions.
17500 (UNSPEC_BCDSUB): Likewise.
17501 (UNSPEC_BCD_OVERFLOW): Likewise.
17502 (UNSPEC_BCD_ADD_SUB): Likewise.
17503 (bcd_add_sub): Likewise.
17504 (BCD_TEST): Likewise.
17505 (bcd<bcd_add_sub>): Likewise.
17506 (bcd<bcd_add_sub>_test): Likewise.
17507 (bcd<bcd_add_sub>_test2): Likewise.
17508 (bcd<bcd_add_sub>_<code>): Likewise.
17509 (peephole2 for combined bcd ops): Likewise.
17511 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
17512 decimal floating point builtin functions.
17513 (UNSPEC_DENBCD): Likewise.
17514 (UNSPEC_DXEX): Likewise.
17515 (UNSPEC_DIEX): Likewise.
17516 (UNSPEC_DSCLI): Likewise.
17517 (UNSPEC_DSCRI): Likewise.
17518 (D64_D128): Likewise.
17519 (dfp_suffix): Likewise.
17520 (dfp_ddedpd_<mode>): Likewise.
17521 (dfp_denbcd_<mode>): Likewise.
17522 (dfp_dxex_<mode>): Likewise.
17523 (dfp_diex_<mode>): Likewise.
17524 (dfp_dscli_<mode>): Likewise.
17525 (dfp_dscri_<mode>): Likewise.
17527 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
17529 (UNSPEC_CDTBCD): Likewise.
17530 (UNSPEC_CBCDTD): Likewise.
17531 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
17532 (UNSPEC_DIVEO): Likewise.
17533 (UNSPEC_DIVEU): Likewise.
17534 (UNSPEC_DIVEUO): Likewise.
17535 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
17536 pack/unpack 128-bit types.
17537 (UNSPEC_PACK_128BIT): Likewise.
17538 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
17539 (udiv<mode>3): Use idiv_ldiv mode attribute.
17540 (div<mode>3): Likewise.
17541 (addg6s): Add new BCD builtin functions.
17542 (cdtbcd): Likewise.
17543 (cbcdtd): Likewise.
17544 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
17545 (div_extend): Likewise.
17546 (div<div_extend>_<mode>"): Likewise.
17547 (FP128_64): Add support for new builtin functions to pack/unpack
17549 (unpack<mode>): Likewise.
17550 (unpacktf_0): Likewise.
17551 (unpacktf_1): Likewise.
17552 (unpack<mode>_dm): Likewise.
17553 (unpack<mode>_nodm): Likewise.
17554 (pack<mode>): Likewise.
17555 (unpackv1ti): Likewise.
17556 (packv1ti): Likewise.
17558 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
17560 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
17563 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17565 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
17566 * gimplify.c (omp_is_private): Change last argument's type to int.
17567 Only diagnose lastprivate if the simd argument is 1, only diagnose
17568 linear if the simd argument is 2.
17569 (gimplify_omp_for): Adjust omp_is_private callers. When adding
17570 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
17571 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
17572 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
17573 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
17574 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17575 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
17576 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17577 * tree-nested.c (convert_nonlocal_omp_clauses,
17578 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
17580 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
17583 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
17586 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
17588 * flag-types.h (enum ivar_visibility): Add.
17590 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
17592 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
17593 function * argument.
17595 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
17597 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
17599 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17600 Tom de Vries <tom@codesourcery.com>
17602 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
17603 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
17605 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
17606 * emit-rtl.c (try_split): Same.
17608 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17609 Tom de Vries <tom@codesourcery.com>
17611 * common.opt (fuse-caller-save): New option.
17613 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
17615 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
17616 elements for big-endian.
17618 2014-04-24 Richard Biener <rguenther@suse.de>
17620 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
17621 during TER and instead use the sepops interface for expanding
17622 non-GIMPLE_SINGLE_RHS.
17624 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17626 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
17627 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
17629 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17631 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
17632 assembler 64-bit option.
17633 * configure: Regenerate.
17635 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17637 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
17638 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
17639 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
17640 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
17641 (TARGET_CRYPTO): Take TARGET_SIMD into account.
17643 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17645 * config/aarch64/aarch64-builtins.c
17646 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
17647 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
17648 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
17649 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
17651 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
17652 (Vrevsuff): New mode attribute.
17654 2014-04-24 Terry Guo <terry.guo@arm.com>
17656 * config/arm/arm.h (machine_function): Define variable
17657 after_arm_reorg here.
17658 * config/arm/arm.c (after_arm_reorg): Remove the definition.
17659 (arm_split_constant): Update the way to access variable
17661 (arm_reorg): Ditto.
17662 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
17664 2014-04-23 Tom de Vries <tom@codesourcery.com>
17666 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
17668 2014-04-23 David Malcolm <dmalcolm@redhat.com>
17670 * is-a.h: Update comments to reflect the following changes to the
17671 "pointerness" of the API, making the template parameter match the
17672 return type, allowing use of is-a.h with typedefs of pointers.
17673 (is_a_helper::cast): Return a T rather then a pointer to a T, so
17674 that the return type matches the parameter to the is_a_helper.
17676 (dyn_cast): Likewise.
17678 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
17679 pointer from the is-a.h API.
17681 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
17682 (is_a_helper <cgraph_node *>::test): ...this, matching change to
17684 (is_a_helper <varpool_node>::test): Likewise, convert to...
17685 (is_a_helper <varpool_node *>::test): ...this.
17687 (varpool_first_variable): Update for removal of implicit pointer
17688 from the is-a.h API.
17689 (varpool_next_variable): Likewise.
17690 (varpool_first_static_initializer): Likewise.
17691 (varpool_next_static_initializer): Likewise.
17692 (varpool_first_defined_variable): Likewise.
17693 (varpool_next_defined_variable): Likewise.
17694 (cgraph_first_defined_function): Likewise.
17695 (cgraph_next_defined_function): Likewise.
17696 (cgraph_first_function): Likewise.
17697 (cgraph_next_function): Likewise.
17698 (cgraph_first_function_with_gimple_body): Likewise.
17699 (cgraph_next_function_with_gimple_body): Likewise.
17700 (cgraph_alias_target): Likewise.
17701 (varpool_alias_target): Likewise.
17702 (cgraph_function_or_thunk_node): Likewise.
17703 (varpool_variable_node): Likewise.
17704 (symtab_real_symbol_p): Likewise.
17705 * cgraphunit.c (referred_to_p): Likewise.
17706 (analyze_functions): Likewise.
17707 (handle_alias_pairs): Likewise.
17708 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
17709 * gimple-ssa.h (gimple_vuse_op): Likewise.
17710 (gimple_vdef_op): Likewise.
17711 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
17712 * gimple.c (gimple_build_asm_1): Likewise.
17713 (gimple_build_try): Likewise.
17714 (gimple_build_resx): Likewise.
17715 (gimple_build_eh_dispatch): Likewise.
17716 (gimple_build_omp_for): Likewise.
17717 (gimple_omp_for_set_clauses): Likewise.
17719 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
17720 (is_a_helper <gimple_statement_asm *>::test): ...this.
17721 (is_a_helper <gimple_statement_bind>::test): Convert to...
17722 (is_a_helper <gimple_statement_bind *>::test): ...this.
17723 (is_a_helper <gimple_statement_call>::test): Convert to...
17724 (is_a_helper <gimple_statement_call *>::test): ...this.
17725 (is_a_helper <gimple_statement_catch>::test): Convert to...
17726 (is_a_helper <gimple_statement_catch *>::test): ...this.
17727 (is_a_helper <gimple_statement_resx>::test): Convert to...
17728 (is_a_helper <gimple_statement_resx *>::test): ...this.
17729 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
17730 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
17731 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
17732 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
17733 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
17734 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
17735 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
17736 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
17737 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
17738 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
17739 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
17740 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
17741 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
17742 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
17743 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
17744 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
17745 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
17746 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
17747 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
17748 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
17749 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
17750 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
17751 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
17752 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
17753 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
17754 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
17755 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
17756 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
17757 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
17758 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
17759 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
17760 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
17761 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
17762 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
17763 (is_a_helper <gimple_statement_phi>::test): Convert to...
17764 (is_a_helper <gimple_statement_phi *>::test): ...this.
17765 (is_a_helper <gimple_statement_transaction>::test): Convert to...
17766 (is_a_helper <gimple_statement_transaction *>::test): ...this.
17767 (is_a_helper <gimple_statement_try>::test): Convert to...
17768 (is_a_helper <gimple_statement_try *>::test): ...this.
17769 (is_a_helper <gimple_statement_wce>::test): Convert to...
17770 (is_a_helper <gimple_statement_wce *>::test): ...this.
17771 (is_a_helper <const gimple_statement_asm>::test): Convert to...
17772 (is_a_helper <const gimple_statement_asm *>::test): ...this.
17773 (is_a_helper <const gimple_statement_bind>::test): Convert to...
17774 (is_a_helper <const gimple_statement_bind *>::test): ...this.
17775 (is_a_helper <const gimple_statement_call>::test): Convert to...
17776 (is_a_helper <const gimple_statement_call *>::test): ...this.
17777 (is_a_helper <const gimple_statement_catch>::test): Convert to...
17778 (is_a_helper <const gimple_statement_catch *>::test): ...this.
17779 (is_a_helper <const gimple_statement_resx>::test): Convert to...
17780 (is_a_helper <const gimple_statement_resx *>::test): ...this.
17781 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
17782 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
17783 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
17784 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
17785 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
17787 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
17789 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
17791 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
17793 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
17794 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
17795 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
17797 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
17798 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
17800 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
17801 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
17802 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
17803 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
17804 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
17805 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
17807 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
17808 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
17809 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
17810 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
17812 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
17813 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
17814 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
17815 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
17816 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
17817 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
17818 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
17819 (is_a_helper <const gimple_statement_phi>::test): Convert to...
17820 (is_a_helper <const gimple_statement_phi *>::test): ...this.
17821 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
17822 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
17823 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
17824 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
17825 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
17826 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
17827 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
17829 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
17831 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
17832 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
17834 (gimple_use_ops): Update for removal of implicit pointer from the
17836 (gimple_set_use_ops): Likewise.
17837 (gimple_vuse): Likewise.
17838 (gimple_vdef): Likewise.
17839 (gimple_vuse_ptr): Likewise.
17840 (gimple_vdef_ptr): Likewise.
17841 (gimple_set_vuse): Likewise.
17842 (gimple_set_vdef): Likewise.
17843 (gimple_omp_return_set_lhs): Likewise.
17844 (gimple_omp_return_lhs): Likewise.
17845 (gimple_omp_return_lhs_ptr): Likewise.
17846 (gimple_call_fntype): Likewise.
17847 (gimple_call_set_fntype): Likewise.
17848 (gimple_call_set_internal_fn): Likewise.
17849 (gimple_call_use_set): Likewise.
17850 (gimple_call_clobber_set): Likewise.
17851 (gimple_bind_vars): Likewise.
17852 (gimple_bind_set_vars): Likewise.
17853 (gimple_bind_body_ptr): Likewise.
17854 (gimple_bind_set_body): Likewise.
17855 (gimple_bind_add_stmt): Likewise.
17856 (gimple_bind_block): Likewise.
17857 (gimple_bind_set_block): Likewise.
17858 (gimple_asm_ninputs): Likewise.
17859 (gimple_asm_noutputs): Likewise.
17860 (gimple_asm_nclobbers): Likewise.
17861 (gimple_asm_nlabels): Likewise.
17862 (gimple_asm_input_op): Likewise.
17863 (gimple_asm_input_op_ptr): Likewise.
17864 (gimple_asm_output_op): Likewise.
17865 (gimple_asm_output_op_ptr): Likewise.
17866 (gimple_asm_set_output_op): Likewise.
17867 (gimple_asm_clobber_op): Likewise.
17868 (gimple_asm_set_clobber_op): Likewise.
17869 (gimple_asm_label_op): Likewise.
17870 (gimple_asm_set_label_op): Likewise.
17871 (gimple_asm_string): Likewise.
17872 (gimple_catch_types): Likewise.
17873 (gimple_catch_types_ptr): Likewise.
17874 (gimple_catch_handler_ptr): Likewise.
17875 (gimple_catch_set_types): Likewise.
17876 (gimple_catch_set_handler): Likewise.
17877 (gimple_eh_filter_types): Likewise.
17878 (gimple_eh_filter_types_ptr): Likewise.
17879 (gimple_eh_filter_failure_ptr): Likewise.
17880 (gimple_eh_filter_set_types): Likewise.
17881 (gimple_eh_filter_set_failure): Likewise.
17882 (gimple_eh_must_not_throw_fndecl): Likewise.
17883 (gimple_eh_must_not_throw_set_fndecl): Likewise.
17884 (gimple_eh_else_n_body_ptr): Likewise.
17885 (gimple_eh_else_e_body_ptr): Likewise.
17886 (gimple_eh_else_set_n_body): Likewise.
17887 (gimple_eh_else_set_e_body): Likewise.
17888 (gimple_try_eval_ptr): Likewise.
17889 (gimple_try_cleanup_ptr): Likewise.
17890 (gimple_try_set_eval): Likewise.
17891 (gimple_try_set_cleanup): Likewise.
17892 (gimple_wce_cleanup_ptr): Likewise.
17893 (gimple_wce_set_cleanup): Likewise.
17894 (gimple_phi_capacity): Likewise.
17895 (gimple_phi_num_args): Likewise.
17896 (gimple_phi_result): Likewise.
17897 (gimple_phi_result_ptr): Likewise.
17898 (gimple_phi_set_result): Likewise.
17899 (gimple_phi_arg): Likewise.
17900 (gimple_phi_set_arg): Likewise.
17901 (gimple_resx_region): Likewise.
17902 (gimple_resx_set_region): Likewise.
17903 (gimple_eh_dispatch_region): Likewise.
17904 (gimple_eh_dispatch_set_region): Likewise.
17905 (gimple_omp_critical_name): Likewise.
17906 (gimple_omp_critical_name_ptr): Likewise.
17907 (gimple_omp_critical_set_name): Likewise.
17908 (gimple_omp_for_clauses): Likewise.
17909 (gimple_omp_for_clauses_ptr): Likewise.
17910 (gimple_omp_for_set_clauses): Likewise.
17911 (gimple_omp_for_collapse): Likewise.
17912 (gimple_omp_for_index): Likewise.
17913 (gimple_omp_for_index_ptr): Likewise.
17914 (gimple_omp_for_set_index): Likewise.
17915 (gimple_omp_for_initial): Likewise.
17916 (gimple_omp_for_initial_ptr): Likewise.
17917 (gimple_omp_for_set_initial): Likewise.
17918 (gimple_omp_for_final): Likewise.
17919 (gimple_omp_for_final_ptr): Likewise.
17920 (gimple_omp_for_set_final): Likewise.
17921 (gimple_omp_for_incr): Likewise.
17922 (gimple_omp_for_incr_ptr): Likewise.
17923 (gimple_omp_for_set_incr): Likewise.
17924 (gimple_omp_for_pre_body_ptr): Likewise.
17925 (gimple_omp_for_set_pre_body): Likewise.
17926 (gimple_omp_parallel_clauses): Likewise.
17927 (gimple_omp_parallel_clauses_ptr): Likewise.
17928 (gimple_omp_parallel_set_clauses): Likewise.
17929 (gimple_omp_parallel_child_fn): Likewise.
17930 (gimple_omp_parallel_child_fn_ptr): Likewise.
17931 (gimple_omp_parallel_set_child_fn): Likewise.
17932 (gimple_omp_parallel_data_arg): Likewise.
17933 (gimple_omp_parallel_data_arg_ptr): Likewise.
17934 (gimple_omp_parallel_set_data_arg): Likewise.
17935 (gimple_omp_task_clauses): Likewise.
17936 (gimple_omp_task_clauses_ptr): Likewise.
17937 (gimple_omp_task_set_clauses): Likewise.
17938 (gimple_omp_task_child_fn): Likewise.
17939 (gimple_omp_task_child_fn_ptr): Likewise.
17940 (gimple_omp_task_set_child_fn): Likewise.
17941 (gimple_omp_task_data_arg): Likewise.
17942 (gimple_omp_task_data_arg_ptr): Likewise.
17943 (gimple_omp_task_set_data_arg): Likewise.
17944 (gimple_omp_taskreg_clauses): Likewise.
17945 (gimple_omp_taskreg_clauses_ptr): Likewise.
17946 (gimple_omp_taskreg_set_clauses): Likewise.
17947 (gimple_omp_taskreg_child_fn): Likewise.
17948 (gimple_omp_taskreg_child_fn_ptr): Likewise.
17949 (gimple_omp_taskreg_set_child_fn): Likewise.
17950 (gimple_omp_taskreg_data_arg): Likewise.
17951 (gimple_omp_taskreg_data_arg_ptr): Likewise.
17952 (gimple_omp_taskreg_set_data_arg): Likewise.
17953 (gimple_omp_task_copy_fn): Likewise.
17954 (gimple_omp_task_copy_fn_ptr): Likewise.
17955 (gimple_omp_task_set_copy_fn): Likewise.
17956 (gimple_omp_task_arg_size): Likewise.
17957 (gimple_omp_task_arg_size_ptr): Likewise.
17958 (gimple_omp_task_set_arg_size): Likewise.
17959 (gimple_omp_task_arg_align): Likewise.
17960 (gimple_omp_task_arg_align_ptr): Likewise.
17961 (gimple_omp_task_set_arg_align): Likewise.
17962 (gimple_omp_single_clauses): Likewise.
17963 (gimple_omp_single_clauses_ptr): Likewise.
17964 (gimple_omp_single_set_clauses): Likewise.
17965 (gimple_omp_target_clauses): Likewise.
17966 (gimple_omp_target_clauses_ptr): Likewise.
17967 (gimple_omp_target_set_clauses): Likewise.
17968 (gimple_omp_target_child_fn): Likewise.
17969 (gimple_omp_target_child_fn_ptr): Likewise.
17970 (gimple_omp_target_set_child_fn): Likewise.
17971 (gimple_omp_target_data_arg): Likewise.
17972 (gimple_omp_target_data_arg_ptr): Likewise.
17973 (gimple_omp_target_set_data_arg): Likewise.
17974 (gimple_omp_teams_clauses): Likewise.
17975 (gimple_omp_teams_clauses_ptr): Likewise.
17976 (gimple_omp_teams_set_clauses): Likewise.
17977 (gimple_omp_sections_clauses): Likewise.
17978 (gimple_omp_sections_clauses_ptr): Likewise.
17979 (gimple_omp_sections_set_clauses): Likewise.
17980 (gimple_omp_sections_control): Likewise.
17981 (gimple_omp_sections_control_ptr): Likewise.
17982 (gimple_omp_sections_set_control): Likewise.
17983 (gimple_omp_for_set_cond): Likewise.
17984 (gimple_omp_for_cond): Likewise.
17985 (gimple_omp_atomic_store_set_val): Likewise.
17986 (gimple_omp_atomic_store_val): Likewise.
17987 (gimple_omp_atomic_store_val_ptr): Likewise.
17988 (gimple_omp_atomic_load_set_lhs): Likewise.
17989 (gimple_omp_atomic_load_lhs): Likewise.
17990 (gimple_omp_atomic_load_lhs_ptr): Likewise.
17991 (gimple_omp_atomic_load_set_rhs): Likewise.
17992 (gimple_omp_atomic_load_rhs): Likewise.
17993 (gimple_omp_atomic_load_rhs_ptr): Likewise.
17994 (gimple_omp_continue_control_def): Likewise.
17995 (gimple_omp_continue_control_def_ptr): Likewise.
17996 (gimple_omp_continue_set_control_def): Likewise.
17997 (gimple_omp_continue_control_use): Likewise.
17998 (gimple_omp_continue_control_use_ptr): Likewise.
17999 (gimple_omp_continue_set_control_use): Likewise.
18000 (gimple_transaction_body_ptr): Likewise.
18001 (gimple_transaction_label): Likewise.
18002 (gimple_transaction_label_ptr): Likewise.
18003 (gimple_transaction_set_body): Likewise.
18004 (gimple_transaction_set_label): Likewise.
18006 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18007 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18008 * ipa-ref.c (ipa_record_reference): Likewise.
18009 * ipa-reference.c (analyze_function): Likewise.
18010 (ipa_reference_write_optimization_summary): Likewise.
18011 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18012 (address_taken_from_non_vtable_p): Likewise.
18013 (comdat_can_be_unshared_p_1): Likewise.
18014 * lto-cgraph.c (lto_output_ref): Likewise.
18015 (add_references): Likewise.
18016 (compute_ltrans_boundary): Likewise.
18017 (output_symtab): Likewise.
18018 (input_ref): Likewise.
18019 (input_cgraph_1): Likewise.
18020 (output_cgraph_opt_summary): Likewise.
18021 * lto-streamer-out.c (lto_output): Likewise.
18022 (output_symbol_p): Likewise.
18023 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18024 (lsei_start_function_in_partition): Likewise.
18025 (lsei_next_variable_in_partition): Likewise.
18026 (lsei_start_variable_in_partition): Likewise.
18027 * symtab.c (insert_to_assembler_name_hash): Likewise.
18028 (unlink_from_assembler_name_hash): Likewise.
18029 (symtab_unregister_node): Likewise.
18030 (symtab_remove_node): Likewise.
18031 (dump_symtab_node): Likewise.
18032 (verify_symtab_base): Likewise.
18033 (verify_symtab_node): Likewise.
18034 (symtab_make_decl_local): Likewise.
18035 (symtab_alias_ultimate_target): Likewise.
18036 (symtab_resolve_alias): Likewise.
18037 (symtab_get_symbol_partitioning_class): Likewise.
18038 * tree-phinodes.c (allocate_phi_node): Likewise.
18039 (reserve_phi_args_for_new_edge): Likewise.
18040 (remove_phi_args): Likewise.
18041 * varpool.c (varpool_node_for_asm): Likewise.
18042 (varpool_remove_unreferenced_decls): Likewise.
18044 2014-04-23 Jeff Law <law@redhat.com>
18046 PR tree-optimization/60902
18047 * tree-ssa-threadedge.c
18048 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18049 invalidate outputs from statements that do not produce useful
18050 outputs for threading.
18052 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18054 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18055 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18056 machine descriptions for Stack Smashing Protector.
18058 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18060 * aarch64.md (<optab>_rol<mode>3): New pattern.
18061 (<optab>_rolsi3_uxtw): Likewise.
18062 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18064 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18066 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18067 (arm_cortex_a12_tune): Likewise.
18069 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18071 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18073 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18075 * config/arm/arm.md (arm_rev16si2): New pattern.
18076 (arm_rev16si2_alt): Likewise.
18077 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18079 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18081 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18082 (rev16<mode>2_alt): Likewise.
18083 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18084 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18085 (aarch_rev16_shleft_mask_imm_p): Likewise.
18086 (aarch_rev16_p_1): Likewise.
18087 (aarch_rev16_p): Likewise.
18088 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18089 (aarch_rev16_shright_mask_imm_p): Likewise.
18090 (aarch_rev16_shleft_mask_imm_p): Likewise.
18092 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18094 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18095 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18097 (cortex_a53_extra_costs): Likewise.
18098 (cortex_a57_extra_costs): Likewise.
18099 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18100 (cortexa7_extra_costs): Likewise.
18101 (cortexa8_extra_costs): Likewise.
18102 (cortexa12_extra_costs): Likewise.
18103 (cortexa15_extra_costs): Likewise.
18104 (v7m_extra_costs): Likewise.
18105 (arm_new_rtx_costs): Handle BSWAP.
18107 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18109 * config/arm/arm.c (cortexa8_extra_costs): New table.
18110 (arm_cortex_a8_tune): New tuning struct.
18111 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18113 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18115 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18117 2014-04-23 Richard Biener <rguenther@suse.de>
18119 * Makefile.in (OBJS): Remove loop-unswitch.o.
18120 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18121 * passes.def (pass_rtl_unswitch): Likewise.
18122 * loop-init.c (gate_rtl_unswitch): Likewise.
18123 (rtl_unswitch): Likewise.
18124 (pass_data_rtl_unswitch): Likewise.
18125 (pass_rtl_unswitch): Likewise.
18126 (make_pass_rtl_unswitch): Likewise.
18127 * rtl.h (reversed_condition): Likewise.
18128 (compare_and_jump_seq): Likewise.
18129 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18131 * loop-unroll.c (compare_and_jump_seq): Likewise.
18133 2014-04-23 Richard Biener <rguenther@suse.de>
18135 PR tree-optimization/60903
18136 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18137 commented code block.
18138 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18139 loop flags to newly created BBs and edges.
18141 2014-04-23 Nick Clifton <nickc@redhat.com>
18143 * config/msp430/msp430.c (msp430_handle_option): Move function
18145 (msp430_option_override): Simplify mcu and mcpu option handling.
18146 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
18147 support for -mhwmult command line option.
18148 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
18149 -mhwmult command line option.
18150 (msp430_hwmult_enabled): Delete.
18151 (msp43o_output_labelref): Add support for -mhwmult command line option.
18152 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
18153 (umulsidi3): Likewise.
18154 * config/msp430/msp430.opt (mmcu): Add Report attribute.
18155 (mcpu, mlarge, msmall): Likewise.
18156 (mhwmult): New option.
18157 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
18159 (msp430_is_f5_mcu): Remove prototype.
18160 (msp430_use_f5_series_hwmult): Add prototype.
18161 * config/msp430/msp430-opts.h: New file.
18162 * common/config/msp430: New directory.
18163 * common/config/msp430/msp430-common.c: New file.
18164 * config.gcc (msp430): Remove target_has_targetm_common.
18165 * doc/invoke.texi: Document -mhwmult command line option.
18167 2014-04-23 Nick Clifton <nickc@redhat.com>
18169 * config/i386/cygwin.h (ENDFILE_SPEC): Include
18170 default-manifest.o if it can be found in the search path.
18171 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18173 2014-04-23 Terry Guo <terry.guo@arm.com>
18175 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
18177 2014-04-23 Richard Biener <rguenther@suse.de>
18179 PR middle-end/60895
18180 * tree-inline.c (declare_return_variable): Use mark_addressable.
18182 2014-04-23 Richard Biener <rguenther@suse.de>
18184 PR middle-end/60891
18185 * loop-init.c (loop_optimizer_init): Make sure to apply
18186 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
18188 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18191 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
18193 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
18194 if flag_sanitize_undefined_trap_on_error.
18195 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
18196 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
18197 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
18198 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
18199 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
18200 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
18201 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
18202 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
18203 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
18204 * ubsan.c (ubsan_instrument_unreachable): Return
18205 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
18206 (ubsan_expand_null_ifn): Emit __builtin_trap ()
18207 if flag_sanitize_undefined_trap_on_error and
18208 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
18209 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18210 instrument_bool_enum_load): Emit __builtin_trap () if
18211 flag_sanitize_undefined_trap_on_error and
18212 __builtin_handle_*_abort () if !flag_sanitize_recover.
18213 * doc/invoke.texi (-fsanitize-recover,
18214 -fsanitize-undefined-trap-on-error): Document.
18216 2014-04-22 Christian Bruel <christian.bruel@st.com>
18218 * config/sh/sh.md (mov<mode>): Replace movQIHI.
18219 Force immediates to SImode.
18221 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
18223 * config/nios2/nios2.md (UNSPEC_ROUND): New.
18224 (lroundsfsi2): New.
18225 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
18226 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
18227 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
18228 (nios2_fpu_insn): Add entry for round.
18229 (N2FPU_NO_ERRNO_P): Define.
18230 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
18232 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
18234 2014-04-22 Richard Henderson <rth@redhat.com>
18236 * config/aarch64/aarch64 (addti3, subti3): New expanders.
18237 (add<GPI>3_compare0): Remove leading * from name.
18238 (add<GPI>3_carryin): Likewise.
18239 (sub<GPI>3_compare0): Likewise.
18240 (sub<GPI>3_carryin): Likewise.
18241 (<su_optab>mulditi3): New expander.
18242 (multi3): New expander.
18243 (madd<GPI>): Remove leading * from name.
18245 2014-04-22 Martin Jambor <mjambor@suse.cz>
18247 * cgraphclones.c (cgraph_function_versioning): Copy
18248 ipa_transforms_to_apply instead of asserting it is empty.
18250 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
18253 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
18254 on count_exp to get mode.
18256 2014-04-22 Andrew Pinski <apinski@cavium.com>
18258 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18259 Handle TLS for ILP32.
18260 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
18261 (tlsie_small_<mode>): this and handle PTR.
18262 (tlsie_small_sidi): New pattern.
18263 (tlsle_small): Change to an expand to handle ILP32.
18264 (tlsle_small_<mode>): New pattern.
18265 (tlsdesc_small): Rename to ...
18266 (tlsdesc_small_<mode>): this and handle PTR.
18268 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18270 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
18272 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18274 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18275 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
18276 (aarch64_types_signed_poly_qualifiers): Likewise.
18277 (aarch64_types_unsigned_signed_qualifiers): Likewise.
18278 (aarch64_types_poly_signed_qualifiers): Likewise.
18279 (TYPES_REINTERP_SS): Type macro added.
18280 (TYPES_REINTERP_SU): Likewise.
18281 (TYPES_REINTERP_SP): Likewise.
18282 (TYPES_REINTERP_US): Likewise.
18283 (TYPES_REINTERP_PS): Likewise.
18284 (aarch64_fold_builtin): New expression folding added.
18285 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
18286 Declarations removed.
18287 (REINTERP_SS): Declarations added.
18288 (REINTERP_US): Likewise.
18289 (REINTERP_PS): Likewise.
18290 (REINTERP_SU): Likewise.
18291 (REINTERP_SP): Likewise.
18292 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
18293 (vreinterpretq_p8_f64): Likewise.
18294 (vreinterpret_p16_f64): Likewise.
18295 (vreinterpretq_p16_f64): Likewise.
18296 (vreinterpret_f32_f64): Likewise.
18297 (vreinterpretq_f32_f64): Likewise.
18298 (vreinterpret_f64_f32): Likewise.
18299 (vreinterpret_f64_p8): Likewise.
18300 (vreinterpret_f64_p16): Likewise.
18301 (vreinterpret_f64_s8): Likewise.
18302 (vreinterpret_f64_s16): Likewise.
18303 (vreinterpret_f64_s32): Likewise.
18304 (vreinterpret_f64_s64): Likewise.
18305 (vreinterpret_f64_u8): Likewise.
18306 (vreinterpret_f64_u16): Likewise.
18307 (vreinterpret_f64_u32): Likewise.
18308 (vreinterpret_f64_u64): Likewise.
18309 (vreinterpretq_f64_f32): Likewise.
18310 (vreinterpretq_f64_p8): Likewise.
18311 (vreinterpretq_f64_p16): Likewise.
18312 (vreinterpretq_f64_s8): Likewise.
18313 (vreinterpretq_f64_s16): Likewise.
18314 (vreinterpretq_f64_s32): Likewise.
18315 (vreinterpretq_f64_s64): Likewise.
18316 (vreinterpretq_f64_u8): Likewise.
18317 (vreinterpretq_f64_u16): Likewise.
18318 (vreinterpretq_f64_u32): Likewise.
18319 (vreinterpretq_f64_u64): Likewise.
18320 (vreinterpret_s64_f64): Likewise.
18321 (vreinterpretq_s64_f64): Likewise.
18322 (vreinterpret_u64_f64): Likewise.
18323 (vreinterpretq_u64_f64): Likewise.
18324 (vreinterpret_s8_f64): Likewise.
18325 (vreinterpretq_s8_f64): Likewise.
18326 (vreinterpret_s16_f64): Likewise.
18327 (vreinterpretq_s16_f64): Likewise.
18328 (vreinterpret_s32_f64): Likewise.
18329 (vreinterpretq_s32_f64): Likewise.
18330 (vreinterpret_u8_f64): Likewise.
18331 (vreinterpretq_u8_f64): Likewise.
18332 (vreinterpret_u16_f64): Likewise.
18333 (vreinterpretq_u16_f64): Likewise.
18334 (vreinterpret_u32_f64): Likewise.
18335 (vreinterpretq_u32_f64): Likewise.
18337 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18339 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18340 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
18341 (vreinterpret_p8_s8): Likewise.
18342 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
18343 (vreinterpret_p8_s16): Likewise.
18344 (vreinterpret_p8_s32): Likewise.
18345 (vreinterpret_p8_s64): Likewise.
18346 (vreinterpret_p8_f32): Likewise.
18347 (vreinterpret_p8_u8): Likewise.
18348 (vreinterpret_p8_u16): Likewise.
18349 (vreinterpret_p8_u32): Likewise.
18350 (vreinterpret_p8_u64): Likewise.
18351 (vreinterpret_p8_p16): Likewise.
18352 (vreinterpretq_p8_s8): Likewise.
18353 (vreinterpretq_p8_s16): Likewise.
18354 (vreinterpretq_p8_s32): Likewise.
18355 (vreinterpretq_p8_s64): Likewise.
18356 (vreinterpretq_p8_f32): Likewise.
18357 (vreinterpretq_p8_u8): Likewise.
18358 (vreinterpretq_p8_u16): Likewise.
18359 (vreinterpretq_p8_u32): Likewise.
18360 (vreinterpretq_p8_u64): Likewise.
18361 (vreinterpretq_p8_p16): Likewise.
18362 (vreinterpret_p16_s8): Likewise.
18363 (vreinterpret_p16_s16): Likewise.
18364 (vreinterpret_p16_s32): Likewise.
18365 (vreinterpret_p16_s64): Likewise.
18366 (vreinterpret_p16_f32): Likewise.
18367 (vreinterpret_p16_u8): Likewise.
18368 (vreinterpret_p16_u16): Likewise.
18369 (vreinterpret_p16_u32): Likewise.
18370 (vreinterpret_p16_u64): Likewise.
18371 (vreinterpret_p16_p8): Likewise.
18372 (vreinterpretq_p16_s8): Likewise.
18373 (vreinterpretq_p16_s16): Likewise.
18374 (vreinterpretq_p16_s32): Likewise.
18375 (vreinterpretq_p16_s64): Likewise.
18376 (vreinterpretq_p16_f32): Likewise.
18377 (vreinterpretq_p16_u8): Likewise.
18378 (vreinterpretq_p16_u16): Likewise.
18379 (vreinterpretq_p16_u32): Likewise.
18380 (vreinterpretq_p16_u64): Likewise.
18381 (vreinterpretq_p16_p8): Likewise.
18382 (vreinterpret_f32_s8): Likewise.
18383 (vreinterpret_f32_s16): Likewise.
18384 (vreinterpret_f32_s32): Likewise.
18385 (vreinterpret_f32_s64): Likewise.
18386 (vreinterpret_f32_u8): Likewise.
18387 (vreinterpret_f32_u16): Likewise.
18388 (vreinterpret_f32_u32): Likewise.
18389 (vreinterpret_f32_u64): Likewise.
18390 (vreinterpret_f32_p8): Likewise.
18391 (vreinterpret_f32_p16): Likewise.
18392 (vreinterpretq_f32_s8): Likewise.
18393 (vreinterpretq_f32_s16): Likewise.
18394 (vreinterpretq_f32_s32): Likewise.
18395 (vreinterpretq_f32_s64): Likewise.
18396 (vreinterpretq_f32_u8): Likewise.
18397 (vreinterpretq_f32_u16): Likewise.
18398 (vreinterpretq_f32_u32): Likewise.
18399 (vreinterpretq_f32_u64): Likewise.
18400 (vreinterpretq_f32_p8): Likewise.
18401 (vreinterpretq_f32_p16): Likewise.
18402 (vreinterpret_s64_s8): Likewise.
18403 (vreinterpret_s64_s16): Likewise.
18404 (vreinterpret_s64_s32): Likewise.
18405 (vreinterpret_s64_f32): Likewise.
18406 (vreinterpret_s64_u8): Likewise.
18407 (vreinterpret_s64_u16): Likewise.
18408 (vreinterpret_s64_u32): Likewise.
18409 (vreinterpret_s64_u64): Likewise.
18410 (vreinterpret_s64_p8): Likewise.
18411 (vreinterpret_s64_p16): Likewise.
18412 (vreinterpretq_s64_s8): Likewise.
18413 (vreinterpretq_s64_s16): Likewise.
18414 (vreinterpretq_s64_s32): Likewise.
18415 (vreinterpretq_s64_f32): Likewise.
18416 (vreinterpretq_s64_u8): Likewise.
18417 (vreinterpretq_s64_u16): Likewise.
18418 (vreinterpretq_s64_u32): Likewise.
18419 (vreinterpretq_s64_u64): Likewise.
18420 (vreinterpretq_s64_p8): Likewise.
18421 (vreinterpretq_s64_p16): Likewise.
18422 (vreinterpret_u64_s8): Likewise.
18423 (vreinterpret_u64_s16): Likewise.
18424 (vreinterpret_u64_s32): Likewise.
18425 (vreinterpret_u64_s64): Likewise.
18426 (vreinterpret_u64_f32): Likewise.
18427 (vreinterpret_u64_u8): Likewise.
18428 (vreinterpret_u64_u16): Likewise.
18429 (vreinterpret_u64_u32): Likewise.
18430 (vreinterpret_u64_p8): Likewise.
18431 (vreinterpret_u64_p16): Likewise.
18432 (vreinterpretq_u64_s8): Likewise.
18433 (vreinterpretq_u64_s16): Likewise.
18434 (vreinterpretq_u64_s32): Likewise.
18435 (vreinterpretq_u64_s64): Likewise.
18436 (vreinterpretq_u64_f32): Likewise.
18437 (vreinterpretq_u64_u8): Likewise.
18438 (vreinterpretq_u64_u16): Likewise.
18439 (vreinterpretq_u64_u32): Likewise.
18440 (vreinterpretq_u64_p8): Likewise.
18441 (vreinterpretq_u64_p16): Likewise.
18442 (vreinterpret_s8_s16): Likewise.
18443 (vreinterpret_s8_s32): Likewise.
18444 (vreinterpret_s8_s64): Likewise.
18445 (vreinterpret_s8_f32): Likewise.
18446 (vreinterpret_s8_u8): Likewise.
18447 (vreinterpret_s8_u16): Likewise.
18448 (vreinterpret_s8_u32): Likewise.
18449 (vreinterpret_s8_u64): Likewise.
18450 (vreinterpret_s8_p8): Likewise.
18451 (vreinterpret_s8_p16): Likewise.
18452 (vreinterpretq_s8_s16): Likewise.
18453 (vreinterpretq_s8_s32): Likewise.
18454 (vreinterpretq_s8_s64): Likewise.
18455 (vreinterpretq_s8_f32): Likewise.
18456 (vreinterpretq_s8_u8): Likewise.
18457 (vreinterpretq_s8_u16): Likewise.
18458 (vreinterpretq_s8_u32): Likewise.
18459 (vreinterpretq_s8_u64): Likewise.
18460 (vreinterpretq_s8_p8): Likewise.
18461 (vreinterpretq_s8_p16): Likewise.
18462 (vreinterpret_s16_s8): Likewise.
18463 (vreinterpret_s16_s32): Likewise.
18464 (vreinterpret_s16_s64): Likewise.
18465 (vreinterpret_s16_f32): Likewise.
18466 (vreinterpret_s16_u8): Likewise.
18467 (vreinterpret_s16_u16): Likewise.
18468 (vreinterpret_s16_u32): Likewise.
18469 (vreinterpret_s16_u64): Likewise.
18470 (vreinterpret_s16_p8): Likewise.
18471 (vreinterpret_s16_p16): Likewise.
18472 (vreinterpretq_s16_s8): Likewise.
18473 (vreinterpretq_s16_s32): Likewise.
18474 (vreinterpretq_s16_s64): Likewise.
18475 (vreinterpretq_s16_f32): Likewise.
18476 (vreinterpretq_s16_u8): Likewise.
18477 (vreinterpretq_s16_u16): Likewise.
18478 (vreinterpretq_s16_u32): Likewise.
18479 (vreinterpretq_s16_u64): Likewise.
18480 (vreinterpretq_s16_p8): Likewise.
18481 (vreinterpretq_s16_p16): Likewise.
18482 (vreinterpret_s32_s8): Likewise.
18483 (vreinterpret_s32_s16): Likewise.
18484 (vreinterpret_s32_s64): Likewise.
18485 (vreinterpret_s32_f32): Likewise.
18486 (vreinterpret_s32_u8): Likewise.
18487 (vreinterpret_s32_u16): Likewise.
18488 (vreinterpret_s32_u32): Likewise.
18489 (vreinterpret_s32_u64): Likewise.
18490 (vreinterpret_s32_p8): Likewise.
18491 (vreinterpret_s32_p16): Likewise.
18492 (vreinterpretq_s32_s8): Likewise.
18493 (vreinterpretq_s32_s16): Likewise.
18494 (vreinterpretq_s32_s64): Likewise.
18495 (vreinterpretq_s32_f32): Likewise.
18496 (vreinterpretq_s32_u8): Likewise.
18497 (vreinterpretq_s32_u16): Likewise.
18498 (vreinterpretq_s32_u32): Likewise.
18499 (vreinterpretq_s32_u64): Likewise.
18500 (vreinterpretq_s32_p8): Likewise.
18501 (vreinterpretq_s32_p16): Likewise.
18502 (vreinterpret_u8_s8): Likewise.
18503 (vreinterpret_u8_s16): Likewise.
18504 (vreinterpret_u8_s32): Likewise.
18505 (vreinterpret_u8_s64): Likewise.
18506 (vreinterpret_u8_f32): Likewise.
18507 (vreinterpret_u8_u16): Likewise.
18508 (vreinterpret_u8_u32): Likewise.
18509 (vreinterpret_u8_u64): Likewise.
18510 (vreinterpret_u8_p8): Likewise.
18511 (vreinterpret_u8_p16): Likewise.
18512 (vreinterpretq_u8_s8): Likewise.
18513 (vreinterpretq_u8_s16): Likewise.
18514 (vreinterpretq_u8_s32): Likewise.
18515 (vreinterpretq_u8_s64): Likewise.
18516 (vreinterpretq_u8_f32): Likewise.
18517 (vreinterpretq_u8_u16): Likewise.
18518 (vreinterpretq_u8_u32): Likewise.
18519 (vreinterpretq_u8_u64): Likewise.
18520 (vreinterpretq_u8_p8): Likewise.
18521 (vreinterpretq_u8_p16): Likewise.
18522 (vreinterpret_u16_s8): Likewise.
18523 (vreinterpret_u16_s16): Likewise.
18524 (vreinterpret_u16_s32): Likewise.
18525 (vreinterpret_u16_s64): Likewise.
18526 (vreinterpret_u16_f32): Likewise.
18527 (vreinterpret_u16_u8): Likewise.
18528 (vreinterpret_u16_u32): Likewise.
18529 (vreinterpret_u16_u64): Likewise.
18530 (vreinterpret_u16_p8): Likewise.
18531 (vreinterpret_u16_p16): Likewise.
18532 (vreinterpretq_u16_s8): Likewise.
18533 (vreinterpretq_u16_s16): Likewise.
18534 (vreinterpretq_u16_s32): Likewise.
18535 (vreinterpretq_u16_s64): Likewise.
18536 (vreinterpretq_u16_f32): Likewise.
18537 (vreinterpretq_u16_u8): Likewise.
18538 (vreinterpretq_u16_u32): Likewise.
18539 (vreinterpretq_u16_u64): Likewise.
18540 (vreinterpretq_u16_p8): Likewise.
18541 (vreinterpretq_u16_p16): Likewise.
18542 (vreinterpret_u32_s8): Likewise.
18543 (vreinterpret_u32_s16): Likewise.
18544 (vreinterpret_u32_s32): Likewise.
18545 (vreinterpret_u32_s64): Likewise.
18546 (vreinterpret_u32_f32): Likewise.
18547 (vreinterpret_u32_u8): Likewise.
18548 (vreinterpret_u32_u16): Likewise.
18549 (vreinterpret_u32_u64): Likewise.
18550 (vreinterpret_u32_p8): Likewise.
18551 (vreinterpret_u32_p16): Likewise.
18552 (vreinterpretq_u32_s8): Likewise.
18553 (vreinterpretq_u32_s16): Likewise.
18554 (vreinterpretq_u32_s32): Likewise.
18555 (vreinterpretq_u32_s64): Likewise.
18556 (vreinterpretq_u32_f32): Likewise.
18557 (vreinterpretq_u32_u8): Likewise.
18558 (vreinterpretq_u32_u16): Likewise.
18559 (vreinterpretq_u32_u64): Likewise.
18560 (vreinterpretq_u32_p8): Likewise.
18561 (vreinterpretq_u32_p16): Likewise.
18563 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18565 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
18567 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
18569 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
18570 (vqnegd_s64): Likewise.
18571 (vqabs_s64): Likewise.
18572 (vqabsd_s64): Likewise.
18574 2014-04-22 Richard Henderson <rth@redhat.com>
18576 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
18577 computation to the top of the loop.
18579 2014-04-22 Renlin <renlin.li@arm.com>
18580 Jiong Wang <jiong.wang@arm.com>
18582 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
18583 * config/aarch64/aarch64.c (aarch64_layout_frame)
18584 (aarch64_initial_elimination_offset): Likewise.
18586 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
18588 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
18591 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
18593 * machmode.h (bitwise_mode_for_mode): Declare.
18594 * stor-layout.h (bitwise_type_for_mode): Likewise.
18595 * stor-layout.c (bitwise_mode_for_mode): New function.
18596 (bitwise_type_for_mode): Likewise.
18597 * builtins.c (fold_builtin_memory_op): Use it instead of
18598 int_mode_for_mode and build_nonstandard_integer_type.
18600 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18602 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
18603 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
18604 (*-*-solaris2*): Simplify.
18605 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
18606 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
18607 *-*-solaris2.9* handling.
18609 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
18611 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
18612 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
18613 handling, simplify.
18614 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
18615 * configure: Regenerate.
18617 * config/i386/sol2-9.h: Remove.
18619 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
18620 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
18621 Remove Solaris 9 references.
18623 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
18625 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
18626 (floatuns<GPI:mode><GPF:mode>2): Remove.
18627 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
18628 and floatuns conversions.
18629 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
18630 and floatuns conversions.
18631 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
18632 (w1,w2): New mode attributes for inequal width conversions.
18634 2014-04-22 Renlin Li <Renlin.Li@arm.com>
18636 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
18637 the output asm format.
18639 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
18641 * config/aarch64/aarch64-simd.md
18642 (aarch64_cm<optab>di): Always split.
18643 (*aarch64_cm<optab>di): New.
18644 (aarch64_cmtstdi): Always split.
18645 (*aarch64_cmtstdi): New.
18647 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18649 PR tree-optimization/60823
18650 * omp-low.c (ipa_simd_modify_function_body): Go through
18651 all SSA_NAMEs and for those refering to vector arguments
18652 which are going to be replaced adjust SSA_NAME_VAR and,
18653 if it is a default definition, change it into a non-default
18654 definition assigned at the beginning of function from new_decl.
18655 (ipa_simd_modify_stmt_ops): Rewritten.
18656 * tree-dfa.c (set_ssa_default_def): When removing default def,
18657 check for NULL loc instead of NULL *loc.
18659 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18661 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
18662 restrictions on core registers for DImode values in Thumb2.
18664 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18666 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
18667 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
18669 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18671 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
18672 (*iordi_notzesidi_di): Likewise.
18673 (*iordi_notsesidi_di): Likewise.
18675 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18677 * config/arm/arm-protos.h (tune_params): New struct members.
18678 * config/arm/arm.c: Initialise tune_params per processor.
18679 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
18680 for speed, based on new tune_params.
18682 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18684 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
18685 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
18686 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
18687 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
18688 * config/aarch64/arm_neon.h (vrnd_f64): Added.
18689 (vrnda_f64): Likewise.
18690 (vrndi_f64): Likewise.
18691 (vrndm_f64): Likewise.
18692 (vrndn_f64): Likewise.
18693 (vrndp_f64): Likewise.
18694 (vrndx_f64): Likewise.
18696 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18698 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
18699 GET_MODE_SIZE argument is enum machine_mode.
18701 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18704 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
18705 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
18707 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
18709 PR middle-end/60281
18710 * asan.c (asan_emit_stack_protection): Force the base to align to
18711 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
18712 appropriate bits if STRICT_ALIGNMENT.
18713 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
18715 (expand_used_vars): Leave a space in the stack frame for alignment
18716 if STRICT_ALIGNMENT.
18718 2014-04-21 David Malcolm <dmalcolm@redhat.com>
18720 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
18722 (gimple_store_p): Likewise.
18723 (gimple_assign_load_p): Likewise.
18724 (gimple_assign_cast_p): Likewise.
18725 (gimple_clobber_p): Likewise.
18727 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
18728 rather than a gimple.
18729 (gimple_assign_cast_p): Likewise.
18731 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18734 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
18735 If mode is DDmode and TARGET_E500_DOUBLE allow move.
18737 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
18738 more debug information for E500 if -mdebug=reg.
18740 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
18743 * config/i386/i386.c (ix86_expand_builtin)
18744 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
18745 register for target RTX.
18746 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
18748 2014-04-18 Cong Hou <congh@google.com>
18750 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
18751 the widen-mult pattern by handling two operands with different sizes,
18752 and operands whose size is smaller than half of the result type.
18754 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
18756 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
18757 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
18758 (do_estimate_edge_time): Compute it.
18759 * ipa-inline.c (want_inline_small_function_p): Bypass
18760 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
18762 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
18764 * ipa-inline.c (spec_rem): New static variable.
18765 (dump_overall_stats): New function.
18766 (dump_inline_stats): New function.
18768 2014-04-18 Richard Henderson <rth@redhat.com>
18770 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
18771 to GET_MODE_SIZE, not a reg_class_t.
18773 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18775 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
18776 (vsx_xxmrglw_<mode>): Likewise.
18778 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
18781 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
18782 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
18783 (rs6000_init_hard_regno_mode_ok): Likewise.
18785 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
18787 * ipa-inline.c (inline_small_functions): Account only non-cold
18789 * doc/invoke.texi (inline-unit-growth): Update documentation.
18791 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
18793 * config/rs6000/rs6000.md (addti3, subti3): New.
18795 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
18798 * config/i386/i386.c (ix86_expand_clear): Remove outdated
18799 comment. Check optimize_insn_for_size_p instead of
18800 optimize_insn_for_speed_p.
18802 2014-04-17 Martin Jambor <mjambor@suse.cz>
18804 * gimple-iterator.c (gsi_start_edge): New function.
18805 * gimple-iterator.h (gsi_start_edge): Declare.
18806 * tree-sra.c (single_non_eh_succ): New function.
18807 (disqualify_ops_if_throwing_stmt): Renamed to
18808 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
18809 having one non-EH successor BB.
18810 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
18811 generate loads into replacements.
18812 (sra_modify_assign): Likewise and and also use the simple path for
18814 (sra_modify_function_body): Commit statements on edges.
18816 2014-04-17 Richard Biener <rguenther@suse.de>
18818 PR middle-end/60849
18819 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
18820 comparison results and add clarifying comment.
18822 2014-04-17 Jakub Jelinek <jakub@redhat.com>
18824 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
18825 (blank_mode): Initialize it.
18826 (emit_mode_size_inline, emit_mode_nunits_inline,
18827 emit_mode_inner_inline): New functions.
18828 (emit_insn_modes_h): Call them and surround their output with
18829 #if GCC_VERSION >= 4001 ... #endif.
18830 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
18831 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
18832 mode_* arrays if the argument is __builtin_constant_p.
18833 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
18834 is enum machine_mode.
18836 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18838 * passes.c (opt_pass::execute): Adjust.
18839 (pass_manager::execute_pass_mode_switching): Likewise.
18840 (early_local_passes::execute): Likewise.
18841 (execute_one_pass): Pass cfun to the pass's execute method.
18842 * tree-pass.h (opt_pass::execute): Add function * argument.
18843 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18844 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18845 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18846 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18847 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18848 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
18849 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
18850 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
18851 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
18852 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
18853 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
18854 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
18855 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
18856 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
18857 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
18858 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
18859 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
18860 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
18861 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18862 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18863 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18864 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18865 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18866 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18867 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18868 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18869 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18870 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18871 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
18874 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18876 * passes.c (opt_pass::gate): Take function * argument.
18877 (gate_all_early_local_passes): Merge into
18878 (early_local_passes::gate): this.
18879 (gate_all_early_optimizations): Merge into
18880 (all_early_optimizations::gate): this.
18881 (gate_all_optimizations): Mege into
18882 (all_optimizations::gate): this.
18883 (gate_all_optimizations_g): Merge into
18884 (all_optimizations_g::gate): this.
18885 (gate_rest_of_compilation): Mege into
18886 (rest_of_compilation::gate): this.
18887 (gate_postreload): Merge into
18888 (postreload::gate): this.
18889 (dump_one_pass): Pass cfun to the pass's gate method.
18890 (execute_ipa_summary_passes): Likewise.
18891 (execute_one_pass): Likewise.
18892 (ipa_write_summaries_2): Likewise.
18893 (ipa_write_optimization_summaries_1): Likewise.
18894 (ipa_read_summaries_1): Likewise.
18895 (ipa_read_optimization_summaries_1): Likewise.
18896 (execute_ipa_stmt_fixups): Likewise.
18897 * tree-pass.h (opt_pass::gate): Add function * argument.
18898 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
18899 combine-stack-adj.c, combine.c, compare-elim.c,
18900 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18901 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
18902 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
18903 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
18904 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
18905 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
18906 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
18907 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
18908 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18909 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
18910 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
18911 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
18912 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
18913 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
18914 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18915 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18916 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18917 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18918 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18919 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18920 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18921 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18922 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
18923 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
18924 var-tracking.c, vtable-verify.c, web.c: Adjust.
18926 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18928 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
18929 * configure: Regenerate.
18931 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18933 * passes.c (dump_one_pass): don't check pass->has_gate.
18934 (execute_ipa_summary_passes): Likewise.
18935 (execute_one_pass): Likewise.
18936 (ipa_write_summaries_2): Likewise.
18937 (ipa_write_optimization_summaries_1): Likewise.
18938 (ipa_read_optimization_summaries_1): Likewise.
18939 (execute_ipa_stmt_fixups): Likewise.
18940 * tree-pass.h (pass_data::has_gate): Remove.
18941 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18942 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18943 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18944 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18945 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18946 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18947 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18948 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18949 gimple-low.c, gimple-ssa-isolate-paths.c,
18950 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18951 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
18952 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
18953 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
18954 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
18955 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
18956 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
18957 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18958 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
18959 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
18960 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
18961 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18962 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18963 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18964 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18965 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18966 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18967 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18968 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18969 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18970 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18971 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
18974 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18976 * pass_manager.h (pass_manager::register_dump_files_1): Remove
18978 * passes.c (pass_manager::register_dump_files_1): Merge into
18979 (pass_manager::register_dump_files): this, and remove its handling of
18980 properties since the pass always has the properties anyway.
18981 (pass_manager::pass_manager): Adjust.
18983 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18985 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
18986 * passes.c (pass_manager::register_dump_files_1): Remove dead code
18987 dealing with properties.
18988 (pass_manager::register_dump_files): Adjust.
18990 2014-03-20 Mark Wielaard <mjw@redhat.com>
18992 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
18993 then represent the bound as normal constant value.
18995 2014-04-17 Jakub Jelinek <jakub@redhat.com>
18998 Forward port from 4.8 branch
18999 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19001 * config/i386/bmiintrin.h (_blsi_u32): New.
19002 (_blsi_u64): Ditto.
19003 (_blsr_u32): Ditto.
19004 (_blsr_u64): Ditto.
19005 (_blsmsk_u32): Ditto.
19006 (_blsmsk_u64): Ditto.
19007 (_tzcnt_u32): Ditto.
19008 (_tzcnt_u64): Ditto.
19010 2014-04-17 Kito Cheng <kito@0xlab.org>
19012 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19014 2014-04-17 Richard Biener <rguenther@suse.de>
19016 PR middle-end/60849
19017 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19018 boolean results for comparisons.
19020 2014-04-17 Richard Biener <rguenther@suse.de>
19022 PR tree-optimization/60836
19023 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19024 initial PHI args to be gimple values.
19026 2014-04-17 Richard Biener <rguenther@suse.de>
19028 PR tree-optimization/60841
19029 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19030 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19031 of stmts to SLP build.
19032 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19033 (vect_analyze_slp): Likewise.
19034 (vect_analyze_slp_instance): Likewise.
19035 (vect_build_slp_tree): Limit overall SLP tree growth.
19036 * tree-vectorizer.h (vect_analyze_data_refs,
19037 vect_analyze_slp): Adjust prototypes.
19039 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19041 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19044 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19046 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19047 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19048 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19049 for TARGET_SLOW_PSHUFB
19051 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19053 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19054 * config/i386/i386.c (intel_cost): Ditto.
19056 2014-04-17 Joey Ye <joey.ye@arm.com>
19058 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19060 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19062 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19063 with -fuse-profile.
19065 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19067 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19068 (type_all_derivations_known_p): New predicate.
19069 (type_all_ctors_visible_p): New predicate.
19070 (type_possibly_instantiated_p): New predicate.
19071 (get_odr_type): Compute all_derivations_known.
19072 (dump_odr_type): Dump the flag.
19073 (maybe_record_type): Cleanup.
19074 (record_target_from_binfo): Add bases_to_consider array;
19075 record bases for types w/o instances and skip CXX destructor.
19076 (possible_polymorphic_call_targets_1): Add bases_to_consider
19077 and consider_construction parameters; check if type may have instance.
19078 (get_polymorphic_call_info): Set maybe_in_construction to true
19079 when we know nothing.
19080 (record_targets_from_bases): Skip CXX destructors; they are
19081 never called for types in construction.
19082 (possible_polymorphic_call_targets): Do not record target when
19083 type may not have instance.
19085 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19088 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19089 external aliases alive, too.
19091 2014-04-16 Andrew Pinski <apinski@cavium.com>
19093 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19096 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19098 * final.c (compute_alignments): Do not apply loop alignment to a block
19099 falling through to the exit.
19101 2014-04-16 Catherine Moore <clm@codesourcery.com>
19103 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19104 Adjust constraints for microMIPS store patterns.
19106 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19108 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19110 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19112 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19113 (append_use): Run at -O0.
19114 (append_vdef): Likewise.
19115 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19116 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19118 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19120 PR tree-optimization/60844
19121 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19122 (propagate_op_to_single_use, remove_visited_stmt_chain,
19123 linearize_expr, repropagate_negates, reassociate_bb): Use it
19124 instead of gsi_remove.
19126 2014-04-16 Martin Jambor <mjambor@suse.cz>
19128 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19129 ipa_transforms_to_apply.
19130 (cgraph_function_versioning): Assert that old_node has empty
19131 ipa_transforms_to_apply.
19132 * trans-mem.c (ipa_tm_create_version): Likewise.
19133 * tree-inline.c (tree_function_versioning): Do not duplicate
19134 ipa_transforms_to_apply.
19136 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19139 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19141 Pass necessary as flags on 64-bit Solaris/x86.
19142 Use lowercase relocs for x86_64-*-*.
19143 * configure: Regenerate.
19145 2014-04-15 Jan Hubicka <jh@suse.cz>
19147 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19148 (maybe_record_node, likely_target_p): Use it.
19150 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19153 Revert following patch
19155 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19158 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19159 software floating point or no floating point registers, do not
19160 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19161 in GPRs that occurs after we tested for GPRs that would never be
19164 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19165 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19166 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19167 specifically allow DDmode, since that does not use the SPE SIMD
19170 2014-03-21 Mark Wielaard <mjw@redhat.com>
19172 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
19173 as unsigned or int depending on type and value used.
19175 2014-04-15 Richard Biener <rguenther@suse.de>
19177 PR rtl-optimization/56965
19178 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
19179 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
19181 * alias.c (true_dependence_1): Do not call
19182 nonoverlapping_component_refs_p.
19183 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
19184 nonoverlapping_component_refs_p.
19185 (indirect_refs_may_alias_p): Likewise.
19187 2014-04-15 Teresa Johnson <tejohnson@google.com>
19189 * cfg.c (dump_bb_info): Fix flags check.
19190 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
19192 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19194 PR rtl-optimization/60663
19195 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
19198 2014-04-15 Richard Biener <rguenther@suse.de>
19200 * lto-streamer.h (LTO_major_version): Bump to 4.
19202 2014-04-15 Richard Biener <rguenther@suse.de>
19204 * common.opt (lto_partition_model): New enum.
19205 (flto-partition=): Merge separate options with a single with argument,
19206 add -flto-partition=one support.
19207 * flag-types.h (enum lto_partition_model): Declare.
19208 * opts.c (finish_options): Remove duplicate -flto-partition=
19210 * lto-wrapper.c (run_gcc): Adjust.
19212 2014-04-15 Richard Biener <rguenther@suse.de>
19214 * alias.c (ncr_compar): New function.
19215 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
19217 2014-04-15 Richard Biener <rguenther@suse.de>
19219 * alias.c (record_component_aliases): Do not walk BINFOs.
19221 2014-04-15 Richard Biener <rguenther@suse.de>
19223 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19224 Add struct function argument and adjust.
19225 (find_func_aliases_for_call): Likewise.
19226 (find_func_aliases): Likewise.
19227 (find_func_clobbers): Likewise.
19228 (intra_create_variable_infos): Likewise.
19229 (compute_points_to_sets): Likewise.
19230 (ipa_pta_execute): Adjust. Do not push/pop cfun.
19232 2014-04-15 Richard Biener <rguenther@suse.de>
19234 * tree.c (iterative_hash_expr): Use enum tree_code_class
19235 to store TREE_CODE_CLASS.
19236 (tree_block): Likewise.
19237 (tree_set_block): Likewise.
19238 * tree.h (fold_build_pointer_plus_loc): Use
19239 convert_to_ptrofftype_loc.
19241 2014-04-15 Jakub Jelinek <jakub@redhat.com>
19244 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
19247 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
19249 * cfgloop.h (struct loop): Move force_vectorize down.
19250 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
19251 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
19252 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
19253 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
19254 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
19255 * tree-core.h (enum annot_expr_kind): Add new kind values.
19256 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
19257 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
19259 * tree.def (ANNOTATE_EXPR): Tweak comment.
19261 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19263 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
19266 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
19268 * tree.h (TYPE_IDENTIFIER): Declare.
19269 * tree.c (subrange_type_for_debug_p): Use it.
19270 * godump.c (go_format_type): Likewise.
19271 * dwarf2out.c (is_cxx_auto, modified_type_die,
19272 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
19273 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
19275 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19278 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
19280 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
19282 * config/i386/i386.c (examine_argument): Return bool. Return true if
19283 parameter should be passed in memory.
19284 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
19285 (construct_container): Update calls to examine_argument.
19286 (function_arg_advance_64): Ditto.
19287 (return_in_memory_32): Merge with ix86_return_in_memory.
19288 (return_in_memory_64): Ditto.
19289 (return_in_memory_ms_64): Ditto.
19291 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19293 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
19294 * coverage.c (coverage_compute_profile_id): Handle externally visible
19297 2014-04-14 Martin Jambor <mjambor@suse.cz>
19299 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
19300 DECL_DISREGARD_INLINE_LIMITS functions.
19302 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19305 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
19307 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19310 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
19311 optimize_insn_for_speed_p instead of
19312 optimize_function_for_speed_p.
19314 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
19316 * doc/invoke.texi (free): Document AArch64.
19318 2014-04-14 Richard Biener <rguenther@suse.de>
19320 PR tree-optimization/60042
19321 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
19322 (insert_into_preds_of_block): Do not prevent PHI insertion
19323 for REFERENCE exprs here ...
19324 (eliminate_dom_walker::before_dom_children): ... but prevent
19325 their use here under similar conditions when applied to the
19326 IL after PRE optimizations.
19328 2014-04-14 Richard Biener <rguenther@suse.de>
19330 * passes.def: Move early points-to after early SRA.
19332 2014-04-14 Richard Biener <rguenther@suse.de>
19334 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
19335 check for which sign-changes we allow when forwarding
19336 a converted value into a switch.
19338 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19340 * stor-layout.c (place_field): Finalize non-constant offset for the
19343 2014-04-14 Richard Biener <rguenther@suse.de>
19345 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
19347 (expand_switch_using_bit_tests_p): Likewise.
19348 (process_switch): Compute and pass on speed_p based on the
19350 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
19351 optimize_bb_for_speed_p.
19353 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19355 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
19356 * function.h (struct function): Rename has_force_vect_loops into
19357 has_force_vectorize_loops.
19358 * lto-streamer-in.c (input_cfg): Adjust for renaming.
19359 (input_struct_function_base): Likewise.
19360 * lto-streamer-out.c (output_cfg): Likewise.
19361 (output_struct_function_base): Likewise.
19362 * omp-low.c (expand_omp_simd): Likewise.
19363 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19364 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
19365 (version_loop_for_if_conversion): Likewise.
19366 (tree_if_conversion): Likewise.
19367 (main_tree_if_conversion): Likewise.
19368 (gate_tree_if_conversion): Likewise.
19369 * tree-inline.c (copy_loops): Likewise.
19370 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
19371 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
19372 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19373 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
19374 * tree-vectorizer.c (vectorize_loops): Likewise.
19375 * tree-vectorizer.h (unlimited_cost_model): Likewise.
19377 2014-04-14 Richard Biener <rguenther@suse.de>
19380 * lto-streamer-out.c (wrap_refs): New function.
19381 (lto_output): Wrap symbol references in global initializes in
19382 type-preserving MEM_REFs.
19384 2014-04-14 Christian Bruel <christian.bruel@st.com>
19386 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
19388 2014-04-14 Christian Bruel <christian.bruel@st.com>
19390 * config/sh/sh.md (setmemqi): New expand pattern.
19391 * config/sh/sh.h (CLEAR_RATIO): Define.
19392 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
19393 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
19395 2014-04-14 Richard Biener <rguenther@suse.de>
19397 PR middle-end/55022
19398 * fold-const.c (negate_expr_p): Don't negate directional rounding
19400 (fold_negate_expr): Likewise.
19402 2014-04-14 Richard Biener <rguenther@suse.de>
19404 PR tree-optimization/59817
19405 PR tree-optimization/60453
19406 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
19407 recursion to catch all CHRECs in the scalar evolution and restrict
19408 the predicate for the remains appropriately.
19410 2014-04-12 Catherine Moore <clm@codesourcery.com>
19412 * config/mips/constraints.md: Add new register constraint "kb".
19413 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
19414 (*movhi_internal): Likewise.
19415 (*movqi_internal): Likewise.
19416 * config/mips/mips.h (M16_STORE_REGS): New register class.
19417 (REG_CLASS_NAMES): Add M16_STORE_REGS.
19418 (REG_CLASS_CONTENTS): Likewise.
19419 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
19421 2014-04-11 Tobias Burnus <burnus@net-b.de>
19424 * doc/invoke.texi (-Wformat-signedness): Document it.
19425 (Wformat=2): Mention that this enables -Wformat-signedness.
19427 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19429 * common/config/epiphany/epiphany-common.c
19430 (epiphany_option_optimization_table): Enable section anchors by
19431 default at -O1 or higher.
19432 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
19433 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
19434 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
19435 carries no extra cost.
19436 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
19437 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
19438 * config/epiphany/predicates.md (memclob_operand): New predicate.
19439 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
19440 Use memclob_operand predicate and X constraint for operand 3.
19442 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19444 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
19445 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
19448 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19450 PR rtl-optimization/60651
19451 * mode-switching.c (optimize_mode_switching): Make sure to emit
19452 sets of a lower numbered entity before sets of a higher numbered
19453 entity to a mode of the same or lower priority.
19454 When creating a seginfo for a basic block that starts with a code
19455 label, move the insertion point past the code label.
19456 (new_seginfo): Document and enforce requirement that
19457 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
19458 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
19459 * doc/tm.texi: Regenerate.
19461 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
19464 * config/arc/arc.c (arc_save_restore): Fix assert typo.
19466 2013-04-11 Jakub Jelinek <jakub@redhat.com>
19468 * BASE-VER: Set to 4.10.0.
19470 2014-04-11 Tobias Burnus <burnus@net-b.de>
19473 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
19474 * doc/gcc.texi (Service): Update description in the @menu
19475 * doc/invoke.texi (Option Summary): Remove misplaced and
19478 2014-04-11 Steve Ellcey <sellcey@mips.com>
19479 Jakub Jelinek <jakub@redhat.com>
19481 PR middle-end/60556
19482 * expr.c (convert_move): Use emit_store_flag_force instead of
19483 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
19486 2014-04-11 Richard Biener <rguenther@suse.de>
19488 PR middle-end/60797
19489 * varasm.c (assemble_alias): Avoid endless error reporting
19490 recursion by setting TREE_ASM_WRITTEN.
19492 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19494 * config/s390/s390.md: Add a splitter for NOT rtx.
19496 2014-04-11 Jakub Jelinek <jakub@redhat.com>
19498 PR rtl-optimization/60663
19499 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
19501 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
19502 Jakub Jelinek <jakub@redhat.com>
19505 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
19506 flag from decl_node to node.
19508 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19511 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
19512 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
19513 ameliorating the cases where it can be.
19515 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
19518 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19520 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19521 (loadsync_<mode>): Change mode.
19522 (load_quadpti, store_quadpti): New.
19523 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19524 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19525 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
19527 2014-04-09 Cong Hou <congh@google.com>
19530 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
19533 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19535 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
19536 instead of vnor to exploit possible fusion opportunity in the
19538 (altivec_expand_vec_perm_const_le): Likewise.
19540 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19542 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19543 (loadsync_<mode>): Change mode.
19544 (load_quadpti, store_quadpti): New.
19545 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19546 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19548 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
19551 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
19552 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
19553 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
19555 2014-04-08 Richard Biener <rguenther@suse.de>
19557 PR middle-end/60706
19558 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
19559 a 64bit widest int print double-int similar to on HWI64 hosts.
19561 2014-04-08 Richard Biener <rguenther@suse.de>
19563 PR tree-optimization/60785
19564 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
19565 default defs properly.
19567 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
19569 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
19570 (Weffc++): Likewise.
19572 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
19574 * ipa-devirt.c (maybe_record_node): When node is not recorded,
19575 set completep to false rather than true.
19577 2014-04-07 Douglas B Rupp <rupp@adacore.com>
19580 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
19581 ARM_TARGET2_DWARF_FORMAT.
19583 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
19586 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
19587 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
19590 2014-04-07 Richard Biener <rguenther@suse.de>
19592 PR tree-optimization/60766
19593 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
19594 (may_eliminate_iv): Convert cand_value_at result to desired type.
19596 2014-04-07 Jason Merrill <jason@redhat.com>
19599 * common.opt (-fno-gnu-unique): Add.
19600 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
19602 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19604 * haifa-sched.c: Fix outdated function reference and minor
19605 grammar errors in introductory comment.
19607 2014-04-07 Richard Biener <rguenther@suse.de>
19609 PR middle-end/60750
19610 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
19611 for noreturn calls.
19612 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
19614 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
19617 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
19618 size accounting for thunks.
19619 (pa_asm_output_mi_thunk): Use final_start_function() and
19620 final_end_function() to output function start and end directives.
19622 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19624 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
19625 device specific ISA/ feature information. Remove short_sp and
19626 errata_skip ds. Add avr_device_specific_features enum to have device
19628 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
19629 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
19630 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
19631 updated device specific info.
19632 * config/avr/avr-mcus.def: Merge device specific details to
19633 dev_attribute field.
19634 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
19636 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
19637 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
19638 assembler if RMW isa supported by current device.
19639 * config/avr/genmultilib.awk: Update as device info structure changed.
19640 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
19642 2014-04-04 Cong Hou <congh@google.com>
19644 PR tree-optimization/60656
19645 * tree-vect-stmts.c (supportable_widening_operation):
19646 Fix a bug that elements in a vector with vect_used_by_reduction
19647 property are incorrectly reordered when the operation on it is not
19648 consistant with the one in reduction operation.
19650 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
19652 PR rtl-optimization/60155
19653 * gcse.c (record_set_data): New function.
19654 (single_set_gcse): New function.
19655 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
19656 (hoist_code): Likewise.
19657 (get_pressure_class_and_nregs): Likewise.
19659 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
19661 * explow.c (probe_stack_range): Emit a final optimization blockage.
19663 2014-04-04 Anthony Green <green@moxielogic.com>
19665 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
19668 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
19671 * lto-cgraph.c (input_overwrite_node): Check that partitioning
19672 flags are set only during streaming.
19673 * ipa.c (process_references, walk_polymorphic_call_targets,
19674 symtab_remove_unreachable_nodes): Drop bodies of always inline
19675 after early inlining.
19676 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
19678 2014-04-04 Jakub Jelinek <jakub@redhat.com>
19679 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19682 * dwarf2out.c (const_ok_for_output_1): Reject expressions
19685 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19688 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
19690 (cortex_a53_fdivd): Likewise.
19692 2014-04-04 Martin Jambor <mjambor@suse.cz>
19695 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
19696 Adjust all callers.
19697 * cgraph.c (clone_of_p): Also return true if thunks match.
19698 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
19699 cgraph_function_or_thunk_node and an obsolete comment.
19700 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
19702 (build_function_decl_skip_args): Likewise.
19703 (set_new_clone_decl_and_node_flags): New function.
19704 (duplicate_thunk_for_node): Likewise.
19705 (redirect_edge_duplicating_thunks): Likewise.
19706 (cgraph_clone_node): New parameter args_to_skip, pass it to
19707 redirect_edge_duplicating_thunks which is called instead of
19708 cgraph_redirect_edge_callee.
19709 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
19710 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
19712 2014-04-04 Jeff Law <law@redhat.com>
19715 * config/arm/predicates.md (const_int_I_operand): New predicate.
19716 (const_int_M_operand): Similarly.
19717 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
19719 (insv_t2, extv_reg, extzv_t2): Likewise.
19720 (load_multiple_with_writeback): Similarly for const_int_I_operand.
19721 (pop_multiple_with_writeback_and_return): Likewise.
19722 (vfp_pop_multiple_with_writeback): Likewise
19724 2014-04-04 Richard Biener <rguenther@suse.de>
19727 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
19728 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
19730 * gimplify.h (gimple_add_tmp_var_fn): Declare.
19731 * gimplify.c (gimple_add_tmp_var_fn): New function.
19732 * gimple-expr.h (create_tmp_reg_fn): Declare.
19733 * gimple-expr.c (create_tmp_reg_fn): New function.
19734 * gimple-low.c (record_vars_into): Don't change cfun.
19735 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
19736 code generation without cfun.
19738 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
19741 * Makefile.in (install-driver): Fix shell scripting.
19743 2014-04-03 Cong Hou <congh@google.com>
19745 PR tree-optimization/60505
19746 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
19747 threshold of number of iterations below which no vectorization
19749 * tree-vect-loop.c (new_loop_vec_info):
19750 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
19751 * tree-vect-loop.c (vect_analyze_loop_operations):
19752 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
19753 * tree-vect-loop.c (vect_transform_loop):
19754 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
19755 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
19756 of iterations of the loop and see if we should build the epilogue.
19758 2014-04-03 Richard Biener <rguenther@suse.de>
19760 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
19761 (streamer_tree_cache_create): Adjust.
19762 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
19763 to allow optional nodes array.
19764 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
19765 (streamer_tree_cache_append): Likewise.
19766 (streamer_tree_cache_create): Create nodes array optionally
19767 as specified by parameter.
19768 * lto-streamer-out.c (create_output_block): Avoid maintaining
19769 the node array in the writer cache.
19770 (DFS_write_tree): Remove assertion.
19771 (produce_asm_for_decls): Free the out decl state hash table early.
19772 * lto-streamer-in.c (lto_data_in_create): Adjust for
19773 streamer_tree_cache_create prototype change.
19775 2014-04-03 Richard Biener <rguenther@suse.de>
19777 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
19778 set TREE_CHAIN to NULL_TREE.
19780 2014-04-03 Richard Biener <rguenther@suse.de>
19782 PR tree-optimization/60740
19783 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
19784 over all GIMPLE_COND operands.
19786 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
19788 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
19789 (Weffc++): Remove Scott's numbering, merge lists and reference
19792 2014-04-03 Nick Clifton <nickc@redhat.com>
19794 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
19797 2014-04-03 Martin Jambor <mjambor@suse.cz>
19799 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
19800 mention gcc_unreachable before failing.
19801 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
19804 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
19807 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
19808 inconsistent code and instead mark the context inconsistent.
19809 (possible_polymorphic_call_targets): For inconsistent contexts
19810 return empty complete list.
19812 2014-04-02 Anthony Green <green@moxielogic.com>
19814 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
19815 (extendqisi2, extendhisi2): Define.
19816 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
19817 (WCHAR_TYPE): Change to unsigned int.
19819 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19821 PR tree-optimization/60733
19822 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
19823 insertion point for PHI candidates to be the end of the feeding
19824 block for the PHI argument.
19826 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
19828 PR rtl-optimization/60650
19829 * lra-constraints.c (process_alt_operands): Decrease reject for
19830 earlyclobber matching.
19832 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19834 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
19836 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19838 * config/spu/spu.c (pad_bb): Do not crash when the last
19839 insn is CODE_FOR_blockage.
19841 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19843 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
19844 lies outside the target mode.
19846 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19849 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19850 software floating point or no floating point registers, do not
19851 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19852 in GPRs that occurs after we tested for GPRs that would never be
19855 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19856 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19857 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19858 specifically allow DDmode, since that does not use the SPE SIMD
19861 2014-04-02 Richard Biener <rguenther@suse.de>
19863 PR middle-end/60729
19864 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
19865 MODE_INTs. Properly use negv_optab.
19866 (expand_abs): Likewise.
19868 2014-04-02 Richard Biener <rguenther@suse.de>
19871 * Makefile.in (install-driver): Guard extra installs with special
19874 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19876 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19877 Document vec_vgbbd.
19879 2014-04-01 Richard Henderson <rth@redhat.com>
19882 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
19883 alternative enabled before register allocation.
19885 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
19887 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
19888 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
19890 (nios2_large_got_address): Remove unneeded 'sym' parameter.
19891 (nios2_got_address): Update nios2_large_got_address call site.
19892 (nios2_delegitimize_address): New function.
19893 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
19894 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
19895 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
19897 2014-04-01 Martin Husemann <martin@duskware.de>
19899 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
19902 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
19904 PR rtl-optimization/60604
19905 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
19906 check from register_operand.
19907 (register_operand): Redefine in terms of general_operand.
19908 (nonmemory_operand): Use register_operand for the non-constant cases.
19910 2014-04-01 Richard Biener <rguenther@suse.de>
19912 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
19914 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
19916 * doc/invoke.texi (mapp-regs): Clarify.
19918 2014-03-31 Ulrich Drepper <drepper@gmail.com>
19920 * config/i386/avx512fintrin.h (__v32hi): Define type.
19921 (__v64qi): Likewise.
19922 (_mm512_set1_epi8): Define.
19923 (_mm512_set1_epi16): Define.
19924 (_mm512_set4_epi32): Define.
19925 (_mm512_set4_epi64): Define.
19926 (_mm512_set4_pd): Define.
19927 (_mm512_set4_ps): Define.
19928 (_mm512_setr4_epi64): Define.
19929 (_mm512_setr4_epi32): Define.
19930 (_mm512_setr4_pd): Define.
19931 (_mm512_setr4_ps): Define.
19932 (_mm512_setzero_epi32): Define.
19934 2014-03-31 Martin Jambor <mjambor@suse.cz>
19936 PR middle-end/60647
19937 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
19938 callsite_arguments_match_p. Updated all callers. Also check types of
19939 corresponding formal parameters and actual arguments.
19940 (not_all_callers_have_enough_arguments_p) Renamed to
19941 some_callers_have_mismatched_arguments_p.
19943 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
19945 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
19947 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
19950 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
19953 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
19955 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
19956 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
19958 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
19959 Use FMAMODE_NOVF512 mode iterator.
19960 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
19961 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
19962 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
19963 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
19965 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
19966 Use VF_128_256 mode iterator.
19967 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
19970 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
19972 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
19973 static chain if needed.
19975 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
19978 * lra-constraints.c (index_part_to_reg): New.
19979 (process_address): Use it.
19981 2014-03-27 Jeff Law <law@redhat.com>
19982 Jakub Jelinek <jakub@redhat.com>
19985 * expr.c (do_tablejump): Use simplify_gen_binary rather than
19986 gen_rtx_{PLUS,MULT} to build up the address expression.
19988 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
19989 creating non-canonical RTL.
19991 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
19994 * ipa-inline.c (want_inline_small_function_p): Short circuit large
19995 functions; reorganize to make cheap checks first.
19996 (inline_small_functions): Do not estimate growth when dumping;
19998 * ipa-inline.h (inline_summary): Add min_size.
19999 (growth_likely_positive): New function.
20000 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20001 (set_cond_stmt_execution_predicate): Cleanup.
20002 (estimate_edge_size_and_time): Compute min_size.
20003 (estimate_calls_size_and_time): Likewise.
20004 (estimate_node_size_and_time): Likewise.
20005 (inline_update_overall_summary): Update min_size.
20006 (do_estimate_edge_time): Likewise.
20007 (do_estimate_edge_size): Update.
20008 (do_estimate_edge_hints): Update.
20009 (growth_likely_positive): New function.
20011 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20014 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20015 also if addr has VOIDmode.
20017 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20019 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20020 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20022 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20023 instructions as well as AdvancedSIMD loads.
20025 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20027 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20028 Use crypto_aese type.
20029 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20030 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20031 crypto_aese, crypto_aesmc. Move to types.md.
20032 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20034 * config/arm/iterators.md (crypto_type): Likewise.
20036 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20038 * cgraph.c: Include expr.h and tree-dfa.h.
20039 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20042 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20045 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20046 regs from checking multi-reg pseudos.
20048 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20050 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20052 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20054 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20055 if it would clobber the stack pointer, even temporarily.
20057 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20059 * mode-switching.c: Make small adjustments to the top comment.
20061 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20063 * config/rs6000/constraints.md (wD constraint): New constraint to
20064 match the constant integer to get the top DImode/DFmode out of a
20065 vector in a VSX register.
20067 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20068 match the constant integer to get the top DImode/DFmode out of a
20069 vector in a VSX register.
20071 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20074 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20077 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20078 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20080 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20081 Optimize vec_extract of 64-bit values, where the value being
20082 extracted is in the top word, where we can use scalar
20083 instructions. Add direct move and store support. Combine the big
20084 endian/little endian vector select load support into a single insn.
20085 (vsx_extract_<mode>_internal1): Likewise.
20086 (vsx_extract_<mode>_internal2): Likewise.
20087 (vsx_extract_<mode>_load): Likewise.
20088 (vsx_extract_<mode>_store): Likewise.
20089 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20090 combined into vsx_extract_<mode>_load.
20091 (vsx_extract_<mode>_one_le): Likewise.
20093 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20094 define the top 64-bit vector element.
20096 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20099 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20100 Document vec_vbpermq builtin.
20103 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20104 enable use of xxsldwi and xxpermdi builtin functions.
20105 (vec_xxpermdi): Likewise.
20107 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20108 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20110 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20112 PR rtl-optimization/60650
20113 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20115 (find_spills_for): New.
20116 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20117 Spill all pseudos on the second iteration.
20119 2014-03-27 Marek Polacek <polacek@redhat.com>
20122 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20125 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20127 * config/s390/s390.c (s390_can_use_return_insn): Check for
20128 call-saved FPRs on 31 bit.
20130 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20132 PR middle-end/60682
20133 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20134 if they need regimplification, just drop them instead of
20135 calling gimple_regimplify_operands on them.
20137 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20140 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20141 (aarch64_frame_pointer_required): Adjust logic.
20142 (aarch64_can_eliminate): Adjust logic.
20143 (aarch64_override_options_after_change): Adjust logic.
20145 2014-03-27 Dehao Chen <dehao@google.com>
20147 * ipa-inline.c (early_inliner): Update node's inline info.
20149 2014-03-26 Dehao Chen <dehao@google.com>
20151 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
20152 compiler inserted conditional jumps for NAN float check.
20154 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20156 * ubsan.h (ubsan_create_data): Change second argument's type
20157 to const location_t *.
20158 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
20160 (ubsan_create_data): Change second argument to const location_t *PLOC.
20161 Create Loc field whenever PLOC is non-NULL.
20162 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
20163 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
20167 * real.c (real_to_integer2): Change type of low to UHWI.
20169 2014-03-26 Tobias Burnus <burnus@net-b.de>
20171 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
20172 (CILK_SELF_SPECS): New define.
20173 (driver_self_specs): Use it.
20175 2014-03-26 Richard Biener <rguenther@suse.de>
20177 * tree-pretty-print.c (percent_K_format): Implement special
20178 case for LTO and its stripped down BLOCK tree.
20180 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20183 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
20185 * tree-vrp.c (simplify_internal_call_using_ranges): If only
20186 one range is range_int_cst_p, but not both, at least optimize
20187 addition/subtraction of 0 and multiplication by 0 or 1.
20188 * gimple-fold.c (gimple_fold_call): Fold
20189 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
20190 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
20191 INTEGER_CSTs, try to fold at least x * 0 and y - y.
20193 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
20195 PR rtl-optimization/60452
20196 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
20197 <case REG>: Return 1 for invalid offsets from the frame pointer.
20199 2014-03-26 Marek Polacek <polacek@redhat.com>
20202 * doc/extend.texi (C Extensions): Mention variable-length arrays in
20205 2014-03-26 Marek Polacek <polacek@redhat.com>
20208 * doc/extend.texi (Designated Inits): Describe what happens to omitted
20211 2014-03-26 Marek Polacek <polacek@redhat.com>
20214 * ira-color.c (update_conflict_hard_regno_costs): Perform the
20215 multiplication in unsigned type.
20217 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20219 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
20221 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20223 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
20225 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20228 * cif-code.def (UNREACHABLE) New code.
20229 * ipa-inline.c (inline_small_functions): Skip edges to
20230 __builtlin_unreachable.
20231 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
20232 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
20233 predicate to __bulitin_unreachable.
20234 (set_cond_stmt_execution_predicate): Fix issue when
20235 invert_tree_comparison returns ERROR_MARK.
20236 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
20237 propagate to inline clones.
20238 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
20240 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
20241 * cgraphclones.c (cgraph_clone_node): If call destination is already
20242 ureachable, do not redirect it back.
20243 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
20246 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20248 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
20249 Do not modify inline clones.
20251 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20253 * config/i386/i386.md (general_sext_operand): New mode attr.
20254 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
20255 don't generate (sign_extend (const_int)).
20256 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
20257 operands[2]. Use We constraint instead of <i> and
20258 <general_sext_operand> predicate instead of <general_operand>.
20259 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
20260 * config/i386/constraints.md (We): New constraint.
20261 * config/i386/predicates.md (x86_64_sext_operand,
20262 sext_operand): New predicates.
20264 2014-03-25 Martin Jambor <mjambor@suse.cz>
20267 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
20268 inconsistent devirtualizations to __builtin_unreachable.
20270 2014-03-25 Marek Polacek <polacek@redhat.com>
20273 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
20275 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
20277 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
20278 order of elements for big-endian.
20280 2014-03-25 Richard Biener <rguenther@suse.de>
20282 PR middle-end/60635
20283 * gimplify-me.c (gimple_regimplify_operands): Update the
20286 2014-03-25 Martin Jambor <mjambor@suse.cz>
20289 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
20290 (lto_output_varpool_node): Likewise.
20291 (input_overwrite_node): Likewise.
20292 (input_varpool_node): Likewise.
20294 2014-03-25 Richard Biener <rguenther@suse.de>
20296 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
20297 (run_gcc): Likewise.
20299 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20301 * combine.c (simplify_compare_const): Add MODE argument.
20302 Handle mode_width 0 as very large mode_width.
20303 (try_combine, simplify_comparison): Adjust callers.
20305 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
20306 type to avoid signed integer overflow.
20307 * explow.c (plus_constant): Likewise.
20309 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20311 * doc/generic.texi: Correct typos.
20313 2014-03-24 Tobias Burnus <burnus@net-b.de>
20315 * doc/invoke.texi (-flto): Expand section about
20316 using static libraries with LTO.
20318 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20320 PR rtl-optimization/60501
20321 * optabs.def (addptr3_optab): New optab.
20322 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
20323 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
20324 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
20326 * lra.c (emit_add3_insn): Use the addptr pattern if available.
20328 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
20330 2014-03-24 Ulrich Drepper <drepper@gmail.com>
20332 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
20335 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
20336 (_mm256_undefined_ps): Define.
20337 (_mm256_undefined_pd): Define.
20338 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
20339 (_mm_undefined_pd): Define.
20340 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
20341 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
20342 (_mm512_undefined_ps): Define.
20343 (_mm512_undefined_pd): Define.
20344 Use _mm*_undefined_*.
20345 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
20347 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
20349 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
20350 (lshr_simd): DI mode added.
20351 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
20352 (aarch64_ushr_simddi): Likewise.
20353 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
20354 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
20355 (vshrd_n_u64): Likewise.
20357 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20359 * Makefile.in (s-macro_list): Depend on cc1.
20361 2014-03-23 Teresa Johnson <tejohnson@google.com>
20363 * ipa-utils.c (ipa_print_order): Use specified dump file.
20365 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
20367 PR rtl-optimization/60601
20368 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
20370 * gcc.c (eval_spec_function): Initialize save_growing_value.
20372 2014-03-22 Jakub Jelinek <jakub@redhat.com>
20375 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
20376 code == MINUS_EXPR, never swap op0 with op1.
20378 * toplev.c (init_local_tick): Avoid signed integer multiplication
20380 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
20381 shift by first operand's bitsize.
20383 2014-03-21 Jakub Jelinek <jakub@redhat.com>
20386 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
20387 redefine to 1 or 0.
20388 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
20389 TARGET_ISA_64BIT_P(x).
20391 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20393 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
20394 pattern for vector nor instead of subtract from splat(-1).
20395 (altivec_expand_vec_perm_const_le): Likewise.
20397 2014-03-21 Richard Henderson <rth@twiddle.net>
20400 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
20401 related insns after epilogue_completed.
20403 2014-03-21 Martin Jambor <mjambor@suse.cz>
20406 * cgraph.h (symtab_node): New flag body_removed.
20407 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
20408 when removing bodies.
20409 * symtab.c (dump_symtab_base): Dump body_removed flag.
20410 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
20411 had their bodies removed.
20413 2014-03-21 Martin Jambor <mjambor@suse.cz>
20416 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
20419 2014-03-21 Richard Biener <rguenther@suse.de>
20421 PR tree-optimization/60577
20422 * tree-core.h (struct tree_base): Document nothrow_flag use
20423 in DECL_NONALIASED.
20424 * tree.h (DECL_NONALIASED): New.
20425 (may_be_aliased): Adjust.
20426 * coverage.c (build_var): Set DECL_NONALIASED.
20428 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20430 * expr.c (expand_expr_real_1): Remove outdated comment.
20432 2014-03-20 Jakub Jelinek <jakub@redhat.com>
20434 PR middle-end/60597
20435 * ira.c (adjust_cleared_regs): Call copy_rtx on
20436 *reg_equiv[REGNO (loc)].src_p before passing it to
20437 simplify_replace_fn_rtx.
20440 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
20441 into CONST, put pic register as first operand of PLUS. Use
20442 gen_const_mem for both 32-bit and 64-bit PIC got loads.
20444 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20446 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
20448 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20450 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
20451 around for store forwarding issue in the FPU on the UT699.
20452 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
20453 loads and operations if -mfix-ut699 is specified.
20454 (divtf3_hq): Tweak attribute.
20455 (sqrttf2_hq): Likewise.
20457 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20459 * calls.c (store_one_arg): Remove incorrect const qualification on the
20460 type of the temporary.
20461 * cfgexpand.c (expand_return): Likewise.
20462 * expr.c (expand_constructor): Likewise.
20463 (expand_expr_real_1): Likewise.
20465 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20467 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
20470 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
20473 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
20475 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
20477 * config/arm/aarch-common-protos.h
20478 (alu_cost_table): Fix spelling of "extend".
20479 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
20481 2014-03-19 Richard Biener <rguenther@suse.de>
20483 PR middle-end/60553
20484 * tree-core.h (tree_type_common): Re-order pointer members
20485 to reduce recursion depth during GC walks.
20487 2014-03-19 Marek Polacek <polacek@redhat.com>
20490 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
20491 before accessing it.
20493 2014-03-19 Richard Biener <rguenther@suse.de>
20496 * lto-streamer-in.c (input_function): In WPA stage do not drop
20499 2014-03-19 Jakub Jelinek <jakub@redhat.com>
20501 PR tree-optimization/60559
20502 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
20503 with build_zero_cst assignment.
20505 2014-03-18 Kai Tietz <ktietz@redhat.com>
20507 PR rtl-optimization/56356
20508 * sdbout.c (sdbout_parms): Verify that parms'
20509 incoming argument is valid.
20510 (sdbout_reg_parms): Likewise.
20512 2014-03-18 Richard Henderson <rth@redhat.com>
20515 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
20516 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
20517 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
20519 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
20521 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
20522 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
20523 Italicize plugin event names in description. Explain that
20524 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
20525 Remind that no GCC functions should be called after PLUGIN_FINISH.
20526 Explain what pragmas with expansion are.
20528 2014-03-18 Martin Liska <mliska@suse.cz>
20530 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
20531 gimple call statement is update.
20532 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
20533 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
20535 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20538 * ubsan.c (ubsan_instrument_unreachable): Call
20539 initialize_sanitizer_builtins.
20540 (ubsan_pass): Likewise.
20543 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
20544 varpool_finalize_decl instead of rest_of_decl_compilation.
20546 2014-03-18 Richard Biener <rguenther@suse.de>
20548 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
20549 by using bitmap_and_compl instead of bitmap_and_compl_into.
20550 (df_rd_transfer_function): Likewise.
20552 2014-03-18 Richard Biener <rguenther@suse.de>
20554 * doc/lto.texi (fresolution): Fix typo.
20556 2014-03-18 Richard Biener <rguenther@suse.de>
20558 * doc/invoke.texi (flto): Update for changes in 4.9.
20560 2014-03-18 Richard Biener <rguenther@suse.de>
20562 * doc/loop.texi: Remove section on the removed lambda framework.
20563 Update loop docs with recent changes in preserving loop structure.
20565 2014-03-18 Richard Biener <rguenther@suse.de>
20567 * doc/lto.texi (-fresolution): Document.
20569 2014-03-18 Richard Biener <rguenther@suse.de>
20571 * doc/contrib.texi: Adjust my name.
20573 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20576 * internal-fn.c: Include diagnostic-core.h.
20577 (expand_BUILTIN_EXPECT): New function.
20578 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
20579 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
20580 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
20581 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
20582 IFN_BUILTIN_EXPECT.
20583 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
20584 Revert 3 argument __builtin_expect code.
20585 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
20586 * gimple-fold.c (gimple_fold_call): Likewise.
20587 * tree.h (fold_builtin_expect): New prototype.
20588 * builtins.c (build_builtin_expect_predicate): Add predictor
20589 argument, if non-NULL, create 3 argument __builtin_expect.
20590 (fold_builtin_expect): No longer static. Add ARG2 argument,
20591 pass it through to build_builtin_expect_predicate.
20592 (fold_builtin_2): Adjust caller.
20593 (fold_builtin_3): Handle BUILT_IN_EXPECT.
20594 * internal-fn.def (BUILTIN_EXPECT): New.
20596 2014-03-18 Tobias Burnus <burnus@net-b.de>
20599 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
20600 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
20601 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
20603 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
20606 * predict.c (combine_predictions_for_bb): Fix up formatting.
20607 (expr_expected_value_1, expr_expected_value): Add predictor argument,
20608 fill what it points to if non-NULL.
20609 (tree_predict_by_opcode): Adjust caller, use the predictor.
20610 * predict.def (PRED_COMPARE_AND_SWAP): Add.
20612 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
20614 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
20615 proper constant for the store mode.
20617 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
20619 * symtab.c (change_decl_assembler_name): Fix transparent alias
20620 chain construction.
20622 2014-03-16 Renlin Li <Renlin.Li@arm.com>
20624 * config/aarch64/aarch64.c: Correct the comments about the
20625 aarch64 stack layout.
20627 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
20629 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
20630 check for GF_OMP_FOR_KIND_FOR.
20632 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20634 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
20635 ymm and zmm register names.
20637 2014-03-17 Jakub Jelinek <jakub@redhat.com>
20640 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
20641 note creation for the 2010-08-31 changes.
20643 2014-03-17 Marek Polacek <polacek@redhat.com>
20645 PR middle-end/60534
20646 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
20647 as -fno-tree-loop-vectorize.
20648 (expand_omp_simd): Likewise.
20650 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
20652 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
20653 (eligible_for_call_delay): New prototype.
20654 * config/sparc/sparc.c (tls_call_delay): Rename into...
20655 (eligible_for_call_delay): ...this. Return false if the instruction
20656 cannot be put in the delay slot of a branch.
20657 (eligible_for_restore_insn): Simplify.
20658 (eligible_for_return_delay): Return false if the instruction cannot be
20659 put in the delay slot of a branch and simplify.
20660 (eligible_for_sibcall_delay): Return false if the instruction cannot be
20661 put in the delay slot of a branch.
20662 * config/sparc/sparc.md (fix_ut699): New attribute.
20663 (tls_call_delay): Delete.
20664 (in_call_delay): Reimplement.
20665 (eligible_for_sibcall_delay): Rename into...
20666 (in_sibcall_delay): ...this.
20667 (eligible_for_return_delay): Rename into...
20668 (in_return_delay): ...this.
20669 (in_branch_delay): Reimplement.
20670 (in_uncond_branch_delay): Delete.
20671 (in_annul_branch_delay): Delete.
20673 2014-03-14 Richard Henderson <rth@redhat.com>
20676 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
20677 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
20678 (*floathi<X87MODEF>2_i387_with_temp): Remove.
20679 (floathi splitters): Remove.
20680 (float<SWI48x>xf2): New pattern.
20681 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
20682 code that tried to handle DImode for 32-bit, but which was excluded
20683 by the pattern's condition. Drop allocation of stack temporary.
20684 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
20685 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
20686 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
20687 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
20688 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
20689 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
20690 (*float<SWI48><MODEF>2_sse_interunit): Remove.
20691 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
20692 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
20693 (*float<SWI48x><X87MODEF>2_i387): Remove.
20694 (all float _with_temp splitters): Remove.
20695 (*float<SWI48x><MODEF>2_i387): New pattern.
20696 (*float<SWI48><MODEF>2_sse): New pattern.
20697 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
20698 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
20700 2014-03-14 Jakub Jelinek <jakub@redhat.com>
20701 Marek Polacek <polacek@redhat.com>
20703 PR middle-end/60484
20704 * common.opt (dump_base_name_prefixed): New Variable.
20705 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
20706 if x_dump_base_name_prefixed is already set, set it at the end.
20708 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
20710 PR rtl-optimization/60508
20711 * lra-constraints.c (get_reload_reg): Add new parameter
20713 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
20714 Pass the new parameter values.
20716 2014-03-14 Richard Biener <rguenther@suse.de>
20718 * common.opt: Revert unintented changes from r205065.
20719 * opts.c: Likewise.
20721 2014-03-14 Richard Biener <rguenther@suse.de>
20723 PR middle-end/60518
20724 * cfghooks.c (split_block): Properly adjust all loops the
20725 block was a latch of.
20727 2014-03-14 Martin Jambor <mjambor@suse.cz>
20730 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
20733 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
20736 * config/avr/avr.c (avr_set_current_function): Pass function name
20737 through default_strip_name_encoding before sanity checking instead
20738 of skipping the first char of the assembler name.
20740 2014-03-13 Richard Henderson <rth@redhat.com>
20743 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
20744 (ix86_force_to_memory, ix86_free_from_memory): Remove.
20745 * config/i386/i386-protos.h: Likewise.
20746 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
20747 in the expander instead of a splitter.
20748 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
20749 any possibility of requiring a memory.
20750 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
20751 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
20752 (fp branch splitters): Update for ix86_split_fp_branch.
20753 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
20754 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
20755 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
20756 (*fop_<MODEF>_2_i387): Remove f/r alternative.
20757 (*fop_<MODEF>_3_i387): Likewise.
20758 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
20759 (splitters for the fop_* register patterns): Remove.
20760 (fscalexf4_i387): Rename from *fscalexf4_i387.
20761 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
20763 2014-03-13 Jakub Jelinek <jakub@redhat.com>
20765 PR tree-optimization/59779
20766 * tree-dfa.c (get_ref_base_and_extent): Use double_int
20767 type for bitsize and maxsize instead of HOST_WIDE_INT.
20769 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
20771 PR rtl-optimization/57320
20772 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
20773 the CFG after thread_prologue_and_epilogue_insns.
20775 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
20777 PR rtl-optimization/57189
20778 * lra-constraints.c (process_alt_operands): Disfavor spilling
20781 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
20783 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
20785 2014-03-13 Jakub Jelinek <jakub@redhat.com>
20787 PR tree-optimization/59025
20788 PR middle-end/60418
20789 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
20790 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
20792 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
20795 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
20796 calls of avr_out_plus_1.
20798 2014-03-13 Bin Cheng <bin.cheng@arm.com>
20800 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
20801 BB's single pred and update the father loop's latch info later.
20803 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20805 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
20809 (VEC_base): Likewise.
20810 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
20811 registers, we need to swap double words in little endian mode.
20813 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
20814 to be a container mode for 128-bit integer operations added in ISA
20815 2.07. Unlike TImode and PTImode, the preferred register set is
20816 the Altivec/VMX registers for the 128-bit operations.
20818 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
20820 (rs6000_split_128bit_ok_p): Likewise.
20822 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
20823 macros for creating ISA 2.07 normal and overloaded builtin
20824 functions with 3 arguments.
20825 (BU_P8V_OVERLOAD_3): Likewise.
20826 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
20827 for use as overloaded functions.
20828 (VPERM_1TI_UNS): Likewise.
20829 (VSEL_1TI): Likewise.
20830 (VSEL_1TI_UNS): Likewise.
20831 (ST_INTERNAL_1ti): Likewise.
20832 (LD_INTERNAL_1ti): Likewise.
20833 (XXSEL_1TI): Likewise.
20834 (XXSEL_1TI_UNS): Likewise.
20835 (VPERM_1TI): Likewise.
20836 (VPERM_1TI_UNS): Likewise.
20837 (XXPERMDI_1TI): Likewise.
20838 (SET_1TI): Likewise.
20839 (LXVD2X_V1TI): Likewise.
20840 (STXVD2X_V1TI): Likewise.
20841 (VEC_INIT_V1TI): Likewise.
20842 (VEC_SET_V1TI): Likewise.
20843 (VEC_EXT_V1TI): Likewise.
20844 (EQV_V1TI): Likewise.
20845 (NAND_V1TI): Likewise.
20846 (ORC_V1TI): Likewise.
20847 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
20848 added in ISA 2.07. Add both normal 'altivec' builtins, and the
20849 overloaded builtin.
20850 (VADDUQM): Likewise.
20851 (VSUBCUQ): Likewise.
20852 (VADDEUQM): Likewise.
20853 (VADDECUQ): Likewise.
20854 (VSUBEUQM): Likewise.
20855 (VSUBECUQ): Likewise.
20857 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
20858 __int128_t and __uint128_t types.
20859 (__uint128_type): Likewise.
20860 (altivec_categorize_keyword): Add support for vector __int128_t,
20861 vector __uint128_t, vector __int128, and vector unsigned __int128
20862 as a container type for TImode operations that need to be done in
20863 VSX/Altivec registers.
20864 (rs6000_macro_to_expand): Likewise.
20865 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
20866 to support 128-bit integer instructions vaddcuq, vadduqm,
20867 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
20868 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
20870 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20871 for V1TImode, and set up preferences to use VSX/Altivec registers.
20872 Setup VSX reload handlers.
20873 (rs6000_debug_reg_global): Likewise.
20874 (rs6000_init_hard_regno_mode_ok): Likewise.
20875 (rs6000_preferred_simd_mode): Likewise.
20876 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
20877 (easy_altivec_constant): Likewise.
20878 (output_vec_const_move): Likewise.
20879 (rs6000_expand_vector_set): Convert V1TImode set and extract to
20881 (rs6000_expand_vector_extract): Likewise.
20882 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
20884 (rs6000_const_vec): Add support for V1TImode.
20885 (rs6000_emit_le_vsx_load): Swap double words when loading or
20886 storing TImode/V1TImode.
20887 (rs6000_emit_le_vsx_store): Likewise.
20888 (rs6000_emit_le_vsx_move): Likewise.
20889 (rs6000_emit_move): Add support for V1TImode.
20890 (altivec_expand_ld_builtin): Likewise.
20891 (altivec_expand_st_builtin): Likewise.
20892 (altivec_expand_vec_init_builtin): Likewise.
20893 (altivec_expand_builtin): Likewise.
20894 (rs6000_init_builtins): Add support for V1TImode type. Add
20895 support for ISA 2.07 128-bit integer builtins. Define type names
20896 for the VSX/Altivec vector types.
20897 (altivec_init_builtins): Add support for overloaded vector
20898 functions with V1TImode type.
20899 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
20900 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
20902 (rs6000_split_128bit_ok_p): Likewise.
20903 (rs6000_handle_altivec_attribute): Create V1TImode from vector
20904 __int128_t and vector __uint128_t.
20906 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
20907 and mode attributes.
20909 (VSX_M2): Likewise.
20914 (VS_scalar): Likewise.
20915 (VS_double): Likewise.
20916 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
20918 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
20919 we support the ISA 2.07 128-bit integer arithmetic instructions.
20920 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
20921 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
20922 and TImode types for use with the builtin functions.
20923 (V1TI_type_node): Likewise.
20924 (unsigned_V1TI_type_node): Likewise.
20925 (intTI_type_internal_node): Likewise.
20926 (uintTI_type_internal_node): Likewise.
20928 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
20929 128-bit builtin functions.
20930 (UNSPEC_VADDEUQM): Likewise.
20931 (UNSPEC_VADDECUQ): Likewise.
20932 (UNSPEC_VSUBCUQ): Likewise.
20933 (UNSPEC_VSUBEUQM): Likewise.
20934 (UNSPEC_VSUBECUQ): Likewise.
20935 (VM): Add V1TImode to vector mode iterators.
20937 (VI_unit): Likewise.
20938 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
20939 (altivec_vaddcuq): Likewise.
20940 (altivec_vsubuqm): Likewise.
20941 (altivec_vsubcuq): Likewise.
20942 (altivec_vaddeuqm): Likewise.
20943 (altivec_vaddecuq): Likewise.
20944 (altivec_vsubeuqm): Likewise.
20945 (altivec_vsubecuq): Likewise.
20947 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
20949 (BOOL_128): Likewise.
20950 (BOOL_REGS_OUTPUT): Likewise.
20951 (BOOL_REGS_OP1): Likewise.
20952 (BOOL_REGS_OP2): Likewise.
20953 (BOOL_REGS_UNARY): Likewise.
20954 (BOOL_REGS_AND_CR0): Likewise.
20956 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
20957 128-bit integer builtin support.
20958 (vec_vadduqm): Likewise.
20959 (vec_vaddecuq): Likewise.
20960 (vec_vaddeuqm): Likewise.
20961 (vec_vsubecuq): Likewise.
20962 (vec_vsubeuqm): Likewise.
20963 (vec_vsubcuq): Likewise.
20964 (vec_vsubuqm): Likewise.
20966 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20967 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
20968 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
20969 128-bit integer add/subtract to ISA 2.07.
20971 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
20973 * config/arc/arc.c (arc_predicate_delay_insns):
20974 Fix third argument passed to conditionalize_nonjump.
20976 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
20978 * config/aarch64/aarch64-builtins.c
20979 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
20980 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
20981 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
20982 instead of __builtin_lfloor.
20983 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
20985 2014-03-12 Jakub Jelinek <jakub@redhat.com>
20987 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
20988 (tree_ssa_ifcombine_bb_1): New function.
20989 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
20990 is an empty forwarder block to then_bb or vice versa and then_bb
20991 and else_bb are effectively swapped.
20993 2014-03-12 Christian Bruel <christian.bruel@st.com>
20996 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
20997 REG_CFA_DEF_CFA note.
20998 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
20999 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21001 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21003 PR tree-optimization/60454
21004 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21006 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21008 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21009 Do not define target_cpu_default2 to generic.
21010 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21011 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21012 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21014 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21015 Marc Glisse <marc.glisse@inria.fr>
21017 PR tree-optimization/60502
21018 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21019 instead of build_low_bits_mask.
21021 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21023 PR middle-end/60482
21024 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21025 if there are multiple uses, but op doesn't live on E edge.
21026 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21027 clobber stmts before __builtin_unreachable.
21029 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21031 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21032 hard_frame_pointer_rtx.
21033 * cse.c (cse_insn): Remove volatile check.
21034 * cselib.c (cselib_process_insn): Likewise.
21035 * dse.c (scan_insn): Likewise.
21037 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21039 * config/arc/arc.c (conditionalize_nonjump): New function,
21041 (arc_ifcvt): ... this.
21042 (arc_predicate_delay_insns): Use it.
21044 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21046 * config/arc/predicates.md (extend_operand): During/after reload,
21047 allow const_int_operand.
21048 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21049 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21050 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21052 (umulsi3_highpart_i): Likewise.
21054 2014-03-11 Richard Biener <rguenther@suse.de>
21056 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21057 Add asserts to guard possible wrong-code bugs.
21059 2014-03-11 Richard Biener <rguenther@suse.de>
21061 PR tree-optimization/60429
21062 PR tree-optimization/60485
21063 * tree-ssa-structalias.c (set_union_with_increment): Properly
21064 take into account all fields that overlap the shifted vars.
21065 (do_sd_constraint): Likewise.
21066 (do_ds_constraint): Likewise.
21067 (get_constraint_for_ptr_offset): Likewise.
21069 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21071 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21072 (nios2_compute_frame_layout):
21073 Add calculation of cfun->machine->fp_save_offset.
21074 (nios2_expand_prologue): Correct setting of frame pointer register
21076 (nios2_expand_epilogue): Update recovery of stack pointer from
21077 frame pointer accordingly.
21078 (nios2_initial_elimination_offset): Update calculation of offset
21079 for eliminating to HARD_FRAME_POINTER_REGNUM.
21081 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21084 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21085 cgraph_get_create_node on VAR_DECLs.
21087 2014-03-10 Richard Biener <rguenther@suse.de>
21089 PR middle-end/60474
21090 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21092 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21094 * config/vms/vms.opt (vms_float_format): New variable.
21096 2014-03-08 Tobias Burnus <burnus@net-b.de>
21098 * doc/invoke.texi (-fcilkplus): Update implementation status.
21100 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21101 Richard Biener <rguenther@suse.de>
21103 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21104 consistently accross all TUs.
21105 (run_gcc): Enable -fshort-double automatically at link at link-time
21106 and disallow override.
21108 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21111 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21112 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21113 if they can't be used.
21115 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21117 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21118 for Solaris 11/x86 ld.
21119 * configure: Regenerate.
21121 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21123 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21124 (LIB_TLS_SPEC): Save as ld_tls_libs.
21125 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21126 (HAVE_AS_IX86_TLSLDM): New test.
21127 * configure, config.in: Regenerate.
21128 * config/i386/i386.c (legitimize_tls_address): Fall back to
21129 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21130 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21131 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21132 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21134 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21136 * common.opt (fira-loop-pressure): Mark as optimization.
21138 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21140 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21141 an OpenMP mappable type.
21143 2014-03-06 Matthias Klose <doko@ubuntu.com>
21145 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21146 MULTILIB_OSDIRNAMES is not defined.
21148 2014-03-06 Jakub Jelinek <jakub@redhat.com>
21149 Meador Inge <meadori@codesourcery.com>
21152 * config/arm/arm.c (arm_tls_symbol_p): Remove.
21153 (arm_legitimize_address): Call legitimize_tls_address for any
21154 arm_tls_referenced_p expression, handle constant addend. Call it
21155 before testing for !TARGET_ARM.
21156 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
21158 2014-03-06 Richard Biener <rguenther@suse.de>
21160 PR middle-end/60445
21164 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21166 * tree-streamer.c (record_common_node): Assert we don't record
21167 nodes with type double.
21168 (preload_common_node): Skip type double, complex double and double
21169 pointer since it is now frontend dependent due to fshort-double option.
21171 2014-03-06 Richard Biener <rguenther@suse.de>
21173 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
21174 or -fno-lto is specified and the linker has full plugin support.
21175 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
21176 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
21177 * lto-wrapper.c (merge_and_complain): Merge compile-time
21178 optimization levels.
21179 (run_gcc): And pass it through to the link options.
21181 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
21185 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21187 * cselib.c (remove_useless_values): Skip to avoid quadratic
21188 behavior if the condition moved from...
21189 (cselib_process_insn): ... here holds.
21191 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21194 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
21195 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
21198 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
21199 (TM_H): Add x86-tune.def.
21201 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21203 * config/aarch64/aarch64.c (generic_tunings):
21204 Use cortexa57_extra_costs.
21206 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21209 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
21210 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
21211 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
21214 2014-03-04 Heiher <r@hev.cc>
21216 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
21217 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
21219 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
21221 * config/i386/predicates.md (const2356_operand): Change to ...
21222 (const2367_operand): ... this.
21223 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
21225 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21226 (*avx512pf_scatterpf<mode>sf): Ditto.
21227 (avx512pf_scatterpf<mode>df): Ditto.
21228 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21229 (*avx512pf_scatterpf<mode>df): Ditto.
21230 * config/i386/i386.c (ix86_expand_builtin): Update
21231 incorrect hint operand error message.
21233 2014-03-04 Richard Biener <rguenther@suse.de>
21235 * lto-section-in.c (lto_get_section_data): Fix const cast.
21237 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21239 * tree-streamer.c (record_common_node): Assert we don't record
21240 nodes with type double.
21241 (preload_common_node): Skip type double, complex double and double
21242 pointer since it is now frontend dependent due to fshort-double option.
21244 2014-03-04 Richard Biener <rguenther@suse.de>
21247 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
21248 (lto_input_toplevel_asms): Likewise.
21249 * lto-section-in.c (lto_get_section_data): Instead do it here
21252 2014-03-04 Richard Biener <rguenther@suse.de>
21254 PR tree-optimization/60382
21255 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
21256 dead PHIs a reduction.
21258 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
21260 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
21262 (_mm_prefetch): Move out of GCC target("sse") pragma.
21263 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
21264 GCC target("prfchw") pragma.
21265 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
21267 * config/i386/i386.c (ix86_option_override_internal): Enable
21268 -mprfchw with -mprefetchwt1.
21270 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21272 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
21275 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21277 * opts.h (CL_PCH_IGNORE): Define.
21278 * targhooks.c (option_affects_pch_p):
21279 Return false for options that have CL_PCH_IGNORE set.
21280 * opt-functions.awk: Process PchIgnore.
21281 * doc/options.texi: Document PchIgnore.
21283 * config/arc/arc.opt (misize): Add PchIgnore property.
21285 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21287 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
21288 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
21289 constraint on constants to permit them being loaded into
21290 GENERAL_REGS or BASE_REGS.
21292 2014-03-03 Nick Clifton <nickc@redhat.com>
21294 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
21295 anti-cacnonical alternatives.
21296 (negandhi3_real): New pattern.
21297 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
21299 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21301 * config/avr/avr-mcus.def: Remove atxmega16x1.
21302 * config/avr/avr-tables.opt: Regenerate.
21303 * config/avr/t-multilib: Regenerate.
21304 * doc/avr-mmcu.texi: Regenerate.
21306 2014-03-03 Tobias Grosser <tobias@grosser.es>
21307 Mircea Namolaru <mircea.namolaru@inria.fr>
21309 PR tree-optimization/58028
21310 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
21313 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21315 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
21316 not handled by recognizers.
21318 2014-03-03 Jakub Jelinek <jakub@redhat.com>
21320 PR middle-end/60175
21321 * function.c (expand_function_end): Don't emit
21322 clobber_return_register sequence if clobber_after is a BARRIER.
21323 * cfgexpand.c (construct_exit_block): Append instructions before
21324 return_label to prev_bb.
21326 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21328 * config/rs6000/constraints.md: Document reserved use of "wc".
21330 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21333 * ipa.c (function_and_variable_visibility): When dissolving comdat
21334 group, also set all symbols to local.
21336 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21341 2013-12-14 Jan Hubicka <jh@suse.cz>
21342 PR middle-end/58477
21343 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
21345 2014-03-02 Jon Beniston <jon@beniston.com>
21351 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
21352 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
21353 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
21354 (simple_return, *simple_return): New patterns
21355 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
21356 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
21358 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
21360 * dwarf2out.c (gen_subprogram_die): Tidy.
21362 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
21365 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
21366 (*mov_t_msb_neg_negc): ... this new insn.
21368 2014-02-28 Jason Merrill <jason@redhat.com>
21371 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
21374 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
21377 * dwarf2out.c (decltype_auto_die): New static.
21378 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
21379 (gen_type_die_with_usage): Handle 'decltype(auto)'.
21380 (is_cxx_auto): Likewise.
21382 2014-02-28 Ian Bolton <ian.bolton@arm.com>
21384 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
21385 we are not using general regs only.
21387 2014-02-28 Richard Biener <rguenther@suse.de>
21390 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
21391 previous fix and only allow to remove trivial pre-headers
21392 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
21393 (remove_forwarder_block): Properly update the latch of a loop.
21395 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21398 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
21399 (cselib_preserved_hash_table): New.
21400 (preserve_constants_and_equivs): Move preserved vals to it.
21401 (cselib_find_slot): Look it up first.
21402 (cselib_init): Initialize it.
21403 (cselib_finish): Release it.
21404 (dump_cselib_table): Dump it.
21406 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21409 * cselib.c (remove_useless_values): Skip to avoid quadratic
21410 behavior if the condition moved from...
21411 (cselib_process_insn): ... here holds.
21413 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21416 * var-tracking.c (vt_initialize): Apply the same condition to
21417 preserve the CFA base value.
21419 2014-02-28 Joey Ye <joey.ye@arm.com>
21422 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
21423 if reload in progress or completed.
21425 2014-02-28 Tobias Burnus <burnus@net-b.de>
21427 PR middle-end/60147
21428 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
21431 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
21433 * doc/tm.texi.in (Condition Code Status): Update documention for
21434 relative locations of cc0-setter and cc0-user.
21436 2014-02-27 Jeff Law <law@redhat.com>
21438 PR rtl-optimization/52714
21439 * combine.c (try_combine): When splitting an unrecognized PARALLEL
21440 into two independent simple sets, if I3 is a jump, ensure the
21441 pattern we place into I3 is a (set (pc) ...).
21443 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
21444 Jeff Law <law@redhat.com>
21446 PR rtl-optimization/49847
21447 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
21448 are in different blocks.
21449 * doc/tm.texi (Condition Code Status): Update documention for
21450 relative locations of cc0-setter and cc0-user.
21452 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
21455 * lra.c (lra_emit_add): Check SUBREG too.
21457 2014-02-27 Andreas Schwab <schwab@suse.de>
21459 * config/m68k/m68k.c (m68k_option_override): Disable
21460 -flive-range-shrinkage for classic m68k.
21461 (m68k_override_options_after_change): Likewise.
21463 2014-02-27 Marek Polacek <polacek@redhat.com>
21465 PR middle-end/59223
21466 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
21467 -Wmaybe-uninitialized.
21469 2014-02-27 Alan Modra <amodra@gmail.com>
21472 * reload1.c (emit_input_reload_insns): When reload_override_in,
21473 set old to rl->in_reg when rl->in_reg is a subreg.
21475 2014-02-26 Richard Biener <rguenther@suse.de>
21478 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
21480 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21482 * common/config/i386/predicates.md (const1256_operand): Remove.
21483 (const2356_operand): New.
21484 (const_1_to_2_operand): Remove.
21485 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
21486 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21487 (*avx512pf_gatherpf<mode>sf): Ditto.
21488 (avx512pf_gatherpf<mode>df): Ditto.
21489 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21490 (*avx512pf_gatherpf<mode>df): Ditto.
21491 (avx512pf_scatterpf<mode>sf): Ditto.
21492 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21493 (*avx512pf_scatterpf<mode>sf): Ditto.
21494 (avx512pf_scatterpf<mode>df): Ditto.
21495 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21496 (*avx512pf_scatterpf<mode>df): Ditto.
21497 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
21499 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
21501 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
21502 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
21503 (_mm512_mask_testn_epi64_mask): Move to ...
21504 * config/i386/avx512cdintrin.h: Here.
21505 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
21506 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
21507 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
21508 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
21509 TARGET_AVX512F from TARGET_AVX512CD.
21511 2014-02-26 Richard Biener <rguenther@suse.de>
21514 * ipa.c (walk_polymorphic_call_targets): Properly guard
21515 call to inline_update_overall_summary.
21517 2014-02-26 Bin Cheng <bin.cheng@arm.com>
21520 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
21521 and latches only if requested. Fix latch if it is removed.
21522 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
21523 LOOPS_HAVE_PREHEADERS.
21525 2014-02-25 Andrew Pinski <apinski@cavium.com>
21527 * builtins.c (expand_builtin_thread_pointer): Create a new target
21528 when the target is NULL.
21530 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
21532 PR rtl-optimization/60317
21533 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21534 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21535 * lra-assigns.c: Include params.h.
21536 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
21537 other reload pseudos considerations.
21539 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21541 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
21542 to use canonical form for nor<mode>3.
21544 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21547 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
21550 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21552 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
21553 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
21554 (ix86_handle_option): Handle OPT_mprefetchwt1.
21555 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
21556 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21558 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21559 OPTION_MASK_ISA_PREFETCHWT1.
21560 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
21561 (PTA_PREFETCHWT1): New.
21562 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
21563 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
21564 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
21565 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
21566 (*prefetch_avx512pf_<mode>_: Change into ...
21567 (*prefetch_prefetchwt1_<mode>: This.
21568 * config/i386/i386.opt (mprefetchwt1): New.
21569 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
21570 (_mm_prefetch): Handle intent to write.
21571 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
21573 2014-02-25 Richard Biener <rguenther@suse.de>
21575 PR middle-end/60291
21576 * emit-rtl.c (mem_attrs_htab): Remove.
21577 (mem_attrs_htab_hash): Likewise.
21578 (mem_attrs_htab_eq): Likewise.
21579 (set_mem_attrs): Always allocate new mem-attrs when something changed.
21580 (init_emit_once): Do not allocate mem_attrs_htab.
21582 2014-02-25 Richard Biener <rguenther@suse.de>
21585 * lto-opts.c (lto_write_options): Output non-explicit conservative
21586 -fwrapv, -fno-trapv and -fno-strict-overflow.
21587 * lto-wrapper.c (merge_and_complain): Handle merging those options.
21588 (run_gcc): And pass them through.
21590 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21592 * sel-sched.c (calculate_new_fences): New parameter ptime.
21593 Calculate it as a maximum over all fence cycles.
21594 (sel_sched_region_2): Adjust the call to calculate_new_fences.
21595 Print the final schedule timing when sched_verbose.
21597 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21599 PR rtl-optimization/60292
21600 * sel-sched.c (fill_vec_av_set): Do not reset target availability
21601 bit fot the fence instruction.
21603 2014-02-24 Alangi Derick <alangiderick@gmail.com>
21605 * calls.h: Fix typo in comment.
21607 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
21609 * config/pa/pa.c (pa_output_move_double): Don't valididate when
21610 adjusting offsetable addresses.
21612 2014-02-24 Guozhi Wei <carrot@google.com>
21614 * sparseset.h (sparseset_pop): Fix the wrong index.
21616 2014-02-24 Walter Lee <walt@tilera.com>
21618 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
21619 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
21621 * common/config/tilegx/tilegx-common.c
21622 (TARGET_DEFAULT_TARGET_FLAGS): Define.
21623 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
21624 (LINK_SPEC): Ditto.
21625 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
21626 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
21627 (tilegx_gimplify_va_arg_expr): Handle big endian.
21628 (tilegx_expand_unaligned_load): Ditto.
21629 (tilegx_expand_unaligned_store): Ditto.
21630 (TARGET_RETURN_IN_MSB): New.
21631 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
21632 (TARGET_ENDIAN_DEFAULT): New.
21633 (TARGET_BIG_ENDIAN): Handle big endian.
21634 (BYTES_BIG_ENDIAN): Ditto.
21635 (WORDS_BIG_ENDIAN): Ditto.
21636 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
21637 (ENDIAN_SPEC): New.
21638 (EXTRA_SPECS): New.
21639 * config/tilegx/tilegx.md (extv): Handle big endian.
21641 (insn_st<n>): Ditto.
21642 (insn_st<n>_add<bitsuffix>): Ditto.
21643 (insn_stnt<n>): Ditto.
21644 (insn_stnt<n>_add<bitsuffix>):Ditto.
21645 (vec_interleave_highv8qi): Handle big endian.
21646 (vec_interleave_highv8qi_be): New.
21647 (vec_interleave_highv8qi_le): New.
21648 (insn_v1int_h): Handle big endian.
21649 (vec_interleave_lowv8qi): Handle big endian.
21650 (vec_interleave_lowv8qi_be): New.
21651 (vec_interleave_lowv8qi_le): New.
21652 (insn_v1int_l): Handle big endian.
21653 (vec_interleave_highv4hi): Handle big endian.
21654 (vec_interleave_highv4hi_be): New.
21655 (vec_interleave_highv4hi_le): New.
21656 (insn_v2int_h): Handle big endian.
21657 (vec_interleave_lowv4hi): Handle big endian.
21658 (vec_interleave_lowv4hi_be): New.
21659 (vec_interleave_lowv4hi_le): New.
21660 (insn_v2int_l): Handle big endian.
21661 (vec_interleave_highv2si): Handle big endian.
21662 (vec_interleave_highv2si_be): New.
21663 (vec_interleave_highv2si_le): New.
21664 (insn_v4int_h): Handle big endian.
21665 (vec_interleave_lowv2si): Handle big endian.
21666 (vec_interleave_lowv2si_be): New.
21667 (vec_interleave_lowv2si_le): New.
21668 (insn_v4int_l): Handle big endian.
21669 * config/tilegx/tilegx.opt (mbig-endian): New option.
21670 (mlittle-endian): New option.
21671 * doc/install.texi: Document tilegxbe-linux.
21672 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
21674 2014-02-24 Martin Jambor <mjambor@suse.cz>
21677 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
21678 there are no parameter descriptors.
21680 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
21682 PR rtl-optimization/60268
21683 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
21684 initialization to ...
21685 (sched_rgn_init): ... here.
21686 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
21688 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21690 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
21693 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
21695 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
21698 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21700 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
21701 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
21703 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21705 * config/microblaze/predicates.md: Add cmp_op predicate.
21706 * config/microblaze/microblaze.md: Add branch_compare instruction
21707 which uses cmp_op predicate and emits cmp insn before branch.
21708 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
21709 to microblaze_expand_conditional_branch and consolidate logic.
21710 (microblaze_expand_conditional_branch): emit branch_compare
21711 insn instead of handling cmp op separate from branch insn.
21713 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21715 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
21718 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21720 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
21721 define_insn with define_expand and new define_insn
21722 *altivec_lve<VI_char>x_internal.
21723 (altivec_stve<VI_char>x): Replace define_insn with define_expand
21724 and new define_insn *altivec_stve<VI_char>x_internal.
21725 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
21727 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
21729 (altivec_expand_stvex_be): New function.
21731 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
21733 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
21734 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
21735 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
21736 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
21738 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
21741 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
21742 instead of emit_move_insn.
21744 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21746 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
21747 vspltw with vsldoi.
21748 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
21749 gen_altivec_vsumsws.
21751 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21753 * config/rs6000/altivec.md (altivec_lvxl): Rename as
21754 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
21755 (altivec_lvxl_<mode>): New define_expand incorporating
21756 -maltivec=be semantics where needed.
21757 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
21758 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
21759 semantics where needed.
21760 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
21761 (altivec_stvx_<mode>): New define_expand incorporating
21762 -maltivec=be semantics where needed.
21763 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
21764 VM2 iterator instead of V4SI.
21765 (altivec_stvxl_<mode>): New define_expand incorporating
21766 -maltivec=be semantics where needed.
21767 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
21768 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
21769 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
21770 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
21771 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
21772 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
21773 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
21774 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
21775 ALTIVEC_BUILTIN_STVXL.
21776 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
21777 (altivec_expand_stvx_be): Likewise.
21778 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
21779 (altivec_expand_lvx_be): Likewise.
21780 (altivec_expand_stvx_be): Likewise.
21781 (altivec_expand_builtin): Add cases for
21782 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
21783 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
21784 (altivec_init_builtins): Add definitions for
21785 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
21786 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
21788 2014-02-21 Catherine Moore <clm@codesourcery.com>
21790 * doc/invoke.texi (mvirt, mno-virt): Document.
21791 * config/mips/mips.opt (mvirt): New option.
21792 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
21794 2014-02-21 Richard Biener <rguenther@suse.de>
21796 PR tree-optimization/60276
21797 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
21798 (STMT_VINFO_MIN_NEG_DIST): New macro.
21799 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
21800 STMT_VINFO_MIN_NEG_DIST.
21801 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
21802 made for negative dependence distances still hold.
21804 2014-02-21 Richard Biener <rguenther@suse.de>
21806 PR middle-end/60291
21807 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
21808 DECL_INITIAL for globals not in the current function context.
21810 2014-02-21 Jakub Jelinek <jakub@redhat.com>
21812 PR tree-optimization/56490
21813 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
21814 * tree-ssa-uninit.c: Include params.h.
21815 (compute_control_dep_chain): Add num_calls argument, return false
21816 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
21817 num_calls to recursive call.
21818 (find_predicates): Change dep_chain into normal array,
21819 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
21820 variable and adjust compute_control_dep_chain caller.
21821 (find_def_preds): Likewise.
21823 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
21825 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
21826 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
21828 2014-02-21 Nick Clifton <nickc@redhat.com>
21830 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
21831 (pushhi1): Likewise.
21832 (popqi1): Add mode to pre_dec.
21833 (pophi1): Likewise.
21835 2014-02-21 Jakub Jelinek <jakub@redhat.com>
21837 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
21838 mode for mask of V8SFmode permutation.
21840 2014-02-20 Richard Henderson <rth@redhat.com>
21843 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
21844 a new pseudo for OLDVAL.
21846 2014-02-20 Jakub Jelinek <jakub@redhat.com>
21849 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
21850 gen_reg_rtx if d->testing_p.
21851 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
21852 if d->testing_p and we will certainly return true.
21853 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
21856 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
21858 * emit-rtl.c (gen_reg_rtx): Assert that
21859 crtl->emit.regno_pointer_align_length is non-zero.
21861 2014-02-20 Richard Henderson <rth@redhat.com>
21864 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
21865 on failure the store back into EXPECT.
21867 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
21868 Sandra Loosemore <sandra@codesourcery.com>
21870 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
21871 * config/nios2/nios2.c (nios2_function_profiler): Add
21872 -fPIC (flag_pic == 2) support.
21873 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
21874 (nios2_large_offset_p): New function.
21875 (nios2_unspec_reloc_p): Move up position, update to use
21876 nios2_large_offset_p.
21877 (nios2_unspec_address): Remove function.
21878 (nios2_unspec_offset): New function.
21879 (nios2_large_got_address): New function.
21880 (nios2_got_address): Add large offset support.
21881 (nios2_legitimize_tls_address): Update usage of removed and new
21883 (nios2_symbol_binds_local_p): New function.
21884 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
21885 (nios2_legitimize_address): Update to use nios2_large_offset_p.
21886 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
21887 (nios2_print_operand): Merge H/L processing, add hiadj/lo
21888 processing for (const (unspec ...)).
21889 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
21891 2014-02-20 Richard Biener <rguenther@suse.de>
21893 * tree-cfg.c (replace_uses_by): Mark altered BBs before
21894 doing the substitution.
21895 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
21897 2014-02-20 Martin Jambor <mjambor@suse.cz>
21900 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
21901 info when checking whether lattices are bottom.
21903 2014-02-20 Richard Biener <rguenther@suse.de>
21905 PR middle-end/60221
21906 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
21909 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
21912 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
21913 parameter specifying the scaling.
21914 (inline_call): Update.
21915 (want_inline_recursively): Guard division by zero.
21916 (recursive_inlining): Update.
21917 * ipa-inline.h (clone_inlined_nodes): Update.
21919 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
21922 * config/i386/i386.c (classify_argument): Pass structures of size
21923 64 bytes or less in register.
21925 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
21926 Kirill Yukhin <kirill.yukhin@intel.com>
21928 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
21929 (_mm_rcp28_round_ss): Ditto.
21930 (_mm_rsqrt28_round_sd): Ditto.
21931 (_mm_rsqrt28_round_ss): Ditto.
21932 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
21933 (_mm_rcp14_round_ss): Ditto.
21934 (_mm_rsqrt14_round_sd): Ditto.
21935 (_mm_rsqrt14_round_ss): Ditto.
21936 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
21937 the first input operand, get rid of match_dup.
21938 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
21940 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21942 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
21943 operand as the first input operand, set type attribute.
21944 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21945 Set type attribute.
21946 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
21947 operand as the first input operand, set type attribute.
21949 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21951 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
21954 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
21957 * config/i386/i386.c (construct_container): Remove TFmode check
21958 for X86_64_INTEGER_CLASS.
21960 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
21963 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
21964 only when -Wpsabi is enabled.
21966 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
21969 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
21970 passing arrays in registers are the same as for structs, so remove the
21971 special case for them.
21973 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
21975 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
21976 destination type, extract only the valid bits if the source type is not
21977 integral and has a different mode.
21979 2014-02-19 Richard Biener <rguenther@suse.de>
21982 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
21985 2014-02-19 Richard Biener <rguenther@suse.de>
21988 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
21989 (ipa_modify_call_arguments): Emit an argument load explicitely and
21990 preserve virtual SSA form there and for the replacement call.
21991 Do not update SSA form nor free dominance info.
21993 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
21995 * ipa.c (function_and_variable_visibility): Also clear WEAK
21996 flag when disolving COMDAT_GROUP.
21998 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22000 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22001 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22002 not devirtualizing.
22003 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22004 do more sanity checks.
22005 (detect_type_change): Return true when giving up early.
22006 (compute_complex_assign_jump_func): Fix type parameter of
22007 ipa_set_ancestor_jf.
22008 (compute_complex_ancestor_jump_func): Likewise.
22009 (update_jump_functions_after_inlining): Fix updating of
22011 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22013 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22015 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22016 inline clones when edge disappears.
22018 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22021 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22022 Split 64-bit moves into 2 patterns. Do not allow the use of
22023 direct move for TDmode in little endian, since the decimal value
22024 has little endian bytes within a word, but the 64-bit pieces are
22025 ordered in a big endian fashion, and normal subreg's of TDmode are
22027 (mov<mode>_64bit_dm): Likewise.
22028 (movtd_64bit_nodm): Likewise.
22030 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22032 PR tree-optimization/60174
22033 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22034 statement of an SSA_NAME that occurs in an abnormal PHI node.
22036 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22039 * final.c (SEEN_BB): Remove.
22040 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22041 (final_scan_insn): Don't force_source_line on second
22042 NOTE_INSN_BASIC_BLOCK.
22044 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22047 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22048 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22049 (type_natural_mode): Warn ABI change when %zmm register is not
22050 available for AVX512F vector value passing.
22052 2014-02-18 Kai Tietz <ktietz@redhat.com>
22055 * config/i386/i386.c (ix86_expand_prologue): Use value in
22056 rax register as displacement when restoring %r10 or %rax.
22057 Fix wrong offset when restoring both registers.
22059 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22061 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22062 assertion with conditional return.
22064 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22065 Uros Bizjak <ubizjak@gmail.com>
22068 * config/i386/driver-i386.c (host_detect_local_cpu): If
22069 YMM state is not saved by the OS, also clear has_f16c. Move
22070 CPUID 0x80000001 handling before YMM state saving checking.
22072 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22074 PR rtl-optimization/58960
22075 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22076 factored out from ...
22077 (sched_init): ... here.
22078 (free_global_sched_pressure_data): New, factored out from ...
22079 (sched_finish): ... here.
22080 * sched-int.h (free_global_sched_pressure_data): Declare.
22081 * sched-rgn.c (nr_regions_initial): New static global.
22082 (haifa_find_rgns): Initialize it.
22083 (schedule_region): Disable sched-pressure for the newly
22086 2014-02-17 Richard Biener <rguenther@suse.de>
22088 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22089 release SSA defs of pattern stmts.
22091 2014-02-17 Richard Biener <rguenther@suse.de>
22093 * tree-inline.c (expand_call_inline): Release the virtual
22094 operand defined by the call we are about to inline.
22096 2014-02-17 Richard Biener <rguenther@suse.de>
22098 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22100 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22101 Ilya Tocar <ilya.tocar@intel.com>
22103 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22104 arguments order in builtin.
22105 (_mm512_permutexvar_epi64): Ditto.
22106 (_mm512_mask_permutexvar_epi64): Ditto
22107 (_mm512_maskz_permutexvar_epi32): Ditto
22108 (_mm512_permutexvar_epi32): Ditto
22109 (_mm512_mask_permutexvar_epi32): Ditto
22111 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22113 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22114 (p8_vmrgow): Likewise.
22116 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22118 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22121 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22124 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22125 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22126 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22127 using direct move instructions on ISA 2.07. Also adjust
22128 instruction length for 64-bit.
22129 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22130 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22132 2014-02-15 Alan Modra <amodra@gmail.com>
22136 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22137 find_replacement on parts of insn rtl that might be reloaded.
22139 2014-02-15 Richard Biener <rguenther@suse.de>
22141 PR tree-optimization/60183
22142 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22143 (tree_ssa_phiprop): Calculate and free post-dominators.
22145 2014-02-14 Jeff Law <law@redhat.com>
22147 PR rtl-optimization/60131
22148 * ree.c (get_extended_src_reg): New function.
22149 (combine_reaching_defs): Use it rather than assuming location of REG.
22150 (find_and_remove_re): Verify first operand of extension is
22151 a REG before adding the insns to the copy list.
22153 2014-02-14 Roland McGrath <mcgrathr@google.com>
22155 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
22156 * configure: Regenerated.
22157 * config.in: Regenerated.
22158 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
22159 instead of ASM_SHORT.
22161 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
22162 Richard Earnshaw <rearnsha@arm.com>
22164 PR rtl-optimization/59535
22165 * lra-constraints.c (process_alt_operands): Encourage alternative
22166 when unassigned pseudo class is superset of the alternative class.
22167 (inherit_reload_reg): Don't inherit when optimizing for code size.
22168 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
22169 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
22170 modes not less than 4 for Thumb1.
22172 2014-02-14 Kyle McMartin <kyle@redhat.com>
22175 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
22177 2014-02-14 Richard Biener <rguenther@suse.de>
22179 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
22180 (get_frame_arg): Drop the assert with langhook types_compatible_p.
22181 Do not strip INDIRECT_REFs.
22183 2014-02-14 Richard Biener <rguenther@suse.de>
22186 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
22187 DECL_FUNCTION_SPECIFIC_TARGET.
22188 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
22189 * tree-streamer-out.c (pack_ts_target_option): Remove.
22190 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
22191 (write_ts_function_decl_tree_pointers): Do not stream
22192 DECL_FUNCTION_SPECIFIC_TARGET.
22193 * tree-streamer-in.c (unpack_ts_target_option): Remove.
22194 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
22195 (lto_input_ts_function_decl_tree_pointers): Do not stream
22196 DECL_FUNCTION_SPECIFIC_TARGET.
22198 2014-02-14 Jakub Jelinek <jakub@redhat.com>
22200 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
22201 (get_initial_def_for_induction, vectorizable_induction): Ignore
22202 debug stmts when looking for exit_phi.
22203 (vectorizable_live_operation): Fix up condition.
22205 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22207 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
22208 nreverse() because it changes the content of original tree list.
22210 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22212 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
22213 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
22215 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22217 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
22218 GNU coding standards.
22220 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22223 * dwarf2out.c (gen_subprogram_die): Don't call
22224 add_calling_convention_attribute if subr_die is old_die.
22226 2014-02-13 Sharad Singhai <singhai@google.com>
22228 * doc/optinfo.texi: Fix order of nodes.
22230 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
22232 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
22233 operands[2], not operands[3].
22235 2014-02-13 Richard Biener <rguenther@suse.de>
22238 * doc/install.texi (ISL): Update recommended version to 0.12.2,
22239 mention the possibility of an in-tree build.
22240 (CLooG): Update recommended version to 0.18.1, mention the
22241 possibility of an in-tree build and clarify that the ISL
22242 bundled with CLooG does not work.
22244 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22247 * expr.c (compress_float_constant): If x is a hard register,
22248 extend into a pseudo and then move to x.
22250 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
22252 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
22253 caused by bad second argument to warning_at() with -mhotpatch and
22254 nested functions (e.g. with gfortran).
22256 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
22258 * opts.c (option_name): Remove "enabled by default" rider.
22260 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
22262 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
22264 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
22265 Uros Bizjak <ubizjak@gmail.com>
22268 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
22269 * configure: Regenerated.
22271 2014-02-12 Richard Biener <rguenther@suse.de>
22273 * vec.c (vec_prefix::calculate_allocation): Move as
22274 inline variant to vec.h.
22275 (vec_prefix::calculate_allocation_1): New out-of-line version.
22276 * vec.h (vec_prefix::calculate_allocation_1): Declare.
22277 (vec_prefix::m_has_auto_buf): Rename to ...
22278 (vec_prefix::m_using_auto_storage): ... this.
22279 (vec_prefix::calculate_allocation): Inline the easy cases
22280 and dispatch to calculate_allocation_1 which doesn't need the
22282 (va_heap::reserve): Use gcc_checking_assert.
22283 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
22284 m_using_auto_storage.
22285 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
22287 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
22288 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
22289 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
22291 2014-02-12 Richard Biener <rguenther@suse.de>
22293 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
22294 when we found a dependence.
22296 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
22298 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
22300 (maybe_fold_stmt): ... into this new function.
22301 * omp-low.c (lower_omp): Update comment.
22303 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
22306 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
22309 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
22311 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
22312 identifiers in comments.
22313 (cortexa53_extra_costs): Likewise.
22314 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
22315 (cortexa7_extra_costs): Likewise.
22316 (cortexa12_extra_costs): Likewise.
22317 (cortexa15_extra_costs): Likewise.
22318 (v7m_extra_costs): Likewise.
22320 2014-02-12 Richard Biener <rguenther@suse.de>
22322 PR middle-end/60092
22323 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
22324 of posix_memalign being successful.
22325 (lower_stmt): Restrict lowering of posix_memalign to when
22326 -ftree-bit-ccp is enabled.
22328 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22330 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
22332 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22334 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
22336 PR rtl-optimization/60116
22337 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
22338 other_insn once the combination has been validated.
22340 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
22343 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
22345 * ipa-devirt.c: Include demangle.h
22346 (odr_violation_reported): New static variable.
22347 (add_type_duplicate): Update odr_violations.
22348 (maybe_record_node): Add completep parameter; update it.
22349 (record_target_from_binfo): Add COMPLETEP parameter;
22350 update it as needed.
22351 (possible_polymorphic_call_targets_1): Likewise.
22352 (struct polymorphic_call_target_d): Add nonconstruction_targets;
22353 rename FINAL to COMPLETE.
22354 (record_targets_from_bases): Sanity check we found the binfo;
22355 fix COMPLETEP updating.
22356 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
22357 parameter, fix computing of COMPLETEP.
22358 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
22359 at LTO time do demangling.
22360 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
22361 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
22363 (gimple_get_virt_method_for_binfo): Likewise.
22364 * gimple-fold.h (gimple_get_virt_method_for_binfo,
22365 gimple_get_virt_method_for_vtable): Update prototypes.
22367 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
22370 * genautomata.c (add_presence_absence): Fix typo with
22371 {final_}presence_list.
22373 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22376 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
22377 for VSX/Altivec vectors that land in GPR registers.
22379 2014-02-11 Richard Henderson <rth@redhat.com>
22380 Jakub Jelinek <jakub@redhat.com>
22383 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
22384 around drhs if type conversion to lacc->type is not useless.
22386 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22388 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
22390 (cortex-a57.cortex-a53): Likewise.
22391 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
22393 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22395 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
22398 2014-02-11 Renlin Li <Renlin.Li@arm.com>
22400 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
22401 add_options_for_arm_vfp3.
22403 2014-02-11 Jeff Law <law@redhat.com>
22405 PR middle-end/54041
22406 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
22407 object with an undesirable mode.
22409 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22412 * config/i386/sol2-9.h: New file.
22413 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
22414 *-*-solaris2.9*): Use it.
22416 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22418 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
22419 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
22421 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22423 * config/microblaze/microblaze.c: Extend mcpu version format
22425 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
22427 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
22429 2014-02-10 Richard Henderson <rth@redhat.com>
22432 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
22433 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
22434 ms-abi vs -mno-accumulate-outgoing-args.
22435 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
22436 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
22439 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
22441 PR middle-end/60080
22442 * cfgexpand.c (expand_asm_operands): Attach source location to
22443 ASM_INPUT rtx objects.
22444 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
22446 2014-02-10 Nick Clifton <nickc@redhat.com>
22448 * config/mn10300/mn10300.c (popcount): New function.
22449 (mn10300_expand_prologue): Include saved registers in stack usage
22452 2014-02-10 Jeff Law <law@redhat.com>
22454 PR middle-end/52306
22455 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
22456 when changing the SET_DEST of a prior insn to avoid an input reload.
22458 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22460 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
22461 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
22462 -mcall-openbsd, or -mcall-linux.
22463 (CC1_ENDIAN_BIG_SPEC): Remove.
22464 (CC1_ENDIAN_LITTLE_SPEC): Remove.
22465 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22466 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
22467 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
22468 and %cc1_endian_default.
22469 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22471 2014-02-10 Richard Biener <rguenther@suse.de>
22473 PR tree-optimization/60115
22474 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
22475 MEM_REF handling. Properly verify that the accesses are not
22476 out of the objects bound.
22478 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22480 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
22483 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
22485 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
22486 proper constants and fix formatting.
22487 (possible_polymorphic_call_targets): Fix formatting.
22489 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
22490 Ilya Tocar <ilya.tocar@intel.com>
22492 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
22493 (_mm512_loadu_epi32): Renamed into...
22494 (_mm512_loadu_si512): This.
22495 (_mm512_storeu_epi32): Renamed into...
22496 (_mm512_storeu_si512): This.
22497 (_mm512_maskz_ceil_ps): Removed.
22498 (_mm512_maskz_ceil_pd): Ditto.
22499 (_mm512_maskz_floor_ps): Ditto.
22500 (_mm512_maskz_floor_pd): Ditto.
22501 (_mm512_floor_round_ps): Ditto.
22502 (_mm512_floor_round_pd): Ditto.
22503 (_mm512_ceil_round_ps): Ditto.
22504 (_mm512_ceil_round_pd): Ditto.
22505 (_mm512_mask_floor_round_ps): Ditto.
22506 (_mm512_mask_floor_round_pd): Ditto.
22507 (_mm512_mask_ceil_round_ps): Ditto.
22508 (_mm512_mask_ceil_round_pd): Ditto.
22509 (_mm512_maskz_floor_round_ps): Ditto.
22510 (_mm512_maskz_floor_round_pd): Ditto.
22511 (_mm512_maskz_ceil_round_ps): Ditto.
22512 (_mm512_maskz_ceil_round_pd): Ditto.
22513 (_mm512_expand_pd): Ditto.
22514 (_mm512_expand_ps): Ditto.
22515 * config/i386/i386.c (ix86_builtins): Remove
22516 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
22517 (bdesc_args): Ditto.
22518 * config/i386/predicates.md (const1256_operand): New.
22519 (const_1_to_2_operand): Ditto.
22520 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22521 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22522 (*avx512pf_gatherpf<mode>sf): Ditto.
22523 (avx512pf_gatherpf<mode>df): Ditto.
22524 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22525 (*avx512pf_gatherpf<mode>df): Ditto.
22526 (avx512pf_scatterpf<mode>sf): Ditto.
22527 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22528 (*avx512pf_scatterpf<mode>sf): Ditto.
22529 (avx512pf_scatterpf<mode>df): Ditto.
22530 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22531 (*avx512pf_scatterpf<mode>df): Ditto.
22532 (avx512f_expand<mode>): Removed.
22533 (<shift_insn><mode>3<mask_name>): Change predicate type.
22535 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22537 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
22538 not at the end of datarefs vector use ordered_remove to avoid
22539 reordering datarefs vector.
22542 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
22543 mark local addressable non-static vars as GOVD_PRIVATE
22544 instead of GOVD_LOCAL.
22545 * omp-low.c (lower_omp_for): Move gimple_bind_vars
22546 and BLOCK_VARS of gimple_bind_block to new_stmt rather
22549 PR middle-end/60092
22550 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
22551 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
22552 assume_aligned or alloc_align attributes.
22553 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
22554 arguments. Handle also assume_aligned and alloc_align attributes.
22555 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
22556 calls to functions with assume_aligned or alloc_align attributes.
22557 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
22559 2014-02-08 Terry Guo <terry.guo@arm.com>
22561 * doc/invoke.texi: Document ARM -march=armv7e-m.
22563 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22565 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
22566 flag on __cilkrts_rethrow builtin.
22569 * ipa-cp.c (determine_versionability): Fail at -O0
22570 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
22571 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
22574 2014-02-04 Jakub Jelinek <jakub@redhat.com>
22577 * tree-inline.c (copy_forbidden): Fail for
22578 __attribute__((optimize (0))) functions.
22580 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22582 * varpool.c: Include pointer-set.h.
22583 (varpool_remove_unreferenced_decls): Variables in other partitions
22584 will not be output; be however careful to not lose information
22585 about partitioning.
22587 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22589 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
22590 lookup in the vtable constructor.
22592 2014-02-07 Jeff Law <law@redhat.com>
22595 * config/m68k/m68k.md (ashldi_extsi): Turn into a
22596 define_insn_and_split.
22598 * ipa-inline.c (inline_small_functions): Fix typos.
22600 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22602 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
22603 (s390_can_use_return_insn): Declare.
22604 * config/s390/s390.h (EPILOGUE_USES): Define.
22605 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
22607 (s390_chunkify_start): Handle return JUMP_LABELs.
22608 (s390_early_mach): Emit a main_pool instruction on the entry edge.
22609 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
22610 (s390_can_use_return_insn): New functions.
22611 (s390_fix_long_loop_prediction): Handle conditional returns.
22612 (TARGET_SET_UP_BY_PROLOGUE): Define.
22613 * config/s390/s390.md (ANY_RETURN): New code iterator.
22614 (*creturn, *csimple_return, return, simple_return): New patterns.
22616 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22618 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
22619 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
22620 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
22621 REG_CFA_RESTORE list when deciding not to restore a register.
22623 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22625 * config/s390/s390.c: Include tree-pass.h and context.h.
22626 (s390_early_mach): New function, split out from...
22627 (s390_emit_prologue): ...here.
22628 (pass_data_s390_early_mach): New pass structure.
22629 (pass_s390_early_mach): New class.
22630 (s390_option_override): Create and register early_mach pass.
22631 Move to end of file.
22633 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22635 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
22636 to match for the exit block.
22638 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22640 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
22641 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
22642 Reject misaligned operands.
22644 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22646 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
22648 2014-02-07 Richard Biener <rguenther@suse.de>
22650 PR middle-end/60092
22651 * gimple-low.c (lower_builtin_posix_memalign): New function.
22652 (lower_stmt): Call it to lower posix_memalign in a way
22653 to make alignment info accessible.
22655 2014-02-07 Jakub Jelinek <jakub@redhat.com>
22658 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
22659 __builtin_setjmp_receiver.
22661 2014-02-07 Richard Biener <rguenther@suse.de>
22663 PR middle-end/60092
22664 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
22665 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
22666 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22667 Handle BUILT_IN_POSIX_MEMALIGN.
22668 (find_func_clobbers): Likewise.
22669 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22670 (call_may_clobber_ref_p_1): Likewise.
22672 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22675 * ipa-devirt.c (record_target_from_binfo): Remove overactive
22678 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22681 * lto-cgraph.c (lto_output_node): Use
22682 symtab_get_symbol_partitioning_class.
22683 (lto_output_varpool_node): likewise.
22684 (symtab_get_symbol_partitioning_class): Move here from
22685 lto/lto-partition.c
22686 * cgraph.h (symbol_partitioning_class): Likewise.
22687 (symtab_get_symbol_partitioning_class): Declare.
22689 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22691 * ggc.h (ggc_internal_cleared_alloc): New macro.
22692 * vec.h (vec_safe_copy): Handle memory stats.
22693 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
22694 * target-globals.c (save_target_globals): Likewise.
22696 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22699 * expr.c (emit_move_resolve_push): Export; be bit more selective
22700 on when to clear alias set.
22701 * expr.h (emit_move_resolve_push): Declare.
22702 * function.h (struct function): Add tail_call_marked.
22703 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
22704 * config/i386/i386-protos.h (ix86_expand_push): Remove.
22705 * config/i386/i386.md (TImode move expander): De not call
22707 (FP push expanders): Preserve memory attributes.
22708 * config/i386/sse.md (push<mode>1): Remove.
22709 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
22710 (ix86_expand_push): Remove.
22711 * config/i386/mmx.md (push<mode>1): Remove.
22713 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22715 PR rtl-optimization/60030
22716 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
22717 lopart with paradoxical subreg before shifting it up by hprec.
22719 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22721 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
22722 Remove extra newline at end of file.
22723 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
22724 (arm_issue_rate): Handle cortexa57.
22725 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
22726 (cortex-a57.cortex-a53): Likewise.
22728 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22731 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
22732 don't record in REG_FRAME_RELATED_EXPR registers not set in that
22734 (arm_expand_prologue): Adjust all callers.
22735 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
22736 info, registers also at the lowest numbered registers side. Use
22737 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
22741 * var-tracking.c (adjust_mems): Before adding a SET to
22742 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
22744 2014-02-06 Alan Modra <amodra@gmail.com>
22747 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
22748 change SDmode to DDmode when lra_in_progress.
22750 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22752 PR middle-end/59150
22753 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
22754 free_data_ref on the dr first, and before goto again also set dr
22755 to the next dr. For simd_lane_access, free old datarefs[i] before
22756 overwriting it. For get_vectype_for_scalar_type failure, don't
22757 free_data_ref if simd_lane_access.
22759 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
22762 * tree.h (opts_for_fn): New inline function.
22763 (opt_for_fn): Define.
22764 * config/i386/i386.c (ix86_function_regparm): Use
22765 opt_for_fn (decl, optimize) instead of optimize.
22767 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
22769 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
22770 for SYMBOL_REF in large memory model.
22772 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22774 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
22775 and crypto support.
22776 (cortex-a57): Likewise.
22777 (cortex-a57.cortex-a53): Likewise.
22779 2014-02-06 Yury Gribov <y.gribov@samsung.com>
22780 Kugan Vivekanandarajah <kuganv@linaro.org>
22782 * config/arm/arm.c (arm_vector_alignment_reachable): Check
22784 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
22786 2014-02-06 Richard Biener <rguenther@suse.de>
22788 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
22789 set_loop_copy and initialize_original_copy_tables.
22791 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
22793 * config/aarch64/aarch64-simd.md
22794 (aarch64_ashr_simddi): Change QI to SI.
22796 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
22797 Jakub Jelinek <jakub@redhat.com>
22799 PR middle-end/60013
22800 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
22803 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22805 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
22806 CODE_FOR_altivec_vpku[hw]um to
22807 CODE_FOR_altivec_vpku[hw]um_direct.
22808 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
22809 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
22810 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
22811 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
22813 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22815 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
22816 generation for -maltivec=be.
22817 (altivec_vsumsws): Simplify redundant test.
22819 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22821 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
22822 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
22823 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
22824 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
22825 gen_altivec_vpkuwum.
22826 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
22828 (altivec_vpks<VI_char>ss): Likewise.
22829 (altivec_vpks<VI_char>us): Likewise.
22830 (altivec_vpku<VI_char>us): Likewise.
22831 (altivec_vpku<VI_char>um): Likewise.
22832 (altivec_vpku<VI_char>um_direct): New (copy of
22833 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
22835 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
22836 target is little endian and -maltivec=be is not specified.
22837 (*altivec_vupkhs<VU_char>_direct): New (copy of
22838 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
22839 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
22840 target is little endian and -maltivec=be is not specified.
22841 (*altivec_vupkls<VU_char>_direct): New (copy of
22842 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
22843 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
22844 little endian and -maltivec=be is not specified.
22845 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
22846 little endian and -maltivec=be is not specified.
22848 2014-02-05 Richard Henderson <rth@redhat.com>
22851 * combine-stack-adj.c: Revert r206943.
22852 * sched-int.h (struct deps_desc): Add last_args_size.
22853 * sched-deps.c (init_deps): Initialize it.
22854 (sched_analyze_insn): Add OUTPUT dependencies between insns that
22855 contain REG_ARGS_SIZE notes.
22857 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
22859 * lto-cgraph.c (asm_nodes_output): Make global.
22860 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
22861 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
22862 (driver_handle_option): Handle OPT_fwpa.
22864 2014-02-05 Jakub Jelinek <jakub@redhat.com>
22867 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
22868 a comment typo and formatting issue. If odr_hash hasn't been
22869 created, return vNULL and set *completep to false.
22871 PR middle-end/57499
22872 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
22873 bb with no successors.
22875 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
22878 * doc/invoke.texi (-march): Clarify documentation for ARM.
22879 (-mtune): Likewise.
22882 2014-02-05 Richard Biener <rguenther@suse.de>
22884 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
22885 when not vectorizing because of too many alias checks.
22886 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22887 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
22889 2014-02-05 Nick Clifton <nickc@redhat.com>
22891 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
22892 accept extended registers in any mode when compiling for the MN10300.
22894 2014-02-05 Yury Gribov <y.gribov@samsung.com>
22896 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
22897 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
22898 sanitization attributes.
22899 (can_inline_edge_p): Likewise.
22900 (sanitize_attrs_match_for_inline_p): New function.
22902 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
22904 * ipa-prop.c (detect_type_change): Shor circuit testing of
22905 type changes on THIS pointer.
22907 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
22910 * config/pa/pa.c (legitimize_tls_address): Return original address
22911 if not passed a SYMBOL_REF rtx.
22912 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
22914 (pa_emit_move_sequence): Simplify TLS source operands.
22915 (pa_legitimate_constant_p): Reject all TLS constants.
22916 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
22917 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
22919 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
22921 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
22922 groups when we know they are controlled by LTO.
22923 * varasm.c (default_binds_local_p_1): If object is in other partition,
22924 it will be resolved locally.
22926 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22928 * config/host-linux.c (linux_gt_pch_use_address): Don't
22929 use SSIZE_MAX because it is not always defined.
22931 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
22934 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
22935 threshold for pseudo splitting.
22936 (update_ebb_live_info): Process call argument hard registers and
22937 hard registers from insn definition too.
22938 (max_small_class_regs_num): New constant.
22939 (inherit_in_ebb): Update live hard regs through EBBs. Update
22940 reloads_num only for small register classes. Don't split for
22943 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
22946 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
22949 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
22951 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
22952 visibility is safe.
22954 2014-02-04 Marek Polacek <polacek@redhat.com>
22956 * gdbinit.in (pel): Define.
22958 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22960 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
22963 2014-02-04 Richard Biener <rguenther@suse.de>
22966 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
22967 in function context local.
22968 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
22969 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
22970 similar to LTO_imported_decl_ref.
22972 2014-02-04 Jakub Jelinek <jakub@redhat.com>
22974 PR tree-optimization/60002
22975 * cgraphclones.c (build_function_decl_skip_args): Clear
22976 DECL_LANG_SPECIFIC.
22978 PR tree-optimization/60023
22979 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
22980 false to gsi_replace.
22981 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
22982 has been in some EH region and vec_stmt could throw, add
22983 vec_stmt into the same EH region.
22984 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
22985 has no lhs, ignore it.
22986 * internal-fn.c (expand_MASK_LOAD): Likewise.
22989 * tree-inline.c (copy_forbidden): Fail for
22990 __attribute__((optimize (0))) functions.
22993 * omp-low.c (simd_clone_struct_copy): If from->inbranch
22994 is set, copy one less argument.
22995 (expand_simd_clones): Don't subtract clone_info->inbranch
22996 from simd_clone_struct_alloc argument.
22998 PR rtl-optimization/57915
22999 * recog.c (simplify_while_replacing): If all unary/binary/relational
23000 operation arguments are constant, attempt to simplify those.
23002 PR middle-end/59261
23003 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23004 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23006 2014-02-04 Richard Biener <rguenther@suse.de>
23008 PR tree-optimization/60012
23009 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23010 TBAA disambiguation to all DDRs.
23012 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23015 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23016 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23018 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23021 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23023 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23025 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23026 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23028 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23031 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23032 to figure out targets of polymorphic calls with known decl.
23033 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23034 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23035 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23036 (get_polymorphic_call_info): ... here.
23037 (get_polymorphic_call_info_from_invariant): New function.
23039 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23041 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23042 lookup via vtable pointer; check for type consistency
23043 and turn inconsitent facts into UNREACHABLE.
23044 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23045 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23046 type inconsistent querries; return UNREACHABLE instead.
23048 2014-02-03 Richard Henderson <rth@twiddle.net>
23051 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23052 already processed this node.
23053 (normalize_one_pred_1): Pass along mark_set.
23054 (normalize_one_pred): Create and destroy a pointer_set_t.
23055 (normalize_one_pred_chain): Likewise.
23057 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23059 PR gcov-profile/58602
23060 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23062 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23065 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23066 -fno-devirtualize; try to devirtualize by the knowledge of
23067 virtual table pointer given by aggregate propagation.
23068 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23069 (ipa_print_node_jump_functions): Dump also offset that
23070 is relevant for polymorphic calls.
23071 (determine_known_aggregate_parts): Add arg_type parameter; use it
23072 instead of determining the type from pointer type.
23073 (ipa_compute_jump_functions_for_edge): Update call of
23074 determine_known_aggregate_parts.
23075 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23076 (gimple_get_virt_method_for_binfo): ... here; simplify using
23077 vtable_pointer_value_to_vtable.
23078 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23079 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23080 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23081 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23083 (vtable_pointer_value_to_binfo): ... here.
23084 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23086 2014-02-03 Teresa Johnson <tejohnson@google.com>
23088 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23089 redef of outer loop index variable.
23091 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23095 * doc/extend.texi (Function Attributes): Typo.
23097 2014-02-03 Cong Hou <congh@google.com>
23099 PR tree-optimization/60000
23100 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23101 if the vectorized statement is a store. A store statement can only
23102 appear at the end of pattern statements.
23104 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23106 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23107 (ix86_option_override_internal): Default long double to 64-bit for
23108 32-bit Bionic and to 128-bit for 64-bit Bionic.
23110 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23111 TARGET_LONG_DOUBLE_128 is true.
23112 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23114 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23115 (mlong-double-64): Negate -mlong-double-128.
23116 (mlong-double-128): New option.
23118 * config/i386/i386-c.c (ix86_target_macros): Define
23119 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23121 * doc/invoke.texi: Document -mlong-double-128.
23123 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23125 PR rtl-optimization/60024
23126 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23128 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23130 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23132 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23134 PR rtl-optimization/57662
23135 * sel-sched.c (code_motion_path_driver): Do not mark already not
23136 existing blocks in the visiting bitmap.
23138 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23140 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23141 on the insn being emitted.
23143 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
23144 Will Deacon <will.deacon@arm.com>
23146 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23148 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23150 * config/arm/arm-tables.opt: Regenerate.
23152 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23154 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
23155 for vector types other than V16QImode.
23156 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
23157 define_expand, and call altivec_expand_vec_perm_le when producing
23158 code with little endian element order.
23159 (*altivec_vperm_<mode>_internal): New insn having previous
23160 behavior of altivec_vperm_<mode>.
23161 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
23162 altivec_expand_vec_perm_le when producing code with little endian
23164 (*altivec_vperm_<mode>_uns_internal): New insn having previous
23165 behavior of altivec_vperm_<mode>_uns.
23167 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23169 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
23170 (altivec_vsumsws): Add handling for -maltivec=be with a little
23172 (altivec_vsumsws_direct): New.
23173 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
23174 gen_altivec_vsumsws.
23176 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23178 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
23179 vtable_pointer_value_to_binfo): New functions.
23180 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
23181 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
23183 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
23185 * config/nios2/nios2.md (load_got_register): Initialize GOT
23186 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
23187 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
23189 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23191 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
23192 preserverd by passthrough, do not propagate the type.
23194 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23196 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
23197 (mips_atomic_assign_expand_fenv): New function.
23198 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23200 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23202 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
23203 (__builtin_mips_set_fcsr): Likewise.
23204 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
23205 MIPS_USI_FTYPE_VOID.
23206 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
23207 (mips16_expand_set_fcsr): Likewise.
23208 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
23209 (mips16_set_fcsr_stub): Likewise.
23210 (mips16_get_fcsr_one_only_stub): New class.
23211 (mips16_set_fcsr_one_only_stub): Likewise.
23212 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
23213 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
23214 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
23215 (hard_float): New availability predicate.
23216 (mips_builtins): Add get_fcsr and set_fcsr.
23217 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
23218 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
23219 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
23220 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
23221 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
23224 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23226 * config/mips/mips.c (mips_one_only_stub): New class.
23227 (mips_need_mips16_rdhwr_p): Replace with...
23228 (mips16_rdhwr_stub): ...this new variable.
23229 (mips16_stub_call_address): New function.
23230 (mips16_rdhwr_one_only_stub): New class.
23231 (mips_expand_thread_pointer): Use mips16_stub_call_address.
23232 (mips_output_mips16_rdhwr): Delete.
23233 (mips_finish_stub): New function.
23234 (mips_code_end): Use it to handle rdhwr stubs.
23236 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
23239 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
23240 when calculating size of integer atomic types.
23242 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
23244 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
23246 2014-02-01 Jakub Jelinek <jakub@redhat.com>
23248 PR tree-optimization/60003
23249 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
23250 * profile.c (branch_prob): Use gimple_call_builtin_p
23251 to check for BUILT_IN_SETJMP_RECEIVER.
23252 * tree-inline.c (copy_bb): Call notice_special_calls.
23254 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
23257 * lra-constraints.c (process_alt_operands): Update reload_sum only
23260 2014-01-31 Richard Henderson <rth@redhat.com>
23262 PR middle-end/60004
23263 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
23264 until after else_eh is processed.
23266 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23268 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
23269 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
23270 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
23271 in smmintrin.h, remove them.
23272 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
23273 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
23274 * config/i386/i386.md (ROUND_SAE): Fix value.
23275 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
23276 (const48_operand): New.
23277 * config/i386/subst.md (round), (round_expand): Use
23278 const_4_or_8_to_11_operand.
23279 (round_saeonly), (round_saeonly_expand): Use const48_operand.
23281 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23283 * config/i386/constraints.md (Yk): Swap meaning with k.
23284 * config/i386/i386.md (movhi_internal): Change Yk to k.
23285 (movqi_internal): Ditto.
23286 (*k<logic><mode>): Ditto.
23289 (kandn<mode>): Ditto.
23290 (*<code>hi_1): Ditto.
23291 (*<code>qi_1): Ditto.
23292 (kxnor<mode>): Ditto.
23293 (kortestzhi): Ditto.
23294 (kortestchi): Ditto.
23296 (*one_cmplhi2_1): Ditto.
23297 (*one_cmplqi2_1): Ditto.
23298 * config/i386/sse.md (): Change k to Yk.
23299 (avx512f_load<mode>_mask): Ditto.
23300 (avx512f_blendm<mode>): Ditto.
23301 (avx512f_store<mode>_mask): Ditto.
23302 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
23303 (avx512f_storedqu<mode>_mask): Ditto.
23304 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
23306 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
23307 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
23308 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
23309 (avx512f_maskcmp<mode>3): Ditto.
23310 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
23311 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
23312 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
23313 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
23314 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
23315 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
23316 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
23317 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
23318 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
23319 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
23320 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
23321 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
23322 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
23323 (vec_extract_lo_<mode>_maskm): Ditto.
23324 (vec_extract_hi_<mode>_maskm): Ditto.
23325 (avx512f_vternlog<mode>_mask): Ditto.
23326 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
23327 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
23328 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
23329 (avx512f_<code>v8div16qi2_mask): Ditto.
23330 (avx512f_<code>v8div16qi2_mask_store): Ditto.
23331 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
23332 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
23333 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
23334 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
23335 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23336 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23337 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23338 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23339 (avx512cd_maskb_vec_dupv8di): Ditto.
23340 (avx512cd_maskw_vec_dupv16si): Ditto.
23341 (avx512f_vpermi2var<mode>3_maskz): Ditto.
23342 (avx512f_vpermi2var<mode>3_mask): Ditto.
23343 (avx512f_vpermi2var<mode>3_mask): Ditto.
23344 (avx512f_vpermt2var<mode>3_maskz): Ditto.
23345 (*avx512f_gathersi<mode>): Ditto.
23346 (*avx512f_gathersi<mode>_2): Ditto.
23347 (*avx512f_gatherdi<mode>): Ditto.
23348 (*avx512f_gatherdi<mode>_2): Ditto.
23349 (*avx512f_scattersi<mode>): Ditto.
23350 (*avx512f_scatterdi<mode>): Ditto.
23351 (avx512f_compress<mode>_mask): Ditto.
23352 (avx512f_compressstore<mode>_mask): Ditto.
23353 (avx512f_expand<mode>_mask): Ditto.
23354 * config/i386/subst.md (mask): Change k to Yk.
23355 (mask_scalar_merge): Ditto.
23358 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
23360 * doc/extend.texi (Vector Extensions): Document ?: in C++.
23362 2014-01-31 Richard Biener <rguenther@suse.de>
23364 PR middle-end/59990
23365 * builtins.c (fold_builtin_memory_op): Make sure to not
23366 use a floating-point mode or a boolean or enumeral type for
23367 the copy operation.
23369 2014-01-30 DJ Delorie <dj@redhat.com>
23371 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
23372 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
23373 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
23374 whenever main() has an epilogue.
23376 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23378 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
23379 unused variable "field".
23380 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
23381 (vsx_mergeh_<mode>): Likewise.
23382 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
23383 (altivec_vmrghh): Likewise.
23384 (altivec_vmrghw): Likewise.
23385 (altivec_vmrglb): Likewise.
23386 (altivec_vmrglh): Likewise.
23387 (altivec_vmrglw): Likewise.
23388 (altivec_vspltb): Add missing uses.
23389 (altivec_vsplth): Likewise.
23390 (altivec_vspltw): Likewise.
23391 (altivec_vspltsf): Likewise.
23393 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23396 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
23397 frame related instructions.
23399 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
23401 PR rtl-optimization/59959
23402 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
23403 any reload of register whose subreg is invalid.
23405 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23407 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
23408 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
23409 Add missing return type - void.
23411 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23413 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
23414 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
23415 remove element index adjustment for endian (now handled in vsx.md
23417 (altivec_expand_vec_perm_const): Use
23418 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
23419 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
23420 (vsx_xxspltw_<mode>): Adjust element index for little endian.
23421 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
23422 define_expand and a new define_insn *altivec_vspltb_internal;
23423 adjust for -maltivec=be on a little endian target.
23424 (altivec_vspltb_direct): New.
23425 (altivec_vsplth): Divide into a define_expand and a new
23426 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
23427 little endian target.
23428 (altivec_vsplth_direct): New.
23429 (altivec_vspltw): Divide into a define_expand and a new
23430 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
23431 little endian target.
23432 (altivec_vspltw_direct): New.
23433 (altivec_vspltsf): Divide into a define_expand and a new
23434 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
23435 a little endian target.
23437 2014-01-30 Richard Biener <rguenther@suse.de>
23439 PR tree-optimization/59993
23440 * tree-ssa-forwprop.c (associate_pointerplus): Check we
23441 can propagate form the earlier stmt and avoid the transform
23442 when the intermediate result is needed.
23444 2014-01-30 Alangi Derick <alangiderick@gmail.com>
23446 * README.Portability: Fix typo.
23448 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
23450 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
23451 comparison_operator with ordered_comparison_operator.
23453 2014-01-30 Nick Clifton <nickc@redhat.com>
23455 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
23456 Rename to mn10300_store_multiple_regs.
23457 * config/mn10300/mn10300.c: Likewise.
23458 * config/mn10300/mn10300.md (store_movm): Fix typo: call
23459 store_multiple_regs.
23460 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
23461 Call mn10300_store_multiple_regs.
23463 2014-01-30 Nick Clifton <nickc@redhat.com>
23464 DJ Delorie <dj@redhat.com>
23466 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
23467 %fp 2 to keep registers after it properly word-aligned.
23468 (rl78_alloc_physical_registers_umul): Handle the case where both
23469 input operands are the same.
23471 2014-01-30 Richard Biener <rguenther@suse.de>
23473 PR tree-optimization/59903
23474 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
23477 2014-01-30 Jason Merrill <jason@redhat.com>
23480 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
23483 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
23485 2014-01-30 Richard Biener <rguenther@suse.de>
23487 PR tree-optimization/59951
23488 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
23490 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
23493 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
23494 SFmode to DFmode case.
23496 2014-01-29 DJ Delorie <dj@redhat.com>
23498 * config/msp430/msp430.opt (-minrt): New.
23499 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
23501 (ENDFILE_SPEC): Likewise.
23503 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
23505 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
23506 (estimate_function_body_sizes): Use it.
23508 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
23511 * dwarf2out.c (is_cxx_auto): New.
23512 (is_base_type): Use it.
23513 (gen_type_die_with_usage): Likewise.
23515 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23517 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
23518 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
23519 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
23520 -maltivec=be with LE targets.
23521 (vsx_mergeh_<mode>): Likewise.
23522 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
23523 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
23524 (altivec_vmrghb): Replace with define_expand and new
23525 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
23526 (altivec_vmrghb_direct): New define_insn.
23527 (altivec_vmrghh): Replace with define_expand and new
23528 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
23529 (altivec_vmrghh_direct): New define_insn.
23530 (altivec_vmrghw): Replace with define_expand and new
23531 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
23532 (altivec_vmrghw_direct): New define_insn.
23533 (*altivec_vmrghsf): Adjust for endianness.
23534 (altivec_vmrglb): Replace with define_expand and new
23535 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
23536 (altivec_vmrglb_direct): New define_insn.
23537 (altivec_vmrglh): Replace with define_expand and new
23538 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
23539 (altivec_vmrglh_direct): New define_insn.
23540 (altivec_vmrglw): Replace with define_expand and new
23541 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
23542 (altivec_vmrglw_direct): New define_insn.
23543 (*altivec_vmrglsf): Adjust for endianness.
23544 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23545 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23546 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23547 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23548 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23549 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23550 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23551 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23553 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
23555 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
23556 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
23559 2014-01-29 Richard Biener <rguenther@suse.de>
23561 PR tree-optimization/58742
23562 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
23563 associate_pointerplus_align.
23564 (associate_pointerplus_diff): New function.
23565 (associate_pointerplus): Likewise. Call associate_pointerplus_align
23566 and associate_pointerplus_diff.
23568 2014-01-29 Richard Biener <rguenther@suse.de>
23570 * lto-streamer.h (LTO_major_version): Bump to 3.
23571 (LTO_minor_version): Reset to 0.
23573 2014-01-29 Renlin Li <Renlin.Li@arm.com>
23575 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
23576 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
23577 (arm_file_start): Generate correct asm header for armv7ve.
23578 * config/arm/bpabi.h: Add multilib support for armv7ve.
23579 * config/arm/driver-arm.c: Change the architectures of cortex-a7
23580 and cortex-a15 to armv7ve.
23581 * config/arm/t-aprofile: Add multilib support for armv7ve.
23582 * doc/invoke.texi: Document -march=armv7ve.
23584 2014-01-29 Richard Biener <rguenther@suse.de>
23586 PR tree-optimization/58742
23587 * tree-ssa-forwprop.c (associate_plusminus): Return true
23588 if we changed sth, defer EH cleanup to ...
23589 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
23590 (simplify_mult): New function.
23592 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23594 PR middle-end/59917
23595 PR tree-optimization/59920
23596 * tree.c (build_common_builtin_nodes): Remove
23597 __builtin_setjmp_dispatcher initialization.
23598 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
23599 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
23600 instead of gsi_after_labels + manually skipping debug stmts.
23601 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
23602 ignore bbs with IFN_ABNORMAL_DISPATCHER.
23603 * tree-inline.c (copy_edges_for_bb): Remove
23604 can_make_abnormal_goto argument, instead add abnormal_goto_dest
23605 argument. Ignore computed_goto_p stmts. Don't call
23606 make_abnormal_goto_edges. If a call might need abnormal edges
23607 for non-local gotos, see if it already has an edge to
23608 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
23609 with true argument, don't do anything then, otherwise add
23610 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
23611 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
23613 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
23614 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
23615 (lower_stmt): Don't set data->calls_builtin_setjmp.
23616 (lower_builtin_setjmp): Adjust comment.
23617 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
23618 * tree-cfg.c (found_computed_goto): Remove.
23619 (factor_computed_gotos): Remove.
23620 (make_goto_expr_edges): Return bool, true for computed gotos.
23621 Don't call make_abnormal_goto_edges.
23622 (build_gimple_cfg): Don't set found_computed_goto, don't call
23623 factor_computed_gotos.
23624 (computed_goto_p): No longer static.
23625 (make_blocks): Don't set found_computed_goto.
23626 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
23627 (make_edges): If make_goto_expr_edges returns true, push bb
23628 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
23629 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
23630 vector. Record mapping between bbs and OpenMP regions if there
23631 are any, adjust make_gimple_omp_edges caller. Call
23632 handle_abnormal_edges.
23633 (make_abnormal_goto_edges): Remove.
23634 * tree-cfg.h (make_abnormal_goto_edges): Remove.
23635 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
23636 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
23637 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
23638 * internal-fn.def (ABNORMAL_DISPATCHER): New.
23639 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
23640 filling *region also set *region_idx to (*region)->entry->index.
23643 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
23644 For REGs set ORIGINAL_REGNO.
23646 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
23648 * doc/md.texi: Mention that a target shouldn't implement
23649 vec_widen_(s|u)mul_even/odd pair if it is less efficient
23652 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23654 PR tree-optimization/59594
23655 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
23656 a copy of the datarefs vector rather than the vector itself.
23658 2014-01-28 Jason Merrill <jason@redhat.com>
23661 * dwarf2out.c (auto_die): New static.
23662 (gen_type_die_with_usage): Handle C++1y 'auto'.
23663 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
23666 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
23669 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
23670 (SPEC_X32): Likewise.
23671 (SPEC_64): Likewise.
23672 * config/i386/i386.c (ix86_option_override_internal): Turn off
23673 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
23675 (x86_file_start): Output .code16gcc for TARGET_16BIT.
23676 * config/i386/i386.h (TARGET_16BIT): New macro.
23677 (TARGET_16BIT_P): Likewise.
23678 * config/i386/i386.opt: Add m16.
23679 * doc/invoke.texi: Document -m16.
23681 2014-01-28 Jakub Jelinek <jakub@redhat.com>
23683 PR preprocessor/59935
23684 * input.c (location_get_source_line): Bail out on when line number
23685 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
23687 2014-01-28 Richard Biener <rguenther@suse.de>
23689 PR tree-optimization/58742
23690 * tree-ssa-forwprop.c (associate_plusminus): Handle
23691 pointer subtraction of the form (T)(P + A) - (T)P.
23693 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23695 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
23698 2014-01-28 Richard Biener <rguenther@suse.de>
23701 2014-01-28 Richard Biener <rguenther@suse.de>
23703 PR rtl-optimization/45364
23704 PR rtl-optimization/59890
23705 * var-tracking.c (local_get_addr_clear_given_value): Handle
23706 already cleared slot.
23707 (val_reset): Handle not allocated local_get_addr_cache.
23708 (vt_find_locations): Use post-order on the inverted CFG.
23710 2014-01-28 Richard Biener <rguenther@suse.de>
23712 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
23714 2014-01-28 Richard Biener <rguenther@suse.de>
23716 PR rtl-optimization/45364
23717 PR rtl-optimization/59890
23718 * var-tracking.c (local_get_addr_clear_given_value): Handle
23719 already cleared slot.
23720 (val_reset): Handle not allocated local_get_addr_cache.
23721 (vt_find_locations): Use post-order on the inverted CFG.
23723 2014-01-28 Alan Modra <amodra@gmail.com>
23725 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
23726 * configure.ac <recursive call for build != host>: Define
23727 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
23728 and LD_FOR_BUILD too.
23729 * configure: Regenerate.
23731 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
23733 * config/i386/i386.c (get_builtin_code_for_version): Separate
23734 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
23735 Broadwell from Haswell.
23737 2014-01-27 Steve Ellcey <sellcey@mips.com>
23739 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
23740 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
23741 * config/mips/mips.c (mips_option_override): Change setting
23743 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
23744 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
23745 Change from Mask to Var.
23747 2014-01-27 Jeff Law <law@redhat.com>
23749 * ipa-inline.c (inline_small_functions): Fix typo.
23751 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
23753 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
23754 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
23755 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
23756 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
23757 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
23758 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
23759 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
23760 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
23761 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
23762 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
23763 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
23764 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
23765 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
23766 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
23767 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
23768 (_mm512_storeu_epi64): Ditto.
23769 (_mm512_cmpge_epi32_mask): Ditto.
23770 (_mm512_cmpge_epu32_mask): Ditto.
23771 (_mm512_cmpge_epi64_mask): Ditto.
23772 (_mm512_cmpge_epu64_mask): Ditto.
23773 (_mm512_cmple_epi32_mask): Ditto.
23774 (_mm512_cmple_epu32_mask): Ditto.
23775 (_mm512_cmple_epi64_mask): Ditto.
23776 (_mm512_cmple_epu64_mask): Ditto.
23777 (_mm512_cmplt_epi32_mask): Ditto.
23778 (_mm512_cmplt_epu32_mask): Ditto.
23779 (_mm512_cmplt_epi64_mask): Ditto.
23780 (_mm512_cmplt_epu64_mask): Ditto.
23781 (_mm512_cmpneq_epi32_mask): Ditto.
23782 (_mm512_cmpneq_epu32_mask): Ditto.
23783 (_mm512_cmpneq_epi64_mask): Ditto.
23784 (_mm512_cmpneq_epu64_mask): Ditto.
23785 (_mm512_expand_pd): Ditto.
23786 (_mm512_expand_ps): Ditto.
23787 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
23788 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
23789 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
23790 * config/i386/i386.c (ix86_builtins): Add
23791 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
23792 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
23793 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
23794 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
23795 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
23796 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
23797 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
23798 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
23799 IX86_BUILTIN_PMOVUSQW512_MEM.
23800 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
23801 __builtin_ia32_pmovsqd512mem_mask,
23802 __builtin_ia32_pmovqd512mem_mask,
23803 __builtin_ia32_pmovusqw512mem_mask,
23804 __builtin_ia32_pmovsqw512mem_mask,
23805 __builtin_ia32_pmovqw512mem_mask,
23806 __builtin_ia32_pmovusdw512mem_mask,
23807 __builtin_ia32_pmovsdw512mem_mask,
23808 __builtin_ia32_pmovdw512mem_mask,
23809 __builtin_ia32_pmovqb512mem_mask,
23810 __builtin_ia32_pmovusqb512mem_mask,
23811 __builtin_ia32_pmovsqb512mem_mask,
23812 __builtin_ia32_pmovusdb512mem_mask,
23813 __builtin_ia32_pmovsdb512mem_mask,
23814 __builtin_ia32_pmovdb512mem_mask.
23815 (bdesc_args): Add __builtin_ia32_expanddf512,
23816 __builtin_ia32_expandsf512.
23817 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
23818 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
23819 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
23820 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
23821 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
23822 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
23823 (avx512f_<code>v8div16qi2_mask_store): This.
23824 (avx512f_expand<mode>): New.
23826 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
23828 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
23830 (_mm512_mask_prefetch_i64gather_pd): Ditto.
23831 (_mm512_prefetch_i32scatter_pd): Ditto.
23832 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
23833 (_mm512_prefetch_i64scatter_pd): Ditto.
23834 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
23835 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
23836 (_mm512_mask_prefetch_i64gather_ps): Ditto.
23837 (_mm512_prefetch_i32scatter_ps): Ditto.
23838 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
23839 (_mm512_prefetch_i64scatter_ps): Ditto.
23840 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
23841 * config/i386/i386-builtin-types.def: Define
23842 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
23843 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
23844 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
23845 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
23846 IX86_BUILTIN_SCATTERPFQPD.
23847 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
23848 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
23849 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
23850 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
23851 __builtin_ia32_scatterpfqps.
23852 (ix86_expand_builtin): Expand new built-ins.
23853 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
23854 fix memory access data type.
23855 (*avx512pf_gatherpf<mode>_mask): Ditto.
23856 (*avx512pf_gatherpf<mode>): Ditto.
23857 (avx512pf_scatterpf<mode>): Ditto.
23858 (*avx512pf_scatterpf<mode>_mask): Ditto.
23859 (*avx512pf_scatterpf<mode>): Ditto.
23860 (GATHER_SCATTER_SF_MEM_MODE): New.
23861 (avx512pf_gatherpf<mode>df): Ditto.
23862 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23863 (*avx512pf_scatterpf<mode>df): Ditto.
23865 2014-01-27 Jakub Jelinek <jakub@redhat.com>
23868 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
23869 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
23872 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
23874 * common/config/arm/arm-common.c
23875 (arm_rewrite_mcpu): Handle multiple names.
23877 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
23879 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
23881 * gimple-builder.h (create_gimple_tmp): Delete.
23883 2014-01-27 Christian Bruel <christian.bruel@st.com>
23885 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
23888 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
23890 * config/pa/pa.md (call): Generate indirect long calls to non-local
23891 functions when outputing 32-bit code.
23892 (call_value): Likewise except for special call to buggy powf function.
23894 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
23895 portable runtime and PIC indirect calls.
23896 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
23897 and PIC call sequences. Use ldo instead of blr to set return register
23898 in PIC call sequence.
23900 2014-01-25 Walter Lee <walt@tilera.com>
23902 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
23903 avoid clobbering a live register.
23905 2014-01-25 Walter Lee <walt@tilera.com>
23907 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
23908 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
23909 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
23910 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
23912 2014-01-25 Walter Lee <walt@tilera.com>
23914 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
23915 arguments on even registers.
23916 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
23918 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
23919 (BIGGEST_ALIGNMENT): Ditto.
23920 (BIGGEST_FIELD_ALIGNMENT): Ditto.
23922 2014-01-25 Walter Lee <walt@tilera.com>
23924 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
23925 insns before bundling.
23926 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
23928 2014-01-25 Walter Lee <walt@tilera.com>
23930 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
23931 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
23932 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
23934 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
23936 * config/mips/constraints.md (kl): Delete.
23937 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
23938 define expands, using...
23939 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
23940 instructions for MIPS16.
23941 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
23942 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
23944 2014-01-25 Walter Lee <walt@tilera.com>
23946 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
23950 2014-01-25 Walter Lee <walt@tilera.com>
23952 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
23953 (TARGET_EXPAND_TO_RTL_HOOK): Define.
23955 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
23957 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
23960 2014-01-25 Jakub Jelinek <jakub@redhat.com>
23962 * print-rtl.c (in_call_function_usage): New var.
23963 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
23964 EXPR_LIST mode as mode and not as reg note name.
23966 PR middle-end/59561
23967 * cfgloopmanip.c (copy_loop_info): If
23968 loop->warned_aggressive_loop_optimizations, make sure
23969 the flag is set in target loop too.
23971 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
23973 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
23975 * builtins.def: Likewise.
23976 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
23977 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
23978 * ira.c (ira_setup_eliminable_regset): Likewise.
23979 * omp-low.c (gate_expand_omp): Likewise.
23980 (execute_lower_omp): Likewise.
23981 (diagnose_sb_0): Likewise.
23982 (gate_diagnose_omp_blocks): Likewise.
23983 (simd_clone_clauses_extract): Likewise.
23986 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23988 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
23989 correction for little endian...
23990 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
23993 2014-01-24 Jeff Law <law@redhat.com>
23995 PR tree-optimization/59919
23996 * tree-vrp.c (find_assert_locations_1): Do not register asserts
23997 for non-returning calls.
23999 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24001 * common/config/aarch64/aarch64-common.c
24002 (aarch64_rewrite_mcpu): Handle multiple names.
24003 * config/aarch64/aarch64.h
24004 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24006 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24008 * input.c (add_file_to_cache_tab): Handle the case where fopen
24011 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24014 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24015 from push operand if code of push isn't PRE_DEC.
24017 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24020 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24021 -mquad-memory-atomic. Update -mquad-memory documentation to say
24022 it is only used for non-atomic loads/stores.
24024 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24025 -mquad-memory or -mquad-memory-atomic switches.
24027 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24028 -mquad-memory-atomic to ISA 2.07 support.
24030 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24031 to separate support of normal quad word memory operations (ldq, stq)
24032 from the atomic quad word memory operations.
24034 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24035 support to separate non-atomic quad word operations from atomic
24036 quad word operations. Disable non-atomic quad word operations in
24037 little endian mode so that we don't have to swap words after the
24038 load and before the store.
24039 (quad_load_store_p): Add comment about atomic quad word support.
24040 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24041 options printed with -mdebug=reg.
24043 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24044 -mquad-memory-atomic as the test for whether we have quad word
24045 atomic instructions.
24046 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24047 or -mp8-vector are used, allow byte/half-word atomic operations.
24049 * config/rs6000/sync.md (load_lockedti): Insure that the address
24050 is a proper indexed or indirect address for the lqarx instruction.
24051 On little endian systems, swap the hi/lo registers after the lqarx
24053 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24054 insure the address is valid for the lqarx instruction.
24055 (store_conditionalti): Insure that the address is a proper indexed
24056 or indirect address for the stqcrx. instruction. On little endian
24057 systems, swap the hi/lo registers before doing the stqcrx.
24059 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24060 insure the address is valid for the stqcrx. instruction.
24062 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24063 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24064 type of quad memory support is available.
24066 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24068 PR regression/59915
24069 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24070 there is a danger of looping.
24072 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24074 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24075 force flag_ira_loop_pressure if set via command line.
24077 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24079 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24080 (ashr_simd): New builtin handling DI mode.
24081 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24082 (aarch64_sshr_simddi): New match pattern.
24083 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24084 (vshrd_n_s64): Likewise.
24085 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24087 2014-01-23 Nick Clifton <nickc@redhat.com>
24089 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24090 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24091 favour of mcu specific scripts.
24092 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24095 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24096 Alex Velenko <Alex.Velenko@arm.com>
24098 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24099 (vaddv_s16): Likewise.
24100 (vaddv_s32): Likewise.
24101 (vaddv_u8): Likewise.
24102 (vaddv_u16): Likewise.
24103 (vaddv_u32): Likewise.
24104 (vaddvq_s8): Likewise.
24105 (vaddvq_s16): Likewise.
24106 (vaddvq_s32): Likewise.
24107 (vaddvq_s64): Likewise.
24108 (vaddvq_u8): Likewise.
24109 (vaddvq_u16): Likewise.
24110 (vaddvq_u32): Likewise.
24111 (vaddvq_u64): Likewise.
24112 (vaddv_f32): Likewise.
24113 (vaddvq_f32): Likewise.
24114 (vaddvq_f64): Likewise.
24115 (vmaxv_f32): Likewise.
24116 (vmaxv_s8): Likewise.
24117 (vmaxv_s16): Likewise.
24118 (vmaxv_s32): Likewise.
24119 (vmaxv_u8): Likewise.
24120 (vmaxv_u16): Likewise.
24121 (vmaxv_u32): Likewise.
24122 (vmaxvq_f32): Likewise.
24123 (vmaxvq_f64): Likewise.
24124 (vmaxvq_s8): Likewise.
24125 (vmaxvq_s16): Likewise.
24126 (vmaxvq_s32): Likewise.
24127 (vmaxvq_u8): Likewise.
24128 (vmaxvq_u16): Likewise.
24129 (vmaxvq_u32): Likewise.
24130 (vmaxnmv_f32): Likewise.
24131 (vmaxnmvq_f32): Likewise.
24132 (vmaxnmvq_f64): Likewise.
24133 (vminv_f32): Likewise.
24134 (vminv_s8): Likewise.
24135 (vminv_s16): Likewise.
24136 (vminv_s32): Likewise.
24137 (vminv_u8): Likewise.
24138 (vminv_u16): Likewise.
24139 (vminv_u32): Likewise.
24140 (vminvq_f32): Likewise.
24141 (vminvq_f64): Likewise.
24142 (vminvq_s8): Likewise.
24143 (vminvq_s16): Likewise.
24144 (vminvq_s32): Likewise.
24145 (vminvq_u8): Likewise.
24146 (vminvq_u16): Likewise.
24147 (vminvq_u32): Likewise.
24148 (vminnmv_f32): Likewise.
24149 (vminnmvq_f32): Likewise.
24150 (vminnmvq_f64): Likewise.
24152 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24154 * config/aarch64/aarch64-simd.md
24155 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
24156 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
24157 (*aarch64_mul3_elt<mode>): Likewise.
24158 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
24159 (*aarch64_mul3_elt_to_64v2df): Likewise.
24160 (*aarch64_mla_elt<mode>): Likewise.
24161 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
24162 (*aarch64_mls_elt<mode>): Likewise.
24163 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
24164 (*aarch64_fma4_elt<mode>): Likewise.
24165 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
24166 (*aarch64_fma4_elt_to_64v2df): Likewise.
24167 (*aarch64_fnma4_elt<mode>): Likewise.
24168 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
24169 (*aarch64_fnma4_elt_to_64v2df): Likewise.
24170 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
24171 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
24172 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24173 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24174 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24175 (aarch64_sqdmull_lane<mode>_internal): Likewise.
24176 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24178 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
24180 * config/aarch64/aarch64-simd.md
24181 (aarch64_be_checked_get_lane<mode>): New define_expand.
24182 * config/aarch64/aarch64-simd-builtins.def
24183 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
24184 New builtin definition.
24185 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
24186 Use new safe be builtin.
24188 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24190 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
24192 (aarch64_be_st1<mode>): Likewise.
24193 (aarch_ld1<VALL:mode>): Define_expand modified.
24194 (aarch_st1<VALL:mode>): Likewise.
24195 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
24196 (UNSPEC_ST1): Likewise.
24198 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
24200 * config/microblaze/microblaze.md: Add trap insn and attribute
24202 2014-01-23 Dodji Seketeli <dodji@redhat.com>
24204 PR preprocessor/58580
24205 * input.h (location_get_source_line): Take an additional line_size
24207 (void diagnostics_file_cache_fini): Declare new function.
24208 * input.c (struct fcache): New type.
24209 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
24210 New static constants.
24211 (diagnostic_file_cache_init, total_lines_num)
24212 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
24213 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
24214 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
24215 (get_next_line, read_next_line, goto_next_line, read_line_num):
24216 New static function definitions.
24217 (diagnostic_file_cache_fini): New function.
24218 (location_get_source_line): Take an additional output line_len
24219 parameter. Re-write using lookup_or_add_file_to_cache_tab and
24221 * diagnostic.c (diagnostic_finish): Call
24222 diagnostic_file_cache_fini.
24223 (adjust_line): Take an additional input parameter for the length
24224 of the line, rather than calculating it with strlen.
24225 (diagnostic_show_locus): Adjust the use of
24226 location_get_source_line and adjust_line with respect to their new
24227 signature. While displaying a line now, do not stop at the first
24228 null byte. Rather, display the zero byte as a space and keep
24229 going until we reach the size of the line.
24230 * Makefile.in: Add vec.o to OBJS-libcommon
24232 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24233 Ilya Tocar <ilya.tocar@intel.com>
24235 * config/i386/avx512fintrin.h (_mm512_kmov): New.
24236 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
24237 (__builtin_ia32_kmov16): Ditto.
24238 * config/i386/i386.md (UNSPEC_KMOV): New.
24241 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24243 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
24244 (_mm512_storeu_si512): Ditto.
24246 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
24249 * rtl.h (get_referenced_operands): Declare.
24250 * recog.c (get_referenced_operands): New function.
24251 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
24252 operands have been referenced when recording LO_SUM references.
24254 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
24256 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
24258 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24260 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
24261 Enable for generic and recent AMD targets.
24263 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24265 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
24266 ARG_SIZE note when adjustment was eliminated.
24268 2014-01-22 Jeff Law <law@redhat.com>
24270 PR tree-optimization/59597
24271 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
24272 in file. Accept new argument REGISTERING and use it to modify
24273 dump output appropriately.
24274 (register_jump_thread): Corresponding changes.
24275 (mark_threaded_blocks): Reinstate code to cancel unprofitable
24276 thread paths involving joiner blocks. Add code to dump cancelled
24277 jump threading paths.
24279 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
24281 PR rtl-optimization/59477
24282 * lra-constraints.c (inherit_in_ebb): Process call for living hard
24283 regs. Update reloads_num and potential_reload_hard_regs for all insns.
24285 2014-01-22 Tom Tromey <tromey@redhat.com>
24287 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
24289 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
24291 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24293 PR rtl-optimization/59896
24294 * lra-constraints.c (process_alt_operands): Check unused note for
24295 matched operands of insn with no output reloads.
24297 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
24299 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
24300 (mips_move_from_gpr_cost): Likewise.
24302 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24304 PR rtl-optimization/59858
24305 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
24306 ira_class_hard_regs_num.
24307 (process_alt_operands): Increase reject for dying matched operand.
24309 2014-01-21 Jakub Jelinek <jakub@redhat.com>
24312 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
24313 smaller than size, perform several stores or loads and stores
24314 at dst + count - size to store or copy all of size bytes, rather
24315 than just last modesize bytes.
24317 2014-01-20 DJ Delorie <dj@redhat.com>
24319 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
24320 that CLOBBERs are REGs before propogating their values.
24322 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
24324 PR middle-end/59789
24325 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
24326 (cgraph_inline_failed_type): New function.
24327 * cgraph.h (DEFCIFCODE): Add type.
24328 (cgraph_inline_failed_type_t): New enum.
24329 (cgraph_inline_failed_type): New prototype.
24330 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
24331 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24332 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
24333 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
24334 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
24335 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
24336 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
24337 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
24338 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
24339 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
24340 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
24341 OPTIMIZATION_MISMATCH.
24342 * tree-inline.c (expand_call_inline): Emit errors during
24343 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
24345 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24348 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
24349 mode attribute in insn output.
24351 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
24353 * output.h (output_constant): Delete.
24354 * varasm.c (output_constant): Make private.
24356 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
24358 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
24360 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24362 PR middle-end/59860
24363 * tree.h (fold_builtin_strcat): New prototype.
24364 * builtins.c (fold_builtin_strcat): No longer static. Add len
24365 argument, if non-NULL, don't call c_strlen. Optimize
24366 directly into __builtin_memcpy instead of __builtin_strcpy.
24367 (fold_builtin_2): Adjust fold_builtin_strcat caller.
24368 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
24370 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24372 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24373 for SImode_address_operand operands, having only a REG argument.
24375 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
24377 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
24378 loader name using mbig-endian.
24379 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
24381 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24383 * doc/invoke.texi (-march): Clarify documentation for AArch64.
24384 (-mtune): Likewise.
24387 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
24389 * config/aarch64/aarch64-protos.h
24390 (aarch64_cannot_change_mode_class_ptr): Declare.
24391 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
24392 aarch64_cannot_change_mode_class_ptr): New.
24393 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
24394 backend hook aarch64_cannot_change_mode_class.
24396 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24398 * common/config/aarch64/aarch64-common.c
24399 (aarch64_handle_option): Don't handle any option order logic here.
24400 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
24401 selected_cpu, warn on architecture version mismatch.
24402 (aarch64_override_options): Fix parsing order for option strings.
24404 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24405 Iain Sandoe <iain@codesourcery.com>
24408 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
24409 warning. Amend comment to reflect current functionality.
24411 2014-01-20 Richard Biener <rguenther@suse.de>
24413 PR middle-end/59860
24414 * builtins.c (fold_builtin_strcat): Remove case better handled
24415 by tree-ssa-strlen.c.
24417 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
24419 * config/aarch64/aarch64.opt
24420 (mcpu, march, mtune): Make case-insensitive.
24422 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24425 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24426 if operands[1] is a REG or ZERO_EXTEND of a REG.
24428 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
24430 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
24432 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
24434 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
24435 long non-pic millicode calls.
24437 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24439 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
24441 2014-01-19 Kito Cheng <kito@0xlab.org>
24443 * builtins.c (expand_movstr): Check movstr expand done or fail.
24445 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24446 H.J. Lu <hongjiu.lu@intel.com>
24449 * config/i386/i386.md (*lea<mode>): Zero-extend return register
24450 to DImode for zero-extended addresses.
24452 2014-01-19 Jakub Jelinek <jakub@redhat.com>
24454 PR rtl-optimization/57763
24455 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
24456 on the new indirect jump_insn and increment LABEL_NUSES (label).
24458 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
24462 * config.gcc (x86_archs): New variable.
24463 (x86_64_archs): Likewise.
24464 (x86_cpus): Likewise.
24465 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
24466 --with-arch/--with-cpu= options.
24467 Support --with-arch=/--with-cpu={nehalem,westmere,
24468 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
24470 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24472 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
24473 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
24475 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24477 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
24479 2014-01-18 Jakub Jelinek <jakub@redhat.com>
24482 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
24483 clear cpp_get_options (parse_in)->warn_unused_macros for
24484 ix86_target_macros_internal with cpp_define.
24486 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
24488 * jump.c (delete_related_insns): Keep (use (insn))s.
24489 * reorg.c (redundant_insn): Check for barriers too.
24491 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24493 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
24495 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
24497 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
24498 call to $$dyncall when TARGET_LONG_CALLS is true.
24500 2014-01-17 Jeff Law <law@redhat.com>
24502 * ree.c (combine_set_extension): Temporarily disable test for
24503 changing number of hard registers.
24505 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24507 PR middle-end/58125
24508 * ipa-inline-analysis.c (inline_free_summary):
24509 Do not free summary of aliases.
24511 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24513 PR middle-end/59706
24514 * gimplify.c (gimplify_expr): Use create_tmp_var
24515 instead of create_tmp_var_raw. If cond doesn't have
24516 integral type, don't add the IFN_ANNOTATE builtin at all.
24518 2014-01-17 Martin Jambor <mjambor@suse.cz>
24521 * ipa-cp.c (prev_edge_clone): New variable.
24522 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
24523 Also resize prev_edge_clone vector.
24524 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
24525 (ipcp_edge_removal_hook): New function.
24526 (ipcp_driver): Register ipcp_edge_removal_hook.
24528 2014-01-17 Andrew Pinski <apinski@cavium.com>
24529 Steve Ellcey <sellcey@mips.com>
24532 * config/mips/mips.c (mips_print_operand): Check operand mode instead
24535 2014-01-17 Jeff Law <law@redhat.com>
24537 PR middle-end/57904
24538 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
24539 so that pass_ccp runs first.
24541 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24543 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
24544 (ix86_adjust_cost): Use !TARGET_XXX.
24545 (do_reorder_for_imul): Likewise.
24546 (swap_top_of_ready_list): Likewise.
24547 (ix86_sched_reorder): Likewise.
24549 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24551 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24552 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
24553 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
24554 (intel_memset): New. Duplicate slm_memset.
24555 (intel_cost): New. Duplicate slm_cost.
24556 (m_INTEL): New macro.
24557 (processor_target_table): Add "intel".
24558 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
24559 with PROCESSOR_INTEL for "intel".
24560 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
24561 PROCESSOR_SILVERMONT.
24562 (ix86_issue_rate): Likewise.
24563 (ix86_adjust_cost): Likewise.
24564 (ia32_multipass_dfa_lookahead): Likewise.
24565 (swap_top_of_ready_list): Likewise.
24566 (ix86_sched_reorder): Likewise.
24567 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
24568 instead of TARGET_OPT_AGU.
24569 * config/i386/i386.h (TARGET_INTEL): New.
24570 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
24571 (processor_type): Add PROCESSOR_INTEL.
24572 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
24573 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
24575 2014-01-17 Marek Polacek <polacek@redhat.com>
24578 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
24581 2014-01-17 Richard Biener <rguenther@suse.de>
24583 PR tree-optimization/46590
24584 * opts.c (default_options_table): Add entries for
24585 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
24586 all enabled at -O1 but not for -Og.
24587 * common.opt (fbranch-count-reg): Remove Init(1).
24588 (fmove-loop-invariants): Likewise.
24589 (ftree-pta): Likewise.
24591 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24593 * config/i386/i386.c (ix86_data_alignment): For compatibility with
24594 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
24595 decls to at least the GCC 4.8 used alignments.
24598 * tree-nested.c (convert_nonlocal_reference_stmt,
24599 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
24600 of GIMPLE_BIND stmts, adjust associated decls.
24602 2014-01-17 Richard Biener <rguenther@suse.de>
24604 PR tree-optimization/46590
24605 * vec.h (vec<>::bseach): New member function implementing
24606 binary search according to C89 bsearch.
24607 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
24608 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
24609 bitmap pointer again. Make accesses_in_loop a flat array.
24610 (mem_ref_obstack): New global.
24611 (outermost_indep_loop): Adjust for mem_ref->stored changes.
24612 (mark_ref_stored): Likewise.
24613 (ref_indep_loop_p_2): Likewise.
24614 (set_ref_stored_in_loop): New helper function.
24615 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
24616 (memref_free): Adjust.
24617 (record_mem_ref_loc): Simplify.
24618 (gather_mem_refs_stmt): Adjust.
24619 (sort_locs_in_loop_postorder_cmp): New function.
24620 (analyze_memory_references): Sort accesses_in_loop after
24621 loop postorder number.
24622 (find_ref_loc_in_loop_cmp): New function.
24623 (for_all_locs_in_loop): Find relevant cluster of locs in
24624 accesses_in_loop and iterate without recursion.
24625 (execute_sm): Avoid uninit warning.
24626 (struct ref_always_accessed): Simplify.
24627 (ref_always_accessed::operator ()): Likewise.
24628 (ref_always_accessed_p): Likewise.
24629 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
24630 loop postorder numbers here.
24631 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
24634 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24637 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
24638 on decls for which assemble_alias has been called.
24640 2014-01-17 Nick Clifton <nickc@redhat.com>
24642 * config/msp430/msp430.opt: (mcpu): New option.
24643 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
24644 (msp430_option_override): Parse target_cpu. If the MCU name
24645 matches a generic string, clear target_mcu.
24646 (msp430_attr): Allow numeric interrupt values up to 63.
24647 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
24648 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
24650 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
24652 * config/msp430/msp430.md (popm): Use %J rather than %I.
24653 (addsi3): Use msp430_nonimmediate_operand for operand 2.
24654 (addhi_cy_i): Use immediate_operand for operand 2.
24655 * doc/invoke.texi: Document -mcpu option.
24657 2014-01-17 Richard Biener <rguenther@suse.de>
24659 PR rtl-optimization/38518
24660 * df.h (df_analyze_loop): Declare.
24661 * df-core.c: Include cfgloop.h.
24662 (df_analyze_1): Split out main part of df_analyze.
24663 (df_analyze): Adjust.
24664 (loop_inverted_post_order_compute): New function.
24665 (loop_post_order_compute): Likewise.
24666 (df_analyze_loop): New function avoiding whole-function
24667 postorder computes.
24668 * loop-invariant.c (find_defs): Use df_analyze_loop.
24669 (find_invariants): Adjust.
24670 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
24672 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
24674 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
24675 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
24677 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
24679 * ipa-ref.c (ipa_remove_stmt_references): Fix references
24680 traversal when removing references.
24682 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
24685 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
24687 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
24689 PR middle-end/56791
24690 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
24691 pushing a reload for an autoinc when we had previously reloaded an
24692 inner part of the address.
24694 2014-01-16 Jakub Jelinek <jakub@redhat.com>
24696 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
24698 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
24699 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
24700 when not giving up or versioning for alias only because of
24702 (vect_analyze_data_ref_dependences): Set to true.
24703 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
24705 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
24706 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
24709 PR middle-end/58344
24710 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
24713 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
24714 operand 0 predicate for gathers, use a new pseudo as subtarget.
24716 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24718 PR middle-end/59609
24719 * lra-constraints.c (process_alt_operands): Add printing debug info.
24720 Check absence of input/output reloads for matched operands too.
24722 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24724 PR rtl-optimization/59835
24725 * ira.c (ira_init_register_move_cost): Increase cost for
24728 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
24730 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
24732 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
24735 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
24736 non-register objects. Use gen_(high/low)part more consistently.
24739 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
24742 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
24743 endian support, remove tests for WORDS_BIG_ENDIAN.
24744 (p8_mfvsrd_3_<mode>): Likewise.
24745 (reload_gpr_from_vsx<mode>): Likewise.
24746 (reload_gpr_from_vsxsf): Likewise.
24747 (p8_mfvsrd_4_disf): Likewise.
24749 2014-01-16 Richard Biener <rguenther@suse.de>
24751 PR rtl-optimization/46590
24752 * lcm.c (compute_antinout_edge): Use postorder iteration.
24753 (compute_laterin): Use inverted postorder iteration.
24755 2014-01-16 Nick Clifton <nickc@redhat.com>
24757 PR middle-end/28865
24758 * varasm.c (output_constant): Return the number of bytes actually
24760 (output_constructor_array_range): Update the field size with the
24761 number of bytes emitted by output_constant.
24762 (output_constructor_regular_field): Likewise. Also do not
24763 complain if the total number of bytes emitted is now greater
24764 than the expected fieldpos.
24765 * output.h (output_constant): Update prototype and descriptive comment.
24767 2014-01-16 Marek Polacek <polacek@redhat.com>
24769 PR middle-end/59827
24770 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
24771 it is error_mark_node.
24773 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
24775 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
24776 VALID_AVX256_REG_OR_OI_MODE.
24778 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
24780 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
24781 current procedure should be profiled.
24783 2014-01-15 Andrew Pinski <apinski@cavium.com>
24785 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
24786 of moving from/to the STACK_REG register class.
24788 2014-01-15 Richard Henderson <rth@redhat.com>
24791 * reginfo.c (global_regs_decl): Globalize.
24792 * rtl.h (global_regs_decl): Declare.
24793 * ira.c (do_reload): Diagnose frame_pointer_needed and it
24794 reserved via global_regs.
24796 2014-01-15 Teresa Johnson <tejohnson@google.com>
24798 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
24800 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24802 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
24803 and vmulosh rather than call gen_vec_widen_smult_*.
24804 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
24805 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
24806 (vec_widen_smult_even_v16qi): Likewise.
24807 (vec_widen_umult_even_v8hi): Likewise.
24808 (vec_widen_smult_even_v8hi): Likewise.
24809 (vec_widen_umult_odd_v16qi): Likewise.
24810 (vec_widen_smult_odd_v16qi): Likewise.
24811 (vec_widen_umult_odd_v8hi): Likewise.
24812 (vec_widen_smult_odd_v8hi): Likewise.
24813 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
24814 vmuloub rather than call gen_vec_widen_umult_*.
24815 (vec_widen_umult_lo_v16qi): Likewise.
24816 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
24817 vmulosb rather than call gen_vec_widen_smult_*.
24818 (vec_widen_smult_lo_v16qi): Likewise.
24819 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
24820 rather than call gen_vec_widen_umult_*.
24821 (vec_widen_umult_lo_v8hi): Likewise.
24822 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
24823 rather than call gen_vec_widen_smult_*.
24824 (vec_widen_smult_lo_v8hi): Likewise.
24826 2014-01-15 Jeff Law <law@redhat.com>
24828 PR tree-optimization/59747
24829 * ree.c (find_and_remove_re): Properly handle case where a second
24830 eliminated extension requires widening a copy created for elimination
24831 of a prior extension.
24832 (combine_set_extension): Ensure that the number of hard regs needed
24833 for a destination register does not change when we widen it.
24835 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
24837 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
24838 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
24839 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
24840 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
24841 (avr-*-rtems*): Likewise.
24842 (bfin*-rtems*): Likewise.
24843 (moxie-*-rtems*): Likewise.
24844 (h8300-*-rtems*): Likewise.
24845 (i[34567]86-*-rtems*): Likewise.
24846 (lm32-*-rtems*): Likewise.
24847 (m32r-*-rtems*): Likewise.
24848 (m68k-*-rtems*): Likewise.
24849 (microblaze*-*-rtems*): Likewise.
24850 (mips*-*-rtems*): Likewise.
24851 (powerpc-*-rtems*): Likewise.
24852 (sh-*-rtems*): Likewise.
24853 (sparc-*-rtems*): Likewise.
24854 (sparc64-*-rtems*): Likewise.
24855 (v850-*-rtems*): Likewise.
24856 (m32c-*-rtems*): Likewise.
24858 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
24860 PR rtl-optimization/59511
24861 * ira.c (ira_init_register_move_cost): Use memory costs for some
24862 cases of register move cost calculations.
24863 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
24864 instead of BB frequency.
24865 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
24866 * lra-assigns.c (find_hard_regno_for): Ditto.
24868 2014-01-15 Richard Biener <rguenther@suse.de>
24870 PR tree-optimization/59822
24871 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
24872 (vectorizable_load): Use it to hoist defs of uses of invariant
24873 loads out of the loop.
24875 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
24876 Kugan Vivekanandarajah <kuganv@linaro.org>
24879 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
24882 2014-01-15 Richard Biener <rguenther@suse.de>
24884 PR rtl-optimization/59802
24885 * lcm.c (compute_available): Use inverted postorder to seed
24886 the initial worklist.
24888 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24891 * config/s390/s390.c (s390_preferred_reload_class): Don't return
24892 ADDR_REGS for invalid symrefs in non-PIC code.
24894 2014-01-15 Jakub Jelinek <jakub@redhat.com>
24897 * builtins.c (determine_block_size): Initialize *probable_max_size
24898 even if len_rtx is CONST_INT.
24900 2014-01-14 Andrew Pinski <apinski@cavium.com>
24902 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
24903 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
24904 (cortexa53_tunings): Likewise.
24905 (aarch64_sched_issue_rate): New function.
24906 (TARGET_SCHED_ISSUE_RATE): Define.
24908 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
24910 * ira-costs.c (find_costs_and_classes): Add missed
24911 ira_init_register_move_cost_if_necessary.
24913 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
24916 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
24918 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
24921 * config/i386/i386.c (type_natural_mode): Add a bool parameter
24922 to indicate if type is used for function return value. Warn ABI
24923 change if the vector mode isn't available for function return value.
24924 (ix86_function_arg_advance): Pass false to type_natural_mode.
24925 (ix86_function_arg): Likewise.
24926 (ix86_gimplify_va_arg): Likewise.
24927 (function_arg_32): Don't warn ABI change.
24928 (ix86_function_value): Pass true to type_natural_mode.
24929 (ix86_return_in_memory): Likewise.
24930 (ix86_struct_value_rtx): Removed.
24931 (TARGET_STRUCT_VALUE_RTX): Likewise.
24933 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24935 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
24936 converting a conditional jump into a conditional return.
24938 2014-01-14 Richard Biener <rguenther@suse.de>
24940 PR tree-optimization/58921
24941 PR tree-optimization/59006
24942 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
24943 hoisting invariant stmts.
24944 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
24945 invariant loads on the preheader edge if possible.
24947 2014-01-14 Joey Ye <joey.ye@arm.com>
24949 * doc/plugin.texi (Building GCC plugins): Update to C++.
24951 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
24953 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
24954 (_mm_rcp28_round_ss): Ditto.
24955 (_mm_rsqrt28_round_sd): Ditto.
24956 (_mm_rsqrt28_round_ss): Ditto.
24957 (_mm_rcp28_sd): Ditto.
24958 (_mm_rcp28_ss): Ditto.
24959 (_mm_rsqrt28_sd): Ditto.
24960 (_mm_rsqrt28_ss): Ditto.
24961 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
24962 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
24963 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
24964 (IX86_BUILTIN_RCP28SD): Ditto.
24965 (IX86_BUILTIN_RCP28SS): Ditto.
24966 (IX86_BUILTIN_RSQRT28SD): Ditto.
24967 (IX86_BUILTIN_RSQRT28SS): Ditto.
24968 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
24969 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
24970 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
24971 (ix86_expand_special_args_builtin): Expand new FTYPE.
24972 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
24973 (srcp14<mode>): Make insn unary.
24974 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
24975 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
24976 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
24977 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
24978 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
24979 Fix rounding: make it SAE only.
24980 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
24982 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
24984 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
24985 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
24986 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
24987 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
24988 (round_saeonly_mask_scalar_operand4): Ditto.
24989 (round_saeonly_mask_scalar_op3): Ditto.
24990 (round_saeonly_mask_scalar_op4): Ditto.
24992 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24994 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24995 Implement -maltivec=be for vec_insert and vec_extract.
24997 2014-01-10 DJ Delorie <dj@redhat.com>
24999 * config/msp430/msp430.md (call_internal): Don't allow memory
25000 references with SP as the base register.
25001 (call_value_internal): Likewise.
25002 * config/msp430/constraints.md (Yc): New. For memory references
25003 that don't use SP as a base register.
25005 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25006 "an integer without a # prefix"
25007 * config/msp430/msp430.md (epilogue_helper): Use it.
25009 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25012 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25013 AVX512F gather builtins.
25014 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25015 on gather decls with INTEGER_TYPE masktype.
25016 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25017 directly into the builtin rather than hoisting it before loop.
25019 PR tree-optimization/59387
25020 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25021 (scev_const_prop): If folded_casts and type has undefined overflow,
25022 use force_gimple_operand instead of force_gimple_operand_gsi and
25023 for each added stmt if it is assign with
25024 arith_code_with_undefined_signed_overflow, call
25025 rewrite_to_defined_overflow.
25026 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25027 gimple-fold.h instead.
25028 (arith_code_with_undefined_signed_overflow,
25029 rewrite_to_defined_overflow): Moved to ...
25030 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25031 rewrite_to_defined_overflow): ... here. No longer static.
25032 Include gimplify-me.h.
25033 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25034 rewrite_to_defined_overflow): New prototypes.
25036 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25038 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25040 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25042 * builtins.c (get_object_alignment_2): Minor tweak.
25043 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25045 2014-01-13 Christian Bruel <christian.bruel@st.com>
25047 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25048 optimized non constant lengths.
25050 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25053 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25054 load as __atomic_load_N if possible.
25056 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25058 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25060 (rs6000_expand_builtin): Adjust call.
25062 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25065 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25066 * config/rs6000/rs6000.c: Include target-globals.h.
25067 (rs6000_set_current_function): Instead of doing target_reinit
25068 unconditionally, use save_target_globals_default_opts and
25069 restore_target_globals.
25071 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25073 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25074 (rs6000_expand_builtin): Handle mffs and mtfsf.
25075 (rs6000_init_builtins): Define mffs and mtfsf.
25076 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25077 (rs6000_mffs): New pattern.
25078 (rs6000_mtfsf): New pattern.
25080 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25082 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25083 Start narrowing with START. Apply candidate-use pair
25084 and check overall cost in narrowing.
25085 (iv_ca_prune): Pass new argument.
25087 2014-01-10 Jeff Law <law@redhat.com>
25089 PR middle-end/59743
25090 * ree.c (combine_reaching_defs): Ensure the defining statement
25091 occurs before the extension when optimizing extensions with
25092 different source and destination hard registers.
25094 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25097 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25098 vtables into the type inheritance graph.
25100 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25102 PR rtl-optimization/59754
25103 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25104 modes in the REGNO != REGNO case.
25106 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25108 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25110 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25112 PR tree-optimization/59745
25113 * tree-predcom.c (tree_predictive_commoning_loop): Call
25114 free_affine_expand_cache if giving up because components is NULL.
25116 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25117 GC in payload of target_globals struct instead of allocating them on
25118 the heap and the larger structs separately using GC.
25119 * target-globals.h (struct target_globals): Make regs, hard_regs,
25120 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25121 of GTY((skip)) and change type to void *.
25122 (reset_target_globals): Cast loads from those fields to corresponding
25125 2014-01-10 Steve Ellcey <sellcey@mips.com>
25128 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25129 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25130 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25132 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25135 * aarch64-modes.def (CC_Zmode): New flags mode.
25136 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25137 represents an equality.
25138 (aarch64_get_condition_code): Handle CC_Zmode.
25139 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25141 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25143 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25144 extraction in good case.
25146 2014-01-10 Richard Biener <rguenther@suse.de>
25148 PR tree-optimization/59374
25149 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25150 checking after SLP discovery. Mark stmts not participating
25151 in any SLP instance properly.
25153 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25155 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
25156 when handling a SET rtx.
25158 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25160 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
25161 (cortex-a57): Likewise.
25162 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
25164 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25166 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
25167 non-iwmmxt builtins.
25169 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25173 * ipa-devirt.c record_target_from_binfo): Take as argument
25174 stack of binfos and lookup matching one for virtual inheritance.
25175 (possible_polymorphic_call_targets_1): Update.
25177 2014-01-10 Huacai Chen <chenhc@lemote.com>
25179 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
25180 kernel strings for Loongson-2E/2F/3A.
25182 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25184 PR middle-end/59670
25185 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
25186 is_gimple_call before calling gimple_call_internal_p.
25188 2014-01-09 Steve Ellcey <sellcey@mips.com>
25190 * Makefile.in (TREE_FLOW_H): Remove.
25191 (TREE_SSA_H): Add file names from tree-flow.h.
25192 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
25193 * tree.h: Remove tree-flow.h reference.
25194 * hash-table.h: Remove tree-flow.h reference.
25195 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
25196 reference with tree-ssa-loop.h.
25198 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25200 * doc/invoke.texi: Add -maltivec={be,le} options, and document
25201 default element-order behavior for -maltivec.
25202 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
25203 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
25204 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
25205 when targeting big endian, at least for now.
25206 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
25208 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25210 PR middle-end/47735
25211 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
25212 var satisfies use_register_for_decl, just take into account type
25213 alignment, rather than decl alignment.
25215 PR tree-optimization/59622
25216 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
25217 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
25218 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
25219 Don't devirtualize for inplace at all. For targets.length () == 1,
25220 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
25222 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25224 * config/i386/i386.md (cpu): Remove the unused btver1.
25226 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25228 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
25230 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25233 * tree-core.h (struct target_globals): New forward declaration.
25234 (struct tree_target_option): Add globals field.
25235 * tree.h (TREE_TARGET_GLOBALS): Define.
25236 (prepare_target_option_nodes_for_pch): New prototype.
25237 * target-globals.h (struct target_globals): Define even if
25238 !SWITCHABLE_TARGET.
25239 * tree.c (prepare_target_option_node_for_pch,
25240 prepare_target_option_nodes_for_pch): New functions.
25241 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
25242 * config/i386/i386.c: Include target-globals.h.
25243 (ix86_set_current_function): Instead of doing target_reinit
25244 unconditionally, use save_target_globals_default_opts and
25245 restore_target_globals.
25247 2014-01-09 Richard Biener <rguenther@suse.de>
25249 PR tree-optimization/59715
25250 * tree-cfg.h (split_critical_edges): Declare.
25251 * tree-cfg.c (split_critical_edges): Export.
25252 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
25254 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
25256 * cfgexpand.c (expand_stack_vars): Optionally disable
25257 asan stack protection.
25258 (expand_used_vars): Likewise.
25259 (partition_stack_vars): Likewise.
25260 * asan.c (asan_emit_stack_protection): Optionally disable
25261 after return stack usage.
25262 (instrument_derefs): Optionally disable memory access instrumentation.
25263 (instrument_builtin_call): Likewise.
25264 (instrument_strlen_call): Likewise.
25265 (asan_protect_global): Optionally disable global variables protection.
25266 * doc/invoke.texi: Added doc for new options.
25267 * params.def: Added new options.
25268 * params.h: Likewise.
25270 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25272 PR rtl-optimization/59724
25273 * ifcvt.c (cond_exec_process_if_block): Don't call
25274 flow_find_head_matching_sequence with 0 longest_match.
25275 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
25276 non-active insns if !stop_after.
25277 (try_head_merge_bb): Revert 2014-01-07 changes.
25279 2014-01-08 Jeff Law <law@redhat.com>
25281 * ree.c (get_sub_rtx): New function, extracted from...
25282 (merge_def_and_ext): Here.
25283 (combine_reaching_defs): Use get_sub_rtx.
25285 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
25287 * cgraph.h (varpool_variable_node): Do not choke on null node.
25289 2014-01-08 Catherine Moore <clm@codesourcery.com>
25291 * config/mips/mips.md (simple_return): Attempt to use JRC
25293 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
25295 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25297 PR rtl-optimization/59137
25298 * reorg.c (steal_delay_list_from_target): Call update_block for
25300 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
25302 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25304 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25305 two duplicate entries.
25307 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25310 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
25312 * config/mips/mips.c (mips_truncated_op_cost): New function.
25313 (mips_rtx_costs): Adjust test for BADDU.
25314 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
25316 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25318 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
25319 (*baddu_si): ...this new pattern.
25321 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25324 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
25326 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
25328 PR middle-end/57748
25329 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
25331 (expand_expr, expand_normal): Adjust.
25332 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
25333 inner_reference_p. Use inner_reference_p to expand inner references.
25334 (store_expr): Adjust.
25335 * cfgexpand.c (expand_call_stmt): Adjust.
25337 2014-01-08 Rong Xu <xur@google.com>
25339 * gcov-io.c (gcov_var): Move from gcov-io.h.
25340 (gcov_position): Ditto.
25341 (gcov_is_error): Ditto.
25342 (gcov_rewrite): Ditto.
25343 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
25344 only part to libgcc/libgcov.h.
25346 2014-01-08 Marek Polacek <polacek@redhat.com>
25348 PR middle-end/59669
25349 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
25351 2014-01-08 Marek Polacek <polacek@redhat.com>
25354 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
25356 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25358 PR rtl-optimization/59649
25359 * stor-layout.c (get_mode_bounds): For BImode return
25360 0 and STORE_FLAG_VALUE.
25362 2014-01-08 Richard Biener <rguenther@suse.de>
25364 PR middle-end/59630
25365 * gimple.h (is_gimple_builtin_call): Remove.
25366 (gimple_builtin_call_types_compatible_p): New.
25367 (gimple_call_builtin_p): New overload.
25368 * gimple.c (is_gimple_builtin_call): Remove.
25369 (validate_call): Rename to ...
25370 (gimple_builtin_call_types_compatible_p): ... this and export. Also
25371 check return types.
25372 (validate_type): New static function.
25373 (gimple_call_builtin_p): New overload and adjust.
25374 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
25375 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
25376 (gimple_fold_stmt_to_constant_1): Likewise.
25377 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
25379 2014-01-08 Richard Biener <rguenther@suse.de>
25381 PR middle-end/59471
25382 * gimplify.c (gimplify_expr): Gimplify register-register type
25383 VIEW_CONVERT_EXPRs to separate stmts.
25385 2014-01-07 Jeff Law <law@redhat.com>
25387 PR middle-end/53623
25388 * ree.c (combine_set_extension): Handle case where source
25389 and destination registers in an extension insn are different.
25390 (combine_reaching_defs): Allow source and destination registers
25391 in extension to be different under limited circumstances.
25392 (add_removable_extension): Remove restriction that the
25393 source and destination registers in the extension are the same.
25394 (find_and_remove_re): Emit a copy from the extension's
25395 destination to its source after the defining insn if
25396 the source and destination registers are different.
25398 PR middle-end/59285
25399 * ifcvt.c (merge_if_block): If we are merging a block with more than
25400 one successor with a block with no successors, remove any BARRIER
25401 after the second block.
25403 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
25405 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
25407 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
25410 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
25411 for 14-bit register offsets when INT14_OK_STRICT is false.
25413 2014-01-07 Roland Stigge <stigge@antcom.de>
25414 Michael Meissner <meissner@linux.vnet.ibm.com>
25417 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
25418 Only check TFmode for SPE constants. Don't check TImode or TDmode.
25420 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
25422 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
25425 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
25427 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
25428 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
25429 rtx is const0_rtx or not.
25431 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
25434 * target-globals.c (save_target_globals): Remove this_fn_optab
25436 * toplev.c: Include optabs.h.
25437 (target_reinit): Temporarily restore the global options if another
25438 set of options are in force.
25440 2014-01-07 Jakub Jelinek <jakub@redhat.com>
25442 PR rtl-optimization/58668
25443 * cfgcleanup.c (flow_find_cross_jump): Don't count
25444 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
25445 to determine what is counted.
25446 (flow_find_head_matching_sequence): Use active_insn_p to determine
25448 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
25450 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
25451 determine what is counted.
25453 PR tree-optimization/59643
25454 * tree-predcom.c (split_data_refs_to_components): If one dr is
25455 read and one write, determine_offset fails and the write isn't
25456 in the bad component, just put the read into the bad component.
25458 2014-01-07 Mike Stump <mikestump@comcast.net>
25459 Jakub Jelinek <jakub@redhat.com>
25462 * tree-core.h (struct tree_optimization_option): Change optabs
25463 type from unsigned char * to void *.
25464 * optabs.c (init_tree_optimization_optabs): Adjust
25465 TREE_OPTIMIZATION_OPTABS initialization.
25467 2014-01-06 Jakub Jelinek <jakub@redhat.com>
25470 * config/i386/i386.h (struct machine_function): Add
25471 no_drap_save_restore field.
25472 * config/i386/i386.c (ix86_save_reg): Use
25473 !cfun->machine->no_drap_save_restore instead of
25474 crtl->stack_realign_needed.
25475 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
25476 this function clears frame_pointer_needed. Set
25477 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
25478 and DRAP reg is needed.
25480 2014-01-06 Marek Polacek <polacek@redhat.com>
25483 * doc/implement-c.texi: Mention that other integer types are
25484 permitted as bit-field types in strictly conforming mode.
25486 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
25488 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
25489 is newly allocated.
25491 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
25493 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
25495 2014-01-06 Martin Jambor <mjambor@suse.cz>
25498 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
25500 * ipa-prop.c (ipa_print_node_params): Fix indentation.
25502 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
25506 * var-tracking.c (add_stores): Preserve the value of the source even if
25507 we don't record the store.
25509 2014-01-06 Terry Guo <terry.guo@arm.com>
25511 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
25513 2014-01-05 Iain Sandoe <iain@codesourcery.com>
25516 * config/darwin.c (darwin_function_section): Adjust return values to
25517 correspond to optimisation changes made in r206070.
25519 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
25521 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
25522 from prefetch_block tune setting.
25523 (nocona_cost): Correct size of prefetch block to 64.
25525 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
25527 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
25528 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
25529 used to save the static chain register in the computation of the offset
25530 from which the FP registers need to be restored.
25532 2014-01-04 Jakub Jelinek <jakub@redhat.com>
25534 PR tree-optimization/59519
25535 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
25536 ICE if get_current_def (current_new_name) is already non-NULL, as long
25537 as it is a phi result of some other phi in *new_exit_bb that has
25540 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
25541 or vmovdqu* for misaligned_operand.
25542 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
25543 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
25544 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
25545 aligned_mem for AVX512F masked aligned load and store builtins and for
25546 non-temporal moves.
25548 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
25550 PR tree-optimization/59651
25551 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
25552 Address range for negative step should be added by TYPE_SIZE_UNIT.
25554 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
25556 * config/m68k/m68k.c (handle_move_double): Handle pushes with
25557 overlapping registers also for registers other than the stack pointer.
25559 2014-01-03 Marek Polacek <polacek@redhat.com>
25562 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
25565 2014-01-03 Jakub Jelinek <jakub@redhat.com>
25568 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
25571 * config/i386/i386.md (MODE_SIZE): New mode attribute.
25572 (push splitter): Use <P:MODE_SIZE> instead of
25573 GET_MODE_SIZE (<P:MODE>mode).
25574 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
25575 (mov -1, reg peephole2): Likewise.
25576 * config/i386/sse.md (*mov<mode>_internal,
25577 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
25578 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
25579 *<code><mode>3, *andnot<mode>3<mask_name>,
25580 <mask_codefor><code><mode>3<mask_name>): Likewise.
25581 * config/i386/subst.md (mask_mode512bit_condition,
25582 sd_mask_mode512bit_condition): Likewise.
25584 2014-01-02 Xinliang David Li <davidxl@google.com>
25586 PR tree-optimization/59303
25587 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
25588 (dump_predicates): Better output format.
25589 (pred_equal_p): New function.
25590 (is_neq_relop_p): Ditto.
25591 (is_neq_zero_form_p): Ditto.
25592 (pred_expr_equal_p): Ditto.
25593 (pred_neg_p): Ditto.
25594 (simplify_pred): Ditto.
25595 (simplify_preds_2): Ditto.
25596 (simplify_preds_3): Ditto.
25597 (simplify_preds_4): Ditto.
25598 (simplify_preds): Ditto.
25599 (push_pred): Ditto.
25600 (push_to_worklist): Ditto.
25601 (get_pred_info_from_cmp): Ditto.
25602 (is_degenerated_phi): Ditto.
25603 (normalize_one_pred_1): Ditto.
25604 (normalize_one_pred): Ditto.
25605 (normalize_one_pred_chain): Ditto.
25606 (normalize_preds): Ditto.
25607 (normalize_cond_1): Remove function.
25608 (normalize_cond): Ditto.
25609 (is_gcond_subset_of): Ditto.
25610 (is_subset_of_any): Ditto.
25611 (is_or_set_subset_of): Ditto.
25612 (is_and_set_subset_of): Ditto.
25613 (is_norm_cond_subset_of): Ditto.
25614 (pred_chain_length_cmp): Ditto.
25615 (convert_control_dep_chain_into_preds): Type change.
25616 (find_predicates): Ditto.
25617 (find_def_preds): Ditto.
25618 (destroy_predicates_vecs): Ditto.
25619 (find_matching_predicates_in_rest_chains): Ditto.
25620 (use_pred_not_overlap_with_undef_path_pred): Ditto.
25621 (is_pred_expr_subset): Ditto.
25622 (is_pred_chain_subset_of): Ditto.
25623 (is_included_in): Ditto.
25624 (is_superset_of): Ditto.
25626 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25628 Update copyright years.
25630 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25632 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
25633 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
25634 config/arc/arc.md, config/arc/arc.opt,
25635 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
25636 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
25637 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
25638 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
25639 config/linux-protos.h, config/linux.c, config/winnt-c.c,
25640 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
25641 vtable-verify.c, vtable-verify.h: Use the standard form for the
25644 2014-01-02 Tobias Burnus <burnus@net-b.de>
25646 * gcc.c (process_command): Update copyright notice dates.
25647 * gcov-dump.c: Ditto.
25649 * doc/cpp.texi: Bump @copying's copyright year.
25650 * doc/cppinternals.texi: Ditto.
25651 * doc/gcc.texi: Ditto.
25652 * doc/gccint.texi: Ditto.
25653 * doc/gcov.texi: Ditto.
25654 * doc/install.texi: Ditto.
25655 * doc/invoke.texi: Ditto.
25657 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25659 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
25661 2014-01-01 Jakub Jelinek <jakub@redhat.com>
25663 * config/i386/sse.md (*mov<mode>_internal): Guard
25664 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
25666 PR rtl-optimization/59647
25667 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
25668 new_rtx into UNSIGNED_FLOAT rtxes.
25670 Copyright (C) 2014 Free Software Foundation, Inc.
25672 Copying and distribution of this file, with or without modification,
25673 are permitted in any medium without royalty provided the copyright
25674 notice and this notice are preserved.