1 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3 * shrink-wrap.h (active_insn_between): Strengthen both params from
5 * function.c (active_insn_between): Likewise.
7 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9 * genattr.c (main): When writing out insn-attr.h, strengthen param
10 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
11 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
12 writing out the definition of dfa_clear_single_insn_cache to the
13 generated insn-automata.c
15 2014-08-28 David Malcolm <dmalcolm@redhat.com>
17 * resource.h (clear_hashed_info_for_insn): Strengthen param from
19 (incr_ticks_for_insn): Likewise.
20 (init_resource_info): Likewise.
22 * resource.c (init_resource_info): Likewise.
23 (clear_hashed_info_for_insn): Likewise.
24 (incr_ticks_for_insn): Likewise.
26 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
28 (steal_delay_list_from_target): Use methods of "seq".
29 (try_merge_delay_insns): Use methods of "merged_insns".
30 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
31 (reorg_redirect_jump): Likewise for param "jump".
33 2014-08-28 David Malcolm <dmalcolm@redhat.com>
35 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
37 * config/s390/s390.c (s390_split_branches): Eliminate top-level
38 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
40 (s390_mainpool_finish): In three places, split out a local rtx
41 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
42 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
43 and split another local rtx "insn" out into rtx "pat" and
45 * config/sh/sh.c (output_branchy_insn): Rather than working
46 directly on operands[9], introduce local rtx_code_label *
47 variables named "lab" in two places, working on them, and then
48 assigning them to operands[9], so that the intervening operations
49 are known by the type system to be on insns.
51 2014-08-28 David Malcolm <dmalcolm@redhat.com>
53 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
56 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
57 in invocation of INSN_HAS_LOCATION.
59 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
61 * config/rs6000/altivec.h (vec_xl): New #define.
63 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
64 (XXSPLTD_V2DI): Likewise.
66 (UDIV_V2DI): Likewise.
68 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
69 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
70 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
71 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
72 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
73 (UNSPEC_VSX_DIVSD): Likewise.
74 (UNSPEC_VSX_DIVUD): Likewise.
75 (UNSPEC_VSX_MULSD): Likewise.
76 (vsx_mul_v2di): New insn-and-split.
77 (vsx_div_v2di): Likewise.
78 (vsx_udiv_v2di): Likewise.
79 (vsx_xxspltd_<mode>): New insn.
81 2014-08-28 David Malcolm <dmalcolm@redhat.com>
83 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
85 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
86 (NEXT_INSN): Likewise.
87 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
88 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
90 (no_labels_between_p): Likewise for both params.
92 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
93 cast when using NEXT_INSN on operands[2].
94 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
95 "insn" from rtx to rtx_insn *, adding a checked cast.
96 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
98 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
100 (arc_text_label): Likewise for param "insn".
101 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
103 (arc_ccfsm_record_condition): Likewise for param "jump".
104 (arc_text_label): Likewise for local "label".
105 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
106 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
107 a method for typesafety. Add a checked cast.
108 * config/arc/constraints.md (Clb): Add a checked cast when getting
109 the CODE_LABEL from a LABEL_REF.
110 * config/arm/arm.c (require_pic_register): Strengthen locals
111 "seq", "insn" from rtx to rtx_insn *.
112 (create_fix_barrier): Likewise for locals "selected", "next".
113 (thumb1_reorg): Likewise for locals "prev", "insn".
114 (arm_expand_prologue): Likewise for local "last".
115 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
117 (thumb2_output_casesi): Likewise for operands[2].
118 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
119 strengthen local "insn" from rtx to rtx_insn *.
120 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
121 type and param "insn".
122 (find_prev_insn_start): Likewise.
123 (hwloop_optimize): Likewise for locals "insn", "last_insn",
125 (gen_one_bundle): Likewise for loal "t".
126 (find_load): Likewise for param "insn".
127 (workaround_speculation): Likewise for locals "insn", "next",
128 "target", "next_tgt".
129 * config/c6x/c6x.c (assign_reservations): Likewise for both params
130 and for locals "insn", "within", "last".
131 (count_unit_reqs): Likewise for params "head", "tail" and local
133 (try_rename_operands): Likewise for params "head", "tail".
134 (reshuffle_units): Likewise for locals "head", "tail", "insn".
135 (struct c6x_sched_context): Likewise for fields
136 "last_scheduled_insn", "last_scheduled_iter0".
137 (init_sched_state): Replace NULL_RTX with NULL.
138 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
140 (undo_split_delayed_nonbranch): Likewise for param and for local
142 (conditionalize_after_sched): Likewise for local "insn".
143 (bb_earliest_end_cycle): Likewise.
144 (filter_insns_above): Likewise for locals "insn", "next".
145 (hwloop_optimize): Remove redundant checked cast.
146 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
147 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
149 (cris_simple_epilogue): Likewise.
150 (cris_expand_prologue): Likewise.
151 (cris_expand_epilogue): Likewise.
152 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
153 local "insn" from rtx to rtx_insn *.
154 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
155 (struct frv_packet_group): Likewise for the elements within array
156 fields "insns", "sorted", and for field "nop".
157 (frv_packet): Likewise for the elements within array field
159 (frv_add_insn_to_packet): Likewise for param "insn".
160 (frv_insert_nop_in_packet): Likewise for param "insn" and local
162 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
163 (frv_sort_insn_group_1): Likewise for local "insn".
164 (frv_optimize_membar_local): Likewise.
165 (frv_align_label): Likewise for locals "x", "last", "barrier",
167 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
169 (ia64_sched_init): Likewise for local "insn".
170 (scheduled_good_insn): Likewise for param "last".
171 (struct _ia64_sched_context): Likewise for field
172 "last_scheduled_insn".
173 (ia64_init_sched_context): Replace NULL_RTX with NULL.
174 (struct bundle_state): Likewise for field "insn".
175 (issue_nops_and_insn): Likewise for param "insn".
176 (get_next_important_insn): Likewise for return type and both
178 (ia64_add_bundle_selector_before): Likewise for param "insn".
179 (bundling): Likewise for params "prev_head_insn", "tail" and
180 locals "insn", "next_insn", "b". Eliminate top-level local rtx
181 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
182 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
183 Strengthen final param from rtx to rtx_insn *.
184 (iq2000_move_1word): Likewise for second param.
185 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
186 param "cur_insn" and local "next_insn".
187 (iq2000_move_1word): Likewise for param "insn".
188 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
189 casts when using NEXT_INSN on operands[1].
190 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
191 "insn" from rtx to rtx_insn *.
192 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
193 "x", introducing local rtx_insn * "insn" for when working with the
194 CODE_LABEL of the LABEL_REF.
195 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
197 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
199 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
201 (conditionalize_block): Likewise for return type and param.
202 (mcore_is_dead): Likewise for param "first" and local "insn".
203 (emit_new_cond_insn): Likewise for return type.
204 (conditionalize_block): Likewise for return type, param, and
205 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
207 (conditionalize_optimization): Likewise for local "insn".
208 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
210 * config/microblaze/microblaze.md: Add checked casts when using
212 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
213 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
214 and rtx_insn * "insn".
215 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
216 checked cast when using NEXT_INSN on operands[2].
217 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
218 local "insn" from rtx to rtx_insn *.
219 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
221 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
222 Add a checked cast when using NEXT_INSN on operands[1].
223 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
225 (pa_output_cbranch): Likewise for final param.
226 (pa_output_lbranch): Likewise for second param.
227 (pa_output_bb): Likewise for third param.
228 (pa_output_bvb): Likewise.
229 (pa_output_dbra): Likewise for second param.
230 (pa_output_movb): Likewise.
231 (pa_output_parallel_movb): Likewise.
232 (pa_output_parallel_addb): Likewise.
233 (pa_output_millicode_call): Likewise for first param.
234 (pa_output_mul_insn): Likewise for second param.
235 (pa_output_div_insn): Likewise for third param.
236 (pa_output_mod_insn): Likewise for second param.
237 (pa_jump_in_call_delay): Likewise for param.
238 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
239 (pa_output_div_insn): Likewise.
240 (pa_output_mod_insn): Likewise.
241 (pa_output_cbranch): Likewise.
242 (pa_output_lbranch): Likewise.
243 (pa_output_bb): Likewise.
244 (pa_output_bvb): Likewise.
245 (pa_output_dbra): Likewise.
246 (pa_output_movb): Likewise.
247 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
248 to simplify and for typesafety.
249 (pa_output_call): Use method of rtx_sequence *.
250 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
251 (pa_jump_in_call_delay): Likewise.
252 (pa_output_parallel_movb): Likewise.
253 (pa_output_parallel_addb): Likewise.
254 (pa_following_call): Likewise.
255 (pa_combine_instructions): Likewise for locals "anchor",
257 (pa_can_combine_p): Likewise for params "anchor", "floater" and
258 locals "start", "end".
259 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
260 param "insn" and local "local_insn".
261 (picochip_final_prescan_insn): Likewise for local "local_insn".
262 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
264 (uses_TOC): Likewise.
265 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
266 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
267 splitting out to more tightly-scoped locals, 3 as rtx and one as
269 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
271 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
273 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
275 (fixup_addr_diff_vecs): Likewise.
276 (reg_unused_after): Likewise for param 2.
277 (sh_can_redirect_branch): Likewise for both params.
278 (check_use_sfunc_addr): Likewise for param 1.
279 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
280 (find_barrier): Likewise for local "last_got".
281 (gen_block_redirect): Likewise for return type, param "jump" and
282 locals "prev", "scan", "next", "insn".
283 (struct far_branch): Likewise for fields "near_label",
284 "insert_place", "far_label".
285 (gen_far_branch): Likewise for local "jump".
286 (fixup_addr_diff_vecs): Likewise for param "first" and locals
288 (barrier_align): Likewise for param and for locals "prev", "x".
289 Introduce local rtx_sequence * "prev_seq" and use insn method for
290 typesafety and clarity.
291 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
292 (get_dest_uid): Likewise for local "dest".
293 (split_branches): Likewise for locals "next", "beyond", "label",
294 "block", "far_label". Add checked casts when assigning to
295 bp->far_label and "far_label".
296 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
297 (sequence_insn_p): Likewise.
298 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
299 more loop-scoped rtx "insn" when walking LABEL_REFS.
300 (sh_can_redirect_branch): Strengthen both params from rtx to
302 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
303 new local rtx_sequence * "seq" via a dyn_cast, and use a method
304 for clarity and typesafety.
305 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
306 "insn" from rtx to rtx_insn *.
307 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
308 when using NEXT_INSN on the CODE_LABEL in operands[2].
309 (define_insn "casesi_worker_2"): Likewise.
310 (define_insn "casesi_shift_media"): Likewise.
311 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
313 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
314 Strengthen field "insn" from rtx to rtx_insn *.
315 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
316 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
317 param "start_insn" and local "start_insn".
318 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
320 (find_set_of_reg_bb): Likewise for param "insn".
321 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
322 (trace_reg_uses): Likewise for param "start_insn".
323 (sh_treg_combine::cbranch_trace): Likewise for field
325 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
327 (sh_treg_combine::record_set_of_reg): Likewise for param
328 "start_insn" and local "i".
329 (sh_treg_combine::can_remove_cstore): Likewise for local
331 (sh_treg_combine::try_optimize_cbranch): Likewise for param
333 (sh_treg_combine::execute): Likewise for local "i".
334 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
336 (sparc_check_64): Likewise for second param.
337 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
338 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
339 dyn_cast, using its insn method for typesafety and clarity.
340 (empty_delay_slot): Strengthen param "insn" from rtx to
342 (set_extends): Likewise.
343 (sparc_check_64): Likewise.
344 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
345 for locals "seq", "last_insn".
346 (combine_bnp): Likewise for param "insn".
347 (xstormy16_reorg): Likewise for local "insn".
348 * config/v850/v850.c (substitute_ep_register): Likewise for params
349 "first_insn", "last_insn" and local "insn".
350 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
351 elements of "regs" array, and local "insn".
352 * except.c (emit_note_eh_region_end): Likewise for param "insn".
353 * final.c (final_sequence): Strengthen this global from rtx to
355 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
357 (final_scan_insn): Update assignment to "final_sequence" to be
358 from "seq", the cast version of "body", for type-safety.
359 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
360 "insns" from rtx to rtx_insn *.
361 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
362 * genattr.c (main): When writing out generated insn-attr.h,
363 strengthen params 1 and 3 of eligible_for_delay,
364 eligible_for_annul_true, eligible_for_annul_false from rtx to
366 * genattrtab.c (write_eligible_delay): Likewise when writing out
367 generated insn-attrtab.c; also local "insn" the generated
369 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
371 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
372 "start_label" from rtx to rtx_insn *.
373 * ira.c (decrease_live_ranges_number): Likewise for local "p".
374 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
375 "insns" and local "insn".
376 (validate_equiv_mem): Likewise for param "start" and local "insn".
377 (memref_used_between_p): Likewise for params "start", "end" and
379 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
381 * loop-doloop.c (doloop_optimize): Within region guarded by
382 INSN_P (doloop_pat), introduce a new local rtx_insn *
383 "doloop_insn" via a checked cast, and use it for typesafety,
384 eventually writing the value back into doloop_pat.
385 * output.h (final_sequence): Strengthen this global from rtx to
387 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
388 reintroducing "insn" as an rtx_insn * via a checked cast.
389 Strengthen param "attempt" and local "new_insn"from rtx to
391 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
393 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
394 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
395 "p" in favor of more tightly-scoped replacements, sometimes rtx
396 and sometimes rtx_insn *, as appropriate.
397 (delete_output_reload): Eliminate top-level rtx "i1", splitting
398 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
399 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
400 local "trial" from rtx to rtx_insn *.
401 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
402 rtx to rtx_insn *. Strenghten local "pat" from rtx to
403 rtx_sequence * and use methods for clarity and typesafety.
404 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
405 rtx to rtx_insn *. Strenghten local "li" from rtx to
406 rtx_insn_list * and use its methods for clarity and typesafety.
407 (steal_delay_list_from_target): Strengthen param "insn" from rtx
409 (steal_delay_list_from_fallthrough): Likewise.
410 (try_merge_delay_insns): Likewise for param "thread" and locals
411 "trial", "next_trial", "delay_insn".
412 (redundant_insn): Likewise for param "target" and local "trial".
413 (own_thread_p): Likewise for param "thread" and locals
414 "active_insn", "insn".
415 (get_label_before): Likewise for param "insn".
416 (fill_simple_delay_slots): Likewise for local "new_label"; use
417 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
418 (label_before_next_insn): Strengthen return type and local "insn"
419 from rtx to rtx_insn *.
420 (relax_delay_slots): Likewise for locals "other", "tmp".
421 (make_return_insns): Likewise for param "first" and locals "insn",
422 "jump_insn", "prev". Move declaration of "pat" to its assignment
423 and strengthen from rtx to rtx_sequence *. Use its methods for
424 clarity and typesafety.
425 * rtlanal.c (no_labels_between_p): Strengthen params from
426 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
428 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
429 from const_rtx to const rtx_insn *.
430 (reg_set_between_p): Rename param "from_insn" to
431 "uncast_from_insn", and reintroduce "from_insn" as a
432 const rtx_insn * via a checked cast.
433 (modified_between_p): Likewise for param "start" as "uncast_start".
434 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
435 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
436 "tmp", head" from rtx to rtx_insn *.
437 (recompute_rev_top_order): Likewise for local "insn".
438 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
439 * store-motion.c (build_store_vectors): Likewise for local "insn".
440 Strengthen local "st" from rtx to rtx_insn_list * and use methods
441 for clarity and typesafety.
442 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
444 (computation_cost): Likewise for local "seq".
445 (get_address_cost): Likewise.
447 2014-08-28 David Malcolm <dmalcolm@redhat.com>
449 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
451 (label_is_jump_target_p): Likewise for second param.
453 * rtlanal.c (tablejump_p): Likewise for param "insn".
454 (label_is_jump_target_p): Likewise for param "jump_insn".
456 2014-08-28 David Malcolm <dmalcolm@redhat.com>
458 * rtl.h (find_first_parameter_load): Strengthen return type and
459 both params from rtx to rtx_insn *.
460 * rtlanal.c (find_first_parameter_load): Strengthen return type,
461 both params and locals "before", "first_set" from rtx to
462 rtx_insn *. Remove now-redundant cast.
463 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
465 2014-08-28 David Malcolm <dmalcolm@redhat.com>
467 * rtl.h (find_last_value): Delete.
468 * rtlanal.c (find_last_value): Delete.
470 2014-08-28 David Malcolm <dmalcolm@redhat.com>
472 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
473 from rtx to rtx_insn *.
474 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
475 rtx "note" with new local rtx_insn * "new_head" when calculating
476 head insn of new basic block.
477 * combine.c (combine_split_insns): Strengthen return type and local
478 "ret" from rtx to rtx_insn *.
479 (likely_spilled_retval_p): Likewise for locals "use" and "p".
480 (try_combine): Eliminate local "m_split", splitting into new
481 locals "m_split_insn" and "m_split_pat".
482 (find_split_point): Strengthen local "seq" from rtx into
484 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
485 locals "label", "branch".
486 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
488 (define_expand "umulsi3_highpart"): Likewise for local "insn".
489 * dse.c (note_add_store_info): Likewise for fields "first",
491 (note_add_store): Likewise for local "insn".
492 (emit_inc_dec_insn_before): Likewise for locals "insn",
494 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
495 (replace_read): Likewise for locals "insns", "this_insn".
496 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
497 (notice_eh_throw): Likewise for param "insn".
498 (before_next_cfi_note): Likewise for return type, param, and local
500 (connect_traces): Likewise for local "note".
501 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
502 (verify_rtl_sharing): Likewise.
503 (unshare_all_rtl_in_chain): Likewise for param "insn".
504 (get_first_nonnote_insn): Likewise for local "insn".
505 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
506 "seq" and use its methods to clarify things.
507 (next_insn): Strengthen return type from rtx to rtx_insn *.
508 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
509 local rtx_insn * using a checked cast, dropping a checked cast
510 made redundant by this change. Use a cast to and method of
511 rtx_sequence to clarify the code.
512 (previous_insn): Rename param "insn" to "uncast_insn" and
513 reintroduce "insn" as a local rtx_insn * using a checked cast,
514 dropping a checked cast made redundant by this change. Use a cast
515 to and method of rtx_sequence to clarify the code.
516 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
517 reintroduce "insn" as a local rtx_insn * using a checked cast,
518 dropping a checked cast made redundant by this change.
519 (next_nonnote_insn_bb): Likewise.
520 (prev_nonnote_insn): Likewise.
521 (prev_nonnote_insn_bb): Likewise.
522 (next_nondebug_insn): Likewise.
523 (prev_nondebug_insn): Likewise.
524 (next_nonnote_nondebug_insn): Likewise.
525 (prev_nonnote_nondebug_insn): Likewise.
526 (next_real_insn): Likewise.
527 (prev_real_insn): Likewise.
528 (next_active_insn): Likewise.
529 (prev_active_insn): Likewise.
530 (next_cc0_user): Likewise. Use rtx_sequence and a method for
532 (prev_cc0_setter): Likewise.
533 (try_split): Rename param "trial" to "uncast_trial" and
534 reintroduce "insn" as a local rtx_insn * using a checked cast,
535 dropping checked casts made redundant by this change.
536 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
538 (remove_insn): Rename param "insn" to "uncast_insn" and
539 reintroduce "insn" as a local rtx_insn * using a checked cast.
540 (emit_pattern_after_setloc): Likewise for param "after", as
542 (emit_pattern_after): Likewise. Strengthen local "prev" from
544 (emit_pattern_before_setloc): Rename param "before" to
545 "uncast_before" and reintroduce "before" as a local rtx_insn *
546 using a checked cast. Strengthen locals "first", "last" from
548 (emit_pattern_before): Likewise rename/cast param "before" to
549 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
550 * except.c (copy_reg_eh_region_note_forward): Strengthen param
551 "first" and local "insn" from rtx to rtx_insn *.
552 (copy_reg_eh_region_note_backward): Likewise for param "last"
554 * expr.c (fixup_args_size_notes): Rename param "last" to
555 "uncast_last" and reintroduce "last" as a local rtx_insn *
556 using a checked cast. Strengthen local "insn" from rtx to
558 * function.c (set_insn_locations): Strengthen param "insn" from
560 (record_insns): Likewise for param "insns" and local "tmp".
561 (active_insn_between): Rename param "tail" to
562 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
563 using a checked cast.
564 (thread_prologue_and_epilogue_insns): Split out top-level local
565 rtx "seq" into three different rtx_insn * locals. Strengthen
566 local "prologue_seq" from rtx to rtx_insn *.
567 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
568 from rtx to rtx_insn *.
569 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
570 (priority): Likewise for locals "prev_first", "twin".
571 (setup_insn_max_reg_pressure): Likewise for param "after".
572 (sched_setup_bb_reg_pressure_info): Likewise.
573 (no_real_insns_p): Strengthen params from const_rtx to
575 (schedule_block): Strengthen local "next_tail" from rtx to
577 * ifcvt.c (find_active_insn_before): Strengthen return type and
578 param "insn" from rtx to rtx_insn *.
579 (find_active_insn_after): Likewise.
580 (cond_exec_process_insns): Likewise for param "start" and local "insn".
581 (cond_exec_process_if_block): Likewise for locals "then_start",
582 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
583 (noce_process_if_block): Likewise for local "jump".
584 (merge_if_block): Likewise for two locals named "end".
585 (cond_exec_find_if_block): Likewise for local "last_insn".
586 * jump.c (delete_related_insns): Rename param "insn" to
587 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
588 checked cast. Strengthen local "p" from rtx to rtx_insn *.
589 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
591 (split_reg): Likewise.
592 * lra.c (lra_process_new_insns): Likewise.
593 * modulo-sched.c (permute_partial_schedule): Strengthen param
594 "last" from rtx to rtx_insn *.
595 * optabs.c (add_equal_note): Likewise for param "insns" and local
597 (expand_binop_directly): Add checked casts to rtx_insn * within
598 NEXT_INSN (pat) uses.
599 (expand_unop_direct): Likewise.
600 (maybe_emit_unop_insn): Likewise.
601 * recog.c (peep2_attempt): Strengthen locals "last",
602 "before_try", "x" from rtx to rtx_insn *.
603 * reorg.c (optimize_skip): Strengthen return type and local
604 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
605 and locals "trial", "next_trial" from rtx to rtx_insn *.
606 * resource.c (next_insn_no_annul): Strengthen return type and
607 param "insn" from rtx to rtx_insn *. Use a cast to and method of
608 rtx_sequence to clarify the code.
609 (mark_referenced_resources): Add a checked cast to rtx_insn *
610 within PREV_INSN (x).
611 (find_dead_or_set_registers): Strengthen return type, param
612 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
613 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
615 (mark_target_live_regs): Strengthen params "insns" and "target",
616 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
617 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
619 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
620 from rtx to rtx_insn *.
621 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
622 from rtx to rtx_insn *.
623 (copy_reg_eh_region_note_backward): Likewise.
624 (unshare_all_rtl_in_chain): Likewise for sole param.
625 (dump_rtl_slim): Strengthen second and third params from const_rtx
627 * sched-deps.c (sched_free_deps): Strengthen params "head" and
628 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
629 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
630 "next_tail" from rtx to rtx_insn *.
631 (begin_move_insn): Likewise for local "next".
632 * sched-int.h (sched_free_deps): Likewise for first and second
634 (no_real_insns_p): Strengthen both params from const_rtx to
636 (sched_setup_bb_reg_pressure_info): Strengthen second params from
638 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
640 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
641 and locals "insn", "tail" from const_rtx to const rtx_insn *.
642 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
644 (debug_rtl_slim): Strengthen params "first" and "last" from
645 const_rtx to const rtx_insn *.
646 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
647 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
648 (convert_to_simple_return): Likewise for param "returnjump".
649 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
651 (convert_to_simple_return): Likewise for param "returnjump".
652 * valtrack.c (propagate_for_debug): Likewise for params
654 * valtrack.h (propagate_for_debug): Likewise for second param.
656 2014-08-28 David Malcolm <dmalcolm@redhat.com>
658 * output.h (insn_current_reference_address): Strengthen param
659 from rtx to rtx_insn *.
660 * final.c (insn_current_reference_address): Likewise.
662 2014-08-28 David Malcolm <dmalcolm@redhat.com>
664 * basic-block.h (inside_basic_block_p): Strengthen param from
665 const_rtx to const rtx_insn *.
666 * cfgbuild.c (inside_basic_block_p): Likewise.
668 2014-08-28 David Malcolm <dmalcolm@redhat.com>
670 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
672 (get_trace_info): Likewise for param "insn".
673 (save_point_p): Likewise.
674 (maybe_record_trace_start): Likewise for both params.
675 (maybe_record_trace_start_abnormal): Likewise.
676 (create_trace_edges): Likewise for sole param and for three of the
678 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
679 to rtx_insn *, and update a call to pat->element to pat->insn.
681 2014-08-28 David Malcolm <dmalcolm@redhat.com>
683 * function.h (struct expr_status): Convert field "x_forced_labels"
684 from rtx_expr_list * to rtx_insn_list *.
686 * cfgbuild.c (make_edges): Convert local "x" from an
687 rtx_expr_list * to an rtx_insn_list *, replacing use of
688 "element" method with "insn" method.
689 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
690 * except.c (sjlj_emit_dispatch_table): Replace use of
691 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
693 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
694 rtx_expr_list * to an rtx_insn_list *, replacing use of
695 "element" method with "insn" method.
696 * reload1.c (set_initial_label_offsets): Likewise for local "x".
697 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
698 rtx_insn *, adding a checked cast. Replace use of
699 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
701 (expand_label): Likewise for local "label_r".
703 2014-08-28 David Malcolm <dmalcolm@redhat.com>
705 * function.h (struct rtl_data): Convert field
706 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
708 * rtl.h (remove_node_from_insn_list): New prototype.
710 * builtins.c (expand_builtin): When prepending to
711 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
713 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
714 to rtx_insn_list *, and use its "insn" method rather than
716 * cfgrtl.c (delete_insn): Use new function
717 remove_node_from_insn_list rather than
718 remove_node_from_expr_list.
719 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
720 to rtx_insn_list *, and use its "insn" method rather than
722 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
723 * reload1.c (set_initial_label_offsets): Likewise for local "x".
724 * rtlanal.c (remove_node_from_insn_list): New function, adapted
725 from remove_node_from_expr_list.
726 * stmt.c (expand_label): When prepending to
727 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
730 2014-08-28 David Malcolm <dmalcolm@redhat.com>
732 * function.h (struct rtl_data): Strengthen fields "x_return_label"
733 and "x_naked_return_label" from rtx to rtx_code_label *.
735 2014-08-28 David Malcolm <dmalcolm@redhat.com>
737 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
738 (SET_NEXT_INSN): Likewise.
739 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
741 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
742 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
743 to split out the SEQUENCE from local "bundle", strengthening the
744 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
745 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
746 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
747 and the type of the elements of the "slot" array from rtx to
749 (reorg_split_calls): Likewise for locals "insn" and "next", and
750 the type of the elements of the "slot" array.
752 * config/frv/frv.c (frv_nops): Likewise for the elements of this
754 (frv_function_prologue): Likewise for locals "insn", "next",
756 (frv_register_nop): Introduce a local "nop_insn" to be the
757 rtx_insn * containing rtx "nop".
759 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
760 used as an insn and sometimes as a pattern, so rename it to
761 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
762 using it where dealing with the core insn.
764 * config/picochip/picochip.c (reorder_var_tracking_notes):
765 Strengthen locals "insn", "next", "last_insn", "queue",
766 "next_queue", "prev" from rtx to rtx_insn *.
768 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
769 the second param is an rtx_insn ** rather than an rtx **.
770 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
771 from rtx to rtx_sequence *, and introduce local named "sequence",
772 using methods of rtx_sequence to clarify the code.
773 (remove_insn): Introduce local rtx_sequence * named "sequence" and
775 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
776 Rename param "after" to "uncast_after", reintroducing "after" as a
777 local rtx_insn * with a checked cast.
778 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
779 reintroducing "after" as a local rtx_insn * with a checked cast.
780 Strengthen local "last" from rtx to rtx_insn * and remove the
781 now-redundant checked casts.
782 (copy_delay_slot_insn): Strengthen return type and param from rtx
785 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
786 "last" from rtx to rtx_insn *.
788 2014-08-28 David Malcolm <dmalcolm@redhat.com>
790 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
791 param from rtx to rtx_insn *.
793 * emit-rtl.c (copy_delay_slot_insn): Likewise.
795 * reorg.c (skip_consecutive_labels): Strengthen return type, param
796 and local "insn" from rtx to rtx_insn *.
797 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
798 (unfilled_slots_next): Likewise.
799 (function_return_label): Strengthen from rtx to rtx_code_label *.
800 (function_simple_return_label): Likewise.
801 (first_active_target_insn): Strengthen return type and param from
803 (find_end_label): Strengthen return type from rtx to
804 rtx_code_label *; strengthen locals as appropriate.
805 (emit_delay_sequence): Strengthen return type, param "insn" and
806 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
807 and local "li" from rtx to rtx_insn_list *, using methods of
808 rtx_insn_list for clarity and typesafety.
809 (add_to_delay_list): Strengthen return type and param "insn" from
810 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
811 rtx_insn_list * and use methods of rtx_insn_list.
812 (delete_from_delay_slot): Strengthen return type, param "insn",
813 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
814 Strengthen local "seq" from rtx to rtx_sequence *, and local
815 "delay_list" from rtx to rtx_insn_list *, using methods of
816 rtx_sequence for clarity and type-safety.
817 (delete_scheduled_jump): Add checked cast when invoking
818 delete_from_delay_slot. Strengthen local "trial" from rtx to
820 (optimize_skip): Strengthen return type and local "delay_list"
821 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
823 (steal_delay_list_from_target): Strengthen return type, param
824 "delay_list" and local "new_delay_list" from rtx to
825 rtx_insn_list *. Strengthen param "seq" from rtx to
826 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
828 Split out local "temp" into multiple more-tightly scoped locals:
829 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
830 of rtx_insn_list and rtx_sequence for clarity and typesafety.
831 Strengthen locals named "trial" from rtx to rtx_insn *.
832 (steal_delay_list_from_fallthrough): Strengthen return type and
833 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
834 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
835 Strengthen local "trial" from rtx to rtx_insn *.
836 (try_merge_delay_insns): Strength local "merged_insns" from rtx
837 to rtx_insn_list * and use its methods. Strengthen local "pat"
838 from rtx to rtx_sequence * and use its methods. Strengthen locals
839 "dtrial" and "new_rtx" from rtx to rtx_insn *.
840 (get_label_before): Strengthen return type and local "label" from
842 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
843 "next_trial", "next", prev". Strengthen local "delay_list" from
844 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
846 (follow_jumps): Strengthen return type, param "label" and locals
847 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
848 (fill_slots_from_thread): Strengthen return type, param
849 "delay_list" from rtx to rtx_insn_list *. Strengthen params
850 "insn", "thread", "opposite_thread" and locals "new_thread",
851 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
852 "sequence" from a checked cast to rtx_sequence so that we can call
853 steal_delay_list_from_target and steal_delay_list_from_fallthrough
854 with an rtx_sequence *.
855 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
856 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
857 Strengthen local "delay_list" from rtx to rtx_insn_list *.
858 (relax_delay_slots): Strengthen param "first" and locals "insn",
859 "next", "trial", "delay_insn", "target_label" from rtx to
860 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
861 Introduce a local "trial_seq" for PATTERN (trial) of type
862 rtx_sequence *, in both cases using methods of rtx_sequence.
863 (dbr_schedule): Strengthen param "first" and locals "insn",
864 "next", "epilogue_insn" from rtx to rtx_insn *.
866 2014-08-28 Richard Biener <rguenther@suse.de>
868 PR tree-optimization/62283
869 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
870 Do not peel loops for alignment where the vector loop likely
871 doesn't run at least VF times.
873 2014-08-28 Bin Cheng <bin.cheng@arm.com>
875 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
876 important_candidates. Consider all important candidates if
877 IVS doesn't give any result. Remove check on ivs->upto.
878 (try_add_cand_for): Call iv_ca_add_use only once.
880 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
882 Anna Tikhonova <anna.tikhonova@intel.com>
883 Ilya Tocar <ilya.tocar@intel.com>
884 Andrey Turetskiy <andrey.turetskiy@intel.com>
885 Ilya Verbin <ilya.verbin@intel.com>
886 Kirill Yukhin <kirill.yukhin@intel.com>
887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
889 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
890 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
892 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
893 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
894 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
895 (define_insn "*mul<mode>3"): Add EVEX version.
897 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
898 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
899 Anna Tikhonova <anna.tikhonova@intel.com>
900 Ilya Tocar <ilya.tocar@intel.com>
901 Andrey Turetskiy <andrey.turetskiy@intel.com>
902 Ilya Verbin <ilya.verbin@intel.com>
903 Kirill Yukhin <kirill.yukhin@intel.com>
904 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
907 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
908 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
909 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
910 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
911 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
912 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
913 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
914 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
915 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
916 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
917 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
918 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
919 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
920 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
921 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
922 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
924 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
926 Anna Tikhonova <anna.tikhonova@intel.com>
927 Ilya Tocar <ilya.tocar@intel.com>
928 Andrey Turetskiy <andrey.turetskiy@intel.com>
929 Ilya Verbin <ilya.verbin@intel.com>
930 Kirill Yukhin <kirill.yukhin@intel.com>
931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
934 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
935 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
936 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
938 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
940 Anna Tikhonova <anna.tikhonova@intel.com>
941 Ilya Tocar <ilya.tocar@intel.com>
942 Andrey Turetskiy <andrey.turetskiy@intel.com>
943 Ilya Verbin <ilya.verbin@intel.com>
944 Kirill Yukhin <kirill.yukhin@intel.com>
945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
948 (define_mode_iterator VI128_256): New.
949 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
951 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
952 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
953 Anna Tikhonova <anna.tikhonova@intel.com>
954 Ilya Tocar <ilya.tocar@intel.com>
955 Andrey Turetskiy <andrey.turetskiy@intel.com>
956 Ilya Verbin <ilya.verbin@intel.com>
957 Kirill Yukhin <kirill.yukhin@intel.com>
958 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
961 (define_mode_iterator VI8_256_512): New.
962 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
964 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
965 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
967 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
969 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
971 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
972 pointer to the cumulative reloc value and return the value for
974 (compute_reloc_for_rtx): Take a const_rtx. Call
975 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
976 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
977 for_each_rtx for the CONST case.
979 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
981 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
982 (mark_constants_in_pattern): ...this new function to iterate over
984 (mark_constants): Update accordingly.
986 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
988 * varasm.c: Include rtl-iter.h.
989 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
990 Remove the pointer to the cumulative hashval_t and just return
991 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
992 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
993 Accumulate the hashval_ts here instead of const_rtx_hash_1.
995 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
997 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
998 Give real type of data parameter. Remove return value.
999 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1000 to iterate over subrtxes.
1002 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1004 * var-tracking.c (use_narrower_mode_test): Turn from being a
1005 for_each_rtx callback to being a function that examines each
1007 (adjust_mems): Update accordingly.
1009 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1011 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1012 callback to being a function that examines each subrtx itself.
1013 Remove handling of null rtxes.
1014 (add_uses): Update accordingly.
1016 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1018 * var-tracking.c: Include rtl-iter.h.
1019 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1020 to being a function that examines each subrtx itself.
1021 (use_type): Update accordingly.
1023 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1025 * store-motion.c: Include rtl-iter.h.
1026 (extract_mentioned_regs_1): Delete.
1027 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1028 for_each_rtx to iterate over subrtxes.
1030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1032 * sel-sched.c: Include rtl-iter.h
1033 (count_occurrences_1): Delete.
1034 (count_occurrences_equiv): Turn rtxes into const_rtxes.
1035 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1039 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1040 * rtlanal.c (tls_referenced_p_1): Delete.
1041 (tls_referenced_p): Take a const_rtx rather than an rtx.
1042 Use FOR_EACH_SUBRTX rather than for_each_rtx.
1044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1046 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1047 (for_each_inc_dec): Take an rtx rather than an rtx *.
1048 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1049 (cselib_record_sets): Likewise.
1050 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1051 (check_for_inc_dec): Likewise.
1052 * rtlanal.c (for_each_inc_dec_ops): Delete.
1053 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1054 rather than a pointer to the memory address. Replace
1055 for_each_inc_dec_ops argument with separate function and data
1056 arguments. Abort on non-autoinc addresses.
1057 (for_each_inc_dec_find_mem): Delete.
1058 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
1059 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1061 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1063 * rtl.h (find_all_hard_regs): Declare.
1064 * rtlanal.c (find_all_hard_regs): New function.
1065 (record_hard_reg_uses_1): Delete.
1066 (record_hard_reg_uses): Use find_all_hard_regs.
1068 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1070 * rtl.h (replace_label_data): Delete.
1071 (replace_label): Take the old label, new label and update-nuses flag
1072 as direct arguments. Return void.
1073 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
1074 * rtlanal.c (replace_label): Update interface as above. Handle
1075 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
1076 iterator. Use FOR_EACH_SUBRTX_PTR.
1078 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1080 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
1081 with const_rtx parameters.
1082 * varasm.c (get_pool_constant): Likewise.
1083 * rtlanal.c (rtx_referenced_p_1): Delete.
1084 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1085 Assert that the rtx we're looking for is nonnull. Allow searches
1086 for constant pool SYMBOL_REFs.
1088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1090 * reload1.c: Include rtl-iter.h.
1091 (note_reg_elim_costly): Turn from being a for_each_rtx callback
1092 to being a function that examines each subrtx itself.
1093 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
1095 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1097 * regcprop.c (cprop_find_used_regs_1): Delete.
1098 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1102 * regcprop.c: Include rtl-iter.h.
1103 (kill_value): Take a const_rtx.
1104 (kill_autoinc_value): Turn from being a for_each_rtx callback
1105 to being a function that examines each subrtx itself.
1106 (copyprop_hardreg_forward_1): Update accordingly.
1108 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1110 * reg-stack.c: Include rtl-iter.h.
1111 (subst_stack_regs_in_debug_insn): Delete.
1112 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
1113 instead of for_each_rtx.
1115 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1117 * lower-subreg.c (find_decomposable_subregs): Turn from being
1118 a for_each_rtx callback to being a function that examines each
1119 subrtx itself. Remove handling of null rtxes.
1120 (decompose_multiword_subregs): Update accordingly.
1122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1124 * lower-subreg.c (adjust_decomposed_uses): Delete.
1125 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
1126 Remove handling of null rtxes.
1128 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1130 * lower-subreg.c: Include rtl-iter.h.
1131 (resolve_subreg_use): Turn from being a for_each_rtx callback
1132 to being a function that examines each subrtx itself. Remove
1133 handling of null rtxes.
1134 (resolve_reg_notes, resolve_simple_move): Update accordingly.
1135 (decompose_multiword_subregs): Likewise.
1137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1139 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
1140 to being a function that examines each subrtx itself.
1141 (simplify_using_condition, simplify_using_initial_values): Update
1144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1146 * loop-iv.c: Include rtl-iter.h.
1147 (find_single_def_src): New function.
1148 (replace_single_def_regs): Turn from being a for_each_rtx callback
1149 to being a function that examines each subrtx itself.
1150 (replace_in_expr, simplify_using_initial_values): Update accordingly.
1152 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1154 * jump.c (eh_returnjump_p_1): Delete.
1155 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1156 Remove handling of null rtxes.
1158 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1160 * jump.c: Include rtl-iter.h.
1161 (returnjump_p_1): Delete.
1162 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1163 Remove handling of null rtxes.
1165 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1167 * ira.c: Include rtl-iter.h.
1168 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
1169 to being a function that examines each subrtx itself. Remove
1170 handling of null rtxes.
1171 (update_equiv_regs): Update call accordingly.
1173 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1175 * fwprop.c: Include rtl-iter.h.
1176 (varying_mem_p): Turn from being a for_each_rtx callback to being
1177 a function that examines each subrtx itself.
1178 (propagate_rtx): Update accordingly.
1180 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1182 * function.c: Include rtl-iter.h
1183 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
1184 callback to being a function that examines each subrtx itself.
1185 Return the changed flag.
1186 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
1187 (instantiate_virtual_regs): Update calls accordingly.
1189 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1191 * final.c: Include rtl-iter.h.
1192 (mark_symbol_ref_as_used): Delete.
1193 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
1196 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1198 * emit-rtl.c: Include rtl-iter.h.
1199 (find_auto_inc): Turn from being a for_each_rtx callback to being
1200 a function that examines each subrtx itself. Assume the first operand
1201 to an RTX_AUTOINC is the automodified register.
1202 (try_split): Update call accordingly.
1204 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1206 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
1207 Return a bool, inverting the result so that 0/false means "not ok".
1208 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
1209 subrtxes of a CONST.
1210 (mem_loc_descriptor, add_const_value_attribute)
1211 (resolve_addr_in_expr): Update calls accordingly.
1213 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1215 * dwarf2out.c: Include rtl-iter.h.
1216 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
1217 Remove unused data parameter. Return a bool, inverting the result
1218 so that 0/false means "not ok".
1219 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
1220 instead of for_each_rtx.
1222 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1224 * dse.c: Include rtl-iter.h.
1225 (check_mem_read_rtx): Change void * parameter to real type.
1226 Remove return value.
1227 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
1228 for_each_rtx. Don't handle null rtxes.
1230 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1232 * df-problems.c: Include rtl-iter.h.
1233 (find_memory): Turn from being a for_each_rtx callback to being
1234 a function that examines each subrtx itself. Continue to look for
1235 volatile references even after a nonvolatile one has been found.
1236 (can_move_insns_across): Update calls accordingly.
1238 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1240 * ddg.c (walk_mems_2, walk_mems_1): Delete.
1241 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
1242 to iterate over subrtxes. Return a bool rather than an int.
1244 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1246 * ddg.c: Include rtl-iter.h.
1247 (mark_mem_use_1): Rename to...
1248 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
1249 instead of for_each_rtx.
1250 (mem_read_insn_p): Update accordingly.
1252 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1254 * cse.c (change_cc_mode_args): Delete.
1255 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
1256 a function that examines each subrtx itself. Take the fields of
1257 change_cc_mode_args as argument and return void.
1258 (cse_change_cc_mode_insn): Update calls accordingly.
1260 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1262 * cse.c (is_dead_reg): Change argument to const_rtx.
1263 (dead_debug_insn_data): Delete.
1264 (is_dead_debug_insn): Expand commentary. Turn from being a
1265 for_each_rtx callback to being a function that examines
1266 each subrtx itself. Take the fields of dead_debug_insn_data
1268 (delete_trivially_dead_insns): Update call accordingly.
1270 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1272 * cse.c (check_for_label_ref): Move earlier in file. Turn from
1273 being a for_each_rtx callback to being a function that examines
1275 (cse_extended_basic_block): Update call accordingly.
1277 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1279 * cse.c (check_dependence_data): Delete.
1280 (check_dependence): Change from being a for_each_rtx callback to being
1281 a function that examines all subrtxes itself. Don't handle null rtxes.
1282 (invalidate): Update call accordingly.
1284 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1286 * cse.c: Include rtl-iter.h.
1287 (approx_reg_cost_1): Delete.
1288 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1289 Don't handle null rtxes.
1291 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1293 * cfgcleanup.c: Include rtl-iter.h.
1294 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
1295 to being a function that examines each subrtx itself.
1296 (thread_jump): Update accordingly.
1298 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1300 * combine-stack-adj.c: Include rtl-iter.h.
1301 (record_stack_refs_data): Delete.
1302 (record_stack_refs): Turn from being a for_each_rtx callback
1303 to being a function that examines each subrtx itself.
1304 Take a pointer to the reflist. Invert sense of return value
1305 so that true means success and false means failure. Don't
1307 (combine_stack_adjustments_for_block): Update accordingly.
1309 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1311 * combine.c (record_truncated_value): Turn from being a for_each_rtx
1312 callback to a function that takes an rtx and returns a bool
1313 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
1316 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1318 * combine.c: Include rtl-iter.h.
1319 (unmentioned_reg_p_1): Delete.
1320 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1321 Don't handle null rtxes.
1323 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1325 * calls.c: Include rtl-iter.h.
1326 (internal_arg_pointer_based_exp_1): Delete.
1327 (internal_arg_pointer_based_exp): Take a const_rtx.
1328 Use FOR_EACH_SUBRTX to iterate over subrtxes.
1330 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1332 * caller-save.c: Include rtl-iter.h.
1333 (add_used_regs_1): Delete.
1334 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
1335 to iterate over subrtxes. Assert that any remaining pseudos
1338 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1340 * bt-load.c: Include rtl-iter.h.
1341 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
1342 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
1343 to iterate over subrtxes.
1344 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
1345 find_btr_use rather than btr_referenced_p.
1347 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1349 * alias.c: Include rtl-iter.h.
1350 (refs_newer_value_cb): Delete.
1351 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1353 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1355 * rtl-iter.h: New file.
1356 * rtlanal.c: Include it.
1357 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
1358 (generic_subrtx_iterator <T>::add_single_to_queue)
1359 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
1360 (generic_subrtx_iterator <T>::free_array): New functions.
1361 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
1362 (generic_subrtx_iterator <const_rtx_accessor>)
1363 (generic_subrtx_iterator <rtx_var_accessor>
1364 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
1365 (setup_reg_subrtx_bounds): New function.
1366 (init_rtlanal): Call it.
1368 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
1371 * config/sh/sh.md (ashlsi3): Handle negative shift count for
1373 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
1375 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
1377 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
1379 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1381 * rtl.h (JUMP_LABEL_AS_INSN): New.
1383 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1385 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
1387 (alloc_EXPR_LIST): Strengthen return type from rtx to
1389 (remove_free_EXPR_LIST_node): Likewise for param.
1390 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
1391 from rtx to rtx_expr_list *.
1392 * sched-int.h (struct deps_desc): Strengthen fields
1393 "pending_read_mems" and "pending_write_mems" from rtx to
1396 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
1397 rtx to rtx_expr_list *.
1398 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
1399 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
1401 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
1402 from rtx to rtx_expr_list *.
1403 * loop-iv.c (simplify_using_initial_values): Strengthen local
1404 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
1405 "pnote_next" from rtx * to rtx_expr_list **.
1406 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
1407 param "exprp" from rtx * to rtx_expr_list **.
1408 (add_insn_mem_dependence): Strengthen local "mem_list" from
1409 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
1411 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
1412 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
1413 param "old_mems_p" from rtx * to rtx_expr_list **.
1414 * var-tracking.c (struct adjust_mem_data): Strengthen field
1415 "side_effects" from rtx to rtx_expr_list *.
1416 (adjust_insn): Replace NULL_RTX with NULL when assigning to
1418 (prepare_call_arguments): Likewise.
1420 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1422 * function.h (struct rtl_data): Strengthen field
1423 "x_stack_slot_list" from rtx to rtx_expr_list *.
1425 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
1426 when assigning to stack_slot_list.
1428 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1430 * function.h (struct rtl_data): Strengthen field
1431 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
1432 * rtl.h (remove_node_from_expr_list): Strengthen second param from
1433 rtx * to rtx_expr_list **.
1435 * cfgbuild.c (make_edges): In loop over
1436 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
1437 rtx_expr_list *, and use methods of the latter class to clarify
1439 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
1440 rtx_expr_list *, and use methods of the latter class to clarify
1442 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1443 * reload1.c (set_initial_label_offsets): Likewise for local "x".
1444 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
1445 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
1446 to rtx_expr_list *. Use methods of the latter class to clarify
1449 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1451 * function.h (struct expr_status): Strengthen field
1452 "x_forced_labels" from rtx to rtx_expr_list *.
1454 * cfgbuild.c (make_edges): Split local "x" into two locals,
1455 strengthening one from rtx to rtx_expr_list *, and using methods
1457 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
1458 loop over forced_labels, introduce strengthen it from rtx to
1459 rtx_expr_list *, using methods to clarify the code.
1460 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
1461 to rtx_expr_list *, using methods of said class to clarify the
1463 * reload1.c (set_initial_label_offsets): Split local "x" into two
1464 per-loop variables, strengthening the first from rtx to
1465 rtx_expr_list * and using methods.
1467 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1469 * coretypes.h (class rtx_expr_list): Add forward declaration.
1470 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
1471 * gengenrtl.c (special_rtx): Add EXPR_LIST.
1472 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
1473 invariant: GET_CODE (X) == EXPR_LIST.
1474 (is_a_helper <rtx_expr_list *>::test): New.
1475 (rtx_expr_list::next): New.
1476 (rtx_expr_list::element): New.
1477 (gen_rtx_EXPR_LIST): New.
1479 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1481 * varasm.c (mark_constants): Convert a GET_CODE check into a
1482 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1483 Use methods of rtx_sequence to clarify the code.
1485 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1487 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
1488 local "seq" via a checked cast, and use methods of rtx_sequence
1489 to simplify the code.
1491 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1493 * resource.c (mark_referenced_resources): Strengthen local
1494 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
1495 using methods of rtx_sequence to clarify the code.
1496 (find_dead_or_set_registers): Within the switch statement, convert
1497 a GET_CODE check to a dyn_cast, introducing local "seq". Within
1498 the JUMP_P handling, introduce another local "seq", adding a
1499 checked cast to rtx_sequence *. In both cases, use methods of
1500 rtx_sequence to clarify the code.
1501 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
1502 via a checked cast, and use methods of rtx_sequence to simplify
1505 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1507 * reorg.c (redundant_insn): In two places in the function, replace
1508 a check of GET_CODE with a dyn_cast, introducing local "seq", and
1509 usings methods of rtx_sequence to clarify the code.
1511 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1513 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
1514 local "seq" with a checked cast, and use methods of rtx_sequence
1515 to clarify the code.
1517 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1519 * function.c (contains): Introduce local "seq" for PATTERN (insn),
1520 with a checked cast, in the region for where we know it's a
1521 SEQUENCE. Use methods of rtx_sequence.
1523 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1525 * final.c (get_attr_length_1): Replace GET_CODE check with a
1526 dyn_cast, introducing local "seq" and the use of methods of
1528 (shorten_branches): Likewise, introducing local "body_seq".
1529 Strengthen local "inner_insn" from rtx to rtx_insn *.
1530 (reemit_insn_block_notes): Replace GET_CODE check with a
1531 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
1532 Use methods of rtx_sequence.
1533 (final_scan_insn): Likewise, introducing local "seq" for when
1534 "body" is known to be a SEQUENCE, using its methods.
1536 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1538 * except.c (can_throw_external): Strengthen local "seq" from rtx
1539 to rtx_sequence *. Use methods of rtx_sequence.
1540 (insn_nothrow_p): Likewise.
1542 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1544 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
1545 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1546 Use methods of rtx_sequence.
1547 (scan_trace): Likewise for local "pat".
1549 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1551 * coretypes.h (class rtx_sequence): Add forward declaration.
1552 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
1553 invariant: GET_CODE (X) == SEQUENCE.
1554 (is_a_helper <rtx_sequence *>::test): New.
1555 (is_a_helper <const rtx_sequence *>::test): New.
1556 (rtx_sequence::len): New.
1557 (rtx_sequence::element): New.
1558 (rtx_sequence::insn): New.
1560 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1562 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
1564 (alloc_INSN_LIST): Strengthen return type from rtx to
1566 (copy_INSN_LIST): Likewise for return type and param.
1567 (concat_INSN_LIST): Likewise for both params and return type.
1568 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
1569 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
1570 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
1571 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
1573 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
1574 "implicit_sets", "control_uses", "clobbers" from rtx to
1576 (struct deps_desc): Likewise for fields "pending_read_insns",
1577 "pending_write_insns", "pending_jump_insns",
1578 "last_pending_memory_flush", "last_function_call",
1579 "last_function_call_may_noreturn", "sched_before_next_call",
1580 "sched_before_next_jump".
1581 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
1582 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
1584 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
1585 from rtx to rtx_insn_list *.
1586 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
1589 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
1590 to rtx_insn_list **.
1591 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
1593 (queue_insn): Likewise for local "link".
1594 (struct haifa_saved_data): Strengthen field "insn_queue" from
1595 rtx * to rtx_insn_list **.
1596 (save_backtrack_point): Update allocation of save->insn_queue to
1597 reflect the strengthening of elements from rtx to rtx_insn_list *.
1598 (queue_to_ready): Strengthen local "link" from rtx to
1599 rtx_insn_list *; use methods "next" and "insn" when traversing the
1601 (early_queue_to_ready): Likewise for locals "link", "next_link",
1603 (schedule_block): Update allocation of insn_queue to reflect the
1604 strengthening of elements from rtx to rtx_insn_list *. Strengthen
1605 local "link" from rtx to rtx_insn_list *, and use methods when
1607 (add_to_speculative_block): Strengthen locals "twins" and
1608 "next_node" from rtx to rtx_insn_list *, and use methods when
1609 working with them. Strengthen local "twin" from rtx to
1610 rtx_insn *, eliminating a checked cast.
1611 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
1612 from rtx to rtx_insn_list *, and use methods when working with
1615 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
1616 from rtx to rtx_insn_list *, adding a checked cast.
1617 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
1619 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
1620 "newlink" from rtx to rtx_insn_list *. Strengthen local
1621 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
1622 from rtx to rtx_insn *.
1623 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
1624 from rtx to rtx_insn_list *. Use methods of the latter class.
1625 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
1626 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
1627 (remove_free_INSN_LIST_node): Strengthen return type and local
1628 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
1629 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
1630 rtx_insn_list *, using "insn" method.
1632 * sched-deps.c (add_dependence_list): Strengthen param "list"
1633 from rtx to rtx_insn_list *, and use methods when working with it.
1634 (add_dependence_list_and_free): Strengthen param "listp" from
1635 rtx * to rtx_insn_list **.
1636 (remove_from_dependence_list): Strenghten param "listp" from rtx *
1637 to rtx_insn_list **, and use methods when working with *listp.
1638 (remove_from_both_dependence_lists): Strengthen param "listp" from
1639 rtx * to rtx_insn_list **
1640 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
1641 to rtx_insn_list **. Eliminate local "link", in favor of two new
1642 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
1644 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
1645 by introducing local "cond_deps".
1646 (remove_from_deps): Strengthen param "insn" from rtx to
1649 * sched-rgn.c (concat_insn_mem_list): Strengthen param
1650 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
1651 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
1652 Use methods of rtx_insn_list.
1654 * store-motion.c (struct st_expr): Strengthen fields
1655 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
1656 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
1658 (find_moveable_store): Split out "tmp" into multiple more-tightly
1659 scoped locals. Use methods of rtx_insn_list *.
1660 (compute_store_table): Strengthen local "tmp" from rtx to
1661 rtx_insn *. Use methods of rtx_insn_list *.
1663 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1665 * coretypes.h (class rtx_insn_list): Add forward declaration.
1666 * rtl.h (class rtx_insn_list): New subclass of rtx_def
1667 (is_a_helper <rtx_insn_list *>::test): New.
1668 (rtx_insn_list::next): New.
1669 (rtx_insn_list::insn): New.
1670 (gen_rtx_INSN_LIST): Add prototype.
1671 * emit-rtl.c (gen_rtx_INSN_LIST): New.
1672 * gengenrtl.c (special_rtx): Add INSN_LIST.
1674 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1676 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
1677 "prev" from rtx to rtx_insn *.
1679 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1681 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
1682 functions. Require merely an rtx for now, not an rtx_insn *.
1683 (BLOCK_FOR_INSN): Likewise.
1684 (INSN_LOCATION): Likewise.
1685 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
1687 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1689 * rtl.h (PATTERN): Convert this macro into a pair of inline
1690 functions, for now, requiring const_rtx and rtx.
1692 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1694 * target.def (unwind_emit): Strengthen param "insn" from rtx to
1696 (final_postscan_insn): Likewise.
1697 (adjust_cost): Likewise.
1698 (adjust_priority): Likewise.
1699 (variable_issue): Likewise.
1700 (macro_fusion_pair_p): Likewise.
1701 (dfa_post_cycle_insn): Likewise.
1702 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
1703 (first_cycle_multipass_issue): Likewise.
1704 (dfa_new_cycle): Likewise.
1705 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
1706 (speculate_insn): Likewise for param "insn".
1707 (gen_spec_check): Likewise for params "insn" and "label".
1708 (get_insn_spec_ds): Likewise for param "insn".
1709 (get_insn_checked_ds): Likewise.
1710 (dispatch_do): Likewise.
1711 (dispatch): Likewise.
1712 (cannot_copy_insn_p): Likewise.
1713 (invalid_within_doloop): Likewise.
1714 (legitimate_combined_insn): Likewise.
1718 * doc/tm.texi: Automatically updated to reflect changes to
1721 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
1723 (schedule_block): Likewise.
1724 (sched_init): Likewise.
1725 (sched_speculate_insn): Strengthen param "insn" from rtx to
1727 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
1729 * hooks.c (hook_bool_rtx_true): Rename to...
1730 hook_bool_rtx_insn_true): ...this, and strengthen first param from
1732 (hook_constcharptr_const_rtx_null): Rename to...
1733 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
1734 first param from const_rtx to const rtx_insn *.
1735 (hook_bool_rtx_int_false): Rename to...
1736 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
1737 param from rtx to rtx_insn *.
1738 (hook_void_rtx_int): Rename to...
1739 (hook_void_rtx_insn_int): ...this, and strengthen first param from
1742 * hooks.h (hook_bool_rtx_true): Rename to...
1743 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
1745 (hook_bool_rtx_int_false): Rename to...
1746 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
1747 param from rtx to rtx_insn *.
1748 (hook_void_rtx_int): Rename to...
1749 (hook_void_rtx_insn_int): ...this, and strengthen first param from
1751 (hook_constcharptr_const_rtx_null): Rename to...
1752 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
1753 first param from const_rtx to const rtx_insn *.
1755 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
1756 and local "prev" from rtx to rtx_insn *.
1758 * sched-int.h (sched_speculate_insn): Strengthen first param from
1761 * sel-sched.c (create_speculation_check): Likewise for local "label".
1762 * targhooks.c (default_invalid_within_doloop): Strengthen param
1763 "insn" from const_rtx to const rtx_insn *.
1764 * targhooks.h (default_invalid_within_doloop): Strengthen param
1765 from const_rtx to const rtx_insn *.
1767 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
1768 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
1770 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
1772 (arc_invalid_within_doloop): Likewise, with const.
1774 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
1775 (arm_cannot_copy_insn_p): Likewise for param "insn".
1776 (arm_unwind_emit): Likewise.
1778 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
1781 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
1782 (c6x_variable_issue): Likewise. Removed now-redundant checked
1784 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
1786 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
1787 Likewise for param "insn".
1788 (epiphany_mode_after): Likewise.
1789 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
1790 params "insn", "dep_insn".
1791 (epiphany_mode_needed): Likewise for param "insn".
1792 (epiphany_mode_after): Likewise.
1794 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
1795 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1796 (ix86_avx_u128_mode_needed): Likewise.
1797 (ix86_i387_mode_needed): Likewise.
1798 (ix86_mode_needed): Likewise.
1799 (ix86_avx_u128_mode_after): Likewise.
1800 (ix86_mode_after): Likewise.
1801 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
1802 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
1803 (ix86_adjust_priority): Likewise for param "insn".
1804 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
1805 (do_dispatch): Likewise.
1806 (has_dispatch): Likewise.
1807 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
1809 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
1810 reflect renaming of default hook implementation from
1811 hook_constcharptr_const_rtx_null to
1812 hook_constcharptr_const_rtx_insn_null.
1813 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
1815 (ia64_variable_issue): Likewise for param "insn".
1816 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
1817 (ia64_dfa_new_cycle): Likewise.
1818 (ia64_get_insn_spec_ds): Likewise.
1819 (ia64_get_insn_checked_ds): Likewise.
1820 (ia64_speculate_insn): Likewise.
1821 (ia64_gen_spec_check): Likewise for params "insn", "label".
1822 (ia64_asm_unwind_emit): Likewise for param "insn".
1824 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
1826 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
1828 (m68k_sched_variable_issue): Likewise for param "insn".
1830 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
1833 * config/microblaze/microblaze.c (microblaze_adjust_cost):
1834 Likewise for params "insn", "dep".
1836 * config/mips/mips.c (mips_adjust_cost): Likewise.
1837 (mips_variable_issue): Likewise for param "insn".
1838 (mips_final_postscan_insn): Likewise.
1840 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
1841 for params "insn", "dep".
1843 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
1845 (pa_adjust_priority): Likewise for param "insn".
1847 * config/picochip/picochip.c (picochip_sched_adjust_cost):
1848 Likewise for params "insn", "dep_insn".
1850 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
1852 (rs6000_variable_issue): Likewise.
1853 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
1854 (rs6000_debug_adjust_cost): Likewise.
1855 (rs6000_adjust_priority): Likewise for param "insn".
1856 (rs6000_use_sched_lookahead_guard): Likewise.
1857 (get_next_active_insn): Likewise for return type and both params.
1858 (redefine_groups): Likewise for params "prev_head_insn", "tail"
1859 and locals "insn", "next_insn".
1860 (pad_groups): Likewise.
1862 * config/s390/s390.c (s390_adjust_priority): Likewise for param
1864 (s390_cannot_copy_insn_p): Likewise.
1865 (s390_sched_variable_issue): Likewise for third param, eliminating
1867 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
1868 default hook implementation from hook_constcharptr_const_rtx_null
1869 to hook_constcharptr_const_rtx_insn_null.
1871 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
1872 from rtx to rtx_insn *.
1873 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
1874 (sh_variable_issue): Likewise for param "insn".
1875 (sh_dfa_new_cycle): Likewise.
1876 (sh_mode_needed): Likewise.
1877 (sh_mode_after): Likewise.
1879 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
1880 params "insn", "dep_insn".
1881 (hypersparc_adjust_cost): Likewise.
1882 (sparc_adjust_cost): Likewise.
1884 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
1885 param, eliminated checked cast.
1886 (spu_sched_adjust_cost): Likewise for first and third params.
1888 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
1889 params "insn" and "dep_insn" from rtx to rtx_insn *.
1891 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
1893 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1895 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
1896 (set_is_load_p): ...this, updating to work on a SET pattern rather
1898 (is_store_insn): Rename to...
1899 (set_is_store_p): ...this, updating to work on a SET pattern
1900 rather than an insn.
1901 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
1902 top of function to where it is needed. Rewrite the bogus
1903 condition that checks for "insn" and "dep" being PARALLEL to
1904 instead use single_set, introducing locals "insn_set" and
1905 "dep_set". Given that we only ever returned "cost" for a non-pair
1906 of SETs, bail out early if we don't have a pair of SET.
1907 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
1908 use the new locals "insn_set" and "dep_set", and update calls to
1909 is_load_insn and is_store_insn to be calls to set_is_load_p and
1912 2014-08-27 Guozhi Wei <carrot@google.com>
1915 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
1916 amount before using it.
1918 2014-08-27 Richard Biener <rguenther@suse.de>
1920 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
1921 get_maxval_strlen inside a more useful API.
1922 (gimple_fold_builtin_with_strlen): Remove and fold into ...
1923 (gimple_fold_builtin): ... caller.
1924 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
1925 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
1926 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
1927 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
1928 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
1929 gimple_fold_builtin_sprintf): Adjust to compute maxval
1932 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
1935 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
1937 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1938 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1939 Anna Tikhonova <anna.tikhonova@intel.com>
1940 Ilya Tocar <ilya.tocar@intel.com>
1941 Andrey Turetskiy <andrey.turetskiy@intel.com>
1942 Ilya Verbin <ilya.verbin@intel.com>
1943 Kirill Yukhin <kirill.yukhin@intel.com>
1944 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1946 * config/i386/sse.md
1947 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
1948 Use `concat_tg_mode' attribute to determine asm register size.
1950 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1951 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1952 Anna Tikhonova <anna.tikhonova@intel.com>
1953 Ilya Tocar <ilya.tocar@intel.com>
1954 Andrey Turetskiy <andrey.turetskiy@intel.com>
1955 Ilya Verbin <ilya.verbin@intel.com>
1956 Kirill Yukhin <kirill.yukhin@intel.com>
1957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1959 * config/i386/sse.md
1960 (define_mode_iterator VI48_AVX512VL): New.
1961 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
1962 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
1963 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
1964 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1965 with VI1): Change mode iterator.
1966 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1967 with VI_ULOADSTORE_BW_AVX512VL): New.
1968 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1969 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1970 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1971 with VI1): Change mode iterator.
1972 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1973 with VI_ULOADSTORE_BW_AVX512VL): New.
1974 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1975 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1976 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1977 with VI1): Change mode iterator.
1978 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1979 with VI_ULOADSTORE_BW_AVX512VL): New.
1980 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1981 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
1982 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
1983 (define_insn "<avx512>_storedqu<mode>_mask" with
1984 VI48_AVX512VL): New.
1985 (define_insn "<avx512>_storedqu<mode>_mask" with
1986 VI12_AVX512VL): Ditto.
1988 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1990 Anna Tikhonova <anna.tikhonova@intel.com>
1991 Ilya Tocar <ilya.tocar@intel.com>
1992 Andrey Turetskiy <andrey.turetskiy@intel.com>
1993 Ilya Verbin <ilya.verbin@intel.com>
1994 Kirill Yukhin <kirill.yukhin@intel.com>
1995 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1997 * config/i386/sse.md
1998 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
1999 (define_mode_iterator VI48_AVX512BW): New.
2000 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2001 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2002 with VI48_AVX2_48_AVX512F): New.
2003 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2004 with VI2_AVX512VL): Ditto.
2006 2014-08-27 Richard Biener <rguenther@suse.de>
2009 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2010 (fold_builtin_3): Do not fold strcat_chk here.
2011 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2013 (gimple_fold_builtin): Fold strcat_chk here.
2015 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
2017 * dwarf2out.h (dwarf2out_decl): Remove prototype.
2018 * dwarf2out.c (dwarf2out_decl): Make static.
2020 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
2022 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2024 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2026 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2027 from rtx to rtx_insn *.
2028 (cselib_lookup_from_insn): Likewise for final param.
2029 (cselib_subst_to_values_from_insn): Likewise.
2030 (cselib_add_permanent_equiv): Likewise.
2032 * cselib.c (cselib_current_insn): Likewise for this variable.
2033 (cselib_subst_to_values_from_insn): Likewise for param "insn".
2034 (cselib_lookup_from_insn): Likewise.
2035 (cselib_add_permanent_equiv): Likewise for param "insn" and local
2036 "save_cselib_current_insn".
2037 (cselib_process_insn): Replace use of NULL_RTX with NULL.
2039 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2040 from rtx to rtx_insn *.
2042 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2044 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2047 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2049 * df.h (df_dump_insn_problem_function): Strengthen first param of
2050 this callback from const_rtx to const rtx_insn *.
2051 (struct df_insn_info): Strengthen field "insn" from rtx to
2053 (DF_REF_INSN): Eliminate this function, reinstating the older
2055 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2056 (df_reg_defined): Likewise.
2057 (df_find_use): Likewise.
2058 (df_reg_used): Likewise.
2059 (df_dump_insn_top): Strengthen param 1 from const_rtx to
2061 (df_dump_insn_bottom): Likewise.
2062 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2063 (df_insn_debug_regno): Likewise.
2064 (debug_df_insn): Likewise.
2065 (df_rd_simulate_one_insn): Likewise for param 2.
2066 (df_word_lr_simulate_defs): Likewise for param 1.
2067 (df_word_lr_simulate_uses): Likewise.
2068 (df_md_simulate_one_insn): Likewise for param 2.
2069 (df_simulate_find_noclobber_defs): Likewise for param 1.
2070 (df_simulate_find_defs): Likewise.
2071 (df_simulate_defs): Likewise.
2072 (df_simulate_uses): Likewise.
2073 (df_simulate_one_insn_backwards): Likewise for param 2.
2074 (df_simulate_one_insn_forwards): Likewise.
2075 (df_uses_create): Likewise for param 2.
2076 (df_insn_create_insn_record): Likewise for param 1.
2077 (df_insn_delete): Likewise.
2078 (df_insn_rescan): Likewise.
2079 (df_insn_rescan_debug_internal): Likewise.
2080 (df_insn_change_bb): Likewise.
2081 (df_notes_rescan): Likewise.
2082 * rtl.h (remove_death): Likewise for param 2.
2083 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
2085 * sched-int.h (reemit_notes): Strengthen param from rtx to
2087 * valtrack.h (propagate_for_debug): Likewise for param 1.
2089 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
2090 local "tmp_rtx" from const_rtx to const rtx_insn *.
2091 * combine.c (remove_death): Strengthen param "insn" from rtx to
2093 (move_deaths): Likewise for local "where_dead".
2094 * cse.c (delete_trivially_dead_insns): Introduce local
2095 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
2096 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
2098 (df_reg_defined): Likewise.
2099 (df_find_use): Likewise.
2100 (df_reg_used): Likewise.
2101 (df_dump_insn_problem_data): Strengthen param "insn" from
2102 const_rtx to const rtx_insn *.
2103 (df_dump_insn_top): Likewise.
2104 (df_dump_insn_bottom): Likewise.
2105 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
2106 (df_insn_debug_regno): Likewise.
2107 (debug_df_insn): Likewise.
2108 (DF_REF_INSN): Delete.
2109 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
2110 from rtx to rtx_insn *.
2111 (df_chain_insn_top_dump): Strengthen param "insn" from
2112 const_rtx to const rtx_insn *.
2113 (df_chain_insn_bottom_dump): Likewise.
2114 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
2116 (df_word_lr_simulate_uses): Likewise.
2117 (df_print_note): Likewise.
2118 (df_remove_dead_and_unused_notes): Likewise.
2119 (df_set_unused_notes_for_mw): Likewise.
2120 (df_set_dead_notes_for_mw): Likewise.
2121 (df_create_unused_note): Likewise.
2122 (df_simulate_find_defs): Likewise.
2123 (df_simulate_find_uses): Likewise.
2124 (df_simulate_find_noclobber_defs): Likewise.
2125 (df_simulate_defs): Likewise.
2126 (df_simulate_uses): Likewise.
2127 (df_simulate_one_insn_backwards): Likewise.
2128 (df_simulate_one_insn_forwards): Likewise.
2129 (df_md_simulate_one_insn): Likewise.
2130 * df-scan.c (df_uses_create): Likewise.
2131 (df_insn_create_insn_record): Likewise.
2132 (df_insn_delete): Likewise.
2133 (df_insn_rescan): Likewise.
2134 (df_insn_rescan_debug_internal): Likewise.
2135 (df_insn_change_bb): Likewise.
2136 (df_notes_rescan): Likewise.
2137 (df_refs_add_to_chains): Likewise.
2138 (df_insn_refs_verify): Likewise.
2139 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
2140 when invoking df_insn_delete.
2141 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
2142 (set_unique_reg_note): Add checked cast.
2143 * final.c (cleanup_subreg_operands): Likewise.
2144 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
2145 "insn" from rtx to rtx_insn *.
2146 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
2147 "last" from rtx to rtx_insn *.
2148 * ira-emit.c (change_regs_in_insn): New function.
2149 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
2150 Invoke change_regs_in_insn rather than change_regs.
2151 * ira.c (update_equiv_regs): Strengthen locals "insn",
2152 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
2153 for_each_rtx_in_insn rather than for_each_rtx.
2154 * recog.c (confirm_change_group): Add checked casts.
2155 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
2157 (peep2_fill_buffer): Add checked cast.
2158 * rtlanal.c (remove_note): Likewise.
2159 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
2160 locals "next" "end" from rtx to rtx_insn *.
2162 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2164 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
2166 (struct reg_use_data): Likewise for field "insn".
2167 (insn_cost): Likewise for param.
2168 (real_insn_for_shadow): Likewise for return type and param.
2169 (increase_insn_priority): Likewise for param 1.
2170 (debug_dependencies): Likewise for both params.
2172 * haifa-sched.c (insn_delay): Likewise for param "insn".
2173 (real_insn_for_shadow): Likewise for return type and param "insn".
2174 (update_insn_after_change): Likewise for param "insn".
2175 (recompute_todo_spec): Likewise for param "next" and locals "pro",
2177 (insn_cost): Likewise for param "insn".
2178 (increase_insn_priority): Likewise.
2179 (calculate_reg_deaths): Likewise.
2180 (setup_insn_reg_pressure_info): Likewise.
2181 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
2182 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
2183 (model_recompute): Likewise.
2184 (must_restore_pattern_p): Likewise for param "next".
2185 (model_excess_cost): Likewise for param "insn".
2186 (queue_remove): Likewise.
2187 (adjust_priority): Likewise for param "prev".
2188 (update_register_pressure): Likewise for param "insn".
2189 (setup_insn_max_reg_pressure): Likewise for local "insn".
2190 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
2191 (model_add_to_schedule): Likewise.
2192 (model_reset_queue_indices): Likewise for local "insn".
2193 (unschedule_insns_until): Strengthen local "recompute_vec" from
2194 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
2195 "con" from rtx to rtx_insn *.
2196 (restore_last_backtrack_point): Likewise for both locals "x". Add
2198 (estimate_insn_tick): Likewise for param "insn".
2199 (commit_schedule): Likewise for params "prev_head", "tail" and
2201 (verify_shadows): Likewise for locals "i1", "i2".
2202 (dump_insn_stream): Likewise for params "head", "tail" and locals
2203 "next_tail", "insn".
2204 (schedule_block): Likewise for locals "insn", "x". Add a checked
2206 (fix_inter_tick): Likewise for params "head", "tail".
2207 (create_check_block_twin): Likewise for local "jump".
2208 (haifa_change_pattern): Likewise for param "insn".
2209 (haifa_speculate_insn): Likewise.
2210 (dump_new_block_header): Likewise for params "head", "tail".
2211 (fix_jump_move): Likewise for param "jump".
2212 (move_block_after_check): Likewise.
2213 (sched_init_insn_luid): Likewise for param "insn".
2214 (sched_init_luids): Likewise for local "insn".
2215 (insn_luid): Likewise for param "insn".
2216 (init_h_i_d): Likewise.
2217 (haifa_init_h_i_d): Likewise for local "insn".
2218 (haifa_init_insn): Likewise for param "insn".
2219 * sched-deps.c (add_dependence): Likewise for local "real_pro",
2221 (create_insn_reg_use): Likewise for param "insn".
2222 (setup_insn_reg_uses): Likewise. Add a checked cast.
2223 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
2224 "tail" from rtx to rtx_insn *.
2225 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
2226 "insn", "next_tail".
2228 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2230 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
2231 from rtx to rtx_insn *.
2232 (model_add_to_schedule): Likewise for locals "start", "end",
2235 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2237 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
2239 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
2240 "to" and locals "insn", "next", "copy". Remove now-redundant
2243 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2245 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
2246 rtx_insn * and param 4 from rtx * to rtx_insn **.
2247 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
2248 param 2 from rtx * to rtx_insn **.
2250 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
2251 rtx_insn * and final param from rtx * to rtx_insn **.
2253 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
2254 from rtx to rtx_insn *.
2255 (try_head_merge_bb): Likewise for both locals named "move_upto".
2256 * df-problems.c (can_move_insns_across): Likewise for params
2257 "from", "to", "across_from", "across_to" and locals "insn",
2258 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
2260 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
2261 from rtx to rtx_insn *.
2262 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
2263 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
2264 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
2266 (noce_try_abs): Likewise.
2267 (noce_get_condition): Likewise for param "jump". Strengthen param
2268 "earliest" from rtx * to rtx_insn **.
2269 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
2271 (find_cond_trap): Likewise.
2272 (dead_or_predicable): Likewise for local "earliest".
2273 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
2275 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
2276 and local "prev". Strengthen param "earliest" from rtx * to
2278 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
2279 Strengthen param "earliest" from rtx * to rtx_insn **.
2281 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2283 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
2284 "to" and local "insn" from rtx to rtx_insn *.
2286 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2288 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
2289 from rtx to rtx_insn *.
2290 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
2291 (code_motion_path_driver): Likewise for local "last_insn".
2292 (simplify_changed_insns): Likewise for local "insn".
2294 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2296 * rtl.h (push_to_sequence): Strengthen param from rtx to
2298 (push_to_sequence2): Likewise for both params.
2299 (delete_insns_since): Likewise for param.
2300 (reorder_insns_nobb): Likewise for all three params.
2301 (set_new_first_and_last_insn): Likewise for both params.
2303 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
2304 rtx_insn *. Remove now-redundant cast.
2305 (set_last_insn): Likewise.
2307 * builtins.c (expand_builtin_return): Strengthen local
2308 "call_fusage" from rtx to rtx_insn *.
2309 * cfgrtl.c (create_basic_block_structure): Likewise for local
2311 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
2312 "first", "last" and local "insn".
2313 (delete_insns_since): Likewise for param "from".
2314 (reorder_insns_nobb): Likewise for params "from", "to", "after"
2316 (push_to_sequence): Likewise for param "first" and local "last".
2317 (push_to_sequence2): Likewise for params "first" and "last".
2318 * lra.c (emit_add3_insn): Likewise for local "last".
2319 (lra_emit_add): Likewise.
2320 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
2322 (process_address_1): Likewise for locals "insn", last".
2323 * modulo-sched.c (ps_first_note): Likewise for return type.
2324 * optabs.c (expand_binop_directly): Likewise for param "last".
2326 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2328 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
2330 * emit-rtl.c (get_last_insn_anywhere): Likewise.
2332 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2334 * function.h (struct sequence_stack): Strengthen fields "first"
2335 and "last" from rtx to rtx_insn *.
2336 (struct emit_status): Likewise for fields "x_first_insn" and
2339 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
2340 (set_first_insn): Add checked cast.
2341 (get_last_insn): Remove now-redundant checked cast.
2342 (set_last_insn): Add checked cast.
2344 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
2345 "saved_first" and "saved_last" from rtx to rtx_insn *.
2347 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2349 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
2350 (unlink_insn_chain): Strengthen both params from rtx to
2353 * cfgrtl.c (cfg_layout_function_header): Likewise for this
2355 (unlink_insn_chain): Likewise for params "first" and "last".
2356 Remove now-redundant checked cast.
2357 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
2358 (fixup_reorder_chain): Strengthen local "insn" from rtx to
2360 * emit-rtl.c (link_insn_into_chain): Likewise for all three
2362 (add_insn): Likewise for param "insn" and local "prev".
2363 (add_insn_after_nobb): Likewise for both params and local "next".
2364 (add_insn_before_nobb): Likewise for both params and local "prev".
2365 (add_insn_after): Rename param "after" to "uncast_after",
2366 introducing local "after" with another checked cast.
2367 (add_insn_before): Rename params "insn" and "before", giving them
2368 "uncast_" prefixes, adding the old names back using checked casts.
2369 (emit_note_after): Likewise for param "after".
2370 (emit_note_before): Likewise for param "before".
2371 (emit_label): Add a checked cast.
2373 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2375 * cselib.h (cselib_record_sets_hook): Strengthen initial param
2376 "insn" from rtx to rtx_insn *.
2378 * cselib.c (cselib_record_sets_hook): Likewise.
2380 * var-tracking.c (add_with_sets): Likewise, renaming back from
2381 "uncast_insn" to "insn" and eliminating the checked cast from rtx
2384 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2386 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
2387 and "header_" from rtx to rtx_insn *.
2388 (struct basic_block_d): Likewise for field "head_" within "x"
2389 field of union basic_block_il_dependent.
2390 (BB_HEAD): Drop function...
2391 (SET_BB_HEAD): ...and this function in favor of...
2392 (BB_HEAD): ...reinstate macro.
2393 (BB_END): Drop function...
2394 (SET_BB_END): ...and this function in favor of...
2395 (BB_END): ...reinstate macro.
2396 (BB_HEADER): Drop function...
2397 (SET_BB_HEADER): ...and this function in favor of...
2398 (BB_HEADER): ...reinstate macro.
2400 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
2401 (fix_crossing_unconditional_branches): Likewise.
2402 * caller-save.c (save_call_clobbered_regs): Likewise.
2403 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
2404 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
2405 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2406 (merge_blocks_move_successor_nojumps): Likewise.
2407 (outgoing_edges_match): Update use of for_each_rtx to
2408 for_each_rtx_in_insn.
2409 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
2410 (expand_gimple_cond): Likewise.
2411 (expand_gimple_tailcall): Likewise.
2412 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
2414 (construct_exit_block): Drop use of SET_BB_END.
2415 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
2417 (delete_insn): Rename param "insn" to "uncast_insn", introducing
2418 a new local "insn" with a checked cast to rtx_insn *. Drop use of
2419 SET_BB_HEAD and SET_BB_END.
2420 (create_basic_block_structure): Drop use of SET_BB_HEAD and
2422 (rtl_delete_block): Drop use of SET_BB_HEAD.
2423 (rtl_split_block): Drop use of SET_BB_END.
2424 (emit_nop_for_unique_locus_between): Likewise.
2425 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
2426 (block_label): Drop use of SET_BB_HEAD.
2427 (fixup_abnormal_edges): Drop use of SET_BB_END.
2428 (record_effective_endpoints): Drop use of SET_BB_HEADER.
2429 (relink_block_chain): Likewise.
2430 (fixup_reorder_chain): Drop use of SET_BB_END.
2431 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
2432 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
2433 rtx_insn **. Drop use of SET_BB_HEADER.
2434 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
2436 (BB_HEAD): Delete this function.
2437 (SET_BB_HEAD): Likewise.
2439 (SET_BB_END): Likewise.
2440 (BB_HEADER): Likewise.
2441 (SET_BB_HEADER): Likewise.
2442 * emit-rtl.c (add_insn_after): Rename param "insn" to
2443 "uncast_insn", adding a new local "insn" and a checked cast to
2444 rtx_insn *. Drop use of SET_BB_END.
2445 (remove_insn): Strengthen locals "next" and "prev" from rtx to
2446 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
2447 (reorder_insns): Drop use of SET_BB_END.
2448 (emit_insn_after_1): Strengthen param "first" and locals "last",
2449 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
2450 (emit_pattern_after_noloc): Add checked cast.
2451 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
2452 (restore_other_notes): Likewise.
2453 (move_insn): Likewise.
2454 (sched_extend_bb): Likewise.
2455 (fix_jump_move): Likewise.
2456 * ifcvt.c (noce_process_if_block): Likewise.
2457 (dead_or_predicable): Likewise.
2458 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
2459 * reg-stack.c (change_stack): Drop use of SET_BB_END.
2460 * sel-sched-ir.c (sel_move_insn): Likewise.
2461 * sel-sched.c (move_nop_to_previous_block): Likewise.
2463 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
2465 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2467 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2469 * basic-block.h (create_basic_block_structure): Strengthen params
2470 1 "head" and 2 "end" from rtx to rtx_insn *.
2471 * cfgrtl.c (create_basic_block_structure): Likewise.
2472 (rtl_create_basic_block): Update casts from void * to rtx to
2473 rtx_insn *, so that we can pass them as rtx_insn * to
2474 create_basic_block_structure.
2475 * sel-sched-ir.c (sel_create_basic_block): Likewise.
2477 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2479 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
2481 (check_for_inc_dec): Strengthen param "insn" from rtx to
2484 * cselib.h (cselib_process_insn): Likewise.
2486 * cselib.c (cselib_record_sets): Likewise.
2487 (cselib_process_insn): Likewise.
2489 * dse.c (struct insn_info): Likewise for field "insn".
2490 (check_for_inc_dec_1): Likewise for local "insn".
2491 (check_for_inc_dec): Likewise for param "insn".
2492 (scan_insn): Likewise.
2493 (dse_step1): Likewise for local "insn".
2495 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
2496 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
2498 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2500 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
2501 from rtx to rtx_insn *.
2502 (DEP_PRO): Delete this function and...
2503 (SET_DEP_PRO): ...this function in favor of...
2504 (DEP_PRO): ...reinstate this macro.
2505 (DEP_CON): Delete this function and...
2506 (SET_DEP_CON): ...this function in favor of...
2507 (DEP_CON): ...reinstate this old macro.
2508 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
2509 (init_dep): Likewise.
2510 (set_priorities): Likewise for both params.
2511 (sd_copy_back_deps): Likewise for params 1 and 2.
2513 * haifa-sched.c (priority): Likewise for param "insn" and local
2515 (set_priorities): Likewise for params "head" and "tail" and local
2517 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
2519 (add_to_speculative_block): Add a checked cast.
2520 (create_check_block_twin): Drop use of SET_DEP_CON.
2521 (add_jump_dependencies): Strengthen params "insn" and "jump" from
2524 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
2525 Drop use of SET_DEP_PRO
2526 (init_dep): Strengthen params "pro" and "con" from rtx to
2528 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
2532 (SET_DEP_PRO): Delete.
2533 (SET_DEP_CON): Delete.
2535 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2537 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
2538 from rtx to rtx_insn *.
2539 (VINSN_INSN_RTX): Eliminate rvalue function and...
2540 (SET_VINSN_INSN): ...lvalue function in favor of...
2541 (VINSN_INSN_RTX): reinstate this old macro.
2543 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
2544 in favor of VINSN_INSN_RTX.
2545 (VINSN_INSN_RTX): Delete this function.
2546 (SET_VINSN_INSN_RTX): Likewise.
2548 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2550 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
2551 (BND_TO): Delete this function and...
2552 (SET_BND_TO): ...this functions in favor of...
2553 (BND_TO): ...reinstating this macro.
2554 (struct _fence): Strengthen field "executing_insns" from
2555 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
2556 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
2557 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
2558 and param "insn" from rtx to insn_t.
2559 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
2562 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
2564 (rtx_vec_t): Likewise.
2565 (struct sched_deps_info_def): Strengthen param of "start_insn"
2566 callback from rtx to rtx_insn *. Likewise for param "insn2" of
2567 "note_mem_dep" callback and first param of "note_dep" callback.
2569 * haifa-sched.c (add_to_speculative_block): Strengthen param
2570 "insn" from rtx to rtx_insn *.
2571 (clear_priorities): Likewise.
2572 (calc_priorities): Likewise for local "insn".
2574 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
2575 Remove redundant checked cast.
2576 (haifa_note_mem_dep): Likewise for param "pending_insn".
2577 (haifa_note_dep): Likewise for param "elem".
2578 (note_mem_dep): Likewise for param "e".
2579 (sched_analyze_1): Add checked casts.
2580 (sched_analyze_2): Likewise.
2582 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
2583 from rtx to rtx_insn *.
2584 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
2585 from vec<rtx> * to vec<rtx_insn *> *.
2587 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
2589 (flist_add): Strengthen param "executing_insns" from
2590 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2591 (advance_deps_context): Remove now-redundant checked cast.
2592 (init_fences): Replace uses of NULL_RTX with NULL.
2593 (merge_fences): Strengthen params "last_scheduled_insn" and
2594 "sched_next" from rtx to rtx_insn * and "executing_insns" from
2595 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2596 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
2597 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
2598 an instruction, rather than doing double-duty as a pattern.
2599 (return_nop_to_pool): Update for change of insn_t.
2600 (deps_init_id): Remove now-redundant checked cast.
2601 (struct sched_scan_info_def): Strengthen param of "init_insn"
2602 callback from rtx to insn_t.
2603 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
2604 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
2606 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
2607 "end" from rtx to rtx_insn *.
2608 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
2609 (rtx insn_rtx, bool force_unique_p)
2610 (BND_TO): Delete function.
2611 (SET_BND_TO): Delete function.
2613 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
2615 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
2616 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
2618 (undo_transformations): Likewise for param "insn".
2619 (update_liveness_on_insn): Likewise.
2620 (compute_live_below_insn): Likewise for param "insn" and local
2622 (update_data_sets): Likewise for param "insn".
2623 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
2624 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
2625 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
2627 (move_cond_jump): Likewise for param "insn".
2628 (move_cond_jump): Drop use of SET_BND_TO.
2629 (compute_av_set_on_boundaries): Likewise.
2630 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
2631 (update_and_record_unavailable_insns): Strengthen local "bb_end"
2632 from rtx to rtx_insn *.
2633 (maybe_emit_renaming_copy): Likewise for param "insn".
2634 (maybe_emit_speculative_check): Likewise.
2635 (handle_emitting_transformations): Likewise.
2636 (remove_insn_from_stream): Likewise.
2637 (code_motion_process_successors): Strengthen local "succ" from rtx
2640 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2642 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
2643 ilist_t, not _xlist_t;
2644 (ILIST_INSN): Define in terms of new union field "insn".
2645 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
2647 (struct _list_node): Add new field "insn" to the union, of type
2649 (ilist_add): Replace macro with an inline function, requiring an
2651 (ilist_remove): Define this macro directly in terms of
2652 _list_remove, rather than indirectly via _xlist_remove.
2653 (ilist_clear): Likewise, in terms of _list_clear rather than
2655 (ilist_is_in_p): Replace macro with an inline function, requiring
2657 (_list_iter_cond_insn): New function.
2658 (ilist_iter_remove): Define this macro directly in terms of
2659 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
2660 (ilist_iterator): Define directly in terms of _list_iterator
2661 rather than indirectly through _xlist_iterator.
2662 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
2663 than in terms of _FOR_EACH_X.
2664 (FOR_EACH_INSN_1): Likewise.
2666 2014-08-26 Joseph Myers <joseph@codesourcery.com>
2670 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
2671 DECL_HARD_REGISTER and return for invalid register specifications.
2672 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
2673 DECL_HARD_REGISTER, call expand_one_error_var.
2674 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
2675 CC_REGNUM with non-MODE_CC modes.
2676 (arm_regno_class): Return NO_REGS for PC_REGNUM.
2678 2014-08-26 Marek Polacek <polacek@redhat.com>
2681 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
2683 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
2685 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
2686 qi cost; add di cost.
2687 (cortexa57_addrcost_table): Likewise.
2689 2014-08-26 Marek Polacek <polacek@redhat.com>
2692 * expr.c (is_aligning_offset): Remove logical not.
2694 2014-08-26 Marek Polacek <polacek@redhat.com>
2697 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
2698 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
2700 2014-08-26 Richard Biener <rguenther@suse.de>
2702 PR tree-optimization/62175
2703 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2704 expand possibly trapping operations.
2706 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2708 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
2709 "insn" from rtx to rtx_insn *.
2710 (permute_load): Likewise for param "insn".
2711 (permute_store): Likewise.
2712 (handle_special_swappables): Likewise for local "insn".
2713 (replace_swap_with_copy): Likewise for locals "insn" and
2715 (rs6000_analyze_swaps): Likewise for local "insn".
2717 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2719 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
2722 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2724 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
2725 "note_list" from rtx to rtx_insn *.
2726 (BB_NOTE_LIST): Replace this function and...
2727 (SET_BB_NOTE_LIST): ...this function with...
2728 (BB_NOTE_LIST): ...the former macro implementation.
2730 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
2731 local "from_start" from rtx to rtx_insn *. Strengthen param
2732 "to_endp" from rtx * to rtx_insn **.
2734 * haifa-sched.c (concat_note_lists): Likewise.
2735 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
2737 (sel_restore_notes): Likewise.
2738 (move_bb_info): Likewise.
2739 (BB_NOTE_LIST): Delete this function.
2740 (SET_BB_NOTE_LIST): Delete this function.
2741 * sel-sched.c (create_block_for_bookkeeping): Eliminate
2742 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
2744 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2746 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
2747 from rtx * to rtx_insn **.
2748 (reorder2): Likewise.
2749 (dependencies_evaluation_hook): Strengthen params "head", "tail"
2750 from rtx to rtx_insn *.
2752 * doc/tm.texi: Update mechanically for above change to target.def.
2754 * sched-int.h (note_list): Strengthen this variable from rtx to
2756 (remove_notes): Likewise for both params.
2757 (restore_other_notes): Likewise for return type and first param.
2758 (struct ready_list): Strengthen field "vec" from rtx * to
2760 (struct dep_replacement): Strenghten field "insn" from rtx to
2762 (struct deps_desc): Likewise for fields "last_debug_insn",
2764 (struct haifa_sched_info): Likewise for callback field
2765 "can_schedule_ready_p"'s param, for first param of "new_ready"
2766 callback field, for both params of "rank" callback field, for
2767 first field of "print_insn" callback field (with a const), for
2768 both params of "contributes_to_priority" callback, for param
2769 of "insn_finishes_block_p" callback, for fields "prev_head",
2770 "next_tail", "head", "tail", for first param of "add_remove_insn"
2771 callback, for first param of "begin_schedule_ready" callback, for
2772 both params of "begin_move_insn" callback, and for second param
2773 of "advance_target_bb" callback.
2774 (add_dependence): Likewise for params 1 and 2.
2775 (sched_analyze): Likewise for params 2 and 3.
2776 (deps_analyze_insn): Likewise for param 2.
2777 (ready_element): Likewise for return type.
2778 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2779 (try_ready): Strenghten param from rtx to rtx_insn *.
2780 (sched_emit_insn): Likewise for return type.
2781 (record_delay_slot_pair): Likewise for params 1 and 2.
2782 (add_delay_dependencies): Likewise for param.
2783 (contributes_to_priority): Likewise for both params.
2784 (find_modifiable_mems): Likewise.
2786 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
2787 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
2788 "first_older_only_insn" from rtx to rtx_insn *.
2789 (arm_sched_reorder): Strengthen param "ready" from rtx * to
2792 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
2793 "last_scheduled_iter0" from rtx to rtx_insn *.
2794 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
2795 (c6x_sched_reorder_1): Strengthen param "ready" and locals
2796 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
2797 "insn" from rtx to rtx_insn *.
2798 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
2800 (c6x_sched_reorder2): Strengthen param "ready" and locals
2801 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
2802 "insn" from rtx to rtx_insn *.
2803 (c6x_variable_issue): Add a checked cast when assigning from insn
2804 to ss.last_scheduled_iter0.
2805 (split_delayed_branch): Strengthen param "insn" and local "i1"
2806 from rtx to rtx_insn *.
2807 (split_delayed_nonbranch): Likewise.
2808 (undo_split_delayed_nonbranch): Likewise for local "insn".
2809 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
2810 "entry_after", "end_packet", "head_insn", "tail_insn",
2811 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
2812 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
2813 to rtx_insn **. Remove now-redundant checked cast on last_insn,
2814 but add a checked cast on loop->start_label. Consolidate calls to
2815 avoid assigning result of gen_spkernel to "insn", now an
2818 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
2819 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
2821 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
2822 rtx_insn **. Strengthen locals "top", "next" from rtx to
2824 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
2825 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
2826 (add_parameter_dependencies): Strengthen params "call", "head" and
2827 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
2828 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
2829 (add_dependee_for_func_arg): Likewise for param "arg" and local
2831 (ix86_dependencies_evaluation_hook): Likewise for params "head",
2832 "tail" and locals "insn", "first_arg".
2834 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
2835 for params "head", "tail" and locals "insn", "next", "next_tail".
2836 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
2837 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
2838 "insn", "lowest", "highest" from rtx to rtx_insn *.
2839 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
2841 (ia64_sched_reorder2): Likewise.
2843 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
2844 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
2845 from rtx * to rtx_insn **.
2846 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
2848 (mep_print_sched_insn): Strengthen param "insn" from rtx to
2850 (mep_sched_reorder): Strengthen param "ready" from rtx * to
2851 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
2854 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
2855 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
2857 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
2858 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
2859 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
2861 (vr4130_reorder): Likewise.
2862 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
2864 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
2866 (mips_sched_reorder): Likewise.
2867 (mips_sched_reorder2): Likewise.
2869 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
2871 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
2872 Strengthen local "tmp" from rtx to rtx_insn *.
2873 (rs6000_sched_reorder2): Likewise.
2875 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
2876 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
2877 (s390_sched_reorder): Strengthen param "ready" from rtx * to
2878 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
2880 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
2881 "tmp2" from rtx to rtx_insn *.
2882 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
2883 Strengthen local "insn" from rtx to rtx_insn *.
2884 (ready_reorder): Strengthen param "ready" from rtx * to
2885 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
2886 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
2887 (sh_reorder2): Likewise.
2889 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
2890 local "insn" from rtx to rtx_insn *.
2892 * haifa-sched.c (note_list): Strengthen this variable from rtx to
2894 (scheduled_insns): Strengthen this variable from vec<rtx> to
2896 (set_modulo_params): Likewise for locals "i1", "i2".
2897 (record_delay_slot_pair): Likewise for params "i1", "i2".
2898 (add_delay_dependencies): Likewise for param "insn".
2899 (cond_clobbered_p): Likewise.
2900 (recompute_todo_spec): Likewise for local "prev".
2901 (last_scheduled_insn): Likewise for this variable.
2902 (nonscheduled_insns_begin): Likewise.
2903 (model_set_excess_costs): Strengthen param "insns" from rtx * to
2905 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
2907 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
2908 Strengthen local "insn" from rtx to rtx_insn *.
2909 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
2910 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2911 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
2912 (ready_remove_first): Likewise for return type and local "t".
2913 (ready_element): Likewise for return type.
2914 (ready_remove): Likewise for return type and local "t".
2915 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
2916 (check_clobbered_conditions): Strengthen local "x" from rtx to
2917 rtx_insn *, adding a checked cast.
2918 (schedule_insn): Likewise for param "insn".
2919 (remove_notes): Likewise for params "head", "tail" and locals
2920 "next_tail", "insn", "next".
2921 (struct haifa_saved_data): Likewise for fields
2922 "last_scheduled_insn", "nonscheduled_insns_begin".
2923 (save_backtrack_point): Update for change to field "vec" of
2925 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
2927 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
2928 from rtx to rtx_insn *
2929 (resolve_dependencies): Strengthen param "insn" from rtx to
2931 (restore_other_notes): Likewise for return type, for param "head"
2932 and local "note_head".
2933 (undo_all_replacements): Likewise for local "insn".
2934 (first_nonscheduled_insn): Likewise for return type and local "insn".
2935 (queue_to_ready): Likewise for local "insn", adding checked casts.
2936 (early_queue_to_ready): Likewise for local "insn".
2937 (debug_ready_list_1): Strengthen local "p" from rtx * to
2939 (move_insn): Strengthen param "insn" and local "note" from rtx to
2941 (insn_finishes_cycle_p): Likewise for param "insn".
2942 (max_issue): Likewise for local "insn".
2943 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
2945 (commit_schedule): Strengthen param "prev_head" and local "insn"
2946 from rtx to rtx_insn *
2947 (prune_ready_list): Likewise for local "insn".
2948 (schedule_block): Likewise for locals "prev_head", "head", "tail",
2949 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
2950 (set_priorities): Likewise for local "prev_head".
2951 (try_ready): Likewise for param "next".
2952 (fix_tick_ready): Likewise.
2953 (change_queue_index): Likewise.
2954 (sched_extend_ready_list): Update for change to field "vec" of
2956 (generate_recovery_code): Strengthen param "insn" from rtx to
2958 (begin_speculative_block): Likewise.
2959 (create_check_block_twin): Likewise for param "insn" and locals
2960 "label", "check", "twin". Introduce local "check_pat" to avoid
2961 "check" being used as a plain rtx before being used as an insn.
2962 (fix_recovery_deps): Add a checked cast to rtx_insn * when
2963 extracting elements from ready_list.
2964 (sched_remove_insn): Strengthen param "insn" from rtx to
2966 (sched_emit_insn): Likewise for return type.
2967 (ready_remove_first_dispatch): Likewise for return type and local
2970 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
2972 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
2975 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
2976 from rtx to rtx_insn *.
2977 (add_dependence_list): Likewise for param "insn". Add a checked
2979 (add_dependence_list_and_free): Strengthen param "insn" from rtx
2980 to rtx_insn *. Strengthen param "list_p" from rtx * to
2982 (chain_to_prev_insn): Strengthen param "insn" and locals
2983 "prec_nonnote", "i" from rtx to rtx_insn *.
2984 (flush_pending_lists): Likewise for param "insn".
2985 (cur_insn): Likewise for this variable.
2986 (haifa_start_insn): Add a checked cast.
2987 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
2988 (sched_analyze_reg): Likewise for param "insn".
2989 (sched_analyze_1): Likewise.
2990 (sched_analyze_2): Likewise. Add checked casts.
2991 (sched_analyze_insn): Likewise. Also for local "prev".
2992 (deps_analyze_insn): Likewise for param "insn".
2993 (sched_analyze): Likewise for params "head", "tail" and local "insn".
2994 (add_dependence_1): Likewise for params "insn", "elem".
2995 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
2996 (parse_add_or_inc): Likewise for param "insn".
2997 (find_inc): Likewise for local "inc_cand".
2998 (find_modifiable_mems): Likewise for params "head", "tail" and
2999 locals "insn", "next_tail".
3001 * sched-ebb.c (init_ready_list): Likewise for local "insn".
3002 (begin_schedule_ready): Likewise for param "insn".
3003 (begin_move_insn): Likewise for params "insn" and "last".
3004 (ebb_print_insn): Strengthen param "insn" from const_rtx to
3006 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3007 (ebb_contributes_to_priority): Likewise for params "next", "insn".
3008 (ebb_add_remove_insn): Likewise for param "insn".
3009 (advance_target_bb): Likewise.
3011 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3013 (check_live): Likewise for param "insn".
3014 (init_ready_list): Likewise for local "insn".
3015 (can_schedule_ready_p): Likewise for param "insn".
3016 (begin_schedule_ready): Likewise.
3017 (new_ready): Likewise for param "next".
3018 (rgn_print_insn): Likewise for param "insn".
3019 (rgn_rank): Likewise for params "insn1", "insn2".
3020 (contributes_to_priority): Likewise for params "next", "insn".
3021 (rgn_insn_finishes_block_p): Likewise for param "insn".
3022 (add_branch_dependences): Likewise for params "head", "tail" and
3023 locals "insn", "last".
3024 (rgn_add_remove_insn): Likewise for param "insn".
3025 (advance_target_bb): Likewise.
3027 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3028 const_rtx to const rtx_insn *.
3030 * sel-sched-dump.h (sel_print_insn): Likewise.
3032 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3033 (deps_init_id): Likewise.
3035 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3036 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3039 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3041 * output.h (final_start_function): Strengthen param 1 from rtx to
3044 * final.c (final_start_function): Likewise, renaming back from
3045 "uncast_first" to "first", and dropping the checked cast from rtx
3048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3050 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3051 * final.c (final): Likewise. Rename param back from
3052 "uncast_first" to "first" and eliminate the checked cast from rtx
3055 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3057 * output.h (shorten_branches): Strengthen param from rtx to
3060 * final.c (shorten_branches): Likewise, renaming param back from
3061 "uncast_first" to "first", and dropping the checked cast from rtx
3064 * genattr.c (gen_attr): Likewise when writing out the prototype of
3067 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3069 * sched-int.h (struct haifa_sched_info): Strengthen fields
3070 "prev_head" and "next_tail" from rtx to rtx_insn *.
3072 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3074 * rtl.h (rtx_jump_table_data::get_labels): New method.
3075 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
3076 with use of the new rtx_jump_table_data::get_labels method.
3077 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
3078 to rtx_jump_table_data *. Simplify by using get_labels method.
3079 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
3080 a dyn_cast, introducing local "table", using it to replace
3081 label-lookup logic with a get_labels method call.
3082 (patch_jump_insn): Simplify using get_labels method.
3083 * dwarf2cfi.c (create_trace_edges): Likewise.
3084 * rtlanal.c (label_is_jump_target_p): Likewise.
3086 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3088 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
3091 * emit-rtl.c (unshare_all_rtl_1): Likewise.
3092 (unshare_all_rtl_again): Likewise, also for local "p".
3094 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3096 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
3098 * cfgrtl.c (delete_insn_and_edges): Likewise.
3100 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3102 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
3103 from rtx to rtx_insn *.
3105 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
3107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3109 * function.c (thread_prologue_and_epilogue_insns): Likewise for
3110 locals "returnjump", "epilogue_end", "insn", "next".
3112 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
3113 "returnjump" from rtx * to rtx_insn **.
3114 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
3116 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3118 * basic-block.h (struct edge_def). Strengthen "r" within
3119 union edge_def_insns from rtx to rtx_insn *.
3121 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
3122 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
3124 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
3125 from rtx to rtx_insn *.
3126 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
3128 * postreload-gcse.c (reg_killed_on_edge): Likewise.
3129 (reg_used_on_edge): Likewise.
3130 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
3131 (gt_pch_nx): New overload for rtx_insn *&.
3132 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
3133 from rtx to rtx_insn *.
3135 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3137 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
3138 from rtx to rtx_insn *.
3139 (BB_FOOTER): Replace function with access macro.
3140 (SET_BB_FOOTER): Delete.
3142 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
3144 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3145 (emit_barrier_after_bb): Likewise.
3146 (record_effective_endpoints): Likewise.
3147 (relink_block_chain): Likewise.
3148 (fixup_fallthru_exit_predecessor): Likewise.
3149 (cfg_layout_duplicate_bb): Likewise.
3150 (cfg_layout_split_block): Likewise.
3151 (cfg_layout_delete_block): Likewise.
3152 (cfg_layout_merge_blocks): Likewise.
3153 (BB_FOOTER): Delete function.
3154 (SET_BB_FOOTER): Delete function.
3155 * combine.c (update_cfg_for_uncondjump): Replace uses of
3156 SET_BB_FOOTER with BB_FOOTER.
3158 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3160 * except.h (struct eh_landing_pad_d): Strengthen field
3161 "landing_pad" from rtx to rtx_code_label *.
3163 * except.c (sjlj_emit_dispatch_table): Likewise for param
3165 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
3167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3169 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
3170 first param from rtx to rtx_insn *.
3171 * config/xtensa/xtensa.c (struct machine_function): Likewise for
3172 field "set_frame_ptr_insn".
3173 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
3174 "csend" from rtx to rtx_code_label *.
3175 (xtensa_expand_atomic): Likewise for local "csloop".
3176 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
3178 (xtensa_call_tls_desc): Likewise for return type and locals
3179 "call_insn", "insns".
3180 (xtensa_legitimize_tls_address): Likewise for local "insns".
3181 (xtensa_expand_prologue): Likewise for locals "insn", "first".
3183 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3185 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
3186 first param from rtx to rtx_insn *.
3187 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
3190 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3192 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
3193 Strengthen param 1 from rtx to rtx_insn *.
3194 (tilepro_output_cbranch): Likewise.
3195 (tilepro_adjust_insn_length): Likewise.
3196 (tilepro_final_prescan_insn): Likewise for sole param.
3198 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
3199 Likewise for local "last".
3200 (cbranch_predicted_p): Likewise for param "insn".
3201 (tilepro_output_simple_cbranch_with_opcode): Likewise.
3202 (tilepro_output_cbranch_with_opcode): Likewise.
3203 (tilepro_output_cbranch): Likewise.
3204 (frame_emit_load): Likewise for return type and locals "seq",
3206 (emit_sp_adjust): Likewise for return type and local "insn".
3207 (tilepro_expand_epilogue): Likewise for locals "last_insn",
3209 (tilepro_adjust_insn_length): Likewise for param "insn".
3210 (next_insn_to_bundle): Likewise for return type and params
3212 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
3213 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
3215 (match_addli_pcrel): Likewise for param "insn".
3216 (replace_addli_pcrel): Likewise.
3217 (match_auli_pcrel): Likewise.
3218 (replace_auli_pcrel): Likewise.
3219 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
3221 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3222 "queue", "next_queue", "prev".
3223 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
3224 (tilepro_final_prescan_insn): Likewise for param "insn".
3226 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3228 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
3229 Strengthen param 1 from rtx to rtx_insn *.
3230 (tilegx_output_cbranch): Likewise.
3231 (tilegx_adjust_insn_length): Likewise.
3232 (tilegx_final_prescan_insn): Likewise for sole param.
3234 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
3236 (cbranch_predicted_p): Likewise for param "insn".
3237 (tilegx_output_simple_cbranch_with_opcode): Likewise.
3238 (tilegx_output_cbranch_with_opcode): Likewise.
3239 (tilegx_output_cbranch): Likewise.
3240 (frame_emit_load): Likewise for return type.
3241 (set_frame_related_p): Likewise for locals "seq", "insn".
3242 (emit_sp_adjust): Likewise for return type, and for local "insn".
3243 Introduce local "pat" for use in place of "insn" where the latter
3244 isn't an instruction.
3245 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
3246 from rtx to rtx_insn *.
3247 (tilegx_adjust_insn_length): Likewise for param "insn".
3248 (next_insn_to_bundle): Likewise for return type and params "r" and
3250 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
3252 (replace_insns): Likewise for params "old_insn", "new_insns".
3253 (replace_mov_pcrel_step1): Likewise for param "insn" and local
3255 (replace_mov_pcrel_step2): Likewise.
3256 (replace_mov_pcrel_step3): Likewise.
3257 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
3259 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3260 "queue", "next_queue", "prev".
3261 (tilegx_output_mi_thunk): Likewise for local "insn".
3262 (tilegx_final_prescan_insn): Likewise for param "insn".
3264 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3266 * config/spu/spu.c (frame_emit_store): Strengthen return type from
3268 (frame_emit_load): Likewise.
3269 (frame_emit_add_imm): Likewise, also for local "insn".
3270 (spu_expand_prologue): Likewise for local "insn".
3271 (struct spu_bb_info): Likewise for field "prop_jump".
3272 (emit_nop_for_insn): Likewise for param "insn" and local
3274 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
3276 (spu_emit_branch_hint): Likewise for params "before", "branch" and
3277 locals "hint", "insn".
3278 (get_branch_target): Likewise for param "branch".
3279 (insn_clobbers_hbr): Likewise for param "insn".
3280 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
3281 locals "insn", "before_4", "before_16".
3282 (insert_hbrp): Likewise for local "insn".
3283 (spu_machine_dependent_reorg): Likewise for locals "branch",
3284 "insn", "next", "bbend".
3285 (uses_ls_unit): Likewise for param "insn".
3286 (get_pipe): Likewise.
3287 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
3288 introducing a checked cast.
3289 (spu_sched_adjust_cost): Likewise for params "insn" and
3291 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
3292 (spu_sms_res_mii): Likewise.
3294 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3296 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
3297 from rtx to rtx_insn *.
3298 (output_cbranch): Likewise for param 6.
3299 (output_return): Likewise for param 1.
3300 (output_sibcall): Likewise.
3301 (output_v8plus_shift): Likewise.
3302 (output_v8plus_mult): Likewise.
3303 (output_v9branch): Likewise for param 7.
3304 (output_cbcond): Likewise for param 3.
3306 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
3308 (sparc_legitimize_pic_address): Likewise.
3309 (sparc_emit_call_insn): Likewise.
3310 (emit_save_or_restore_regs): Likewise.
3311 (emit_window_save): Likewise for return type and local "insn".
3312 (sparc_expand_prologue): Likewise for local "insn".
3313 (sparc_flat_expand_prologue): Likewise.
3314 (output_return): Likewise for param "insn".
3315 (output_sibcall): Likewise for param "insn" and local "delay".
3316 (output_ubranch): Likewise for param "insn".
3317 (output_cbranch): Likewise.
3318 (output_cbcond): Likewise.
3319 (output_v9branch): Likewise.
3320 (output_v8plus_shift): Likewise.
3321 (sparc_output_mi_thunk): Likewise for local "insn".
3322 (get_some_local_dynamic_name): Likewise.
3323 (output_v8plus_mult): Likewise for param "insn".
3325 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3327 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
3328 from rtx to rtx_insn *.
3329 (output_branchy_insn): Likewise for param 3.
3330 (output_far_jump): Likewise for param 1.
3331 (final_prescan_insn): Likewise.
3332 (sh_insn_length_adjustment): Likewise for sole param.
3334 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
3335 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
3337 (sh_emit_compare_and_set): Likewise for local "lab".
3338 (output_far_jump): Strengthen param "insn" and local "prev" from
3340 (output_branchy_insn): Likewise for param "insn" and local
3342 (output_ieee_ccmpeq): Likewise for param "insn".
3343 (struct label_ref_list_d): Strengthen field "label" from rtx to
3345 (pool_node): Likewise.
3346 (pool_window_label): Likewise for this global.
3347 (add_constant): Likewise for return type and locals "lab", "new_rtx".
3348 (dump_table): Strengthen params "start", "barrier" and local
3349 "scan" from rtx to rtx_insn *.
3350 (broken_move): Likewise for param "insn".
3351 (untangle_mova): Likewise for params "first_mova" and "new_mova".
3352 Strengthen param "first_mova" from rtx * to rtx_insn **.
3353 (mova_p): Likewise for param "insn".
3354 (fixup_mova): Likewise for param "mova".
3355 (find_barrier): Likewise for return type, params "mova" and
3356 "from", and locals "barrier_before_mova", "found_barrier",
3357 "good_barrier", "orig", "last_symoff", "next". Strengthen local
3358 "label" from rtx to rtx_code_label *.
3359 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
3361 (sh_reorg): Likewise for locals "link", "scan", "barrier".
3362 (split_branches): Likewise for param "first" and local "insn".
3363 (final_prescan_insn): Likewise for param "insn".
3364 (sequence_insn_p): Likewise for locals "prev", "next".
3365 (sh_insn_length_adjustment): Likewise for param "insn".
3366 (sh_can_redirect_branch): Likewise for local "insn".
3367 (find_r0_life_regions): Likewise for locals "end", "insn".
3368 (sh_output_mi_thunk): Likewise for local "insns".
3370 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3372 * config/score/score.c (score_output_mi_thunk): Strengthen local
3373 "insn" from rtx to rtx_insn *.
3374 (score_prologue): Likewise.
3376 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3378 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
3379 1 from rtx to rtx_insn *.
3380 (s390_emit_jump): Likewise for return type.
3381 (s390_emit_call): Likewise.
3382 (s390_load_got): Likewise.
3384 * config/s390/s390.c (last_scheduled_insn): Likewise for this
3386 (s390_match_ccmode): Likewise for param "insn".
3387 (s390_emit_jump): Likewise for return type.
3388 (s390_split_branches): Likewise for local "label".
3389 (struct constant): Strengthen field "label" from rtx to
3391 (struct constant_pool): Likewise for field "label". Strengthen
3392 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
3394 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
3396 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
3397 (s390_end_pool): Likewise.
3398 (s390_dump_pool): Likewise for local "insn".
3399 (s390_mainpool_start): Likewise.
3400 (s390_chunkify_start): Likewise.
3401 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
3402 with insns. Strengthen locals "label", "jump", "barrier", "next",
3403 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
3404 (s390_chunkify_finish): Strengthen local "insn" from rtx to
3406 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
3407 "jump", "label", "next_insn".
3408 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
3409 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
3411 (s390_load_got): Likewise for return type and local "insns".
3412 (s390_save_gprs_to_fprs): Likewise for local "insn".
3413 (s390_restore_gprs_from_fprs): Likewise.
3414 (pass_s390_early_mach::execute): Likewise.
3415 (s390_emit_prologue): Likewise for local "insns".
3416 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
3418 (s390_emit_call): Strengthen return type and local "insn" from
3420 (s390_emit_tpf_eh_return): Likewise for local "insn".
3421 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
3422 "next_insn", introducing locals "s_pat", "rpat" to allow this.
3423 (s390_fix_long_loop_prediction): Likewise for param "insn" and
3425 (s390_non_addr_reg_read_p): Likewise for param "insn".
3426 (find_cond_jump): Likewise for return type and param "insn".
3427 (s390_swap_cmp): Likewise for param "insn".
3428 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
3429 "prev_insn", "next_insn".
3430 (s390_reorg): Likewise for locals "insn", "target".
3431 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
3432 (s390_sched_variable_issue): For now, rename param "insn" to
3433 "uncast_insn", introducing a checked cast.
3434 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
3436 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
3437 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
3439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3441 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
3442 param from rtx to rtx_insn *.
3443 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
3445 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3447 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
3448 4 from rtx to rtx_insn *.
3449 (rs6000_final_prescan_insn): Likewise for first param.
3450 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
3452 (rs6000_get_some_local_dynamic_name): Likewise.
3453 (output_cbranch): Likewise for param "insn".
3454 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
3455 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
3456 (rs6000_emit_allocate_stack): Likewise for local "insn".
3457 (load_cr_save): Likewise.
3458 (restore_saved_cr): Likewise.
3459 (restore_saved_lr): Likewise.
3460 (emit_cfa_restores): Likewise.
3461 (rs6000_output_function_epilogue): Likewise for locals "insn" and
3462 "deleted_debug_label".
3463 (rs6000_output_mi_thunk): Likewise for local "insn".
3464 (rs6000_final_prescan_insn): Likewise for param "insn".
3466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3468 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
3469 Strengthen param "insn" from rtx to rtx_insn *.
3470 * config/picochip/picochip.c (picochip_current_prescan_insn):
3471 Likewise for this variable.
3472 (picochip_final_prescan_insn): Likewise for param "insn".
3474 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3476 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
3477 from rtx to rtx_insn *.
3478 (pa_output_indirect_call): Likewise.
3479 (pa_adjust_insn_length): Likewise.
3480 (pa_attr_length_millicode_call): Likewise.
3481 (pa_attr_length_call): Likewise.
3482 (pa_attr_length_indirect_call): Likewise.
3484 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
3486 (pa_attr_length_millicode_call): Likewise.
3487 (pa_attr_length_call): Likewise.
3488 (pa_output_call): Likewise.
3489 (pa_attr_length_indirect_call): Likewise.
3490 (pa_output_indirect_call): Likewise.
3492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3494 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
3495 Strengthen first param from rtx to rtx_insn *.
3496 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
3499 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3501 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
3502 type from rtx to rtx_insn *.
3503 (mips_expand_call): Likewise.
3504 (mips_adjust_insn_length): Likewise for first param.
3505 (mips_output_conditional_branch): Likewise.
3506 (mips_output_order_conditional_branch): Likewise.
3507 (mips_final_prescan_insn): Likewise.
3509 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
3510 rtx_insn * for the SEQUENCE case.
3511 (SEQ_END): Likewise.
3512 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
3513 (mips_emit_call_insn): Likewise, also for local "insn".
3514 (mips16_gp_pseudo_reg): Likewise for local "scan".
3515 (mips16_build_call_stub): Likewise for return type and for local
3516 "insn". Introduce a new local "pattern" so that "insn" can indeed
3518 (mips_expand_call): Strengthen return type and local "insn" from
3520 (mips_block_move_loop): Strengthen local "label" from rtx to
3522 (mips_expand_synci_loop): Likewise for locals "label",
3524 (mips_set_frame_expr): Strengthen local "insn" from rtx to
3526 (mips16e_collect_argument_saves): Likewise for locals "insn",
3528 (mips_find_gp_ref): Likewise for param of callback for "pred"
3529 param, and for local "insn".
3530 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
3531 (mips_insn_has_flexible_gp_ref_p): Likewise.
3532 (mips_epilogue_emit_cfa_restores): Likewise for return type and
3534 (mips_epilogue_set_cfa): Likewise for local "insn".
3535 (mips_expand_epilogue): Likewise.
3536 (mips_adjust_insn_length): Likewise for param "insn".
3537 (mips_output_conditional_branch): Likewise.
3538 (mips_output_order_conditional_branch): Likewise.
3539 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
3540 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
3541 "falu2_turn_enabled_insn".
3542 (mips_builtin_branch_and_move): Strengthen locals "true_label",
3543 "done_label" from rtx to rtx_code_label *.
3544 (struct mips16_constant): Likewise for field "label".
3545 (mips16_add_constant): Likewise for return type.
3546 (mips16_emit_constants_1): Strengthen return type and param "insn"
3547 from rtx to rtx_insn *.
3548 (mips16_emit_constants): Likewise for param "insn".
3549 (mips16_insn_length): Likewise.
3550 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
3551 to rtx_code_label *.
3552 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
3553 from rtx to rtx_insn *.
3554 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
3555 "jump". Strengthen local "label" from rtx to rtx_code_label *.
3556 (r10k_simplify_address): Strengthen param "insn" and local
3557 "def_insn" from rtx to rtx_insn *.
3558 (r10k_safe_address_p): Strengthen param "insn" from rtx to
3560 (r10k_needs_protection_p_1): Update target type of cast of data
3561 from to rtx to rtx_insn *.
3562 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
3563 rtx * to rtx_insn **.
3564 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
3566 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
3567 (mips_call_expr_from_insn): Likewise for param "insn".
3568 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
3569 (mips_find_pic_call_symbol): Likewise for param "insn".
3570 (mips_annotate_pic_calls): Likewise for local "insn".
3571 (mips_sim_insn): Likewise for this variable.
3572 (struct mips_sim): Likewise for field "insn" within elements of
3574 (mips_sim_wait_reg): Likewise for param "insn".
3575 (mips_sim_wait_regs): Likewise.
3576 (mips_sim_wait_units): Likewise.
3577 (mips_sim_wait_insn): Likewise.
3578 (mips_sim_issue_insn): Likewise.
3579 (mips_sim_finish_insn): Likewise.
3580 (mips_seq_time): Likewise for param "seq" and local "insn".
3581 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
3582 locals "first", "second".
3583 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
3584 "last", "last2", "next".
3585 (mips_avoid_hazard): Likewise for params "after", "insn".
3586 (mips_reorg_process_insns): Likewise for locals "insn",
3587 "last_insn", "subinsn", "next_insn".
3588 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
3589 (mips16_split_long_branches): Likewise for locals "insn" "jump",
3591 (mips_output_mi_thunk): Likewise for local "insn".
3592 (mips_final_prescan_insn): Likewise for param "insn".
3594 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3596 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
3597 Strengthen return type and local "insns" from rtx to rtx_insn *.
3598 (microblaze_legitimize_tls_address): Likewise for local "insns".
3599 (microblaze_block_move_loop): Strengthen local "label" from rtx
3600 to rtx_code_label *.
3601 (microblaze_expand_prologue): Strengthen two locals named "insn"
3602 from rtx to rtx_insn *.
3603 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
3604 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
3605 "insn". Strengthen locals "div_label", "div_end_label" from rtx
3606 to rtx_code_label *.
3608 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3610 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
3611 param from rtx to rtx_insn *.
3612 (mep_reuse_lo): Likewise for third param.
3613 (mep_use_post_modify_p): Likewise for first param.
3614 (mep_core_address_length): Likewise.
3615 (mep_cop_address_length): Likewise.
3616 (mep_final_prescan_insn): Likewise.
3617 (mep_store_data_bypass_p): Likewise for both params.
3618 (mep_mul_hilo_bypass_p): Likewise.
3619 (mep_ipipe_ldc_p): Likewise for param.
3621 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
3622 (mep_rewrite_mult): Likewise.
3623 (mep_rewrite_mulsi3): Likewise.
3624 (mep_rewrite_maddsi3): Likewise.
3625 (mep_reuse_lo_p_1): Likewise.
3626 (mep_reuse_lo_p): Likewise.
3627 (mep_frame_expr): Likewise.
3628 (mep_make_parallel): Likewise for both params.
3629 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
3631 (mep_use_post_modify_p): Likewise for param "insn".
3632 (mep_core_address_length): Likewise.
3633 (mep_cop_address_length): Likewise.
3634 (mep_reg_set_in_function): Likewise for local "insn".
3635 (mep_asm_without_operands_p): Likewise.
3636 (F): Likewise for return type and param "x".
3637 (add_constant): Likewise for local "insn".
3638 (maybe_dead_move): Likewise for return type and local "insn".
3639 (mep_expand_prologue): Likewise for local "insn".
3640 (mep_final_prescan_insn): Likewise for param "insn".
3641 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
3642 "next", "follow", "x".
3643 (mep_insert_repeat_label_last): Likewise for return type, param
3644 "last_insn", and locals "next", "prev". Strengthen param "label"
3645 from rtx to rtx_code_label *.
3646 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
3648 (struct mep_doloop_end): Likewise for fields "insn" and
3650 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
3651 Strengthen local "repeat_label" from rtx to rtx_code_label *.
3652 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
3654 (mep_invert_branch): Likewise for params "insn" and "after".
3655 (mep_reorg_erepeat): Likewise for param "insns" and locals
3656 "insn", "prev", "new_last", "barrier", "user". Strengthen local
3657 "l" from rtx to rtx_code_label *.
3658 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
3659 from rtx to rtx_insn *.
3660 (mep_reorg_addcombine): Likewise for param "insns" and locals
3662 (add_sp_insn_p): Likewise for param "insn".
3663 (mep_reorg_noframe): Likewise for param "insns" and locals
3664 "start_frame_insn", "end_frame_insn", "next".
3665 (mep_reorg): Likewise for local "insns".
3666 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
3668 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
3669 (mep_mul_hilo_bypass_p): Likewise.
3670 (mep_ipipe_ldc_p): Likewise for param "insn".
3671 (mep_make_bundle): Likewise for return type, param "cop" and local
3672 "insn", splitting out the latter into a new local "seq" for when it
3673 is a SEQUENCE rather than an insn.
3674 (core_insn_p): Likewise for param "insn".
3675 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
3676 "last", "first", "note", "prev", "core_insn".
3678 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3680 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
3682 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
3683 (m68k_final_prescan_insn): Likewise for first param.
3685 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
3686 (m68k_set_frame_related): Likewise for param "insn".
3687 (output_btst): Likewise for param "insn".
3688 (m68k_final_prescan_insn): Likewise.
3689 (m68k_move_to_reg): Likewise for local "insn".
3690 (m68k_call_tls_get_addr): Likewise for local "insns".
3691 (m68k_call_m68k_read_tp): Likewise.
3692 (strict_low_part_peephole_ok): Likewise for param "first_insn".
3693 (m68k_output_mi_thunk): Likewise for local "insn".
3695 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3697 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
3698 first param from rtx to rtx_insn *.
3699 (iq2000_adjust_insn_length): Likewise.
3700 (iq2000_output_conditional_branch): Likewise.
3701 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
3702 "insn" and local "nop_insn".
3703 (iq2000_annotate_frame_insn): Likewise for param "insn".
3704 (iq2000_expand_prologue): Likewise for both locals "insn".
3705 (iq2000_adjust_insn_length): Likewise for param "insn".
3706 (iq2000_output_conditional_branch): Likewise.
3708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3710 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
3711 "insns" from rtx to rtx_insn *.
3712 (ia64_emit_cond_move): Likewise for locals "insn", "first".
3713 (struct spill_fill_data): Likewise for field "init_after" and for
3714 elements of array field "prev_insn".
3715 (spill_restore_mem): Likewise for locals "insn", "first".
3716 (do_spill): Likewise for local "insn".
3717 (do_restore): Likewise.
3718 (ia64_expand_prologue): Likewise.
3719 (ia64_expand_epilogue): Likewise.
3720 (emit_insn_group_barriers): Likewise for locals "insn",
3722 (emit_all_insn_group_barriers): Likewise for locals "insn",
3724 (dfa_stop_insn): Likewise for this global.
3725 (dfa_pre_cycle_insn): Likewise.
3726 (ia64_nop): Likewise.
3727 (final_emit_insn_group_barriers): Likewise for locals "insn",
3729 (emit_predicate_relation_info): Likewise for locals "head", "n",
3731 (ia64_reorg): Likewise for local "insn".
3732 (ia64_output_mi_thunk): Likewise.
3733 (expand_vec_perm_interleave_2): Likewise for local "seq".
3735 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3737 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
3738 param 1 "insn" from rtx to rtx_insn *.
3739 (ix86_use_lea_for_mov): Likewise.
3740 (ix86_avoid_lea_for_addr): Likewise.
3741 (ix86_split_lea_for_addr): Likewise.
3742 (ix86_lea_for_add_ok): Likewise.
3743 (ix86_output_call_insn): Likewise.
3745 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
3746 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
3747 (ix86_output_function_epilogue): Likewise for locals "insn",
3748 "deleted_debug_label".
3749 (legitimize_tls_address): Likewise for local "insn".
3750 (get_some_local_dynamic_name): Likewise.
3751 (increase_distance): Likewise for params "prev", "next".
3752 (distance_non_agu_define_in_bb): Likewise for params "insn",
3753 "start" and locals "prev", "next".
3754 (distance_non_agu_define): Likewise for param "insn".
3755 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
3756 locals "next", "prev".
3757 (distance_agu_use): Likewise for param "insn".
3758 (ix86_lea_outperforms): Likewise.
3759 (ix86_ok_to_clobber_flags): Likewise.
3760 (ix86_avoid_lea_for_add): Likewise.
3761 (ix86_use_lea_for_mov): Likewise.
3762 (ix86_avoid_lea_for_addr): Likewise.
3763 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
3764 (ix86_split_lea_for_addr): Likewise for param "insn".
3765 (ix86_lea_for_add_ok): Likewise for param "insn".
3766 (ix86_expand_carry_flag_compare): Likewise for local
3768 (ix86_expand_int_movcc): Likewise.
3769 (ix86_output_call_insn): Likewise for param "insn".
3770 (ix86_output_call_insn): Likewise for local "i".
3771 (x86_output_mi_thunk): Introduce local "insn", using it in place
3772 of "tmp" when dealing with insns.
3773 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
3775 (ix86_pad_returns): Likewise for locals "ret", "prev".
3776 (ix86_count_insn_bb): Likewise for local "insn".
3777 (ix86_pad_short_function): Likewise for locals "ret", "insn".
3778 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
3779 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
3780 (expand_vec_perm_interleave2): Likewise for local "seq".
3781 (expand_vec_perm_vperm2f128_vblend): Likewise.
3782 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
3783 call to for_each_rtx with for_each_rtx_in_insn.
3785 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3787 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
3788 "label" from rtx to rtx_code_label *.
3789 (ix86_expand_prologue): Likewise.
3790 (ix86_expand_split_stack_prologue): Likewise for locals "label",
3792 (ix86_split_idivmod): Likewise for locals "end_label" and
3794 (ix86_expand_branch): Likewise for local "label2".
3795 (ix86_expand_aligntest): Likewise for return type and local "label".
3796 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
3798 (expand_movmem_epilogue): Likewise for the various locals named
3800 (expand_setmem_epilogue): Likewise.
3801 (expand_small_movmem_or_setmem): Likewise for local "label".
3802 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
3803 Strengthen param "done_label" from rtx * to rtx_code_label **.
3804 Strengthen locals "loop_label" and "label" from rtx to
3806 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
3807 Likewise for locals "loop_label", "label".
3808 (ix86_expand_set_or_movmem): Likewise for locals "label",
3809 "jump_around_label", "hot_label".
3810 (ix86_expand_strlensi_unroll_1): Likewise for locals
3811 "align_2_label", align_3_label", "align_4_label", "end_0_label",
3813 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
3814 (void ix86_emit_i387_log1p): Likewise for locals "label1",
3815 "label2", "jump_label".
3816 (ix86_expand_sse_compare_and_jump): Likewise for return type and
3818 (ix86_expand_lfloorceil): Likewise for local "label".
3819 (ix86_expand_rint): Likewise.
3820 (ix86_expand_floorceildf_32): Likewise.
3821 (ix86_expand_floorceil): Likewise.
3822 (ix86_expand_rounddf_32): Likewise.
3823 (ix86_expand_trunc): Likewise.
3824 (ix86_expand_truncdf_32): Likewise.
3825 (ix86_expand_round): Likewise.
3827 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3829 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
3830 first param from rtx to rtx_insn *.
3831 (h8300_insn_length_from_table): Likewise.
3832 * config/h8300/h8300.c (F): Likewise for return type and param
3834 (Fpa): Add a checked cast to rtx_insn *.
3835 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
3837 (final_prescan_insn): Likewise for param "insn".
3838 (h8300_binary_length): Likewise.
3839 (h8300_insn_length_from_table): Likewise.
3841 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3843 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
3844 Strengthen first param "insn" from rtx to rtx_insn *.
3846 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
3848 (frame_insn): Likewise for return type. Introduce local "insn"
3849 for use in place of local "x" for use as an rtx_insn *.
3850 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
3851 (epiphany_expand_prologue): Likewise for local "insn".
3852 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
3853 * config/epiphany/resolve-sw-modes.c
3854 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
3857 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3859 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
3860 param from rtx to rtx_insn *.
3861 (c6x_final_prescan_insn): Likewise for first param.
3863 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
3864 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
3865 (c6x_expand_compare): Strengthen local "insns" from rtx to
3867 (c6x_get_unit_specifier): Likewise for param "insn".
3868 (c6x_print_unit_specifier_field): Likewise.
3869 (c6x_final_prescan_insn): Likewise.
3870 (emit_add_sp_const): Likewise for local "insn".
3871 (c6x_expand_prologue): Likewise.
3873 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3875 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
3876 param 1 from rtx to rtx_insn *.
3877 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
3878 the various locals named "insn".
3879 (expand_epilogue_reg_restore): Likewise.
3880 (frame_related_constant_load): Likewise.
3881 (add_to_reg): Likewise.
3882 (emit_link_insn): Likewise.
3883 (do_link): Likewise.
3884 (expand_interrupt_handler_prologue): Likewise.
3885 (branch_dest): Likewise for param "branch".
3886 (asm_conditional_branch): Likewise for param "insn".
3887 (gen_one_bundle): Likewise for elements of param "slot" and local
3889 (bfin_gen_bundles): Likewise for locals "insn", "next" and
3890 elements of local "slot".
3891 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3892 "queue", "next_queue", "prev".
3893 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
3894 (add_sched_insns_for_speculation): Likewise for local "insn".
3896 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3898 * config/avr/avr-protos.h (output_movqi): Strengthen first param
3899 from rtx to rtx_insn *.
3900 (output_movhi): Likewise.
3901 (output_movsisf): Likewise.
3902 (avr_out_tstsi): Likewise.
3903 (avr_out_tsthi): Likewise.
3904 (avr_out_tstpsi): Likewise.
3905 (avr_out_compare): Likewise.
3906 (avr_out_compare64): Likewise.
3907 (avr_out_movpsi): Likewise.
3908 (ashlqi3_out): Likewise.
3909 (ashlhi3_out): Likewise.
3910 (ashlsi3_out): Likewise.
3911 (ashrqi3_out): Likewise.
3912 (ashrhi3_out): Likewise.
3913 (ashrsi3_out): Likewise.
3914 (lshrqi3_out): Likewise.
3915 (lshrhi3_out): Likewise.
3916 (lshrsi3_out): Likewise.
3917 (avr_out_ashlpsi3): Likewise.
3918 (avr_out_ashrpsi3): Likewise.
3919 (avr_out_lshrpsi3): Likewise.
3920 (avr_out_fract): Likewise.
3921 (avr_out_sbxx_branch): Likewise.
3922 (avr_out_round): Likewise.
3923 (avr_out_xload): Likewise.
3924 (avr_out_movmem): Likewise.
3925 (adjust_insn_length): Likewise.
3926 (avr_out_lpm): Likewise.
3927 (reg_unused_after): Likewise.
3928 (_reg_unused_after): Likewise.
3929 (avr_jump_mode): Likewise for second param.
3930 (jump_over_one_insn): Likewise for first param.
3931 (avr_final_prescan_insn): Likewise.
3932 (out_shift_with_cnt): Likewise for second param.
3934 * config/avr/avr.c (get_sequence_length): Likewise for param
3935 "insns" and local "insn".
3936 (emit_push_byte): Likewise for local "insn".
3937 (emit_push_sfr): Likewise.
3938 (avr_prologue_setup_frame): Likewise for locals "insn",
3939 "fp_plus_insns", "sp_plus_insns".
3940 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
3942 (avr_jump_mode): Likewise for param "insn".
3943 (avr_final_prescan_insn): Likewise.
3944 (avr_find_unused_d_reg): Likewise.
3945 (avr_out_lpm_no_lpmx): Likewise.
3946 (avr_out_lpm): Likewise.
3947 (avr_out_xload): Likewise.
3948 (output_movqi): Likewise.
3949 (output_movhi): Likewise.
3950 (out_movqi_r_mr): Likewise.
3951 (out_movhi_r_mr): Likewise.
3952 (out_movsi_r_mr): Likewise.
3953 (out_movsi_mr_r): Likewise.
3954 (output_movsisf): Likewise.
3955 (avr_out_load_psi): Likewise.
3956 (avr_out_store_psi): Likewise.
3957 (avr_out_movpsi): Likewise.
3958 (out_movqi_mr_r): Likewise.
3959 (avr_out_movhi_mr_r_xmega): Likewise.
3960 (out_movhi_mr_r): Likewise.
3961 (compare_condition): Likewise for param "insn" and local "next".
3962 (compare_sign_p): Likewise for param "insn".
3963 (compare_diff_p): Likewise.
3964 (compare_eq_p): Likewise.
3965 (avr_out_compare): Likewise.
3966 (avr_out_compare64): Likewise.
3967 (avr_out_tsthi): Likewise.
3968 (avr_out_tstpsi): Likewise.
3969 (avr_out_tstsi): Likewise.
3970 (out_shift_with_cnt): Likewise.
3971 (ashlqi3_out): Likewise.
3972 (ashlhi3_out): Likewise.
3973 (avr_out_ashlpsi3): Likewise.
3974 (ashlsi3_out): Likewise.
3975 (ashrqi3_out): Likewise.
3976 (ashrhi3_out): Likewise.
3977 (avr_out_ashrpsi3): Likewise.
3978 (ashrsi3_out): Likewise.
3979 (lshrqi3_out): Likewise.
3980 (lshrhi3_out): Likewise.
3981 (avr_out_lshrpsi3): Likewise.
3982 (lshrsi3_out): Likewise.
3983 (avr_out_fract): Likewise.
3984 (avr_out_round): Likewise.
3985 (avr_adjust_insn_length): Likewise.
3986 (reg_unused_after): Likewise.
3987 (_reg_unused_after): Likewise.
3988 (avr_compare_pattern): Likewise.
3989 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
3990 and locals "branch1", "branch2", "insn2", "jump".
3991 (avr_reorg): Likewise for local "insn".
3992 (avr_2word_insn_p): Likewise for param "insn".
3993 (jump_over_one_insn_p): Likewise.
3994 (avr_out_sbxx_branch): Likewise.
3995 (avr_out_movmem): Likewise.
3997 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3999 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4000 param from rtx to rtx_insn *.
4001 (thumb1_final_prescan_insn): Likewise.
4002 (thumb2_final_prescan_insn): Likewise.
4004 * config/arm/arm.c (emit_set_insn): Strengthen return type from
4006 (struct minipool_node): Likewise for field "insn".
4007 (dump_minipool): Likewise for param "scan".
4008 (create_fix_barrier): Likewise for local "from". Strengthen local
4009 "label" from rtx to rtx_code_label *.
4010 (push_minipool_barrier): Strengthen param "insn" from rtx to
4012 (push_minipool_fix): Likewise.
4013 (note_invalid_constants): Likewise.
4014 (thumb2_reorg): Likewise for local "insn".
4015 (arm_reorg): Likewise.
4016 (thumb2_final_prescan_insn): Likewise for param
4017 "insn" and local "first_insn".
4018 (arm_final_prescan_insn): Likewise for param "insn" and locals
4019 "start_insn", "this_insn".
4020 (arm_debugger_arg_offset): Likewise for param "insn".
4021 (thumb1_emit_multi_reg_push): Likewise for return type and local
4023 (thumb1_final_prescan_insn): Likewise for param "insn".
4024 (thumb_far_jump_used_p): Likewise for local "insn".
4025 (thumb1_expand_prologue): Likewise.
4026 (arm_expand_epilogue_apcs_frame): Likewise.
4027 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4028 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4029 from rtx to rtx_code_label *.
4030 (arm_split_atomic_op): Likewise for local "label".
4031 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4035 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4036 first param from rtx to rtx_insn *.
4037 (arc_verify_short): Likewise.
4038 (arc_short_long): Likewise.
4039 (arc_need_delay): Likewise.
4041 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4043 (arc_ccfsm_advance): Likewise for param "insn" and locals
4044 "start_insn", "this_insn".
4045 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4046 (arc_ccfsm_post_advance): Likewise for param "insn".
4047 (arc_next_active_insn): Likewise for return type and param "insn".
4048 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
4049 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4050 (output_short_suffix): Likewise for local "insn".
4051 (arc_final_prescan_insn): Likewise for param "insn". Remove
4052 now-redundant checked cast.
4053 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4054 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4055 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
4056 for use where lc_set became an insn.
4057 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4059 (arc_get_insn_variants): Likewise for local "prev".
4060 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4062 (arc_predicate_delay_insns): Likewise for local "insn".
4063 (arc_pad_return): Likewise for local "prev". For now, add a
4064 checked cast when extracting the insn from "final_sequence".
4065 (arc_short_long): Likewise for param "insn".
4066 (arc_need_delay): Likewise for param "insn" and local "next".
4067 (arc_label_align): Likewise for locals "prev", "next".
4069 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4071 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
4072 "insn" from rtx to rtx_insn *.
4073 (alpha_gp_save_rtx): Likewise for local "seq".
4074 (alpha_instantiate_decls): Likewise for local "top".
4075 (get_some_local_dynamic_name): Likewise for local "insn".
4076 (alpha_does_function_need_gp): Likewise.
4077 (set_frame_related_p): Likewise for return type and for locals
4079 (emit_frame_store_1): Likewise for local "insn".
4080 (alpha_expand_prologue): Likewise for locals "insn", "seq".
4081 (alpha_end_function): Likewise for local "insn".
4082 (alpha_output_mi_thunk_osf): Likewise.
4083 (alphaev4_insn_pipe): Likewise for param "insn".
4084 (alphaev5_insn_pipe): Likewise.
4085 (alphaev4_next_group): Likewise for return type and param 1
4087 (alphaev5_next_group): Likewise.
4088 (alpha_align_insns_1): Likewise for return type and param 1 of
4089 callback param "next_group", and for locals "i", "next", "prev",
4090 "where", "where2", "insn".
4092 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
4094 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
4095 rather than modifying the stmt.
4097 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4099 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
4100 cgraph_state conversion.
4102 2014-08-25 David Malcolm <dmalcolm@redhat.com>
4104 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4105 Strengthen local "insns" from rtx to rtx_insn *.
4106 (aarch64_set_frame_expr): Likewise for local "insn".
4107 (aarch64_save_or_restore_fprs): Likewise.
4108 (aarch64_save_or_restore_callee_save_registers): Likewise.
4109 (aarch64_expand_prologue): Likewise.
4110 (aarch64_expand_epilogue): Likewise.
4111 (aarch64_output_mi_thunk): Likewise.
4112 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
4113 "label2" from rtx to rtx_code_label *.
4114 (aarch64_split_atomic_op): Likewise for local "label".
4116 2014-08-25 Martin Liska <mliska@suse.cz>
4118 * cgraph.h (symtab_node):
4119 (bool needed_p (void)): created from decide_is_symbol_needed
4120 (bool referred_to_p (void)): created from referred_to_p
4121 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
4122 * cgraph.h (cgraph_node):
4123 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
4124 (void expand (void)): created from expand_function
4125 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
4126 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
4127 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
4128 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
4129 * cgraph.h (varpool_node):
4130 (static void add (tree decl): created from varpool_add_new_variable
4131 * cgraph.h (cgraph_edge):
4133 (void remove_caller (void)): created from cgraph_edge_remove_caller
4134 (void remove_callee (void)): created from cgraph_edge_remove_callee
4135 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
4136 created from cgraph_set_call_stmt
4137 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
4138 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
4139 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
4140 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
4141 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
4142 created from cgraph_speculative_call_info
4143 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
4144 int freq_scale, bool update_original)): created from cgraph_clone_edge
4145 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
4146 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
4147 (bool recursive_p (void)): created from cgraph_edge_recursive_p
4148 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
4149 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
4150 (static void rebuild_references (void)): created from cgraph_rebuild_references
4151 * cgraph.h (symbol_table):
4152 (create_reference): renamed from add_reference
4153 (maybe_create_reference): renamed from maybe_add_reference
4154 (void register_symbol (symtab_node *node)): new function
4155 (void clear_asm_symbols (void)): new function
4156 (void unregister (symtab_node *node)): new function
4157 (void release_symbol (cgraph_node *node, int uid)): new function
4158 (cgraph_node * allocate_cgraph_symbol (void)): new function
4159 (void initialize (void)): created from cgraph_init
4160 (symtab_node *first_symbol (void)):new function
4161 (asm_node *first_asm_symbol (void)):new function
4162 (symtab_node *first_defined_symbol (void)):new function
4163 (varpool_node *first_variable (void)):new function
4164 (varpool_node *next_variable (varpool_node *node)):new function
4165 (varpool_node *first_static_initializer (void)):new function
4166 (varpool_node *next_static_initializer (varpool_node *node)):new function
4167 (varpool_node *first_defined_variable (void)):new function
4168 (varpool_node *next_defined_variable (varpool_node *node)):new function
4169 (cgraph_node *first_defined_function (void)):new function
4170 (cgraph_node *next_defined_function (cgraph_node *node)):new function
4171 (cgraph_node *first_function (void)):new function
4172 (cgraph_node *next_function (cgraph_node *node)):new function
4173 (cgraph_node *first_function_with_gimple_body (void)):new function
4174 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
4175 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
4176 created from symtab_remove_unreachable_nodes
4177 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
4178 (void process_new_functions (void)): created from cgraph_process_new_functions
4179 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
4180 (bool output_variables (void)): created from varpool_node::output_variables
4181 (void output_asm_statements (void)): created from output_asm_statements
4182 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
4183 (void compile (void)): created from compile
4184 (void output_weakrefs (void)): created from output_weakrefs
4185 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
4186 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
4187 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
4188 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
4189 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
4190 created from cgraph_next_function_with_gimple_body
4191 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
4192 created from cgraph_remove_edge_removal_hook
4193 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
4194 created from cgraph_add_node_removal_hook
4195 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
4196 created from cgraph_remove_node_removal_hook
4197 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
4198 created from varpool_add_node_removal_hook
4199 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
4200 created from varpool_remove_node_removal_hook
4201 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
4202 created from cgraph_add_function_insertion_hook
4203 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
4204 created from cgraph_remove_function_insertion_hook
4205 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
4206 created from varpool_add_variable_insertion_hook
4207 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
4208 created from varpool_remove_variable_insertion_hook
4209 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
4210 created from cgraph_add_edge_duplication_hook
4211 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
4212 created from cgraph_remove_edge_duplication_hook
4213 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
4214 created from cgraph_add_node_duplication_hook
4215 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
4216 created from cgraph_remove_node_duplication_hook
4217 (void call_edge_removal_hooks (cgraph_edge *e)):
4218 created from cgraph_call_edge_removal_hooks
4219 (void call_cgraph_insertion_hooks (cgraph_node *node)):
4220 created from call_function_insertion_hooks
4221 (void call_cgraph_removal_hooks (cgraph_node *node)):
4222 created from cgraph_call_node_removal_hooks
4223 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
4224 created from cgraph_node::call_duplication_hooks
4225 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
4226 created from cgraph_call_edge_duplication_hooks
4227 (void call_varpool_removal_hooks (varpool_node *node)):
4228 created from varpool_call_node_removal_hooks
4229 (void call_varpool_insertion_hooks (varpool_node *node)):
4230 created from varpool_call_variable_insertion_hooks
4231 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
4232 created from insert_to_assembler_name_hash
4233 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
4234 created from unlink_from_assembler_name_hash
4235 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
4236 created from symtab_prevail_in_asm_name_hash
4237 (void symtab_initialize_asm_name_hash (void)):
4238 created from symtab_initialize_asm_name_hash
4239 (void change_decl_assembler_name (tree decl, tree name)):
4240 created from change_decl_assembler_name
4241 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
4242 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
4243 created from decl_assembler_name_hash
4244 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
4245 created from decl_assembler_name_equal
4246 (static hashval_t hash_node_by_assembler_name (const void *p)):
4247 created from hash_node_by_assembler_name
4248 (static int eq_assembler_name (const void *p1, const void *p2)):
4249 created from eq_assembler_name
4251 2014-08-25 Marek Polacek <polacek@redhat.com>
4253 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
4255 2014-08-25 Petr Murzin <petr.murzin@intel.com>
4257 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
4258 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
4259 SWI1248_AVX512BW mode iterator.
4261 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
4264 * config/sh/predicates.md (general_extend_operand): Disable
4265 TRUNCATE before reload completes.
4267 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
4269 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
4271 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
4274 * config/sh/sh.opt (musermode): Allow negative form.
4275 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
4276 targets that don't support it.
4277 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
4278 Document -mno-usermode option.
4280 2014-08-24 Kito Cheng <kito@0xlab.org>
4282 * system.h (CALLER_SAVE_PROFITABLE): Poison.
4283 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
4284 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
4285 * doc/tm.texi: Regenerate.
4287 2014-08-24 Kito Cheng <kito@0xlab.org>
4289 * ira.c: Fix typo in comment.
4291 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
4293 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
4294 Deprecate c++1y. Change language to reflect greater confidence in C++14.
4296 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
4299 * config/pa/pa.c (pa_output_function_epilogue): Don't set
4300 last_address when the current function is a thunk.
4301 (pa_asm_output_mi_thunk): When we don't have named sections or they
4302 are not being used, check that thunk can reach the stub table with a
4305 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4307 * web.c (union_match_dups): Strengthen param "insn" from rtx to
4309 (pass_web::execute): Likewise for local "insn".
4311 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4313 * var-tracking.c (struct micro_operation_def): Strengthen field
4314 "insn" from rtx to rtx_insn *.
4315 (struct emit_note_data_def): Likewise.
4316 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
4317 (vt_stack_adjustments): Likewise for local "insn".
4318 (adjust_insn): Likewise for param "insn".
4319 (val_store): Likewise.
4320 (val_resolve): Likewise.
4321 (struct count_use_info): Likewise for field "insn".
4322 (log_op_type): Likewise for param "insn".
4323 (reverse_op): Likewise.
4324 (prepare_call_arguments): Likewise.
4325 (add_with_sets): The initial param takes an insn, but we can't
4326 yet strengthen it from rtx to rtx_insn * since it's used as a
4327 cselib_record_sets_hook callback. For now rename initial param
4328 from "insn" to "uncast_insn", and introduce a local "insn" of
4329 the stronger rtx_insn * type, with a checked cast.
4330 (compute_bb_dataflow): Strengthen local "insn" from rtx to
4332 (emit_note_insn_var_location): Likewise.
4333 (emit_notes_for_changes): Likewise.
4334 (emit_notes_for_differences): Likewise.
4335 (next_non_note_insn_var_location): Likewise for return type and
4337 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
4338 (vt_initialize): Likewise for local "insn".
4339 (delete_debug_insns): Likewise for locals "insn" and "next".
4341 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4343 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
4345 (mark_constant_pool): Likewise for local "insn".
4347 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4349 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
4351 (dead_debug_promote_uses): Likewise.
4352 (dead_debug_insert_temp): Likewise.
4354 2014-08-23 David Malcolm <dmalcolm@redhat.com>
4356 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
4357 from const_rtx to const rtx_insn *.
4358 (store_killed_after): Likewise. Strengthen locals "last", "act"
4359 from rtx to rtx_insn *.
4360 (store_killed_before): Strengthen param "insn" from const_rtx to
4361 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
4362 (find_moveable_store): Strengthen param "insn" from rtx to
4364 (compute_store_table): Likewise for local "insn".
4365 (insert_insn_start_basic_block): Likewise for param "insn" and
4366 locals "prev", "before", "insn".
4367 (insert_store): For now, add a checked cast to rtx_insn * on the
4368 result of gen_move_insn.
4369 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
4371 (replace_store_insn): Likewise. For now, add a checked cast to
4372 rtx_insn * on the result of gen_move_insn.
4374 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4376 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
4378 (expand_sjlj_dispatch_table): Likewise.
4380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4382 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
4383 "insn" from rtx to rtx_insn *.
4385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4387 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
4388 "insn" from rtx to rtx_insn *.
4389 (dup_block_and_redirect): Likewise for param 3 "before".
4391 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
4392 from rtx to rtx_insn *.
4393 (move_insn_for_shrink_wrap): Likewise.
4394 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
4395 (dup_block_and_redirect): Likewise for param "before" and local
4397 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
4399 (convert_to_simple_return): Likewise for local "start".
4401 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
4402 Strengthen local "insn" from rtx to rtx_insn *, for use when
4403 invoking requires_stack_frame_p.
4405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4407 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
4409 (speculate_expr): Likewise for locals "orig_insn_rtx",
4411 (eq_transformed_insns): Likewise for locals "i1", "i2".
4412 (check_for_new_jump): Likewise for return type and local "end".
4413 (find_new_jump): Likewise for return type and local "jump".
4414 (sel_split_edge): Likewise for local "jump".
4415 (sel_create_recovery_block): Likewise.
4416 (sel_redirect_edge_and_branch_force): Likewise.
4417 (sel_redirect_edge_and_branch): Likewise.
4419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4421 * sel-sched.c (substitute_reg_in_expr): Strengthen local
4422 "new_insn" from rtx to rtx_insn *.
4423 (create_insn_rtx_with_rhs): Likewise for return type and for local
4425 (create_insn_rtx_with_lhs): Likewise.
4426 (create_speculation_check): Likewise for local "insn_rtx".
4427 (implicit_clobber_conflict_p): Likewise for local "insn".
4428 (get_expr_cost): Likewise.
4429 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
4430 (move_cond_jump): Likewise for locals "next", "prev", "link",
4431 "head", "from", "to".
4433 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4435 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
4436 "next" from rtx to rtx_insn *.
4437 (find_conditional_protection): Likewise for local "next".
4438 (is_conditionally_protected): Likewise for local "insn1".
4439 (is_pfree): Likewise for locals "insn1", "insn2".
4441 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4443 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
4444 from rtx to rtx_insn *.
4446 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
4447 locals "insn1", "insn2" from rtx to rtx_insn *.
4448 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
4449 locals "insn", "prev", "last_jump", "next_tail".
4450 (schedule_ebb): Likewise for params "head", "tail".
4451 (schedule_ebbs): Likewise for locals "tail", "head".
4453 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
4454 to rtx_insn on "last_insn" in one of the invocations of
4457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4459 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
4460 "elem", "insn" from rtx to rtx_insn *.
4461 (change_spec_dep_to_hard): Likewise.
4462 (get_back_and_forw_lists): Likewise for local "con".
4463 (sd_add_dep): Likewise for locals "elem", "insn".
4464 (sd_resolve_dep): Likewise for locals "pro", "con".
4465 (sd_unresolve_dep): Likewise.
4466 (sd_delete_dep): Likewise.
4467 (chain_to_prev_insn): Likewise for local "pro".
4468 (find_inc): Likewise for locals "pro", "con".
4470 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4472 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
4474 (reg_set_between_p): Strengthen local "insn" from const_rtx to
4476 (modified_between_p): Strengthen local "insn" from rtx to
4478 (remove_reg_equal_equiv_notes_for_regno): Likewise.
4479 (keep_with_call_p): Strengthen local "i2" from const_rtx to
4482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4484 * resource.c (next_insn_no_annul): Strengthen local "next" from
4486 (mark_referenced_resources): Likewise for local "insn".
4488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4490 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
4492 (find_reloads): Likewise for param 1.
4493 (subst_reloads): Likewise for sole param.
4494 (find_equiv_reg): Likwise for param 2.
4495 (regno_clobbered_p): Likwise for param 2.
4496 (reload): Likewise for param 1.
4498 * caller-save.c (save_call_clobbered_regs): Strengthen local
4499 "insn" from rtx to rtx_insn *.
4500 (insert_one_insn): Likewise for local "insn".
4502 * reload.c (this_insn): Likewise for this global.
4503 (find_reloads): Likewise for param "insn".
4504 (find_reloads_toplev): Likewise.
4505 (find_reloads_address): Likewise.
4506 (subst_reg_equivs): Likewise.
4507 (update_auto_inc_notes): Likewise.
4508 (find_reloads_address_1): Likewise.
4509 (find_reloads_subreg_address): Likewise.
4510 (subst_reloads): Likewise.
4511 (find_equiv_reg): Likewise, also for local "p".
4512 (regno_clobbered_p): Likewise for param "insn".
4514 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
4516 (spill_reg_store): Likewise for the elements of this array.
4517 (remove_init_insns): Likewise for local "equiv_insn".
4518 (will_delete_init_insn_p): Likewise for param "insn".
4519 (reload): Likewise for param ""first" and local "insn".
4520 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
4522 (calculate_elim_costs_all_insns): Likewise.
4523 (delete_caller_save_insns): Likewise.
4524 (spill_failure): Likewise for param "insn".
4525 (delete_dead_insn): Likewise.
4526 (set_label_offsets): Likewise.
4527 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
4529 (elimination_costs_in_insn): Likewise for param "insn".
4530 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
4531 when referring to an insn.
4532 (set_initial_label_offsets): Likewise.
4533 (set_offsets_for_label): Strengthen param "insn" from rtx to
4535 (init_eliminable_invariants): Likewise for param "first" and local
4537 (fixup_eh_region_note): Likewise for param "insn".
4538 (reload_as_needed): Likewise for locals "prev", "insn",
4539 "old_next", "old_prev", "next".
4540 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
4542 (reload_inheritance_insn): Strengthen elements of this array from
4544 (failed_reload): Likewise for param "insn".
4545 (choose_reload_regs): Likewise for local "insn". Replace use of
4546 NULL_RTX with NULL when referring to an insn.
4547 (input_reload_insns): Strengthen elements of this array from rtx
4549 (other_input_address_reload_insns): Likewise for this global.
4550 (other_input_reload_insns): Likewise for this global.
4551 (input_address_reload_insns): Likwise for the elements of this
4553 (inpaddr_address_reload_insns): Likwise for the elements of this
4555 (output_reload_insns): Likewise for the elements of this array.
4556 (output_address_reload_insns): Likewise for the elements of this
4558 (outaddr_address_reload_insns): Likewise for the elements of this
4560 (operand_reload_insns): Likewise for this global.
4561 (other_operand_reload_insns): Likewise for this global.
4562 (other_output_reload_insns): Likewise for the elements of this
4564 (new_spill_reg_store): Likewise for the elements of this
4566 (emit_input_reload_insns): Likewise for locals "insn", "temp".
4567 Strengthen local "where" from rtx * to rtx_insn **.
4568 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
4569 from rtx to rtx_insn *.
4570 (do_input_reload): Likewise for local "insn".
4571 (do_output_reload): Likewise for local "insn".
4572 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
4573 (emit_insn_if_valid_for_reload): Likewise for return type and local
4574 "last". Add checked cast to rtx_insn when returning "insn" since
4575 this has been through emit_insn.
4576 (gen_reload): Strengthen return type and locals "last", "insn", "set"
4577 from rtx to rtx_insn *. Add checked cast to rtx_insn when
4578 returning "insn" since it's been through
4579 emit_insn_if_valid_for_reload at this point.
4580 (delete_output_reload): Strengthen param "insn" and locals
4581 "output_reload_insn", "i2" from rtx to rtx_insn *.
4582 (delete_address_reloads): Likewise for params "dead_insn",
4583 "current_insn" and locals "prev", "next".
4584 (delete_address_reloads_1): Likewise for params "dead_insn",
4585 "current_insn" and locals "prev", "i2".
4586 (inc_for_reload): Likewise for locals "last", "add_insn".
4587 (add_auto_inc_notes): Strengthen param "insn" from rtx to
4590 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
4591 param of this duplicate of the prototype from reload.h
4593 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4595 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
4597 (regstat_bb_compute_calls_crossed): Likewise.
4599 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4601 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
4603 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
4605 (regrename_analyze): Strengthen local "insn" from rtx to
4607 (scan_rtx_reg): Likewise for param "insn".
4608 (scan_rtx_address): Likewise.
4609 (scan_rtx): Likewise.
4610 (restore_operands): Likewise.
4611 (record_out_operands): Likewise.
4612 (build_def_use): Likewise for local "insn". Replace use of
4613 NULL_RTX with NULL when dealing with an insn.
4615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4617 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
4618 * reginfo.c (reg_scan): Likewise, also for local "insn".
4619 (reg_scan_mark_refs): Likewise for param "insn".
4620 (init_subregs_of_mode): Likewise for local "insn".
4622 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4624 * regcprop.c (struct queued_debug_insn_change): Strengthen field
4625 "insn" from rtx to rtx_insn *.
4626 (replace_oldest_value_reg): Likewise for param "insn".
4627 (replace_oldest_value_addr): Likewise.
4628 (replace_oldest_value_mem): Likewise.
4629 (apply_debug_insn_changes): Likewise for local "last_insn".
4630 (copyprop_hardreg_forward_1): Likewise for local "insn".
4632 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4634 * reg-stack.c (next_flags_user): Strengthen return type and param
4635 "insn" from rtx to rtx_insn *.
4636 (straighten_stack): Likewise for param "insn".
4637 (check_asm_stack_operands): Likewise.
4638 (remove_regno_note): Likewise.
4639 (emit_pop_insn): Likewise for return type, param "insn", local
4641 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
4642 "limit" from rtx to rtx_insn *.
4643 (swap_to_top): Likewise for param "insn".
4644 (move_for_stack_reg): Likewise.
4645 (move_nan_for_stack_reg): Likewise.
4646 (swap_rtx_condition): Likewise.
4647 (compare_for_stack_reg): Likewise.
4648 (subst_all_stack_regs_in_debug_insn): Likewise.
4649 (subst_stack_regs_pat): Likewise, and local "insn2".
4650 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
4652 (subst_stack_regs): Likewise.
4653 (change_stack): Likewise.
4654 (convert_regs_1): Likewise for locals "insn", "next".
4656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4658 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
4660 (combine_set_extension): Likewise for param "curr_insn".
4661 (transform_ifelse): Likewise for param "def_insn".
4662 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
4663 from vec<rtx> * to vec<rtx_insn *> *.
4664 (is_cond_copy_insn): Likewise for param "insn".
4665 (struct ext_state): Strengthen the four vec fields from vec<rtx>
4667 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
4668 local "def_insn" from rtx to rtx_insn *.
4669 (get_sub_rtx): Likewise for param "def_insn".
4670 (merge_def_and_ext): Likewise.
4671 (combine_reaching_defs): Likewise.
4672 (add_removable_extension): Likewise for param "insn".
4673 (find_removable_extensions): Likewise for local "insn".
4674 (find_and_remove_re): Likewise for locals "curr_insn" and
4675 "def_insn". Strengthen locals "reinsn_del_list" and
4676 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
4678 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4680 * recog.c (split_insn): Strengthen param "insn" and locals
4681 "first", "last" from rtx to rtx_insn *.
4682 (split_all_insns): Likewise for locals "insn", "next".
4683 (split_all_insns_noflow): Likewise.
4685 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4687 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
4689 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
4690 (debug_rtx_find): Likewise for param 1 "x".
4692 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
4693 const_rtx to const rtx_insn *. Likewise for local "insn".
4694 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
4695 (debug_rtx_find): Likewise for param 1 "x".
4696 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
4697 from const_rtx to const rtx_insn * within the appropriate cases of
4698 the switch statement.
4700 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
4701 Strengthen local "insns" from rtx to rtx_insn * since this is
4702 passed to a call to debug_rtx_list.
4704 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4706 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
4709 * function.c (stack_protect_epilogue): Add checked cast to
4710 rtx_insn for now when invoking predict_insn_def.
4712 * predict.c (predict_insn): Strengthen param "insn" from rtx to
4714 (predict_insn_def): Likewise.
4715 (rtl_predict_edge): Likewise for local "last_insn".
4716 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
4718 (combine_predictions_for_insn): Strengthen param "insn" from rtx
4720 (bb_estimate_probability_locally): Likewise for local "last_insn".
4721 (expensive_function_p): Likewise for local "insn".
4723 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
4724 local "jmp", since this is used when invoking predict_insn_def.
4726 2014-08-22 Marek Polacek <polacek@redhat.com>
4729 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
4731 2014-08-22 Marek Polacek <polacek@redhat.com>
4734 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
4735 a comparison in parens.
4736 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
4739 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4741 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
4744 * cprop.c (fis_get_condition): Likewise.
4746 * postreload.c (reload_cse_regs): Likewise for param "first".
4747 (reload_cse_simplify): Likewise for param "insn".
4748 (reload_cse_regs_1): Likewise for local "insn".
4749 (reload_cse_simplify_set): Likewise for param "insn".
4750 (reload_cse_simplify_operands): Likewise.
4751 (struct reg_use): Likewise for field "insn".
4752 (reload_combine_purge_insn_uses): Likewise for param "insn".
4753 (fixup_debug_insns): Likewise for params "from", "to" and local
4755 (try_replace_in_use): Likewise for local "use_insn".
4756 (reload_combine_recognize_const_pattern): Likewise for param
4757 "insn" and locals "add_moved_after_insn", "use_insn".
4758 (reload_combine_recognize_pattern): Likewise for param "insn" and
4760 (reload_combine): Likewise for locals "insn", "prev".
4761 (reload_combine_note_use): Likewise for param "insn".
4762 (move2add_use_add2_insn): Likewise.
4763 (move2add_use_add3_insn): Likewise.
4764 (reload_cse_move2add): Likewise, also for local "next".
4765 (move2add_note_store): Likewise for local "insn".
4767 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4769 * postreload-gcse.c (struct occr): Strengthen field "insn" from
4771 (struct unoccr): Likewise.
4772 (struct modifies_mem): Likewise.
4773 (alloc_mem): Likewise for local "insn".
4774 (insert_expr_in_table): Likewise for param "insn".
4775 (dump_expr_hash_table_entry): Likewise for local "insn".
4776 (oprs_unchanged_p): Likewise for param "insn".
4777 (load_killed_in_block_p): Likewise for local "setter".
4778 (record_last_reg_set_info): Likewise for param "insn".
4779 (record_last_reg_set_info_regno): Likewise.
4780 (record_last_mem_set_info): Likewise.
4781 (record_last_set_info): Likewise for local "last_set_insn".
4782 (record_opr_changes): Likewise for param "insn".
4783 (hash_scan_set): Likewise.
4784 (compute_hash_table): Likewise for local "insn".
4785 (get_avail_load_store_reg): Likewise for param "insn".
4786 (eliminate_partially_redundant_load): Likewise, also for locals
4787 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
4789 (eliminate_partially_redundant_loads): Likewise for local "insn".
4791 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4793 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
4795 (expand_binop): Likewise for locals "entry_last", "last", "insns"
4796 (expand_twoval_unop): Likewise for locals entry_last", "last".
4797 (expand_twoval_binop): Likewise.
4798 (expand_twoval_binop_libfunc): Likewise for local "insns".
4799 (widen_leading): Likewise for local "last".
4800 (expand_doubleword_clz): Likewise for local "seq". Strengthen
4801 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
4802 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
4803 (expand_parity): Likewise for locals "last" and "seq".
4804 (expand_ffs): Likewise for local "seq". Strengthen local
4805 "nonzero_label" from rtx to rtx_code_label *.
4806 (expand_absneg_bit): Strengthen local "insns" from rtx to
4808 (expand_unop_direct): Likewise for local "last".
4809 (expand_unop): Likewise for locals "last", "insns".
4810 (expand_abs_nojump): Likewise for local "last".
4811 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
4812 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
4814 (expand_copysign_absneg): Strengthen local "label" from rtx to
4816 (expand_copysign_bit): Strengthen local "insns" from rtx to
4818 (struct no_conflict_data): Likewise for fields "first", "insn".
4819 (emit_libcall_block_1): Likewise for param "insns" and locals
4820 "next", "last", "insn".
4821 (emit_libcall_block): For now, add a checked cast to rtx_insn *
4822 on "insns" when invoking emit_libcall_block_1. Ultimately we
4823 want to strengthen insns itself.
4824 (prepare_cmp_insn): Strengthen local "last" from rtx to
4826 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
4827 (prepare_float_lib_cmp): Likewise for local "insns".
4828 (emit_conditional_move): Likewise for local "last".
4829 (emit_conditional_add): Likewise.
4830 (have_sub2_insn): Likewise for local "seq".
4831 (expand_float): Likewise for local "insns". Strengthen locals
4832 "label", "neglabel" from rtx to rtx_code_label *.
4833 (expand_fix): Likewise for locals "last", "insn", "insns" (to
4834 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
4835 (expand_fixed_convert): Likewise for local "insns" (to
4837 (expand_sfix_optab): Likewise for local "last".
4838 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
4839 to rtx_code_label *.
4840 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
4841 from rtx to rtx_insn *.
4842 (expand_atomic_fetch_op): Likewise for local "insn".
4843 (maybe_legitimize_operand_same_code): Likewise for local "last".
4844 (maybe_legitimize_operands): Likewise.
4846 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4848 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
4849 "insn" from rtx to rtx_insn *.
4850 (ps_rtl_insn): Likewise for return type.
4851 (doloop_register_get): Likewise for params "head", "tail" and
4852 locals "insn", "first_insn_not_to_check".
4853 (schedule_reg_move): Likewise for local "this_insn".
4854 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
4855 of gen_move_insn for now.
4856 (reset_sched_times): Strengthen local "insn" from rtx to
4858 (permute_partial_schedule): Likewise.
4859 (duplicate_insns_of_cycles): Likewise for local "u_insn".
4860 (dump_insn_location): Likewise for param "insn".
4861 (loop_canon_p): Likewise for local "insn".
4862 (sms_schedule): Likewise.
4863 (print_partial_schedule): Likewise.
4864 (ps_has_conflicts): Likewise.
4866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4868 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
4869 "tailp" from rtx * to rtx_insn **.
4871 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
4872 from rtx to rtx_insn *.
4873 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
4874 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
4875 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
4877 * modulo-sched.c (const_iteration_count): Strengthen return type
4878 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
4879 use of NULL_RTX with NULL when working with insns.
4880 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
4882 (sms_schedule): Likewise.
4883 * sched-rgn.c (init_ready_list): Likewise, also for locals
4884 "src_head" and "src_next_tail".
4885 (compute_block_dependences): Likewise.
4886 (free_block_dependencies): Likewise.
4887 (debug_rgn_dependencies): Likewise.
4888 (free_rgn_deps): Likewise.
4889 (compute_priorities): Likewise.
4890 (schedule_region): Likewise.
4891 * sel-sched.c (find_ebb_boundaries): Likewise.
4893 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
4894 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
4896 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4898 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
4899 from rtx to rtx_insn *.
4900 (new_seginfo): Likewise for param "insn".
4901 (create_pre_exit): Likewise for locals "last_insn",
4902 "before_return_copy", "return_copy".
4903 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
4906 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4908 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
4909 from rtx to rtx_insn *.
4910 (lra_push_insn): Likewise for 1st param.
4911 (lra_push_insn_and_update_insn_regno_info): Likewise.
4912 (lra_pop_insn): Likewise for return type.
4913 (lra_invalidate_insn_data): Likewise for 1st param.
4914 (lra_set_insn_deleted): Likewise.
4915 (lra_delete_dead_insn): Likewise.
4916 (lra_process_new_insns): Likewise for first 3 params.
4917 (lra_set_insn_recog_data): Likewise for 1st param.
4918 (lra_update_insn_recog_data): Likewise.
4919 (lra_set_used_insn_alternative): Likewise.
4920 (lra_invalidate_insn_regno_info): Likewise.
4921 (lra_update_insn_regno_info): Likewise.
4922 (lra_former_scratch_operand_p): Likewise.
4923 (lra_eliminate_regs_1): Likewise.
4924 (lra_get_insn_recog_data): Likewise.
4926 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
4929 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
4931 (substitute_within_insn): New.
4932 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
4933 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
4934 Replace call to "substitute" with call to substitute_within_insn.
4936 * lra-constraints.c (curr_insn): Strengthen from rtx to
4938 (get_equiv_with_elimination): Likewise for param "insn".
4939 (match_reload): Strengthen params "before" and "after" from rtx *
4941 (emit_spill_move): Likewise for return type. Add a checked cast
4942 to rtx_insn * on result of gen_move_insn for now.
4943 (check_and_process_move): Likewise for local "before". Replace
4944 NULL_RTX with NULL when referring to insns.
4945 (process_addr_reg): Strengthen params "before" and "after" from
4946 rtx * to rtx_insn **.
4947 (insert_move_for_subreg): Likewise.
4948 (simplify_operand_subreg): Strengthen locals "before" and "after"
4949 from rtx to rtx_insn *.
4950 (process_address_1): Strengthen params "before" and "after" from
4951 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
4953 (process_address): Strengthen params "before" and "after" from
4954 rtx * to rtx_insn **.
4955 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
4956 (curr_insn_transform): Strengthen locals "before" and "after"
4957 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
4959 (loc_equivalence_callback): Update cast of "data", changing
4960 resulting type from rtx to rtx_insn *.
4961 (substitute_pseudo_within_insn): New.
4962 (inherit_reload_reg): Strengthen param "insn" from rtx to
4963 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
4964 NULL when referring to insns. Add a checked cast to rtx_insn *
4965 when using usage_insn to invoke lra_update_insn_regno_info.
4966 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
4967 likewise for locals "restore", "save". Add checked casts to
4968 rtx_insn * when using usage_insn to invoke
4969 lra_update_insn_regno_info and lra_process_new_insns. Replace
4970 NULL_RTX with NULL when referring to insns.
4971 (split_if_necessary): Strengthen param "insn" from rtx to
4973 (update_ebb_live_info): Likewise for params "head", "tail" and local
4975 (get_last_insertion_point): Likewise for return type and local "insn".
4976 (get_live_on_other_edges): Likewise for local "last".
4977 (inherit_in_ebb): Likewise for params "head", "tail" and locals
4978 "prev_insn", "next_insn", "restore".
4979 (remove_inheritance_pseudos): Likewise for local "prev_insn".
4980 (undo_optional_reloads): Likewise for local "insn".
4982 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
4984 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
4986 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
4988 (spill_pseudos): Likewise for local "insn".
4989 (init_elimination): Likewise.
4990 (process_insn_for_elimination): Likewise for param "insn".
4992 * lra-lives.c (curr_insn): Likewise.;
4994 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
4995 (remove_pseudos): Likewise for param "insn".
4996 (spill_pseudos): Likewise for local "insn".
4997 (lra_final_code_change): Likewise for locals "insn", "curr".
4999 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5000 (lra_set_insn_deleted): Likewise.
5001 (lra_delete_dead_insn): Likewise, and for local "prev".
5002 (new_insn_reg): Likewise for param "insn".
5003 (lra_set_insn_recog_data): Likewise.
5004 (lra_update_insn_recog_data): Likewise.
5005 (lra_set_used_insn_alternative): Likewise.
5006 (get_insn_freq): Likewise.
5007 (invalidate_insn_data_regno_info): Likewise.
5008 (lra_invalidate_insn_regno_info): Likewise.
5009 (lra_update_insn_regno_info): Likewise.
5010 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5012 (lra_push_insn_1): Strengthen param "insn" from rtx to
5014 (lra_push_insn): Likewise.
5015 (lra_push_insn_and_update_insn_regno_info): Likewise.
5016 (lra_pop_insn): Likewise for return type and local "insn".
5017 (push_insns): Likewise for params "from", "to", and local "insn".
5018 (setup_sp_offset): Likewise for params "from", "last" and locals
5020 (lra_process_new_insns): Likewise for params "insn", "before",
5021 "after" and local "last".
5022 (struct sloc): Likewise for field "insn".
5023 (lra_former_scratch_operand_p): Likewise for param "insn".
5024 (remove_scratches): Likewise for locals "insn", "last".
5025 (check_rtl): Likewise for local "insn".
5026 (add_auto_inc_notes): Likewise for param "insn".
5027 (update_inc_notes): Likewise for local "insn".
5028 (lra): Replace NULL_RTX with NULL when referring to insn.
5030 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5032 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5034 (resolve_reg_notes): Likewise.
5035 (resolve_simple_move): Likewise for return type, param "insn", and
5036 locals "insns", "minsn".
5037 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5038 (resolve_use): Likewise.
5039 (resolve_debug): Likewise.
5040 (find_decomposable_shift_zext): Likewise.
5041 (resolve_shift_zext): Likewise for return type, param "insn", and
5042 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
5043 (decompose_multiword_subregs): Likewise for local "insn",
5044 "orig_insn", "decomposed_shift", "end".
5046 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5048 * basic-block.h (basic_block split_edge_and_insert): Strengthen
5049 param "insns" from rtx to rtx_insn *.
5051 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5053 (struct iv_to_split): Likewise.
5054 (loop_exit_at_end_p): Likewise for local "insn".
5055 (split_edge_and_insert): Likewise for param "insns".
5056 (compare_and_jump_seq): Likewise for return type, param "cinsn",
5057 and locals "seq", "jump".
5058 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5059 "branch_code"; update invocations of compare_and_jump_seq to
5060 eliminate NULL_RTX in favor of NULL.
5061 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5063 (reset_debug_uses_in_loop): Likewise.
5064 (analyze_insn_to_expand_var): Likewise for param "insn".
5065 (analyze_iv_to_split_insn): Likewise.
5066 (analyze_insns_in_loop): Likewise for local "insn".
5067 (insert_base_initialization): Likewise for param
5068 "insn" and local "seq".
5069 (split_iv): Likewise for param "insn" and local "seq".
5070 (expand_var_during_unrolling): Likewise for param "insn".
5071 (insert_var_expansion_initialization): Likewise for local "seq".
5072 (combine_var_copies_in_loop_exit): Likewise.
5073 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
5075 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
5076 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
5079 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5081 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
5083 (iv_analyze_result): Likewise.
5084 (iv_analyze_expr): Likewise.
5087 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
5088 local "def_insn" from rtx to rtx_insn *.
5089 (get_biv_step_1): Likewise for local "insn".
5090 (iv_analyze_expr): Likewise for param "insn".
5091 (iv_analyze_def): Likewise for local "insn".
5092 (iv_analyze_op): Likewise for param "insn".
5093 (iv_analyze): Likewise.
5094 (iv_analyze_result): Likewise.
5096 (suitable_set_for_replacement): Likewise.
5097 (simplify_using_initial_values): Likewise for local "insn".
5098 (iv_number_of_iterations): Likewise for param "insn".
5099 (check_simple_exit): Add checked cast to rtx_insn when invoking
5100 iv_number_of_iterations for now (until get_condition is
5103 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
5104 "insn" from rtx to rtx_insn *.
5105 (analyze_insns_in_loop): Likewise for local "insn".
5107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5109 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
5111 (struct invariant): Likewise.
5112 (hash_invariant_expr_1): Likewise for param "insn".
5113 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
5114 (find_exits): Likewise for local "insn".
5115 (create_new_invariant): Likewise for param "insn".
5116 (check_dependencies): Likewise.
5117 (find_invariant_insn): Likewise.
5118 (record_uses): Likewise.
5119 (find_invariants_insn): Likewise.
5120 (find_invariants_bb): Likewise for local "insn".
5121 (get_pressure_class_and_nregs): Likewise for param "insn".
5122 (calculate_loop_reg_pressure): Likewise for local "insn".
5124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5126 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
5128 (add_test): Likewise for locals "seq", "jump".
5129 (doloop_modify): Likewise for locals "sequence", "jump_insn".
5131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5133 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
5135 (rebuild_jump_labels_chain): Likewise for param "chain".
5137 * cfgexpand.c (pass_expand::execute): Add checked cast to
5138 rtx_insn * when calling rebuild_jump_labels_chain in region where
5139 we know e->insns.r is non-NULL.
5141 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
5143 (rebuild_jump_labels): Likewise.
5144 (rebuild_jump_labels_chain): Likewise for param "chain".
5145 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
5146 (init_label_info): Likewise for param "f".
5147 (maybe_propagate_label_ref): Likewise for params "jump_insn",
5148 "prev_nonjump_insn".
5149 (mark_all_labels): Likewise for param "f" and locals "insn",
5150 "prev_nonjump_insn".
5152 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5154 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
5155 from rtx to rtx_insn *insn.
5156 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
5157 (ira_add_allocno_copy): Likewise.
5158 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
5160 (ira_create_copy): Likewise.
5161 (ira_add_allocno_copy): Likewise.
5162 (create_bb_allocnos): Likewise for local "insn".
5163 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
5164 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
5165 process_regs_for_copy for rtx_insn * param.
5166 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
5167 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
5168 process_regs_for_copy for rtx_insn * param.
5169 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
5170 * ira-costs.c (record_reg_classes): Likewise for param "insn".
5171 (record_operand_costs): Likewise.
5172 (scan_one_insn): Likewise for return type, and for param "insn".
5173 (process_bb_for_costs): Likewise for local "insn".
5174 (process_bb_node_for_hard_reg_moves): Likewise.
5175 * ira-emit.c (struct move): Likewise for field "insn".
5176 (create_move): Eliminate use of NULL_RTX when dealing with an
5178 (emit_move_list): Strengthen return type and locals "result",
5179 "insn" from rtx to rtx_insn *insn.
5180 (emit_moves): Likewise for locals "insns", "tmp".
5181 (ira_emit): Likewise for local "insn".
5182 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
5184 (find_call_crossed_cheap_reg): Likewise.
5185 (process_bb_node_lives): Likewise for local "insn".
5186 * ira.c (decrease_live_ranges_number): Likewise.
5187 (compute_regs_asm_clobbered): Likewise.
5188 (build_insn_chain): Likewise.
5189 (find_moveable_pseudos): Likewise, also locals "def_insn",
5190 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
5191 to rtx_insn **. Add a checked cast when assigning from
5192 "closest_use" into closest_uses array in a region where we know
5193 it's a non-NULL insn.
5194 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
5196 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
5197 "last_interesting_insn", "uin".
5198 (move_unallocated_pseudos): Likewise for locals "def_insn",
5199 "move_insn", "newinsn".
5201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5203 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
5204 Strengthen locals "done_label", "do_error" from rtx to
5206 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
5207 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
5209 (ubsan_expand_si_overflow_neg_check): Likewise for locals
5210 "done_label", "do_error" to rtx_code_label * and local "last" to
5212 (ubsan_expand_si_overflow_mul_check): Likewise for locals
5213 "done_label", "do_error", "large_op0", "small_op0_large_op1",
5214 "one_small_one_large", "both_ops_large", "after_hipart_neg",
5215 "after_lopart_neg", "do_overflow", "hipart_different" to
5216 rtx_code_label * and local "last" to rtx_insn *.
5218 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5220 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
5221 "insn" and "move_insn" from rtx to rtx_insn *.
5223 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5225 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
5227 (cheap_bb_rtx_cost_p): Likewise.
5228 (first_active_insn): Likewise for return type and local "insn".
5229 (last_active_insn): Likewise for return type and locals "insn",
5231 (struct noce_if_info): Likewise for fields "jump", "insn_a",
5233 (end_ifcvt_sequence): Likewise for return type and locals "insn",
5235 (noce_try_move): Likewise for local "seq".
5236 (noce_try_store_flag): Likewise.
5237 (noce_try_store_flag_constants): Likewise.
5238 (noce_try_addcc): Likewise.
5239 (noce_try_store_flag_mask): Likewise.
5240 (noce_try_cmove): Likewise.
5241 (noce_try_minmax): Likewise.
5242 (noce_try_abs): Likewise.
5243 (noce_try_sign_mask): Likewise.
5244 (noce_try_bitop): Likewise.
5245 (noce_can_store_speculate_p): Likewise for local "insn".
5246 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
5248 (check_cond_move_block): Likewise for local "insn".
5249 (cond_move_convert_if_block): Likewise.
5250 (cond_move_process_if_block): Likewise for locals "seq",
5252 (noce_find_if_block): Likewise for local "jump".
5253 (merge_if_block): Likewise for local "last".
5254 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
5255 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
5256 (block_has_only_trap): Likewise for return type and local "trap".
5257 (find_if_case_1): Likewise for local "jump".
5258 (dead_or_predicable): Likewise for locals "head", "end", "jump",
5261 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5263 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
5264 "last_insn", "loop_end" from rtx to rtx_insn *.
5266 * hw-doloop.c (scan_loop): Likewise for local "insn".
5267 (discover_loop): Likewise for param "tail_insn".
5268 (discover_loops): Likewise for local "tail".
5270 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
5271 cast to rtx_insn * when assigning from an rtx local to a
5272 hwloop_info's "last_insn" field.
5274 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5276 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
5277 (add_delay_dependencies): Strengthen local "pro" from rtx to
5279 (recompute_todo_spec): Likewise.
5280 (dep_cost_1): Likewise for locals "insn", "used".
5281 (schedule_insn): Likewise for local "dbg".
5282 (schedule_insn): Likewise for locals "pro", "next".
5283 (unschedule_insns_until): Likewise for local "con".
5284 (restore_pattern): Likewise for local "next".
5285 (estimate_insn_tick): Likewise for local "pro".
5286 (resolve_dependencies): Likewise for local "next".
5287 (fix_inter_tick): Likewise.
5288 (fix_tick_ready): Likewise for local "pro".
5289 (add_to_speculative_block): Likewise for locals "check", "twin",
5291 (sched_extend_bb): Likewise for locals "end", "insn".
5292 (init_before_recovery): Likewise for local "x".
5293 (sched_create_recovery_block): Likewise for local "barrier".
5294 (create_check_block_twin): Likewise for local "pro".
5295 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
5297 (unlink_bb_notes): Update for change to type of bb_header.
5298 Strengthen locals "prev", "label", "note", "next" from rtx to
5300 (clear_priorities): Likewise for local "pro".
5302 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5304 * gcse.c (struct occr): Strengthen field "insn" from rtx to
5306 (test_insn): Likewise for this global.
5307 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
5309 (oprs_anticipatable_p): Likewise.
5310 (oprs_available_p): Likewise.
5311 (insert_expr_in_table): Strengthen param "insn" from rtx to
5313 (hash_scan_set): Likewise.
5314 (hash_scan_clobber): Likewise.
5315 (hash_scan_call): Likewise.
5316 (hash_scan_insn): Likewise.
5317 (compute_hash_table_work): Likewise for local "insn".
5318 (process_insert_insn): Likewise for return type and local "pat".
5319 (insert_insn_end_basic_block): Likewise for locals "new_insn",
5320 "pat", "pat_end", "maybe_cc0_setter".
5321 (pre_edge_insert): Likewise for local "insn".
5322 (pre_insert_copy_insn): Likewise for param "insn".
5323 (pre_insert_copies): Likewise for local "insn".
5324 (struct set_data): Likewise for field "insn".
5325 (single_set_gcse): Likewise for param "insn".
5326 (gcse_emit_move_after): Likewise.
5327 (pre_delete): Likewise for local "insn".
5328 (update_bb_reg_pressure): Likewise for param "from" and local
5330 (should_hoist_expr_to_dom): Likewise for param "from".
5331 (hoist_code): Likewise for local "insn".
5332 (get_pressure_class_and_nregs): Likewise for param "insn".
5333 (calculate_bb_reg_pressure): Likewise for local "insn".
5334 (compute_ld_motion_mems): Likewise.
5336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5338 * genpeep.c (main): Rename param back from "uncast_ins1" to
5339 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
5342 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
5344 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5347 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
5348 documentation to state it is only for VSX operations.
5350 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
5351 constraint only active if VSX.
5353 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
5354 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
5357 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5359 * fwprop.c (single_def_use_dom_walker::before_dom_children):
5360 Strengthen local "insn" from rtx to rtx_insn *.
5361 (use_killed_between): Likewise for param "target_insn".
5362 (all_uses_available_at): Likewise for param "target_insn" and
5364 (update_df_init): Likewise for params "def_insn", "insn".
5365 (update_df): Likewise for param "insn".
5366 (try_fwprop_subst): Likewise for param "def_insn" and local
5368 (free_load_extend): Likewise for param "insn".
5369 (forward_propagate_subreg): Likewise for param "def_insn" and
5371 (forward_propagate_asm): Likewise for param "def_insn" and local
5373 (forward_propagate_and_simplify): Likewise for param "def_insn"
5374 and local "use_insn".
5375 (forward_propagate_into): Likewise for locals "def_insn" and
5378 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5380 * function.c (emit_initial_value_sets): Strengthen local "seq"
5381 from rtx to rtx_insn *.
5382 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
5384 (instantiate_virtual_regs): Likewise for local "insn".
5385 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
5386 (reorder_blocks_1): Likewise for param "insns" and local "insn".
5387 (expand_function_end): Likewise for locals "insn" and "seq".
5388 (epilogue_done): Likewise for local "insn".
5389 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
5391 (reposition_prologue_and_epilogue_notes): Likewise for locals
5392 "insn", "last", "note", "first".
5393 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
5394 (pass_match_asm_constraints::execute): Likewise for local "insn".
5396 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5398 * output.h (final_scan_insn): Strengthen return type from rtx to
5400 (final_forward_branch_p): Likewise for param.
5401 (current_output_insn): Likewise for this global.
5403 * final.c (rtx debug_insn): Likewise for this variable.
5404 (current_output_insn): Likewise.
5405 (get_attr_length_1): Rename param "insn" to "uncast_insn",
5406 adding "insn" back in as an rtx_insn * with a checked cast, so
5407 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
5409 (compute_alignments): Strengthen local "label" from rtx to
5411 (shorten_branches): Rename param from "first" to "uncast_first",
5412 introducing a new local rtx_insn * "first" using a checked cast to
5413 effectively strengthen "first" from rtx to rtx_insn * without
5414 affecting the type signature. Strengthen locals "insn", "seq",
5415 "next", "label" from rtx to rtx_insn *.
5416 (change_scope): Strengthen param "orig_insn" and local "insn" from
5418 (final_start_function): Rename param from "first" to "uncast_first",
5419 introducing a new local rtx_insn * "first" using a checked cast to
5420 effectively strengthen "first" from rtx to rtx_insn * without
5421 affecting the type signature. Strengthen local "insn" from rtx to
5423 (dump_basic_block_info): Strengthen param "insn" from rtx to
5425 (final): Rename param from "first" to "uncast_first",
5426 introducing a new local rtx_insn * "first" using a checked cast to
5427 effectively strengthen "first" from rtx to rtx_insn * without
5428 affecting the type signature. Strengthen locals "insn", "next"
5429 from rtx to rtx_insn *.
5430 (output_alternate_entry_point): Strengthen param "insn" from rtx to
5432 (call_from_call_insn): Strengthen param "insn" from rtx to
5434 (final_scan_insn): Rename param from "insn" to "uncast_insn",
5435 introducing a new local rtx_insn * "insn" using a checked cast to
5436 effectively strengthen "insn" from rtx to rtx_insn * without
5437 affecting the type signature. Strengthen return type and locals
5438 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
5439 now-redundant checked cast to rtx_insn * from both invocations of
5440 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
5441 introducing a local "call_insn" for use when invoking
5442 call_from_call_insn.
5443 (notice_source_line): Strengthen param "insn" from rtx to
5445 (leaf_function_p): Likewise for local "insn".
5446 (final_forward_branch_p): Likewise.
5447 (leaf_renumber_regs): Likewise for param "first".
5448 (rest_of_clean_state): Likewise for locals "insn" and "next".
5449 (self_recursive_call_p): Likewise for param "insn".
5450 (collect_fn_hard_reg_usage): Likewise for local "insn".
5451 (get_call_fndecl): Likewise for param "insn".
5452 (get_call_cgraph_rtl_info): Likewise.
5453 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
5454 introducing a new local rtx_insn * "insn" using a checked cast to
5455 effectively strengthen "insn" from rtx to rtx_insn * without
5456 affecting the type signature.
5458 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
5459 cast when assigning from param "insn" to current_output_insn.
5460 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
5461 so that we can assign it back to current_output_insn.
5463 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5465 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
5466 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
5467 atmxt540s and atmxt540sreva devices.
5468 * config/avr/avr-tables.opt: Regenerate.
5469 * config/avr/t-multilib: Regenerate.
5470 * doc/avr-mmcu.texi: Regenerate.
5472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5474 * expr.c (convert_move): Strengthen local "insns" from rtx to
5476 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
5477 "top_label" from rtx to rtx_code_label *.
5478 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
5480 (emit_single_push_insn): Likewise for locals "prev", "last".
5481 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
5482 to rtx_code_label *.
5483 (store_constructor): Likewise for locals "loop_start", "loop_end".
5484 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
5486 (expand_expr_real_2): Likewise.
5487 (expand_expr_real_1): Strengthen local "label" from rtx to
5490 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5492 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
5493 from rtx to rtx_insn *.
5494 (store_bit_field_1): Likewise.
5495 (extract_bit_field_1): Likewise.
5496 (expand_mult_const): Likewise for local "insns".
5497 (expmed_mult_highpart): Strengthen local "label" from rtx to
5499 (expand_smod_pow2): Likewise.
5500 (expand_sdiv_pow2): Likewise.
5501 (expand_divmod): Strengthen locals "last", "insn" from rtx to
5502 rtx_insn *. Strengthen locals "label", "label1", "label2",
5503 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
5504 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
5505 (emit_store_flag): Likewise.
5506 (emit_store_flag_force): Strengthen local "label" from rtx to
5508 (do_cmp_and_jump): Likewise for param "label".
5510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5512 * explow.c (force_reg): Strengthen local "insn" from rtx to
5514 (adjust_stack_1): Likewise.
5515 (allocate_dynamic_stack_space): Likewise. Strengthen locals
5516 "final_label", "available_label", "space_available" from rtx to
5518 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
5519 (anti_adjust_stack_and_probe): Likewise.
5521 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5523 * except.h (sjlj_emit_function_exit_after): Strengthen param
5524 "after" from rtx to rtx_insn *. This is only called with
5525 result of get_last_insn (in function.c) so type-change should be
5528 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
5529 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
5530 to rtx_insn *. These fields are only used from except.c so this
5531 type-change should be self-contained to this patch.
5533 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
5534 local "last" from rtx to rtx_insn *.
5535 (dw2_build_landing_pads): Likewise for local "seq".
5536 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
5537 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
5538 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
5540 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
5542 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
5543 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
5544 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
5545 referring to an insn. Strengthen local "dispatch_label" from
5546 rtx to rtx_code_label *.
5547 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
5549 (expand_eh_return): Strengthen local "around_label" from
5550 rtx to rtx_code_label *.
5551 (convert_to_eh_region_ranges): Strengthen locals "iter",
5552 "last_action_insn", "first_no_action_insn",
5553 "first_no_action_insn_before_switch",
5554 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
5556 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5558 * dwarf2out.c (last_var_location_insn): Strengthen this variable
5559 from rtx to rtx_insn *.
5560 (cached_next_real_insn): Likewise.
5561 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
5563 (dwarf2out_var_location): Strengthen locals "next_real",
5564 "next_note", "expected_next_loc_note", "last_start", "insn" from
5567 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5569 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
5570 from rtx to rtx_insn *.
5571 (create_pseudo_cfg): Likewise for local "insn".
5573 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5575 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
5576 from rtx to rtx_insn *.
5577 (df_bb_regno_last_def_find): Likewise.
5579 * df-problems.c (df_rd_bb_local_compute): Likewise.
5580 (df_lr_bb_local_compute): Likewise.
5581 (df_live_bb_local_compute): Likewise.
5582 (df_chain_remove_problem): Likewise.
5583 (df_chain_create_bb): Likewise.
5584 (df_word_lr_bb_local_compute): Likewise.
5585 (df_remove_dead_eq_notes): Likewise for param "insn".
5586 (df_note_bb_compute): Likewise for local "insn".
5587 (simulate_backwards_to_point): Likewise.
5588 (df_md_bb_local_compute): Likewise.
5590 * df-scan.c (df_scan_free_bb_info): Likewise.
5591 (df_scan_start_dump): Likewise.
5592 (df_scan_start_block): Likewise.
5593 (df_install_ref_incremental): Likewise for local "insn".
5594 (df_insn_rescan_all): Likewise.
5595 (df_reorganize_refs_by_reg_by_insn): Likewise.
5596 (df_reorganize_refs_by_insn_bb): Likewise.
5597 (df_recompute_luids): Likewise.
5598 (df_bb_refs_record): Likewise.
5599 (df_update_entry_exit_and_calls): Likewise.
5600 (df_bb_verify): Likewise.
5602 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5604 * ddg.h (struct ddg_node): Strengthen fields "insn" and
5605 "first_note" from rtx to rtx_insn *.
5606 (get_node_of_insn): Likewise for param 2 "insn".
5607 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5609 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
5611 (mem_write_insn_p): Likewise.
5612 (mem_access_insn_p): Likewise.
5613 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5614 (def_has_ccmode_p): Likewise for param "insn".
5615 (add_cross_iteration_register_deps): Likewise for locals
5616 "def_insn" and "use_insn".
5617 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
5618 (build_intra_loop_deps): Likewise for local "src_insn".
5619 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
5621 (get_node_of_insn): Likewise for param "insn".
5623 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5625 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
5626 (deletable_insn_p): Strengthen param "insn" from rtx to
5627 rtx_insn *. Add checked cast to rtx_call_insn when invoking
5628 find_call_stack_args, since this is guarded by CALL_P (insn).
5629 (marked_insn_p): Strengthen param "insn" from rtx to
5631 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
5632 invoking find_call_stack_args, since this is guarded by
5634 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
5635 rtx_insn *; we know this is an insn since this was called by
5637 (mark_nonreg_stores_2): Likewise.
5638 (mark_nonreg_stores): Strengthen param "insn" from rtx to
5640 (find_call_stack_args): Strengthen param "call_insn" from rtx to
5641 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
5643 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
5644 from rtx to rtx_insn *.
5645 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
5647 (delete_unmarked_insns): Likewise for locals "insn", "next".
5648 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
5649 (mark_reg_dependencies): Likewise for param "insn".
5650 (rest_of_handle_ud_dce): Likewise for local "insn".
5651 (word_dce_process_block): Likewise.
5652 (dce_process_block): Likewise.
5654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5656 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
5657 from rtx to rtx_insn *.
5658 (struct change_cc_mode_args): Likewise for field "insn".
5659 (this_insn): Strengthen from rtx to rtx_insn *.
5660 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
5662 (validate_canon_reg): Strengthen param "insn" from rtx to
5664 (canon_reg): Likewise.
5665 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
5667 (record_jump_equiv): Strengthen param "insn" from rtx to
5669 (try_back_substitute_reg): Likewise, also for locals "prev",
5671 (find_sets_in_insn): Likewise for param "insn".
5672 (canonicalize_insn): Likewise.
5673 (cse_insn): Likewise. Add a checked cast.
5674 (invalidate_from_clobbers): Likewise for param "insn".
5675 (invalidate_from_sets_and_clobbers): Likewise.
5676 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
5678 (cse_prescan_path): Strengthen local "insn" from rtx to
5680 (cse_extended_basic_block): Likewise for locals "insn" and
5682 (cse_main): Likewise for param "f".
5683 (check_for_label_ref): Likewise for local "insn".
5684 (set_live_p): Likewise for second param ("insn").
5685 (insn_live_p): Likewise for first param ("insn") and for local
5687 (cse_change_cc_mode_insn): Likewise for first param "insn".
5688 (cse_change_cc_mode_insns): Likewise for first and second params
5690 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
5692 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
5695 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5697 Anna Tikhonova <anna.tikhonova@intel.com>
5698 Ilya Tocar <ilya.tocar@intel.com>
5699 Andrey Turetskiy <andrey.turetskiy@intel.com>
5700 Ilya Verbin <ilya.verbin@intel.com>
5701 Kirill Yukhin <kirill.yukhin@intel.com>
5702 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5704 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
5706 * config/i386/sse.md
5707 (define_mode_iterator VI248_AVX2): Delete.
5708 (define_mode_iterator VI2_AVX2_AVX512BW): New.
5709 (define_mode_iterator VI48_AVX2): Ditto.
5710 (define_insn <shift_insn><mode>3): Delete.
5711 (define_insn "<shift_insn><mode>3<mask_name>" with
5712 VI2_AVX2_AVX512BW): New.
5713 (define_insn "<shift_insn><mode>3<mask_name>" with
5716 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5717 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5718 Anna Tikhonova <anna.tikhonova@intel.com>
5719 Ilya Tocar <ilya.tocar@intel.com>
5720 Andrey Turetskiy <andrey.turetskiy@intel.com>
5721 Ilya Verbin <ilya.verbin@intel.com>
5722 Kirill Yukhin <kirill.yukhin@intel.com>
5723 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5725 * config/i386/sse.md
5726 (define_mode_iterator VI4F_BRCST32x2): New.
5727 (define_mode_attr 64x2_mode): Ditto.
5728 (define_mode_attr 32x2mode): Ditto.
5729 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
5730 with VI4F_BRCST32x2): Ditto.
5731 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
5732 with V16FI mode iterator): Ditto.
5733 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5735 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5736 with VI8F_BRCST64x2): Ditto.
5738 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5740 Anna Tikhonova <anna.tikhonova@intel.com>
5741 Ilya Tocar <ilya.tocar@intel.com>
5742 Andrey Turetskiy <andrey.turetskiy@intel.com>
5743 Ilya Verbin <ilya.verbin@intel.com>
5744 Kirill Yukhin <kirill.yukhin@intel.com>
5745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5747 * config/i386/sse.md
5748 (define_mode_iterator VI8_AVX512VL): New.
5749 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
5751 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
5753 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
5754 (define_mode_iterator V48_AVX512VL): New.
5755 (define_mode_iterator V12_AVX512VL): Ditto.
5756 (define_insn <avx512>_load<mode>_mask): Split into two similar
5757 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
5758 Refactor output template.
5759 (define_insn "<avx512>_store<mode>_mask"): Ditto.
5761 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5763 * cprop.c (struct occr): Strengthen field "insn" from rtx to
5765 (reg_available_p): Likewise for param "insn".
5766 (insert_set_in_table): Likewise.
5767 (hash_scan_set): Likewise.
5768 (hash_scan_insn): Likewise.
5769 (make_set_regs_unavailable): Likewise.
5770 (compute_hash_table_work): Likewise for local "insn".
5771 (reg_not_set_p): Strengthen param "insn" from const_rtx to
5773 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
5774 (try_replace_reg): Likewise.
5775 (find_avail_set): Likewise.
5776 (cprop_jump): Likewise for params "setcc", "jump".
5777 (constprop_register): Likewise for param "insn".
5778 (cprop_insn): Likewise.
5779 (do_local_cprop): Likewise.
5780 (local_cprop_pass): Likewise for local "insn".
5781 (bypass_block): Likewise for params "setcc" and "jump".
5782 (bypass_conditional_jumps): Likewise for locals "setcc" and
5784 (one_cprop_pass): Likewise for local "insn".
5786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5788 * compare-elim.c (struct comparison_use): Strengthen field "insn"
5789 from rtx to rtx_insn *.
5790 (struct comparison): Likewise, also for field "prev_clobber".
5791 (conforming_compare): Likewise for param "insn".
5792 (arithmetic_flags_clobber_p): Likewise.
5793 (find_flags_uses_in_insn): Likewise.
5794 (find_comparison_dom_walker::before_dom_children): Likewise for
5795 locals "insn", "next", "last_clobber".
5796 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
5798 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5800 * combine-stack-adj.c (struct csa_reflist): Strengthen field
5801 "insn" from rtx to rtx_insn *.
5802 (single_set_for_csa): Likewise for param "insn".
5803 (record_one_stack_ref): Likewise.
5804 (try_apply_stack_adjustment): Likewise.
5805 (struct record_stack_refs_data): Likewise for field "insn".
5806 (maybe_move_args_size_note): Likewise for params "last" and "insn".
5807 (prev_active_insn_bb): Likewise for return type and param "insn".
5808 (next_active_insn_bb): Likewise.
5809 (force_move_args_size_note): Likewise for params "prev" and "last"
5810 and locals "test", "next_candidate", "prev_candidate".
5811 (combine_stack_adjustments_for_block): Strengthen locals
5812 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
5815 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5817 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
5818 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
5819 (subst_insn): Likewise for this variable.
5820 (added_links_insn): Likewise.
5821 (struct insn_link): Likewise for field "insn".
5822 (alloc_insn_link): Likewise for param "insn".
5823 (struct undobuf): Likewise for field "other_insn".
5824 (find_single_use): Likewise for param "insn" and local "next".
5825 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
5826 (delete_noop_moves): Likewise for locals "insn", "next".
5827 (create_log_links): Likewise for locals "insn", "use_insn".
5828 Strengthen local "next_use" from rtx * to rtx_insn **.
5829 (insn_a_feeds_b): Likewise for params "a", "b".
5830 (combine_instructions): Likewise for param "f" and locals "insn",
5831 "next", "prev", "first", "last_combined_insn", "link", "link1",
5832 "temp". Replace use of NULL_RTX with NULL when referring to
5834 (setup_incoming_promotions): Likewise for param "first"
5835 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
5836 (can_combine_p): Likewise for params "insn", "i3", "pred",
5837 "pred2", "succ", "succ2" and for local "p".
5838 (combinable_i3pat): Likewise for param "i3".
5839 (cant_combine_insn_p): Likewise for param "insn".
5840 (likely_spilled_retval_p): Likewise.
5841 (adjust_for_new_dest): Likewise.
5842 (update_cfg_for_uncondjump): Likewise, also for local "insn".
5843 (try_combine): Likewise for return type and for params "i3", "i2",
5844 "i1", "i0", "last_combined_insn", and for locals "insn",
5845 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
5846 "i0_insn". Eliminate local "tem" in favor of new locals
5847 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
5848 checked cast for now to rtx_insn * on the return type of
5849 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
5851 (find_split_point): Strengthen param "insn" from rtx to
5853 (simplify_set): Likewise for local "other_insn".
5854 (recog_for_combine): Likewise for param "insn".
5855 (record_value_for_reg): Likewise.
5856 (record_dead_and_set_regs_1): Likewise for local
5858 (record_dead_and_set_regs): Likewise for param "insn".
5859 (record_promoted_value): Likewise.
5860 (check_promoted_subreg): Likewise.
5861 (get_last_value_validate): Likewise.
5862 (reg_dead_at_p): Likewise.
5863 (move_deaths): Likewise for param "to_insn".
5864 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
5865 and locals "place", "place2", "cc0_setter". Eliminate local "tem
5866 in favor of new locals "tem_note" and "tem_insn", the latter being
5868 (distribute_links): Strengthen locals "place", "insn" from rtx to
5871 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5873 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
5875 (can_delete_label_p): Require a const rtx_code_label * rather than
5877 (delete_insn): Add checked cast to rtx_code_label * when we know
5878 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
5880 (delete_insn_chain): Strengthen locals "prev" and "current" from
5881 rtx to rtx_insn *. Add a checked cast when assigning from
5882 "finish" (strengthening the params will come later). Add a
5883 checked cast to rtx_note * in region where we know
5885 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
5887 (compute_bb_for_insn): Likewise.
5888 (free_bb_for_insn): Likewise for local "insn".
5889 (compute_bb_for_insn): Likewise.
5890 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
5891 local "insn" from rtx to rtx_insn *
5892 (flow_active_insn_p): Require a const rtx_insn * rather than a
5894 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
5896 (can_fallthru): Likewise for locals "insn" and "insn2".
5897 (bb_note): Likewise for local "note".
5898 (first_insn_after_basic_block_note): Likewise for local "note" and
5900 (rtl_split_block): Likewise for locals "insn" and "next".
5901 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
5903 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
5904 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
5906 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
5907 them), "kill_from", "barrier", "new_insn".
5908 (patch_jump_insn): Likewise for params "insn", "old_label".
5909 (redirect_branch_edge): Likewise for locals "old_label", "insn".
5910 (force_nonfallthru_and_redirect): Likewise for locals "insn",
5911 "old_label", "new_label".
5912 (rtl_tidy_fallthru_edge): Likewise for local "q".
5913 (rtl_split_edge): Likewise for locals "before", "last".
5914 (commit_one_edge_insertion): Likewise for locals "before",
5915 "after", "insns", "tmp", "last", adding a checked cast where
5916 currently necessary.
5917 (commit_edge_insertions): Likewise.
5918 (rtl_dump_bb): Likewise for locals "insn", "last".
5919 (print_rtl_with_bb): Likewise for local "x".
5920 (rtl_verify_bb_insns): Likewise for local "x".
5921 (rtl_verify_bb_pointers): Likewise for local "insn".
5922 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
5924 (rtl_verify_fallthru): Likewise for local "insn".
5925 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
5926 (purge_dead_edges): Likewise for local "insn".
5927 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
5928 (skip_insns_after_block): Likewise for return type and for locals
5929 "insn", "last_insn", "next_head", "prev".
5930 (record_effective_endpoints): Likewise for locals "next_insn",
5932 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
5933 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
5934 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
5935 (duplicate_insn_chain): For now, add checked cast from rtx to
5936 rtx_insn * when returning insn.
5937 (cfg_layout_duplicate_bb): Likewise for local "insn".
5938 (cfg_layout_delete_block): Likewise for locals "insn", "next",
5940 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
5941 (rtl_block_empty_p): Likewise.
5942 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
5943 "split_point", "last".
5944 (rtl_block_ends_with_call_p): Likewise for local "insn".
5945 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
5947 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
5948 "split_at_insn" from rtx to rtx_insn *.
5949 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
5950 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
5951 to const rtx_insn *.
5952 (rtl_account_profile_record): Likewise.
5954 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5956 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
5958 (average_num_loop_insns): Likewise.
5959 (init_set_costs): Likewise for local "seq".
5960 (seq_cost): Likewise for param "seq", from const_rtx to const
5963 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5965 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
5968 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5970 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
5971 "f1" and "f2" from rtx * to rtx_insn **.
5972 (flow_find_head_matching_sequence): Likewise.
5974 * cfgcleanup.c (try_simplify_condjump): Strengthen local
5975 "cbranch_insn" from rtx to rtx_insn *.
5976 (thread_jump): Likewise for local "insn".
5977 (try_forward_edges): Likewise for local "last".
5978 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
5979 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
5981 (can_replace_by): Likewise for params "i1", "i2".
5982 (old_insns_match_p): Likewise.
5983 (merge_notes): Likewise.
5984 (walk_to_nondebug_insn): Likewise for param "i1".
5985 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
5986 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
5987 "afterlast1", "afterlast2" from rtx to rtx_insn *.
5988 (flow_find_head_matching_sequence): Strengthen params "f1" and
5989 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
5990 "last1", "last2", "beforelast1", "beforelast2" from rtx to
5992 (outgoing_edges_match): Likewise for locals "last1", "last2".
5993 (try_crossjump_to_edge): Likewise for local "insn".
5994 Replace call to for_each_rtx with for_each_rtx_in_insn.
5996 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
5997 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
5998 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
5999 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6000 (try_optimize_cfg): Strengthen local "last" from rtx to
6002 (delete_dead_jumptables): Likewise for locals "insn", "next",
6005 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6006 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6007 "rtx else_first_tail", to reflect the basic-block.h changes above.
6009 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6011 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6013 (purge_dead_tablejump_edges): Likewise.
6014 (find_bb_boundaries): Likewise for locals "insn", "end",
6015 "flow_transfer_insn".
6017 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6019 * caller-save.c (save_call_clobbered_regs): Strengthen locals
6020 "ins" and "prev" from rtx to rtx_insn *.
6022 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6024 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6026 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6027 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6029 (load_register_parameters): Likewise for local "before_arg".
6030 (check_sibcall_argument_overlap): Likewise for param "insn".
6031 (expand_call): Likewise for locals "normal_call_insns",
6032 "tail_call_insns", "insns", "before_call", "after_args",
6033 "before_arg", "last", "prev". Strengthen one of the "last" from
6034 rtx to rtx_call_insn *.
6035 (fixup_tail_calls): Strengthen local "insn" from rtx to
6037 (emit_library_call_value_1): Likewise for locals "before_call" and
6040 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6042 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6043 and "last" from rtx to rtx_insn *.
6044 (expand_builtin_nonlocal_goto): Likewise for local "insn".
6045 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6047 (expand_errno_check): Strengthen local "lab" from rtx to
6049 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6051 (expand_builtin_mathfn_2): Likewise.
6052 (expand_builtin_mathfn_ternary): Likewise.
6053 (expand_builtin_mathfn_3): Likewise.
6054 (expand_builtin_interclass_mathfn): Likewise for local "last".
6055 (expand_builtin_int_roundingfn): Likewise for local "insns".
6056 (expand_builtin_int_roundingfn_2): Likewise.
6057 (expand_builtin_strlen): Likewise for local "before_strlen".
6058 (expand_builtin_strncmp): Likewise for local "seq".
6059 (expand_builtin_signbit): Likewise for local "last".
6060 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6061 from rtx to rtx_code_label *.
6062 (expand_stack_restore): Strengthen local "prev" from rtx to
6065 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6067 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6069 (struct btr_def_s): Likewise.
6070 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
6072 (add_btr_def): Likewise.
6073 (new_btr_user): Likewise.
6074 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
6076 (link_btr_uses): Likewise.
6077 (move_btr_def): Likewise for locals "insp", "old_insn",
6078 "new_insn". Add checked cast to rtx_insn * for now on result of
6080 (can_move_up): Strengthen param "insn" from const_rtx to
6083 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6085 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
6087 (get_uncond_jump_length): Likewise for locals "label", "jump".
6088 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
6090 (add_labels_and_missing_jumps): Likewise for local "new_jump".
6091 (fix_up_fall_thru_edges): Likewise for local "old_jump".
6092 (find_jump_block): Likewise for local "insn".
6093 (fix_crossing_conditional_branches): Likewise for locals
6094 "old_jump", "new_jump".
6095 (fix_crossing_unconditional_branches): Likewise for locals
6096 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
6097 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
6099 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6101 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
6103 (struct mem_insn): Likewise for field "insn".
6104 (reg_next_use): Strengthen from rtx * to rtx_insn **.
6105 (reg_next_inc_use): Likewise.
6106 (reg_next_def): Likewise.
6107 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
6108 from rtx to rtx_insn *.
6109 (move_insn_before): Likewise for param "next_insn" and local "insns".
6110 (attempt_change): Likewise for local "mov_insn".
6111 (try_merge): Likewise for param "last_insn".
6112 (get_next_ref): Likewise for return type and local "insn".
6113 Strengthen param "next_array" from rtx * to rtx_insn **.
6114 (parse_add_or_inc): Strengthen param "insn" from rtx to
6116 (find_inc): Likewise for locals "insn" and "other_insn" (three of
6118 (merge_in_block): Likewise for locals "insn", "curr",
6120 (pass_inc_dec::execute): Update allocations of the arrays to
6121 reflect the stronger types.
6123 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6125 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
6126 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
6127 from rtx to rtx_code_label *.
6129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6131 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
6134 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6136 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
6137 generated a warning and prevented bootstrapping the compiler.
6139 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6141 * rtl.h (delete_related_insns): Strengthen return type from rtx to
6144 * jump.c (delete_related_insns): Likewise, also for locals "next"
6147 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6149 * genautomata.c (output_internal_insn_latency_func): When writing
6150 the function "internal_insn_latency" to insn-automata.c,
6151 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
6152 allowing the optional guard function of (define_bypass) clauses to
6153 expect a pair of rtx_insn *, rather than a pair of rtx.
6154 (output_insn_latency_func): When writing the function
6155 "insn_latency", add an "uncast_" prefix to params "insn" and
6156 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
6157 using checked casts from the params, thus enabling the above
6158 change to the generated "internal_insn_latency" function.
6160 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
6162 PR tree-optimization/62091
6163 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
6164 handle correctly arrays.
6165 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
6167 (record_known_type): Walk into inner type.
6168 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
6169 condition on no type changes.
6171 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6173 * genattrtab.c (write_attr_get): Within the generated get_attr_
6174 functions, rename param "insn" to "uncast_insn" and reintroduce
6175 "insn" as an local rtx_insn * using a checked cast, so that "insn"
6176 is an rtx_insn * within insn-attrtab.c
6178 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6180 * output.h (peephole): Strengthen return type from rtx to
6182 * rtl.h (delete_for_peephole): Likewise for both params.
6183 * genpeep.c (main): In generated "peephole" function, strengthen
6184 return type and local "insn" from rtx to rtx_insn *. For now,
6185 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
6186 rtx_insn *, with a checked cast.
6187 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
6188 locals "insn", "next", "prev" from rtx to rtx_insn *.
6190 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
6192 PR tree-optimization/62112
6193 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
6194 * gimple-iterator.h (gsi_replace): Return bool.
6195 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
6196 moved from ref_may_alias_global_p.
6197 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
6199 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
6200 (stmt_kills_ref_p_1): Rename...
6201 (stmt_kills_ref_p): ... to this.
6202 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
6203 stmt_kills_ref_p): Declare.
6204 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
6205 Move the self-assignment case...
6206 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
6208 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6210 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
6212 * emit-rtl.c (try_split): Likewise, also for locals "before" and
6213 "after". For now, don't strengthen param "trial", which requires
6214 adding checked casts when returning it.
6216 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6218 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
6219 "label" from rtx to rtx_code_label *. Strengthen param 1 of
6220 "var_location" hook from rtx to rtx_insn *.
6221 (debug_nothing_rtx): Delete in favor of...
6222 (debug_nothing_rtx_code_label): New prototype.
6223 (debug_nothing_rtx_rtx): Delete unused prototype.
6224 (debug_nothing_rtx_insn): New prototype.
6226 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
6227 invoking debug_hooks->var_location (in two places, one in a NOTE
6228 case of a switch statement, the other guarded by a CALL_P
6229 conditional. Add checked cast to rtx_code_label * when invoking
6230 debug_hooks->label (within CODE_LABEL case of switch statement).
6232 * dbxout.c (dbx_debug_hooks): Update "label" hook from
6233 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6234 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
6235 (xcoff_debug_hooks): Likewise.
6236 * debug.c (do_nothing_debug_hooks): Likewise.
6237 (debug_nothing_rtx): Delete in favor of...
6238 (debug_nothing_rtx_insn): New function.
6239 (debug_nothing_rtx_rtx): Delete unused function.
6240 (debug_nothing_rtx_code_label): New function.
6241 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
6242 debug_nothing_rtx to debug_nothing_rtx_code_label.
6243 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
6245 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
6246 debug_nothing_rtx to debug_nothing_rtx_insn.
6247 (sdbout_label): Strengthen param "insn" from rtx to
6249 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
6250 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
6251 "var_location" hook from debug_nothing_rtx to
6252 debug_nothing_rtx_insn.
6254 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6256 * recog.h (insn_output_fn): Update this function typedef to match
6257 the changes below to the generated output functions, strengthening
6258 the 2nd param from rtx to rtx_insn *.
6260 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
6261 insn when invoking an output function, to match the new signature
6262 of insn_output_fn with a stronger second param.
6264 * genconditions.c (write_header): In the generated code for
6265 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
6266 to match the other changes in this patch.
6268 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
6269 the generated "gen_" functions from rtx to rtx_insn * within their
6272 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
6273 the subfunctions within the generated "recog_", "split", "peephole2"
6274 function trees from rtx to rtx_insn *. For now, the top-level
6275 generated functions ("recog", "split", "peephole2") continue to
6276 take a plain rtx for "insn", to avoid introducing dependencies on
6277 other patches. Rename this 2nd param from "insn" to
6278 "uncast_insn", and reintroduce "insn" as a local variable of type
6279 rtx_insn *, initialized at the top of the generated function with
6280 a checked cast on "uncast_insn".
6281 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
6282 the generated "gen_" functions from rtx to rtx_insn * within their
6285 * genoutput.c (process_template): Strengthen the 2nd param within
6286 the generated "output_" functions "insn" from rtx to rtx_insn *.
6288 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6290 * tree-profile.c (tree_profiling): Skip external functions
6291 when doing coverage instrumentation.
6292 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
6294 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6296 * config/rs6000/altivec.h (vec_cpsgn): New #define.
6297 (vec_mergee): Likewise.
6298 (vec_mergeo): Likewise.
6299 (vec_cntlz): Likewise.
6300 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
6301 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
6302 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
6304 * doc/extend.texi: Document various forms of vec_cpsgn,
6305 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
6306 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
6307 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
6308 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
6309 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
6311 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6313 * config/rs6000/rs6000.c (context.h): New include.
6314 (tree-pass.h): Likewise.
6315 (make_pass_analyze_swaps): New decl.
6316 (rs6000_option_override): Register pass_analyze_swaps.
6317 (swap_web_entry): New subsclass of web_entry_base (df.h).
6318 (special_handling_values): New enum.
6319 (union_defs): New function.
6320 (union_uses): Likewise.
6321 (insn_is_load_p): Likewise.
6322 (insn_is_store_p): Likewise.
6323 (insn_is_swap_p): Likewise.
6324 (rtx_is_swappable_p): Likewise.
6325 (insn_is_swappable_p): Likewise.
6326 (chain_purpose): New enum.
6327 (chain_contains_only_swaps): New function.
6328 (mark_swaps_for_removal): Likewise.
6329 (swap_const_vector_halves): Likewise.
6330 (adjust_subreg_index): Likewise.
6331 (permute_load): Likewise.
6332 (permute_store): Likewise.
6333 (handle_special_swappables): Likewise.
6334 (replace_swap_with_copy): Likewise.
6335 (dump_swap_insn_table): Likewise.
6336 (rs6000_analyze_swaps): Likewise.
6337 (pass_data_analyze_swaps): New pass_data.
6338 (pass_analyze_swaps): New rtl_opt_pass.
6339 (make_pass_analyze_swaps): New function.
6340 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
6342 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6344 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
6345 type from rtx to rtx_insn *.
6346 (create_copy_of_insn_rtx): Likewise.
6347 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
6348 (create_copy_of_insn_rtx): Likewise, also for local "res".
6350 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6352 * rtl.h (find_first_parameter_load): Strengthen return type from
6354 * rtlanal.c (find_first_parameter_load): Strengthen return type
6355 from rtx to rtx_insn *. Add checked cast for now, to postpone
6356 strengthening the params.
6358 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6361 * diagnostic.c: Set default caret.
6362 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
6364 * diagnostic.h (struct diagnostic_context):
6366 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6368 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
6369 (sel_bb_head): Strengthen return type insn_t (currently just an
6371 (sel_bb_end): Likewise.
6373 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
6374 (sel_bb_head): Strengthen return type and local "head" from
6375 insn_t (currently just an rtx) to rtx_insn *.
6376 (sel_bb_end): Likewise for return type.
6377 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
6380 2014-08-21 David Malcolm <dmalcolm@redhat.com>
6382 * basic-block.h (get_last_bb_insn): Strengthen return type from
6384 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
6387 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6390 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
6392 (diagnostic_report_diagnostic): ... from here.
6393 * toplev.c (general_init): Move code to c-family.
6395 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6397 * df.h (web_entry_base): Replace existing struct web_entry with a
6398 new class web_entry_base with only the predecessor member.
6399 (unionfind_root): Remove declaration and move to class member.
6400 (unionfind_union): Remove declaration and move to friend
6402 (union_defs): Remove declaration.
6403 * web.c (web_entry_base::unionfind_root): Modify to be member
6404 function and adjust accessors.
6405 (unionfind_union): Modify to be friend function and adjust
6407 (web_entry): New subclass of web_entry_base containing the reg
6409 (union_match_dups): Modify for struct -> class changes.
6410 (union_defs): Likewise.
6411 (entry_register): Likewise.
6412 (pass_web::execute): Likewise.
6414 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
6416 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
6417 builtin define __VEC_ELEMENT_REG_ORDER__.
6419 2014-08-20 Martin Jambor <mjambor@suse.cz>
6420 Wei Mi <wmi@google.com>
6424 * tree-ssa-operands.c (update_stmt_operands): Remove
6425 MODIFIED_NORETURN_CALLS.
6426 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
6427 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
6428 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
6429 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
6430 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
6431 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
6432 (gimple_call_set_ctrl_altering): New func.
6433 (gimple_call_ctrl_altering_p): Ditto.
6434 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
6435 (make_blocks): Use gimple_call_initialize_ctrl_altering.
6436 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
6437 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
6438 remove MODIFIED_NORETURN_CALLS.
6440 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6442 * coverage.c (coverage_compute_profile_id): Return non-0;
6443 also handle symbols with unique name.
6444 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
6446 2014-08-20 Steve Ellcey <sellcey@mips.com>
6449 * doc/sourcebuild.texi (non_strict_align): New.
6451 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
6453 * cgraphunit.c (ipa_passes, compile): Reshedule
6454 symtab_remove_unreachable_nodes passes; update comments.
6455 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
6456 TODO_remove_functions before the pass; the functions ought to be
6458 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
6459 TODO_remove_functions.
6460 * passes.c (pass_data_early_local_passes): Do not schedule function
6462 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
6464 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6467 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
6468 before setting the option.
6469 * diagnostic.c (diagnostic_classify_diagnostic): Record
6470 command-line status.
6472 2014-08-20 Richard Biener <rguenther@suse.de>
6475 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
6476 to build uint{16,32,64}_type_node.
6478 2014-08-20 Terry Guo <terry.guo@arm.com>
6480 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
6481 with immediate_operand.
6483 2014-08-20 David Malcolm <dmalcolm@redhat.com>
6485 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
6486 "insn" from an as_a to a safe_as_a, for the case when "insn" is
6489 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6491 PR preprocessor/51303
6492 * incpath.c (remove_duplicates): Use cpp_warning.
6494 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6498 * doc/options.texi (CPP): Document it.
6499 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
6500 * optc-gen.awk: Handle CPP.
6501 * opth-gen.awk: Likewise.
6503 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6505 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
6507 (duplicate_insn_chain): Likewise.
6508 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
6509 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
6510 checked cast for now (until we can strengthen the params in the
6512 (duplicate_insn_chain): Likewise.
6514 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6516 * rtl.h (next_cc0_user): Strengthen return type from rtx to
6518 (prev_cc0_setter): Likewise.
6520 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
6521 rtx_insn *, adding checked casts for now as necessary.
6522 (prev_cc0_setter): Likewise.
6524 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6526 * expr.h (emit_move_insn): Strengthen return type from rtx to
6528 (emit_move_insn_1): Likewise.
6529 (emit_move_complex_push): Likewise.
6530 (emit_move_complex_parts): Likewise.
6532 * expr.c (emit_move_via_integer): Strengthen return type from rtx
6533 to rtx_insn *. Replace use of NULL_RTX with NULL when working
6535 (emit_move_complex_push): Strengthen return type from rtx to
6537 (emit_move_complex): Likewise, also for local "ret".
6538 (emit_move_ccmode): Likewise.
6539 (emit_move_multi_word): Likewise for return type and locals
6541 (emit_move_insn_1): Likewise for return type and locals "result",
6543 (emit_move_insn): Likewise for return type and local "last_insn".
6544 (compress_float_constant): Likewise.
6546 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6548 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
6549 from rtx to rtx_insn *.
6551 * rtl.h (emit_insn_before): Likewise.
6552 (emit_insn_before_noloc): Likewise.
6553 (emit_insn_before_setloc): Likewise.
6554 (emit_jump_insn_before): Likewise.
6555 (emit_jump_insn_before_noloc): Likewise.
6556 (emit_jump_insn_before_setloc): Likewise.
6557 (emit_call_insn_before): Likewise.
6558 (emit_call_insn_before_noloc): Likewise.
6559 (emit_call_insn_before_setloc): Likewise.
6560 (emit_debug_insn_before): Likewise.
6561 (emit_debug_insn_before_noloc): Likewise.
6562 (emit_debug_insn_before_setloc): Likewise.
6563 (emit_label_before): Likewise.
6564 (emit_insn_after): Likewise.
6565 (emit_insn_after_noloc): Likewise.
6566 (emit_insn_after_setloc): Likewise.
6567 (emit_jump_insn_after): Likewise.
6568 (emit_jump_insn_after_noloc): Likewise.
6569 (emit_jump_insn_after_setloc): Likewise.
6570 (emit_call_insn_after): Likewise.
6571 (emit_call_insn_after_noloc): Likewise.
6572 (emit_call_insn_after_setloc): Likewise.
6573 (emit_debug_insn_after): Likewise.
6574 (emit_debug_insn_after_noloc): Likewise.
6575 (emit_debug_insn_after_setloc): Likewise.
6576 (emit_label_after): Likewise.
6577 (emit_insn): Likewise.
6578 (emit_debug_insn): Likewise.
6579 (emit_jump_insn): Likewise.
6580 (emit_call_insn): Likewise.
6581 (emit_label): Likewise.
6582 (gen_clobber): Likewise.
6583 (emit_clobber): Likewise.
6584 (gen_use): Likewise.
6585 (emit_use): Likewise.
6588 (emit_barrier_before): Strengthen return type from rtx to
6590 (emit_barrier_after): Likewise.
6591 (emit_barrier): Likewise.
6593 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
6594 from rtx to rtx_insn *. Add checked casts for now when converting
6595 "last" from rtx to rtx_insn *.
6596 (emit_insn_before_noloc): Likewise for return type.
6597 (emit_jump_insn_before_noloc): Likewise.
6598 (emit_call_insn_before_noloc): Likewise.
6599 (emit_debug_insn_before_noloc): Likewise.
6600 (emit_barrier_before): Strengthen return type and local "insn"
6601 from rtx to rtx_barrier *.
6602 (emit_label_before): Strengthen return type from rtx to
6603 rtx_insn *. Add checked cast for now when returning param
6604 (emit_pattern_after_noloc): Strengthen return type from rtx to
6605 rtx_insn *. Add checked casts for now when converting "last" from
6607 (emit_insn_after_noloc): Strengthen return type from rtx to
6609 (emit_jump_insn_after_noloc): Likewise.
6610 (emit_call_insn_after_noloc): Likewise.
6611 (emit_debug_insn_after_noloc): Likewise.
6612 (emit_barrier_after): Strengthen return type from rtx to
6614 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
6615 Add checked cast for now when converting "label" from rtx to
6617 (emit_pattern_after_setloc): Strengthen return type from rtx to
6618 rtx_insn *. Add checked casts for now when converting "last" from
6620 (emit_pattern_after): Strengthen return type from rtx to
6622 (emit_insn_after_setloc): Likewise.
6623 (emit_insn_after): Likewise.
6624 (emit_jump_insn_after_setloc): Likewise.
6625 (emit_jump_insn_after): Likewise.
6626 (emit_call_insn_after_setloc): Likewise.
6627 (emit_call_insn_after): Likewise.
6628 (emit_debug_insn_after_setloc): Likewise.
6629 (emit_debug_insn_after): Likewise.
6630 (emit_pattern_before_setloc): Likewise. Add checked casts for now
6631 when converting "last" from rtx to rtx_insn *.
6632 (emit_pattern_before): Strengthen return type from rtx to
6634 (emit_insn_before_setloc): Likewise.
6635 (emit_insn_before): Likewise.
6636 (emit_jump_insn_before_setloc): Likewise.
6637 (emit_jump_insn_before): Likewise.
6638 (emit_call_insn_before_setloc): Likewise.
6639 (emit_call_insn_before): Likewise.
6640 (emit_debug_insn_before_setloc): Likewise.
6641 (emit_debug_insn_before): Likewise.
6642 (emit_insn): Strengthen return type and locals "last", "insn",
6643 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
6644 within cases where we know we have an insn.
6645 (emit_debug_insn): Likewise.
6646 (emit_jump_insn): Likewise.
6647 (emit_call_insn): Strengthen return type and local "insn" from rtx
6649 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
6650 a checked cast to rtx_insn * for now on "label".
6651 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
6652 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
6653 (emit_use): Likewise.
6654 (gen_use): Likewise, also for local "seq".
6655 (emit): Likewise for return type and local "insn".
6656 (rtx_insn): Likewise for return type and local "new_rtx".
6658 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
6659 from rtx to rtx_barrier *.
6661 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
6662 changed return type from rtx to rtx_insn *, we must update
6663 "emit_fn" type, and this in turn means updating...
6664 (frame_insn): ...this. Strengthen return type from rtx to
6665 rtx_insn *. Introduce a new local "insn" of the appropriate type.
6667 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6669 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
6670 rtx to rtx_jump_table_data *. Also for local.
6671 * rtl.h (emit_jump_table_data): Likewise.
6673 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6675 * basic-block.h (create_basic_block_structure): Strengthen third
6676 param "bb_note" from rtx to rtx_note *.
6677 * rtl.h (emit_note_before): Strengthen return type from rtx to
6679 (emit_note_after): Likewise.
6680 (emit_note): Likewise.
6681 (emit_note_copy): Likewise. Also, strengthen param similarly.
6682 * function.h (struct rtl_data): Strengthen field
6683 "x_stack_check_probe_note" from rtx to rtx_note *.
6685 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
6686 from rtx to rtx_note *.
6687 * cfgrtl.c (create_basic_block_structure): Strengthen third param
6688 "bb_note" from rtx to rtx_note *.
6689 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
6690 when calling emit_note_copy.
6691 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
6693 (emit_note_after): Likewise.
6694 (emit_note_before): Likewise.
6695 (emit_note_copy): Likewise. Also, strengthen param similarly.
6696 (emit_note): Likewise.
6697 * except.c (emit_note_eh_region_end): Likewise for return type.
6698 Strengthen local "next" from rtx to rtx_insn *.
6699 (convert_to_eh_region_ranges): Strengthen local "note"
6700 from rtx to rtx_note *.
6701 * final.c (change_scope): Likewise.
6702 (reemit_insn_block_notes): Likewise, for both locals named "note".
6703 Also, strengthen local "insn" from rtx to rtx_insn *.
6704 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
6706 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
6707 strengthen local "seq" from rtx to rtx_insn *.
6708 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
6710 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
6712 (get_bb_note_from_pool): Strengthen return type from rtx to
6714 (sel_create_basic_block): Strengthen local "new_bb_note" from
6715 insn_t to rtx_note *.
6716 * var-tracking.c (emit_note_insn_var_location): Strengthen local
6717 "note" from rtx to rtx_note *.
6718 (emit_notes_in_bb): Likewise.
6720 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6722 * function.h (struct rtl_data): Strengthen field
6723 "x_parm_birth_insn" from rtx to rtx_insn *.
6724 * function.c (struct assign_parm_data_all): Strengthen fields
6725 "first_conversion_insn" and "last_conversion_insn" from rtx to
6728 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6730 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
6731 to rtx_insn *; also for local "var_end_seq".
6732 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
6733 (maybe_cleanup_end_of_block): Likewise for param "last" and local
6735 (expand_gimple_cond): Likewise for locals "last2" and "last".
6736 (mark_transaction_restart_calls): Likewise for local "insn".
6737 (expand_gimple_stmt): Likewise for return type and locals "last"
6739 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
6740 (avoid_complex_debug_insns): Likewise for param "insn".
6741 (expand_debug_locations): Likewise for locals "insn", "last",
6742 "prev_insn" and "insn2".
6743 (expand_gimple_basic_block): Likewise for local "last".
6744 (construct_exit_block): Likewise for locals "head", "end",
6746 (pass_expand::execute): Likewise for locals "var_seq",
6747 "var_ret_seq", "next".
6749 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6751 * asan.h (asan_emit_stack_protection): Strengthen return type from
6753 * asan.c (asan_emit_stack_protection): Likewise. Add local
6754 "insns" to hold the return value.
6756 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6758 * basic-block.h (bb_note): Strengthen return type from rtx to
6760 * sched-int.h (bb_note): Likewise.
6761 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
6763 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6765 * rtl.h (make_insn_raw): Strengthen return type from rtx to
6768 * emit-rtl.c (make_insn_raw): Strengthen return type and local
6769 "insn" from rtx to rtx_insn *.
6770 (make_debug_insn_raw): Strengthen return type from rtx to
6771 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
6772 (make_jump_insn_raw): Strengthen return type from rtx to
6773 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
6774 (make_call_insn_raw): Strengthen return type from rtx to
6775 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
6776 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
6777 callback from rtx to rtx_insn *; likewise for local "insn" and
6778 "next", adding a checked cast to rtx_insn in the relevant cases of
6779 the switch statement.
6780 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
6781 callback from rtx to rtx_insn *.
6782 (emit_pattern_after_setloc): Likewise.
6783 (emit_pattern_after): Likewise.
6784 (emit_pattern_before_setloc): Likewise.
6785 (emit_pattern_before): Likewise.
6787 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6789 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
6791 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
6792 accepting an rtx_insn *.
6793 (last_call_insn): Strengthen return type from rtx to
6796 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6798 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
6799 "insns" from rtx to rtx_insn *.
6800 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
6801 locals "insn" and "prev".
6803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6805 * rtl.h (tablejump_p): Strengthen third param from rtx * to
6806 rtx_jump_table_data **.
6808 * cfgbuild.c (make_edges): Introduce local "table", using it in
6809 place of "tmp" for jump table data.
6810 (find_bb_boundaries): Strengthen local "table" from rtx to
6811 rtx_jump_table_data *.
6812 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6813 (outgoing_edges_match): Likewise for locals "table1" and "table2".
6814 (try_crossjump_to_edge): Likewise.
6815 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
6817 (patch_jump_insn): Introduce local "table", using it in place of
6818 "tmp" for jump table data.
6819 (force_nonfallthru_and_redirect): Introduce local "table", so that
6820 call to tablejump_p can receive an rtx_jump_table_data **. Update
6821 logic around the call to overwrite "note" appropriately if
6822 tablejump_p returns non-zero.
6823 (get_last_bb_insn): Introduce local "table", using it in place of
6824 "tmp" for jump table data.
6825 * dwarf2cfi.c (create_trace_edges): Likewise.
6827 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
6828 from rtx to rtx_jump_table_data *.
6829 (create_fix_barrier): Strengthen local "tmp" from rtx to
6830 rtx_jump_table_data *.
6831 (arm_reorg): Likewise for local "table".
6833 * config/s390/s390.c (s390_chunkify_start): Likewise.
6835 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
6837 * jump.c (delete_related_insns): Strengthen local "lab_next" from
6838 rtx to rtx_jump_table_data *.
6840 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
6841 rtx_jump_table_data **. Add a checked cast when writing through
6842 the pointer: we know there that local "table" is non-NULL and that
6843 JUMP_TABLE_DATA_P (table) holds.
6844 (label_is_jump_target_p): Introduce local "table", using it in
6845 place of "tmp" for jump table data.
6847 2014-08-19 Marek Polacek <polacek@redhat.com>
6850 * doc/invoke.texi: Document -Wbool-compare.
6852 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6854 * rtl.h (entry_of_function): Strengthen return type from rtx to
6856 * cfgrtl.c (entry_of_function): Likewise.
6858 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6860 * emit-rtl.h (get_insns): Strengthen return type from rtx to
6861 rtx_insn *, adding a checked cast for now.
6862 (get_last_insn): Likewise.
6864 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6866 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
6869 * emit-rtl.c (gen_label_rtx): Likewise.
6871 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6873 * rtl.h (previous_insn): Strengthen return type from rtx to
6875 (next_insn): Likewise.
6876 (prev_nonnote_insn): Likewise.
6877 (prev_nonnote_insn_bb): Likewise.
6878 (next_nonnote_insn): Likewise.
6879 (next_nonnote_insn_bb): Likewise.
6880 (prev_nondebug_insn): Likewise.
6881 (next_nondebug_insn): Likewise.
6882 (prev_nonnote_nondebug_insn): Likewise.
6883 (next_nonnote_nondebug_insn): Likewise.
6884 (prev_real_insn): Likewise.
6885 (next_real_insn): Likewise.
6886 (prev_active_insn): Likewise.
6887 (next_active_insn): Likewise.
6889 * emit-rtl.c (next_insn): Strengthen return type from rtx to
6890 rtx_insn *, adding a checked cast.
6891 (previous_insn): Likewise.
6892 (next_nonnote_insn): Likewise.
6893 (next_nonnote_insn_bb): Likewise.
6894 (prev_nonnote_insn): Likewise.
6895 (prev_nonnote_insn_bb): Likewise.
6896 (next_nondebug_insn): Likewise.
6897 (prev_nondebug_insn): Likewise.
6898 (next_nonnote_nondebug_insn): Likewise.
6899 (prev_nonnote_nondebug_insn): Likewise.
6900 (next_real_insn): Likewise.
6901 (prev_real_insn): Likewise.
6902 (next_active_insn): Likewise.
6903 (prev_active_insn): Likewise.
6905 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
6906 param "stepfunc" so that it returns an rtx_insn * rather than an
6907 rtx, to track the change to prev_nonnote_insn_bb, which is the
6908 only function this is called with.
6909 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
6911 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
6913 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
6916 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6918 * coretypes.h (class rtx_debug_insn): Add forward declaration.
6919 (class rtx_nonjump_insn): Likewise.
6920 (class rtx_jump_insn): Likewise.
6921 (class rtx_call_insn): Likewise.
6922 (class rtx_jump_table_data): Likewise.
6923 (class rtx_barrier): Likewise.
6924 (class rtx_code_label): Likewise.
6925 (class rtx_note): Likewise.
6927 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
6928 adding the invariant DEBUG_INSN_P (X).
6929 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
6930 the invariant NONJUMP_INSN_P (X).
6931 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
6932 the invariant JUMP_P (X).
6933 (class rtx_call_insn): New, a subclass of rtx_insn, adding
6934 the invariant CALL_P (X).
6935 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
6936 invariant JUMP_TABLE_DATA_P (X).
6937 (class rtx_barrier): New, a subclass of rtx_insn, adding the
6938 invariant BARRIER_P (X).
6939 (class rtx_code_label): New, a subclass of rtx_insn, adding
6940 the invariant LABEL_P (X).
6941 (class rtx_note): New, a subclass of rtx_insn, adding
6942 the invariant NOTE_P(X).
6943 (is_a_helper <rtx_debug_insn *>::test): New.
6944 (is_a_helper <rtx_nonjump_insn *>::test): New.
6945 (is_a_helper <rtx_jump_insn *>::test): New.
6946 (is_a_helper <rtx_call_insn *>::test): New.
6947 (is_a_helper <rtx_jump_table_data *>::test): New functions,
6948 overloaded for both rtx and rtx_insn *.
6949 (is_a_helper <rtx_barrier *>::test): New.
6950 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
6951 for both rtx and rtx_insn *.
6952 (is_a_helper <rtx_note *>::test): New.
6954 2014-08-19 Marek Polacek <polacek@redhat.com>
6956 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
6957 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6958 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
6959 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6961 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6963 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
6964 rtx_insn *. To help with transition, for now, convert from an
6965 access macro into a pair of functions: BND_TO, returning an
6967 (SET_BND_TO): New function, for use where BND_TO is used as an
6970 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
6972 (BND_TO): New function, adding a checked cast.
6973 (SET_BND_TO): New function.
6975 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
6977 (compute_av_set_on_boundaries): Likewise.
6979 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6981 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
6982 destination if it is used in source.
6983 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
6984 (*popcount<mode>2_falsedep_1): Likewise.
6986 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6989 * configure.ac: Set install_gold_as_default to no first.
6990 * configure: Regenerated.
6992 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6994 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
6995 "note_list" field will eventually be an rtx_insn *. To help with
6996 transition, for now, convert from an access macro into a pair of
6997 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
6998 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7001 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7002 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7004 * sel-sched-ir.c (init_bb): Likewise.
7005 (sel_restore_notes): Likewise.
7006 (move_bb_info): Likewise.
7007 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7008 (SET_BB_NOTE_LIST): New function.
7010 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7012 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7013 field will eventually be an rtx_insn *. To help with transition,
7014 for now, convert from an access macro into a pair of functions:
7015 VINSN_INSN_RTX, returning an rtx_insn *, and...
7016 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7017 is used as an lvalue.
7019 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7020 SET_VINSN_INSN_RTX where it's used as an lvalue.
7021 (VINSN_INSN_RTX): New function.
7022 (SET_VINSN_INSN_RTX): New function.
7024 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7026 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7027 eventually be rtx_insn *, but to help with transition, for now,
7028 convert from an access macro into a pair of functions: DEP_PRO
7029 returning an rtx_insn * and...
7030 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7031 lvalue, returning an rtx&.
7032 (DEP_CON): Analogous changes to DEP_PRO above.
7033 (SET_DEP_CON): Likewise.
7035 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7036 an lvalue to SET_DEP_CON.
7037 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7038 (sd_copy_back_deps): Likewise for DEP_CON.
7039 (DEP_PRO): New function, adding a checked cast for now.
7040 (DEP_CON): Likewise.
7041 (SET_DEP_PRO): New function.
7042 (SET_DEP_CON): Likewise.
7044 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7046 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7047 (extra_options): Add i386/cygwin.opt.
7048 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7049 (CPP_SPEC): Accept -pthread.
7051 (GOMP_SELF_SPECS): Update comment.
7052 * config/i386/cygwin.opt: New file for -pthread flag.
7054 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7056 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7057 * df.h (DF_REF_INSN): Convert from a macro to a function, so
7058 that we can return an rtx_insn *.
7060 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
7062 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7063 when building executables, not DLLs. Add --large-address-aware
7064 under the same conditions.
7065 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7066 when building executables, not DLLs. Add --large-address-aware
7067 under the same conditions when using -m32.
7069 * config/i386/cygwin-stdint.h: Throughout, make type
7070 definitions dependent on target architecture, not host.
7072 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7074 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
7075 the return type from rtx to rtx_insn *, which will enable various
7076 conversions in followup patches. For now this is is done by a
7078 (NEXT_INSN): Likewise.
7079 (SET_PREV_INSN): Convert to an inline function. This is intended
7080 for use as an lvalue, and so returns an rtx& to allow in-place
7082 (SET_NEXT_INSN): Likewise.
7084 2014-07-08 Mark Wielaard <mjw@redhat.com>
7087 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
7089 2014-08-19 Marek Polacek <polacek@redhat.com>
7092 * cgraphunit.c (handle_alias_pairs): Fix condition.
7094 2014-08-19 Richard Biener <rguenther@suse.de>
7096 * gimple-fold.c (fold_gimple_assign): Properly build a
7097 null-pointer constant when devirtualizing addresses.
7099 2014-07-07 Mark Wielaard <mjw@redhat.com>
7101 * dwarf2out.c (decl_quals): New function.
7102 (modified_type_die): Take one cv_quals argument instead of two,
7103 one for const and one for volatile.
7104 (add_type_attribute): Likewise.
7105 (generic_parameter_die): Call add_type_attribute with one modifier
7107 (base_type_for_mode): Likewise.
7108 (add_bounds_info): Likewise.
7109 (add_subscript_info): Likewise.
7110 (gen_array_type_die): Likewise.
7111 (gen_descr_array_type_die): Likewise.
7112 (gen_entry_point_die): Likewise.
7113 (gen_enumeration_type_die): Likewise.
7114 (gen_formal_parameter_die): Likewise.
7115 (gen_subprogram_die): Likewise.
7116 (gen_variable_die): Likewise.
7117 (gen_const_die): Likewise.
7118 (gen_field_die): Likewise.
7119 (gen_pointer_type_die): Likewise.
7120 (gen_reference_type_die): Likewise.
7121 (gen_ptr_to_mbr_type_die): Likewise.
7122 (gen_inheritance_die): Likewise.
7123 (gen_subroutine_type_die): Likewise.
7124 (gen_typedef_die): Likewise.
7125 (force_type_die): Likewise.
7127 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7129 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
7131 * configure: Regenerate.
7133 2014-08-19 Richard Biener <rguenther@suse.de>
7135 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
7136 DECL_EXTERNALs in BLOCKs as non-references.
7137 * tree-streamer-out.c (streamer_write_chain): Likewise.
7139 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
7140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7141 Anna Tikhonova <anna.tikhonova@intel.com>
7142 Ilya Tocar <ilya.tocar@intel.com>
7143 Andrey Turetskiy <andrey.turetskiy@intel.com>
7144 Ilya Verbin <ilya.verbin@intel.com>
7145 Kirill Yukhin <kirill.yukhin@intel.com>
7146 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7148 * config/i386/sse.md
7149 (define_mode_iterator VI48_AVX512F): Delete.
7150 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
7151 (define_mode_iterator VI2_AVX512VL): Ditto.
7152 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
7155 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
7157 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
7158 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
7159 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7160 with VI48_AVX512F_AVX512VL): New.
7161 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7162 with VI2_AVX512VL): Ditto.
7164 2014-08-19 Marek Polacek <polacek@redhat.com>
7166 * doc/invoke.texi: Document -Wc99-c11-compat.
7168 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7170 * rtl.h (PREV_INSN): Split macro in two: the existing one,
7172 (SET_PREV_INSN): New macro, for use as an lvalue.
7173 (NEXT_INSN, SET_NEXT_INSN): Likewise.
7175 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
7176 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
7177 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7178 (fixup_abnormal_edges): Likewise.
7179 (unlink_insn_chain): Likewise.
7180 (fixup_reorder_chain): Likewise.
7181 (cfg_layout_delete_block): Likewise.
7182 (cfg_layout_merge_blocks): Likewise.
7183 * combine.c (update_cfg_for_uncondjump): Likewise.
7184 * emit-rtl.c (link_insn_into_chain): Likewise.
7185 (remove_insn): Likewise.
7186 (delete_insns_since): Likewise.
7187 (reorder_insns_nobb): Likewise.
7188 (emit_insn_after_1): Likewise.
7189 * final.c (rest_of_clean_state): Likewise.
7190 (final_scan_insn): Likewise.
7191 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
7192 * haifa-sched.c (concat_note_lists): Likewise.
7193 (remove_notes): Likewise.
7194 (restore_other_notes): Likewise.
7195 (move_insn): Likewise.
7196 (unlink_bb_notes): Likewise.
7197 (restore_bb_notes): Likewise.
7198 * jump.c (delete_for_peephole): Likewise.
7199 * optabs.c (emit_libcall_block_1): Likewise.
7200 * reorg.c (emit_delay_sequence): Likewise.
7201 (fill_simple_delay_slots): Likewise.
7202 * sel-sched-ir.c (sel_move_insn): Likewise.
7203 (sel_remove_insn): Likewise.
7204 (get_bb_note_from_pool): Likewise.
7205 * sel-sched.c (move_nop_to_previous_block): Likewise.
7207 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
7208 * config/c6x/c6x.c (gen_one_bundle): Likewise.
7209 (c6x_gen_bundles): Likewise.
7210 (hwloop_optimize): Likewise.
7211 * config/frv/frv.c (frv_function_prologue): Likewise.
7212 (frv_register_nop): Likewise.
7213 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
7214 (ia64_reorg): Likewise.
7215 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
7216 (mep_make_bundle): Likewise.
7217 (mep_bundle_insns): Likewise.
7218 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
7219 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
7220 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
7222 2014-08-19 David Malcolm <dmalcolm@redhat.com>
7224 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
7225 return type from rtx to rtx_insn *.
7227 (BB_HEADER): Likewise.
7228 (BB_FOOTER): Likewise.
7229 (SET_BB_HEAD): Convert to a function.
7230 (SET_BB_END): Likewise.
7231 (SET_BB_HEADER): Likewise.
7232 (SET_BB_FOOTER): Likewise.
7234 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
7235 Strengthen the return type from rtx to rtx_insn *. For now, this
7236 is done by adding a checked cast, but this will eventually
7237 become a field lookup.
7239 (BB_HEADER): Likewise.
7240 (BB_FOOTER): Likewise.
7241 (SET_BB_HEAD): New function, from macro of same name. This is
7242 intended for use as an lvalue, and so returns an rtx& to allow
7243 in-place modification.
7244 (SET_BB_END): Likewise.
7245 (SET_BB_HEADER): Likewise.
7246 (SET_BB_FOOTER): Likewise.
7248 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7250 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
7252 (SET_BB_HEAD): New macro, for use as a lvalue.
7253 (BB_END, SET_BB_END): Likewise.
7254 (BB_HEADER, SET_BB_HEADER): Likewise.
7255 (BB_FOOTER, SET_BB_FOOTER): Likewise.
7257 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
7258 of BB_* macros into SET_BB_* macros.
7259 (fix_crossing_unconditional_branches): Likewise.
7260 * caller-save.c (save_call_clobbered_regs): Likewise.
7261 (insert_one_insn): Likewise.
7262 * cfgbuild.c (find_bb_boundaries): Likewise.
7263 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7264 (outgoing_edges_match): Likewise.
7265 (try_optimize_cfg): Likewise.
7266 * cfgexpand.c (expand_gimple_cond): Likewise.
7267 (expand_gimple_tailcall): Likewise.
7268 (expand_gimple_basic_block): Likewise.
7269 (construct_exit_block): Likewise.
7270 * cfgrtl.c (delete_insn): Likewise.
7271 (create_basic_block_structure): Likewise.
7272 (rtl_delete_block): Likewise.
7273 (rtl_split_block): Likewise.
7274 (emit_nop_for_unique_locus_between): Likewise.
7275 (rtl_merge_blocks): Likewise.
7276 (block_label): Likewise.
7277 (try_redirect_by_replacing_jump): Likewise.
7278 (emit_barrier_after_bb): Likewise.
7279 (fixup_abnormal_edges): Likewise.
7280 (record_effective_endpoints): Likewise.
7281 (relink_block_chain): Likewise.
7282 (fixup_reorder_chain): Likewise.
7283 (fixup_fallthru_exit_predecessor): Likewise.
7284 (cfg_layout_duplicate_bb): Likewise.
7285 (cfg_layout_split_block): Likewise.
7286 (cfg_layout_delete_block): Likewise.
7287 (cfg_layout_merge_blocks): Likewise.
7288 * combine.c (update_cfg_for_uncondjump): Likewise.
7289 * emit-rtl.c (add_insn_after): Likewise.
7290 (remove_insn): Likewise.
7291 (reorder_insns): Likewise.
7292 (emit_insn_after_1): Likewise.
7293 * haifa-sched.c (get_ebb_head_tail): Likewise.
7294 (restore_other_notes): Likewise.
7295 (move_insn): Likewise.
7296 (sched_extend_bb): Likewise.
7297 (fix_jump_move): Likewise.
7298 * ifcvt.c (noce_process_if_block): Likewise.
7299 (dead_or_predicable): Likewise.
7300 * ira.c (update_equiv_regs): Likewise.
7301 * reg-stack.c (change_stack): Likewise.
7302 * sel-sched-ir.c (sel_move_insn): Likewise.
7303 * sel-sched.c (move_nop_to_previous_block): Likewise.
7305 * config/c6x/c6x.c (hwloop_optimize): Likewise.
7306 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7308 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7310 * rtl.h (for_each_rtx_in_insn): New function.
7311 * rtlanal.c (for_each_rtx_in_insn): Likewise.
7313 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7315 * coretypes.h (class rtx_insn): Add forward declaration.
7317 * rtl.h: Include is-a.h.
7318 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
7319 workaround to ensure gengtype knows inheritance is occurring,
7320 whilst continuing to use the pre-existing special-casing for
7322 (class rtx_insn): New subclass of rtx_def, adding the
7323 invariant that we're dealing with something we can sanely use
7324 INSN_UID, NEXT_INSN, PREV_INSN on.
7325 (is_a_helper <rtx_insn *>::test): New.
7326 (is_a_helper <const rtx_insn *>::test): New.
7328 2014-08-18 David Malcolm <dmalcolm@redhat.com>
7330 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
7332 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
7334 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
7337 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
7339 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
7340 to BUILT_IN_UNREACHABLE.
7342 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
7345 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
7347 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
7348 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
7349 (ffs<mode>2): Do not expand with tzcnt for
7350 TARGET_AVOID_FALSE_DEP_FOR_BMI.
7351 (ffssi2_no_cmove): Ditto.
7352 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
7353 (ctz<mode>2): New expander.
7354 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
7355 (*ctz<mode>2_falsedep): New insn.
7356 (*ctz<mode>2): Rename from ctz<mode>2.
7357 (clz<mode>2_lzcnt): New expander.
7358 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
7359 (*clz<mode>2_lzcnt_falsedep): New insn.
7360 (*clz<mode>2): Rename from ctz<mode>2.
7361 (popcount<mode>2): New expander.
7362 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
7363 (*popcount<mode>2_falsedep): New insn.
7364 (*popcount<mode>2): Rename from ctz<mode>2.
7365 (*popcount<mode>2_cmp): Remove.
7366 (*popcountsi2_cmp_zext): Ditto.
7368 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
7370 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
7371 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
7372 * config/microblaze/microblaze.h
7373 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
7375 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
7378 * configure.ac: Set install_gold_as_default to no for
7380 * configure: Regenerated.
7382 2014-08-18 Roman Gareev <gareevroman@gmail.com>
7384 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
7385 * config.in: Add undef of HAVE_isl.
7386 * configure: Regenerate.
7387 * configure.ac: Add definition of HAVE_isl.
7388 * graphite-blocking.c: Add checking of HAVE_isl.
7389 * graphite-dependences.c: Likewise.
7390 * graphite-interchange.c: Likewise.
7391 * graphite-isl-ast-to-gimple.c: Likewise.
7392 * graphite-optimize-isl.c: Likewise.
7393 * graphite-poly.c: Likewise.
7394 * graphite-scop-detection.c: Likewise.
7395 * graphite-sese-to-poly.c: Likewise.
7396 * graphite.c: Likewise.
7397 * toplev.c: Replace the checking of HAVE_cloog with the checking
7400 2014-08-18 Richard Biener <rguenther@suse.de>
7402 PR tree-optimization/62090
7403 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
7404 (fold_builtin_3): Do not fold snprintf.
7405 (fold_builtin_4): Likewise.
7406 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
7407 moved from builtins.c.
7408 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
7409 (gimple_fold_builtin): Do not fold sprintf here.
7411 2014-08-18 Richard Biener <rguenther@suse.de>
7413 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
7415 (maybe_canonicalize_mem_ref_addr): ... this function.
7416 (fold_stmt_1): Apply it here before all simplification.
7418 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
7421 * cgraph.h (cgraph_node::create_indirect_edge): Add
7422 compute_indirect_info param.
7423 * cgraph.c (cgraph_node::create_indirect_edge): Compute
7424 indirect_info only when it is required.
7425 * cgraphclones.c (cgraph_clone_edge): Do not recompute
7426 indirect_info fore cloned indirect edge.
7428 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7429 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7430 Anna Tikhonova <anna.tikhonova@intel.com>
7431 Ilya Tocar <ilya.tocar@intel.com>
7432 Andrey Turetskiy <andrey.turetskiy@intel.com>
7433 Ilya Verbin <ilya.verbin@intel.com>
7434 Kirill Yukhin <kirill.yukhin@intel.com>
7435 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7437 * config/i386/sse.md
7438 (define_mode_iterator VI8_AVX2_AVX512BW): New.
7439 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
7441 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7443 Anna Tikhonova <anna.tikhonova@intel.com>
7444 Ilya Tocar <ilya.tocar@intel.com>
7445 Andrey Turetskiy <andrey.turetskiy@intel.com>
7446 Ilya Verbin <ilya.verbin@intel.com>
7447 Kirill Yukhin <kirill.yukhin@intel.com>
7448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7450 * config/i386/sse.md
7451 (define_mode_iterator VF1_AVX512VL): New.
7452 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
7453 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
7456 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7457 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7458 Anna Tikhonova <anna.tikhonova@intel.com>
7459 Ilya Tocar <ilya.tocar@intel.com>
7460 Andrey Turetskiy <andrey.turetskiy@intel.com>
7461 Ilya Verbin <ilya.verbin@intel.com>
7462 Kirill Yukhin <kirill.yukhin@intel.com>
7463 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7465 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
7466 * config/i386/i386.md
7467 (define_code_iterator any_float): New.
7468 (define_code_attr floatsuffix): New.
7469 * config/i386/sse.md
7470 (define_mode_iterator VF1_128_256VL): New.
7471 (define_mode_iterator VF2_512_256VL): New.
7472 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
7474 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
7475 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
7477 (define_mode_attr qq2pssuff): New.
7478 (define_mode_attr sselongvecmode): New.
7479 (define_mode_attr sselongvecmodelower): New.
7480 (define_mode_attr sseintvecmode3): New.
7481 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
7483 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
7484 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
7485 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
7486 (define_insn "ufloatv2siv2df2<mask_name>"): New.
7488 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7489 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7490 Anna Tikhonova <anna.tikhonova@intel.com>
7491 Ilya Tocar <ilya.tocar@intel.com>
7492 Andrey Turetskiy <andrey.turetskiy@intel.com>
7493 Ilya Verbin <ilya.verbin@intel.com>
7494 Kirill Yukhin <kirill.yukhin@intel.com>
7495 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7497 * config/i386/sse.md
7498 (define_mode_iterator VF2_AVX512VL): New.
7499 (define_mode_attr sseintvecmode2): New.
7500 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
7501 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
7502 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
7504 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
7506 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7508 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7511 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7512 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7513 Anna Tikhonova <anna.tikhonova@intel.com>
7514 Ilya Tocar <ilya.tocar@intel.com>
7515 Andrey Turetskiy <andrey.turetskiy@intel.com>
7516 Ilya Verbin <ilya.verbin@intel.com>
7517 Kirill Yukhin <kirill.yukhin@intel.com>
7518 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7520 * config/i386/i386.md
7521 (define_insn "*movoi_internal_avx"): Add evex version.
7522 (define_insn "*movti_internal"): Ditto.
7524 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7525 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7526 Anna Tikhonova <anna.tikhonova@intel.com>
7527 Ilya Tocar <ilya.tocar@intel.com>
7528 Andrey Turetskiy <andrey.turetskiy@intel.com>
7529 Ilya Verbin <ilya.verbin@intel.com>
7530 Kirill Yukhin <kirill.yukhin@intel.com>
7531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7533 * config/i386/i386.md
7534 (define_attr "isa"): Add avx512dq, noavx512dq.
7535 (define_attr "enabled"): Ditto.
7536 * config/i386/sse.md
7537 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
7539 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
7540 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7541 Anna Tikhonova <anna.tikhonova@intel.com>
7542 Ilya Tocar <ilya.tocar@intel.com>
7543 Andrey Turetskiy <andrey.turetskiy@intel.com>
7544 Ilya Verbin <ilya.verbin@intel.com>
7545 Kirill Yukhin <kirill.yukhin@intel.com>
7546 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7548 * config/i386/i386.c
7549 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
7550 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
7551 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
7552 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
7553 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
7554 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
7555 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
7556 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
7557 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
7558 * config/i386/sse.md
7559 (define_mode_iterator VMOVE): Allow V4TI mode.
7560 (define_mode_iterator V_AVX512VL): New.
7561 (define_mode_iterator V): New handling for AVX512VL.
7562 (define_insn "avx512f_load<mode>_mask"): Delete.
7563 (define_insn "<avx512>_load<mode>_mask"): New.
7564 (define_insn "avx512f_store<mode>_mask"): Delete.
7565 (define_insn "<avx512>_store<mode>_mask"): New.
7568 2014-08-18 Yury Gribov <y.gribov@samsung.com>
7571 * asan.c (instrument_derefs): Fix bitfield check.
7573 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7575 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
7576 * config/rs6000/htm.md (ttest): Remove clobber.
7577 * config/rs6000/predicates.md (any_mask_operand): New predicate.
7578 (and_operand): Reformat.
7579 (and_2rld_operand): New predicate.
7580 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
7582 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
7583 parameter. Handle AND directly.
7584 (rs6000_split_logical_di): Remove last parameter.
7585 (rs6000_split_logical): Remove last parameter. Remove obsolete
7587 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
7588 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
7589 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
7590 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
7591 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
7592 and 5 anonymous splitters): Delete.
7593 (and<mode>3): New expander.
7594 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
7595 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
7596 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
7597 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
7598 (floatdisf2_internal1): Remove clobbers.
7599 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
7600 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
7601 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
7602 (and<mode>3 for BOOL_128): Remove clobber.
7603 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
7604 rs6000_split_logical.
7605 (*bool<mode>3_internal for BOOL_128): Adjust call of
7606 rs6000_split_logical.
7607 (*boolc<mode>3_internal1 for BOOL_128,
7608 *boolc<mode>3_internal2 for BOOL_128,
7609 *boolcc<mode>3_internal1 for BOOL_128,
7610 *boolcc<mode>3_internal2 for BOOL_128,
7611 *eqv<mode>3_internal1 for BOOL_128,
7612 *eqv<mode>3_internal2 for BOOL_128,
7613 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
7614 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
7616 (*vec_reload_and_reg_<mptrsize>): Delete.
7618 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7620 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
7621 and split, *boolccsi3_internal3 and split): Delete.
7622 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
7623 *boolccdi3_internal3 and split): Delete.
7624 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
7625 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
7627 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7629 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
7630 and split, *boolcsi3_internal3 and split): Delete.
7631 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
7632 *boolcdi3_internal3 and split): Delete.
7633 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
7635 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
7637 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
7638 <'u'>: Also support printing the low-order 16 bits.
7639 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
7640 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
7641 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
7642 *booldi3_internal3 and split): Delete.
7643 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
7644 *bool<mode>3_dot2): New.
7645 (two anonymous define_splits for non_logical_cint_operand): Merge.
7647 2014-08-17 Marek Polacek <polacek@redhat.com>
7648 Manuel López-Ibáñez <manu@gcc.gnu.org>
7651 * diagnostic.c (adjust_line): Add gcc_checking_assert.
7652 (diagnostic_show_locus): Don't print caret diagnostic
7653 if a column is larger than the line_width.
7655 2014-08-17 Roman Gareev <gareevroman@gmail.com>
7657 * common.opt: Make the ISL AST generator to be the main code generator
7660 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
7662 * wide-int.h (generic_wide_int): Declare as class instead of struct.
7664 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
7667 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
7669 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
7670 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
7671 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
7673 * config/pa/pa.md (begin_brtab): Delete insn.
7674 (end_brtab): Likewise.
7676 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7678 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
7680 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
7682 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
7683 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
7684 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
7685 (get_dynamic_type): Remove.
7686 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
7687 (clear_speculation): Bring to ipa-deivrt.h
7688 (get_class_context): Rename to ...
7689 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
7690 (contains_type_p): Update.
7691 (get_dynamic_type): Rename to ...
7692 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
7693 (possible_polymorphic_call_targets): UPdate.
7694 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
7695 * ipa-prop.c (ipa_analyze_call_uses): Update.
7697 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
7699 * doc/invoke.texi (SH options): Document missing processor variant
7700 options. Remove references to Hitachi. Undocument deprecated mspace
7703 2014-08-15 Jason Merrill <jason@redhat.com>
7705 * tree.c (type_hash_canon): Uncomment assert.
7707 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7709 * input.h (in_system_header_at): Add comment.
7711 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7714 * diagnostic.c (build_message_string): Make it extern.
7715 * diagnostic.h (build_message_string): Make it extern.
7717 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
7719 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
7720 load/store from/to non-floating class pseudo.
7722 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7724 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
7726 2014-08-15 Richard Biener <rguenther@suse.de>
7728 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
7729 (get_constraint_for_ssa_var): Remove dead code.
7730 (get_constraint_for_1): Adjust.
7731 (find_what_var_points_to): Likewise.
7732 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
7734 2014-08-15 Ilya Tocar <tocarip@gmail.com>
7737 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
7738 (_mm512_mask_cmpge_epu32_mask): Ditto.
7739 (_mm512_cmpge_epu32_mask): Ditto.
7740 (_mm512_mask_cmpge_epi64_mask): Ditto.
7741 (_mm512_cmpge_epi64_mask): Ditto.
7742 (_mm512_mask_cmpge_epu64_mask): Ditto.
7743 (_mm512_cmpge_epu64_mask): Ditto.
7744 (_mm512_mask_cmple_epi32_mask): Ditto.
7745 (_mm512_cmple_epi32_mask): Ditto.
7746 (_mm512_mask_cmple_epu32_mask): Ditto.
7747 (_mm512_cmple_epu32_mask): Ditto.
7748 (_mm512_mask_cmple_epi64_mask): Ditto.
7749 (_mm512_cmple_epi64_mask): Ditto.
7750 (_mm512_mask_cmple_epu64_mask): Ditto.
7751 (_mm512_cmple_epu64_mask): Ditto.
7752 (_mm512_mask_cmplt_epi32_mask): Ditto.
7753 (_mm512_cmplt_epi32_mask): Ditto.
7754 (_mm512_mask_cmplt_epu32_mask): Ditto.
7755 (_mm512_cmplt_epu32_mask): Ditto.
7756 (_mm512_mask_cmplt_epi64_mask): Ditto.
7757 (_mm512_cmplt_epi64_mask): Ditto.
7758 (_mm512_mask_cmplt_epu64_mask): Ditto.
7759 (_mm512_cmplt_epu64_mask): Ditto.
7760 (_mm512_mask_cmpneq_epi32_mask): Ditto.
7761 (_mm512_mask_cmpneq_epu32_mask): Ditto.
7762 (_mm512_cmpneq_epu32_mask): Ditto.
7763 (_mm512_mask_cmpneq_epi64_mask): Ditto.
7764 (_mm512_cmpneq_epi64_mask): Ditto.
7765 (_mm512_mask_cmpneq_epu64_mask): Ditto.
7766 (_mm512_cmpneq_epu64_mask): Ditto.
7767 (_mm512_castpd_ps): Ditto.
7768 (_mm512_castpd_si512): Ditto.
7769 (_mm512_castps_pd): Ditto.
7770 (_mm512_castps_si512): Ditto.
7771 (_mm512_castsi512_ps): Ditto.
7772 (_mm512_castsi512_pd): Ditto.
7773 (_mm512_castpd512_pd128): Ditto.
7774 (_mm512_castps512_ps128): Ditto.
7775 (_mm512_castsi512_si128): Ditto.
7776 (_mm512_castpd512_pd256): Ditto.
7777 (_mm512_castps512_ps256): Ditto.
7778 (_mm512_castsi512_si256): Ditto.
7779 (_mm512_castpd128_pd512): Ditto.
7780 (_mm512_castps128_ps512): Ditto.
7781 (_mm512_castsi128_si512): Ditto.
7782 (_mm512_castpd256_pd512): Ditto.
7783 (_mm512_castps256_ps512): Ditto.
7784 (_mm512_castsi256_si512): Ditto.
7785 (_mm512_cmpeq_epu32_mask): Ditto.
7786 (_mm512_mask_cmpeq_epu32_mask): Ditto.
7787 (_mm512_mask_cmpeq_epu64_mask): Ditto.
7788 (_mm512_cmpeq_epu64_mask): Ditto.
7789 (_mm512_cmpgt_epu32_mask): Ditto.
7790 (_mm512_mask_cmpgt_epu32_mask): Ditto.
7791 (_mm512_mask_cmpgt_epu64_mask): Ditto.
7792 (_mm512_cmpgt_epu64_mask): Ditto.
7793 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
7794 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
7795 * config/i386/i386.c (enum ix86_builtins): Add
7796 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
7797 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
7798 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
7799 (bdesc_args): Add __builtin_ia32_si512_256si,
7800 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
7801 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
7802 __builtin_ia32_pd512_pd.
7803 (ix86_expand_args_builtin): Handle new FTYPEs.
7804 * config/i386/sse.md (castmode): Add 512-bit modes.
7805 (AVX512MODE2P): New.
7806 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
7807 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
7809 2014-08-15 Richard Biener <rguenther@suse.de>
7811 * fold-const.c (tree_swap_operands_p): Put all constants
7812 last, also strip sign-changing NOPs when considering further
7813 canonicalization. Canonicalize also when optimizing for size.
7815 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7817 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
7818 one_match > zero_match case to just before simple_sequence.
7820 2014-08-15 Richard Biener <rguenther@suse.de>
7822 * data-streamer.h (streamer_string_index, string_for_index):
7824 * data-streamer-out.c (streamer_string_index): Make static.
7825 * data-streamer-in.c (string_for_index): Likewise.
7826 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
7827 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
7829 2014-08-15 Richard Biener <rguenther@suse.de>
7831 PR tree-optimization/62031
7832 * tree-data-ref.c (dr_analyze_indices): Do not set
7833 DR_UNCONSTRAINED_BASE.
7834 (dr_may_alias_p): All indirect accesses have to go the
7835 formerly DR_UNCONSTRAINED_BASE path.
7836 * tree-data-ref.h (struct indices): Remove
7837 unconstrained_base member.
7838 (DR_UNCONSTRAINED_BASE): Remove.
7840 2014-08-15 Jakub Jelinek <jakub@redhat.com>
7843 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
7844 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
7845 in OMP_CLAUSE_MAP in some outer target region.
7847 2014-08-15 Bin Cheng <bin.cheng@arm.com>
7849 * tree-ssa-loop-ivopts.c (ivopts_data): New field
7850 name_expansion_cache.
7851 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
7852 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
7853 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
7854 (difference_cannot_overflow_p): New parameter. Use affine
7855 expansion for equality check.
7856 (iv_elimination_compare_lt): Pass new argument.
7858 2014-08-14 DJ Delorie <dj@redhat.com>
7860 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
7861 variables to the accumulator.
7863 * config/rl78/predicates.md (rl78_near_mem_operand): New.
7864 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
7865 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
7868 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
7869 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
7870 (umulqihi3_virt): Likewise.
7871 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
7872 (umulqihi3_real): Likewise.
7874 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
7876 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
7878 PR tree-optimization/62091
7879 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
7880 function_entry_reached.
7881 (walk_aliased_vdefs): Clear it here.
7882 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
7884 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
7886 * ipa-utils.h (compare_virtual_tables): Declare.
7887 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
7889 2014-08-14 Marek Polacek <polacek@redhat.com>
7892 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
7893 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
7895 2014-08-14 Tom de Vries <tom@codesourcery.com>
7897 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
7899 2014-08-14 Tom de Vries <tom@codesourcery.com>
7901 PR rtl-optimization/62004
7902 PR rtl-optimization/62030
7903 * ifcvt.c (rtx_interchangeable_p): New function.
7904 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
7905 * emit-rtl.h (mem_attrs_eq_p): Declare.
7907 2014-08-14 Roman Gareev <gareevroman@gmail.com>
7909 * graphite-scop-detection.c:
7910 Add inclusion of cp-tree.h.
7911 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
7912 in case they are pointers to object types
7914 2014-08-14 Richard Biener <rguenther@suse.de>
7916 * BASE-VER: Change to 5.0.0
7918 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7919 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7920 Anna Tikhonova <anna.tikhonova@intel.com>
7921 Ilya Tocar <ilya.tocar@intel.com>
7922 Andrey Turetskiy <andrey.turetskiy@intel.com>
7923 Ilya Verbin <ilya.verbin@intel.com>
7924 Kirill Yukhin <kirill.yukhin@intel.com>
7925 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7927 * config/i386/sse.md (define_mode_attr avx512): New.
7928 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
7930 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
7931 (define_mode_attr ssse3_avx2): Ditto.
7932 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
7933 (define_mode_attr avx2_avx512bw): New.
7934 (define_mode_attr ssedoublemodelower): New.
7935 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
7937 (define_mode_attr ssebytemode): Allow V8DI modes.
7938 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
7939 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
7940 (define_mode_attr ssePSmode2): New.
7941 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
7943 (define_mode_attr dbpsadbwmode): New.
7944 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
7945 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
7946 (vi8_sse4_1_avx2_avx512): New.
7947 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
7949 (define_mode_attr blendbits): Move before its immediate use.
7951 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7952 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7953 Anna Tikhonova <anna.tikhonova@intel.com>
7954 Ilya Tocar <ilya.tocar@intel.com>
7955 Andrey Turetskiy <andrey.turetskiy@intel.com>
7956 Ilya Verbin <ilya.verbin@intel.com>
7957 Kirill Yukhin <kirill.yukhin@intel.com>
7958 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7960 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
7961 * config/i386/subst.md
7962 (define_mode_iterator SUBST_V): Update.
7963 (define_mode_iterator SUBST_A): Ditto.
7964 (define_subst_attr "mask_operand7"): New.
7965 (define_subst_attr "mask_operand10"): New.
7966 (define_subst_attr "mask_operand_arg34") : New.
7967 (define_subst_attr "mask_expand_op3"): New.
7968 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
7969 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
7970 (define_subst_attr "mask_avx512vl_condition"): New.
7971 (define_subst_attr "round_mask_operand4"): Ditto.
7972 (define_subst_attr "round_mask_scalar_op3"): Delete.
7973 (define_subst_attr "round_mask_op4"): New.
7974 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
7976 (define_subst_attr "round_modev8sf_condition"): New.
7977 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
7979 (define_subst_attr "round_saeonly_mask_operand4"): New.
7980 (define_subst_attr "round_saeonly_mask_op4"): New.
7981 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
7982 V8DImode, V16SImode.
7983 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
7984 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
7985 (define_subst_attr "mask_expand4_args"): New.
7986 (define_subst "mask_expand4"): New.
7988 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7990 Anna Tikhonova <anna.tikhonova@intel.com>
7991 Ilya Tocar <ilya.tocar@intel.com>
7992 Andrey Turetskiy <andrey.turetskiy@intel.com>
7993 Ilya Verbin <ilya.verbin@intel.com>
7994 Kirill Yukhin <kirill.yukhin@intel.com>
7995 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7997 * config/i386/i386.md
7998 (define_attr "isa"): Add avx512bw,noavx512bw.
7999 (define_attr "enabled"): Ditto.
8000 (define_split): Add 32/64-bit mask logic.
8001 (define_insn "*k<logic>qi"): New.
8002 (define_insn "*k<logic>hi"): New.
8003 (define_insn "*anddi_1"): Add mask version.
8004 (define_insn "*andsi_1"): Ditto.
8005 (define_insn "*<code><mode>_1"): Ditto.
8006 (define_insn "*<code>hi_1"): Ditto.
8007 (define_insn "kxnor<mode>"): New.
8008 (define_insn "kunpcksi"): New.
8009 (define_insn "kunpckdi"): New.
8010 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8011 (define_insn "*one_cmplhi2_1"): Ditto.
8013 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8015 Anna Tikhonova <anna.tikhonova@intel.com>
8016 Ilya Tocar <ilya.tocar@intel.com>
8017 Andrey Turetskiy <andrey.turetskiy@intel.com>
8018 Ilya Verbin <ilya.verbin@intel.com>
8019 Kirill Yukhin <kirill.yukhin@intel.com>
8020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8022 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8025 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
8026 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8027 Anna Tikhonova <anna.tikhonova@intel.com>
8028 Ilya Tocar <ilya.tocar@intel.com>
8029 Andrey Turetskiy <andrey.turetskiy@intel.com>
8030 Ilya Verbin <ilya.verbin@intel.com>
8031 Kirill Yukhin <kirill.yukhin@intel.com>
8032 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8034 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
8036 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8037 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8038 xmm/ymm16+ when availble.
8039 * config/i386/i386.h
8040 (HARD_REGNO_NREGS): Add mask regs.
8041 (VALID_AVX512F_REG_MODE): Ditto.
8042 (VALID_AVX512F_REG_MODE) : Define.
8043 (VALID_MASK_AVX512BW_MODE): Ditto.
8044 (reg_class) (MASK_REG_P(X)): Define.
8045 * config/i386/i386.md: Do not split long moves with mask register,
8046 use kmovb if avx512bw is availible.
8047 (movdi_internal): Handle mask registers.
8049 2014-08-14 Richard Biener <rguenther@suse.de>
8051 PR tree-optimization/62081
8052 * tree-ssa-loop.c (pass_fix_loops): New pass.
8053 (pass_tree_loop::gate): Do not fixup loops here.
8054 * tree-pass.h (make_pass_fix_loops): Declare.
8055 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8057 2014-08-14 Richard Biener <rguenther@suse.de>
8059 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8060 (type_hash_canon): ... this and avoid 2nd lookup for the add.
8062 2014-08-14 Richard Biener <rguenther@suse.de>
8064 PR tree-optimization/62090
8065 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8066 (fold_builtin_2): Do not fold sprintf.
8067 (fold_builtin_3): Likewise.
8068 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8069 moved from builtins.c.
8070 (gimple_fold_builtin): Fold sprintf.
8072 2014-08-14 Richard Biener <rguenther@suse.de>
8074 PR rtl-optimization/62079
8075 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
8078 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8080 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
8081 current_function_decl.
8083 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
8085 * cgraph.c (cgraph_node::function_symbol): Fix wrong
8086 cgraph_function_node to cgraph_node::function_symbol
8089 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
8091 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
8092 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
8094 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
8096 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
8099 2014-08-13 Roman Gareev <gareevroman@gmail.com>
8101 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
8104 2014-08-12 Jakub Jelinek <jakub@redhat.com>
8107 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
8108 any registers that are used in mem_insn.
8110 2014-08-12 Steve Ellcey <sellcey@mips.com>
8112 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
8114 2014-08-12 Steve Ellcey <sellcey@mips.com>
8116 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
8117 (MULTILIB_DIRNAMES): Ditto.
8118 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
8119 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
8120 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
8121 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
8122 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
8123 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
8125 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8128 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
8129 of __ARM_SIZEOF_WCHAR_T.
8131 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8134 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
8135 Remove unnecessary attributes.
8137 2014-08-12 Yury Gribov <y.gribov@samsung.com>
8139 * internal-fn.c (init_internal_fns): Fix off-by-one.
8141 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
8142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8143 Anna Tikhonova <anna.tikhonova@intel.com>
8144 Ilya Tocar <ilya.tocar@intel.com>
8145 Andrey Turetskiy <andrey.turetskiy@intel.com>
8146 Ilya Verbin <ilya.verbin@intel.com>
8147 Kirill Yukhin <kirill.yukhin@intel.com>
8148 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8150 * config/i386/i386.c (standard_sse_constant_opcode): Use
8151 vpxord/vpternlog if avx512 is availible.
8153 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
8156 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
8157 bitfields, that is when size doesn't match the size of type or the
8158 size of the constructor.
8160 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8162 * config/rs6000/constraints.md (wh constraint): New constraint,
8163 for FP registers if direct move is available.
8164 (wi constraint): New constraint, for VSX/FP registers that can
8165 handle 64-bit integers.
8166 (wj constraint): New constraint for VSX/FP registers that can
8167 handle 64-bit integers for direct moves.
8168 (wk constraint): New constraint for VSX/FP registers that can
8169 handle 64-bit doubles for direct moves.
8170 (wy constraint): Make documentation match implementation.
8172 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
8173 scalar_in_vmx_p field to simplify tests of whether SFmode or
8174 DFmode can go in the Altivec registers.
8175 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
8176 (rs6000_setup_reg_addr_masks): Likewise.
8177 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
8178 field, and wh/wi/wj/wk constraints.
8179 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
8180 the wh/wi/wj/wk constraints.
8181 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
8182 upper registers, prefer VSX registers unless the operation is a
8183 memory operation with REG+OFFSET addressing.
8185 * config/rs6000/vsx.md (VSr mode attribute): Add support for
8186 DImode. Change SFmode to use ww constraint instead of d to allow
8187 SF registers in the upper registers.
8190 (VSr5): Fix thinko in comment.
8191 (VSa): New mode attribute that is an alternative to wa, that
8192 returns the VSX register class that a mode can go in, but may not
8193 be the preferred register class.
8194 (VS_64dm): New mode attribute for appropriate register classes for
8195 referencing 64-bit elements of vectors for direct moves and normal
8197 (VS_64reg): Likewise.
8198 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
8199 register allocator to only registers the data type can handle.
8200 (vsx_le_perm_load_<mode>): Likewise.
8201 (vsx_le_perm_store_<mode>): Likewise.
8202 (vsx_xxpermdi2_le_<mode>): Likewise.
8203 (vsx_xxpermdi4_le_<mode>): Likewise.
8204 (vsx_lxvd2x2_le_<mode>): Likewise.
8205 (vsx_lxvd2x4_le_<mode>): Likewise.
8206 (vsx_stxvd2x2_le_<mode>): Likewise.
8207 (vsx_add<mode>3): Likewise.
8208 (vsx_sub<mode>3): Likewise.
8209 (vsx_mul<mode>3): Likewise.
8210 (vsx_div<mode>3): Likewise.
8211 (vsx_tdiv<mode>3_internal): Likewise.
8212 (vsx_fre<mode>2): Likewise.
8213 (vsx_neg<mode>2): Likewise.
8214 (vsx_abs<mode>2): Likewise.
8215 (vsx_nabs<mode>2): Likewise.
8216 (vsx_smax<mode>3): Likewise.
8217 (vsx_smin<mode>3): Likewise.
8218 (vsx_sqrt<mode>2): Likewise.
8219 (vsx_rsqrte<mode>2): Likewise.
8220 (vsx_tsqrt<mode>2_internal): Likewise.
8221 (vsx_fms<mode>4): Likewise.
8222 (vsx_nfma<mode>4): Likewise.
8223 (vsx_eq<mode>): Likewise.
8224 (vsx_gt<mode>): Likewise.
8225 (vsx_ge<mode>): Likewise.
8226 (vsx_eq<mode>_p): Likewise.
8227 (vsx_gt<mode>_p): Likewise.
8228 (vsx_ge<mode>_p): Likewise.
8229 (vsx_xxsel<mode>): Likewise.
8230 (vsx_xxsel<mode>_uns): Likewise.
8231 (vsx_copysign<mode>3): Likewise.
8232 (vsx_float<VSi><mode>2): Likewise.
8233 (vsx_floatuns<VSi><mode>2): Likewise.
8234 (vsx_fix_trunc<mode><VSi>2): Likewise.
8235 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
8236 (vsx_x<VSv>r<VSs>i): Likewise.
8237 (vsx_x<VSv>r<VSs>ic): Likewise.
8238 (vsx_btrunc<mode>2): Likewise.
8239 (vsx_b2trunc<mode>2): Likewise.
8240 (vsx_floor<mode>2): Likewise.
8241 (vsx_ceil<mode>2): Likewise.
8242 (vsx_<VS_spdp_insn>): Likewise.
8243 (vsx_xscvspdp): Likewise.
8244 (vsx_xvcvspuxds): Likewise.
8245 (vsx_float_fix_<mode>2): Likewise.
8246 (vsx_set_<mode>): Likewise.
8247 (vsx_extract_<mode>_internal1): Likewise.
8248 (vsx_extract_<mode>_internal2): Likewise.
8249 (vsx_extract_<mode>_load): Likewise.
8250 (vsx_extract_<mode>_store): Likewise.
8251 (vsx_splat_<mode>): Likewise.
8252 (vsx_xxspltw_<mode>): Likewise.
8253 (vsx_xxspltw_<mode>_direct): Likewise.
8254 (vsx_xxmrghw_<mode>): Likewise.
8255 (vsx_xxmrglw_<mode>): Likewise.
8256 (vsx_xxsldwi_<mode>): Likewise.
8257 (vsx_xscvdpspn): Tighten constraints to only use register classes
8259 (vsx_xscvspdpn): Likewise.
8260 (vsx_xscvdpspn_scalar): Likewise.
8262 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
8263 wj, and wk constraints.
8264 (GPR_REG_CLASS_P): New helper macro for register classes targeting
8265 general purpose registers.
8267 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
8269 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
8270 DImode instead of wm. Use wk constraint for direct move of DFmode
8272 (extendsidi2_lfiwax): Likewise.
8275 (movdi_internal64): Likewise.
8277 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
8278 wk constraints. Make the wy constraint documentation match them
8281 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
8283 Replacement of isl_int by isl_val
8284 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
8285 (compute_bounds_for_param): use isl_val instead of isl_int
8286 (compute_bounds_for_loop): likewise
8287 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
8288 (build_linearized_memory_access): use isl_val instead of isl_int
8289 (pdr_stride_in_loop): likewise
8290 * graphite-optimize-isl.c:
8291 (getPrevectorMap): use isl_val instead of isl_int
8293 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
8294 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
8295 (extern the_isl_ctx): declare
8296 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
8297 (extract_affine_gmp): likewise
8299 (build_loop_iteration_domains): likewise
8300 (add_param_constraints): likewise
8302 2014-08-11 Richard Biener <rguenther@suse.de>
8304 PR tree-optimization/62075
8305 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
8306 handle uses in patterns.
8308 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8309 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8310 Anna Tikhonova <anna.tikhonova@intel.com>
8311 Ilya Tocar <ilya.tocar@intel.com>
8312 Andrey Turetskiy <andrey.turetskiy@intel.com>
8313 Ilya Verbin <ilya.verbin@intel.com>
8314 Kirill Yukhin <kirill.yukhin@intel.com>
8315 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8317 * common/config/i386/i386-common.c
8318 (OPTION_MASK_ISA_AVX512VL_SET): Define.
8319 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
8320 (ix86_handle_option): Handle OPT_mavx512vl.
8321 * config/i386/cpuid.h (bit_AVX512VL): Define.
8322 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
8323 set -mavx512vl accordingly.
8324 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8325 OPTION_MASK_ISA_AVX512VL.
8326 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
8327 (ix86_option_override_internal): Define PTA_AVX512VL, handle
8328 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
8329 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
8330 * config/i386/i386.h (TARGET_AVX512VL): Define.
8331 (TARGET_AVX512VL_P(x)): Ditto.
8332 * config/i386/i386.opt: Add mavx512vl.
8334 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
8336 PR tree-optimization/62073
8337 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
8340 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
8341 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8342 Anna Tikhonova <anna.tikhonova@intel.com>
8343 Ilya Tocar <ilya.tocar@intel.com>
8344 Andrey Turetskiy <andrey.turetskiy@intel.com>
8345 Ilya Verbin <ilya.verbin@intel.com>
8346 Kirill Yukhin <kirill.yukhin@intel.com>
8347 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8349 * common/config/i386/i386-common.c
8350 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
8351 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
8352 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
8353 (ix86_handle_option): Handle OPT_mavx512bw.
8354 * config/i386/cpuid.h (bit_AVX512BW): Define.
8355 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
8356 set -mavx512bw accordingly.
8357 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8358 OPTION_MASK_ISA_AVX512BW.
8359 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
8360 (ix86_option_override_internal): Define PTA_AVX512BW, handle
8361 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
8362 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
8363 * config/i386/i386.h (TARGET_AVX512BW): Define.
8364 (TARGET_AVX512BW_P(x)): Ditto.
8365 * config/i386/i386.opt: Add mavx512bw.
8367 2014-08-11 Richard Biener <rguenther@suse.de>
8369 PR tree-optimization/62070
8370 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
8371 Remove SSA checking.
8373 2014-08-11 Yury Gribov <y.gribov@samsung.com>
8375 * asan.c (asan_check_flags): New enum.
8376 (build_check_stmt_with_calls): Removed function.
8377 (build_check_stmt): Split inlining logic to
8378 asan_expand_check_ifn.
8379 (instrument_derefs): Rename parameter.
8380 (instrument_mem_region_access): Rename parameter.
8381 (instrument_strlen_call): Likewise.
8382 (asan_expand_check_ifn): New function.
8383 (asan_instrument): Remove old code.
8384 (pass_sanopt::execute): Change handling of
8385 asan-instrumentation-with-call-threshold.
8386 (asan_clear_shadow): Fix formatting.
8387 (asan_function_start): Likewise.
8388 (asan_emit_stack_protection): Likewise.
8389 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
8391 * internal-fn.c (expand_ASAN_CHECK): New function.
8392 * internal-fn.def (ASAN_CHECK): New internal function.
8393 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
8395 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
8396 * tree.c: Small comment fix.
8398 2014-08-11 Yury Gribov <y.gribov@samsung.com>
8400 * gimple.c (gimple_call_fnspec): Support internal functions.
8401 (gimple_call_return_flags): Use const.
8402 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
8403 * internal-fn.def: Add fnspec information.
8404 * internal-fn.h (internal_fn_fnspec): New function.
8405 (init_internal_fns): Declare new function.
8406 * internal-fn.c (internal_fn_fnspec_array): New global variable.
8407 (init_internal_fns): New function.
8408 * tree-core.h: Update macro call.
8409 * tree.c (build_common_builtin_nodes): Initialize internal fns.
8411 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
8413 * lto-streamer.h (struct output_block::symbol): Change from
8414 struct symtab_node to plain symtab_node.
8415 (referenced_from_this_partition_p): Change first parameter
8416 from struct symtab_node to plain symtab_node.
8418 2014-08-10 Marek Polacek <polacek@redhat.com>
8421 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
8423 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
8425 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
8426 DECL correctly; do not give up on types in static storage.
8428 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
8430 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
8432 2014-08-09 Roman Gareev <gareevroman@gmail.com>
8434 * graphite-isl-ast-to-gimple.c:
8435 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
8437 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
8439 2014-08-08 Guozhi Wei <carrot@google.com>
8441 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
8443 2014-08-08 Cary Coutant <ccoutant@google.com>
8445 * dwarf2out.c (get_skeleton_type_unit): Remove.
8446 (output_skeleton_debug_sections): Remove skeleton type units.
8447 (output_comdat_type_unit): Likewise.
8448 (dwarf2out_finish): Likewise.
8450 2014-08-07 Yi Yang <ahyangyi@google.com>
8452 * predict.c (expr_expected_value_1): Remove the redundant assignment.
8454 2014-08-08 Richard Biener <rguenther@suse.de>
8456 * lto-streamer.h (struct lto_input_block): Make it a class
8458 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
8459 (struct lto_function_header, struct lto_simple_header,
8460 struct lto_simple_header_with_strings,
8461 struct lto_decl_header, struct lto_function_header): Make
8462 a simple inheritance hieararchy. Remove unused fields.
8463 (struct lto_asm_header): Remove.
8464 * lto-streamer-out.c (produce_asm): Adjust.
8465 (lto_output_toplevel_asms): Likewise.
8466 (produce_asm_for_decls): Likewise.
8467 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8468 * data-streamer-in.c (string_for_index): Likewise.
8469 * ipa-inline-analysis.c (inline_read_section): Likewise.
8470 * ipa-prop.c (ipa_prop_read_section): Likewise.
8471 (read_replacements_section): Likewise.
8472 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8473 * lto-section-in.c (lto_create_simple_input_block): Likewise.
8474 (lto_destroy_simple_input_block): Likewise.
8475 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
8476 (lto_input_toplevel_asms): Likewise.
8478 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
8479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8480 Anna Tikhonova <anna.tikhonova@intel.com>
8481 Ilya Tocar <ilya.tocar@intel.com>
8482 Andrey Turetskiy <andrey.turetskiy@intel.com>
8483 Ilya Verbin <ilya.verbin@intel.com>
8484 Kirill Yukhin <kirill.yukhin@intel.com>
8485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8487 * common/config/i386/i386-common.c
8488 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
8489 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
8490 (ix86_handle_option): Handle OPT_mavx512dq.
8491 * config/i386/cpuid.h (bit_AVX512DQ): Define.
8492 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
8493 set -mavx512dq accordingly.
8494 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8495 OPTION_MASK_ISA_AVX512DQ.
8496 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
8497 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
8498 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
8499 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
8500 * config/i386/i386.h (TARGET_AVX512DQ): Define.
8501 (TARGET_AVX512DQ_P(x)): Ditto.
8502 * config/i386/i386.opt: Add mavx512dq.
8504 2014-08-08 Richard Biener <rguenther@suse.de>
8506 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
8507 target_percent, target_percent_s): Export.
8508 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
8509 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
8510 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
8511 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
8512 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
8513 Move to gimple-fold.c.
8514 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
8516 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
8517 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
8518 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
8519 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
8520 (rewrite_call_expr_array): Remove.
8521 (fold_builtin_sprintf_chk): Likewise.
8522 (fold_builtin_snprintf_chk): Likewise.
8523 (fold_builtin_varargs): Remove handling of sprintf_chk,
8524 vsprintf_chk, snprintf_chk and vsnprintf_chk.
8525 (gimple_fold_builtin_sprintf_chk): Remove.
8526 (gimple_fold_builtin_snprintf_chk): Likewise.
8527 (gimple_fold_builtin_varargs): Likewise.
8528 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
8529 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
8530 * gimple.c (gimple_seq_add_seq_without_update): New function.
8531 * gimple.h (gimple_seq_add_seq_without_update): Declare.
8532 * gimple-fold.c: Include output.h.
8533 (gsi_replace_with_seq_vops): New function, split out from ...
8534 (gimplify_and_update_call_from_tree): ... here.
8535 (replace_call_with_value): New function.
8536 (replace_call_with_call_and_fold): Likewise.
8537 (var_decl_component_p): Moved from builtins.c.
8538 (gimple_fold_builtin_memory_op): Moved from builtins.c
8539 fold_builtin_memory_op and rewritten to GIMPLE.
8540 (gimple_fold_builtin_memset): Likewise.
8541 (gimple_fold_builtin_strcpy): Likewise.
8542 (gimple_fold_builtin_strncpy): Likewise.
8543 (gimple_fold_builtin_strcat): Likewise.
8544 (gimple_fold_builtin_fputs): Likewise.
8545 (gimple_fold_builtin_memory_chk): Likewise.
8546 (gimple_fold_builtin_stxcpy_chk): Likewise.
8547 (gimple_fold_builtin_stxncpy_chk): Likewise.
8548 (gimple_fold_builtin_snprintf_chk): Likewise.
8549 (gimple_fold_builtin_sprintf_chk): Likewise.
8550 (gimple_fold_builtin_strlen): New function.
8551 (gimple_fold_builtin_with_strlen): New function split out from
8552 gimple_fold_builtin.
8553 (gimple_fold_builtin): Change signature and handle
8554 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
8555 here. Call gimple_fold_builtin_with_strlen.
8556 (gimple_fold_call): Adjust.
8558 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
8560 * calls.c (precompute_arguments): Check
8561 promoted_for_signed_and_unsigned_p and set the promoted mode.
8562 (promoted_for_signed_and_unsigned_p): New function.
8563 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
8564 and set the promoted mode.
8565 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
8566 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
8567 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
8570 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
8572 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
8573 instead of SUBREG_PROMOTED_UNSIGNED_SET.
8574 (expand_call): Likewise.
8575 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
8576 to get promoted mode.
8577 * combine.c (record_promoted_value): Skip > 0 comparison with
8578 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
8579 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
8580 of SUBREG_PROMOTED_UNSIGNED_P.
8581 (convert_modes): Likewise.
8582 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
8583 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
8584 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
8585 SUBREG_PROMOTED_UNSIGNED_SET.
8586 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
8587 instead of SUBREG_PROMOTED_UNSIGNED_SET.
8588 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
8589 SUBREG_PROMOTED_SET.
8590 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
8591 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
8592 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
8593 of SUBREG_PROMOTED_UNSIGNED_P.
8594 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
8595 (SUBREG_PROMOTED_SET): New define.
8596 (SUBREG_PROMOTED_GET): Likewise.
8597 (SUBREG_PROMOTED_SIGN): Likewise.
8598 (SUBREG_PROMOTED_SIGNED_P): Likewise.
8599 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
8600 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
8601 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
8602 instead of SUBREG_PROMOTED_UNSIGNED_GET.
8603 (nonzero_bits1): Skip > 0 comparison with the results as
8604 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
8605 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
8606 of !SUBREG_PROMOTED_UNSIGNED_P.
8607 * simplify-rtx.c (simplify_unary_operation_1): Use new
8608 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
8609 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
8610 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
8611 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
8613 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
8615 * ipa-devirt.c: Include gimple-pretty-print.h
8616 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
8618 (decl_maybe_in_construction_p): Fix conditional on cdtor check
8619 (get_polymorphic_call_info): Fix return value
8620 (type_change_info): New sturcture based on ipa-prop
8622 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
8623 based on ipa-prop variant.
8624 (extr_type_from_vtbl_ptr_store): New function
8625 based on ipa-prop variant.
8626 (record_known_type): New function.
8627 (check_stmt_for_type_change): New function.
8628 (get_dynamic_type): New function.
8629 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
8630 * tree-ssa-pre.c: ipa-utils.h
8631 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
8632 machinery; sanity check with ipa-prop devirtualization.
8633 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
8636 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8638 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
8639 * alias.c, cfgexpand.c, cgraphbuild.c,
8640 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
8641 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
8642 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
8643 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
8644 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
8645 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8646 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
8647 dse.c, except.c, gengtype.c, gimple-expr.c,
8648 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
8649 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
8650 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
8651 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
8652 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
8653 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
8655 * pointer-set.c: Remove file.
8656 * pointer-set.h: Remove file.
8658 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8660 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
8661 * config/arm/types.md (f_sels, f_seld): Delete.
8663 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8665 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
8666 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
8667 (aarch64_movdi_<mode>high): Likewise.
8668 (aarch64_mov<mode>high_di): Likewise.
8669 (aarch64_movdi_<mode>low): Likewise.
8670 (aarch64_mov<mode>low_di): Likewise.
8671 (aarch64_movtilow_tilow): Likewise.
8672 Add comment explaining usage of fp,simd attributes and of
8673 TARGET_FLOAT and TARGET_SIMD.
8675 2014-08-07 Ian Bolton <ian.bolton@arm.com>
8676 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8678 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
8679 Use MOVN when one of the half-words is 0xffff.
8681 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
8683 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
8685 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8687 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
8688 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
8689 (rfs_str): String corresponding to RFS_* constants.
8690 (rank_for_schedule_stats_t): New typedef.
8691 (rank_for_schedule_stats): New static variable.
8692 (rfs_result): New static function.
8693 (rank_for_schedule): Track statistics for deciding heuristics.
8694 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
8696 (ready_sort): Use them for debug printouts.
8697 (schedule_block): Init statistics state. Print statistics on
8698 rank_for_schedule decisions.
8700 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8702 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
8704 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
8706 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
8709 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8711 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
8712 function to not conflict.
8713 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
8714 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
8715 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
8716 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
8717 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
8720 2014-08-07 Marek Polacek <polacek@redhat.com>
8722 * fold-const.c (fold_binary_loc): Add folding of
8723 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
8725 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
8727 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
8728 instead of type size.
8729 (ASM_FINISH_DECLARE_OBJECT): Likewise.
8731 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
8733 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
8734 (*thumb1_movqi_insn): Likewise.
8735 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
8737 2014-08-07 Tom de Vries <tom@codesourcery.com>
8739 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8740 (glibc_2_11_or_earlier): Remove effective-target keywords.
8742 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
8744 * config/arm/arm.c (bdesc_2arg): Fix typo.
8745 (arm_atomic_assign_expand_fenv): Remove The default implementation.
8747 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
8749 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
8751 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
8754 * haifa-sched.c (advance_one_cycle): Fix dump.
8755 (schedule_block): Don't advance cycle if we are already at the
8756 beginning of the cycle.
8758 2014-08-06 Martin Jambor <mjambor@suse.cz>
8761 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
8763 2014-08-06 Richard Biener <rguenther@suse.de>
8766 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
8768 (lto_input_tree): Pop SCCs here.
8770 2014-08-06 Richard Biener <rguenther@suse.de>
8772 PR tree-optimization/61320
8773 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
8774 handle misaligned loads.
8776 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
8778 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
8779 (aarch64_expand_vec_perm_const): Check for dup before zip.
8781 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8783 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
8784 CONST_INT_P instead of GET_CODE and compare.
8785 (aarch64_select_cc_mode): Likewise.
8786 (aarch64_print_operand): Likewise.
8787 (aarch64_rtx_costs): Likewise.
8788 (aarch64_simd_valid_immediate): Likewise.
8789 (aarch64_simd_check_vect_par_cnst_half): Likewise.
8790 (aarch64_simd_emit_pair_result_insn): Likewise.
8792 2014-08-05 David Malcolm <dmalcolm@redhat.com>
8794 * gdbhooks.py (find_gcc_source_dir): New helper function.
8795 (class PassNames): New class, locating and parsing passes.def.
8796 (class BreakOnPass): New command "break-on-pass".
8798 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
8800 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
8803 2014-08-05 Richard Biener <rguenther@suse.de>
8805 PR rtl-optimization/61672
8806 * emit-rtl.h (mem_attrs_eq_p): Declare.
8807 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
8808 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
8809 * cfgcleanup.c (merge_memattrs): Likewise.
8812 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8814 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
8815 rather than singleton vectors.
8816 (vqdmlsls_lane_s32): Likewise.
8818 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8820 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
8821 Use VSDQ_HSI mode iterator.
8822 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8823 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
8824 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
8825 Use BUILTIN_VDQHS macro.
8826 (sqrdmulh_laneq): Likewise.
8827 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
8828 (vqdmlals_laneq_s32): Likewise.
8829 (vqdmlslh_laneq_s16): Likewise.
8830 (vqdmlsls_laneq_s32): Likewise.
8831 (vqdmulhh_laneq_s16): Likewise.
8832 (vqdmulhs_laneq_s32): Likewise.
8833 (vqrdmulhh_laneq_s16): Likewise.
8834 (vqrdmulhs_laneq_s32): Likewise.
8836 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8838 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
8839 (vmuld_laneq_f64): Likewise.
8840 (vmuls_laneq_f32): Likewise.
8841 (vmul_n_f64): Likewise.
8842 (vmuld_lane_f64): Reimplement in C.
8843 (vmuls_lane_f32): Likewise.
8845 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8847 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
8849 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
8851 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8853 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
8854 (rbitsi2): Likewise.
8855 (*arm_rev): Set predicable and predicable_short_it attributes.
8857 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8859 * convert.c (convert_to_integer): Guard transformation to lrint by
8862 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
8864 * config/aarch64/aarch64-builtins.c
8865 (aarch64_simd_builtin_type_mode): Delete.
8866 (v8qi_UP): Remap to V8QImode.
8867 (v4hi_UP): Remap to V4HImode.
8868 (v2si_UP): Remap to V2SImode.
8869 (v2sf_UP): Remap to V2SFmode.
8870 (v1df_UP): Remap to V1DFmode.
8871 (di_UP): Remap to DImode.
8872 (df_UP): Remap to DFmode.
8873 (v16qi_UP):V16QImode.
8874 (v8hi_UP): Remap to V8HImode.
8875 (v4si_UP): Remap to V4SImode.
8876 (v4sf_UP): Remap to V4SFmode.
8877 (v2di_UP): Remap to V2DImode.
8878 (v2df_UP): Remap to V2DFmode.
8879 (ti_UP): Remap to TImode.
8880 (ei_UP): Remap to EImode.
8881 (oi_UP): Remap to OImode.
8882 (ci_UP): Map to CImode.
8883 (xi_UP): Remap to XImode.
8884 (si_UP): Remap to SImode.
8885 (sf_UP): Remap to SFmode.
8886 (hi_UP): Remap to HImode.
8887 (qi_UP): Remap to QImode.
8888 (aarch64_simd_builtin_datum): Make mode a machine_mode.
8889 (VAR1): Build builtin name.
8890 (aarch64_init_simd_builtins): Remove dead code.
8892 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8894 * graphite-isl-ast-to-gimple.c:
8895 (set_options): New function.
8896 (scop_to_isl_ast): Add calling of set_options.
8898 2014-08-05 Jakub Jelinek <jakub@redhat.com>
8900 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
8901 (analyze_iv_to_split_insn): Don't initialize them.
8902 (get_ivts_expr): Removed.
8903 (allocate_basic_variable, insert_base_initialization): Use
8904 SET_SRC instead of *get_ivts_expr.
8905 (split_iv): Use &SET_SRC instead of get_ivts_expr.
8907 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8909 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
8910 (translate_isl_ast_for_loop): Add checking of the
8911 flag_loop_parallelize_all.
8912 (ast_build_before_for): New function.
8913 (scop_to_isl_ast): Add checking of the
8914 flag_loop_parallelize_all.
8915 * graphite-dependences.c: Move the defenition of the
8916 scop_get_dependences from graphite-optimize-isl.c to this file.
8917 (apply_schedule_on_deps): Add checking of the ux's emptiness.
8918 (carries_deps): Add checking of the x's value.
8919 * graphite-optimize-isl.c: Move the defenition of the
8920 scop_get_dependences to graphite-dependences.c.
8921 * graphite-poly.h: Add declarations of scop_get_dependences
8924 2014-08-04 Rohit <rohitarulraj@freescale.com>
8927 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
8929 (alt_reg_names): Likewise.
8930 (rs6000_dwarf_register_span): For SPE high registers, replace
8931 dwarf register numbers with GCC hard register numbers.
8932 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
8933 (rs6000_dbx_register_number): For SPE high registers, return dwarf
8934 register number for the corresponding GCC hard register number.
8935 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
8936 newly added GCC hard register numbers for SPE high registers.
8937 (DWARF_FRAME_REGISTERS): Likewise.
8938 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
8939 (DWARF_FRAME_REGNUM): Likewise.
8940 (FIXED_REGISTERS): Likewise.
8941 (CALL_USED_REGISTERS): Likewise.
8942 (CALL_REALLY_USED_REGISTERS): Likewise.
8943 (REG_ALLOC_ORDER): Likewise.
8944 (enum reg_class): Likewise.
8945 (REG_CLASS_NAMES): Likewise.
8946 (REG_CLASS_CONTENTS): Likewise.
8947 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
8949 2014-08-04 Richard Biener <rguenther@suse.de>
8951 * gimple-fold.h (gimple_fold_builtin): Remove.
8952 * gimple-fold.c (gimple_fold_builtin): Make static.
8953 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
8954 fold_stmt, not gimple_fold_builtin.
8956 2014-08-04 Martin Liska <mliska@suse.cz>
8958 * cgraph.h (csi_end_p): Removed.
8959 (csi_next): Likewise.
8960 (csi_node): Likewise.
8961 (csi_start): Likewise.
8962 (cgraph_node_in_set_p): Likewise.
8963 (cgraph_node_set_size): Likewise.
8964 (vsi_end_p): Likewise.
8965 (vsi_next): Likewise.
8966 (vsi_node): Likewise.
8967 (vsi_start): Likewise.
8968 (varpool_node_set_size): Likewise.
8969 (cgraph_node_set_nonempty_p): Likewise.
8970 (varpool_node_set_nonempty_p): Likewise.
8971 * cgraphunit.c (cgraph_process_new_functions): vec replaces
8973 * ipa-inline-transform.c: Likewise.
8974 * ipa-utils.c (cgraph_node_set_new): Removed.
8975 (cgraph_node_set_add): Likewise.
8976 (cgraph_node_set_remove): Likewise.
8977 (cgraph_node_set_find): Likewise.
8978 (dump_cgraph_node_set): Likewise.
8979 (debug_cgraph_node_set): Likewise.
8980 (free_cgraph_node_set): Likewise.
8981 (varpool_node_set_new): Likewise.
8982 (varpool_node_set_add): Likewise.
8983 (varpool_node_set_remove): Likewise.
8984 (varpool_node_set_find): Likewise.
8985 (dump_varpool_node_set): Likewise.
8986 (free_varpool_node_set): Likewise.
8987 (debug_varpool_node_set): Likewise.
8988 * tree-emutls.c (struct tls_var_data):
8989 (emutls_index): Removed.
8990 (emutls_decl): Likewise.
8991 (gen_emutls_addr): Function implementation uses newly added
8992 hash_map<varpool_node *, tls_var_data>.
8993 (clear_access_vars): Likewise.
8994 (create_emultls_var): Likewise.
8995 (ipa_lower_emutls): Likewise.
8996 (reset_access): New function.
8998 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9000 * config/i386/i386.c (ix86_option_override_internal): Add
9001 PTA_RDRND and PTA_MOVBE for bdver4.
9003 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9004 James Greenhalgh <james.greenhalgh@arm.com>
9006 * doc/md.texi (clrsb): Document.
9007 (clz): Change reference to x into operand 1.
9009 (popcount): Likewise.
9011 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9014 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9015 move to subtarget in serial version if result is ignored.
9017 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9018 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9020 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9021 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
9022 (sched_analyze_insn): Update use of try_group_insn to
9023 sched_macro_fuse_insns.
9024 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9025 arguments that are not conditional jumps.
9027 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9029 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9030 family information. Handle BTVER2 cpu with cpuid family value.
9032 2014-08-04 Tom de Vries <tom@codesourcery.com>
9034 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9035 (glibc_2_11_or_earlier): Document effective-target keywords.
9037 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9039 * ipa-devirt.c (odr_type_warn_count): Add type.
9040 (possible_polymorphic_call_targets): Set it.
9041 (ipa_devirt): Use it.
9043 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
9045 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9047 * ipa-devirt.c: Include hash-map.h
9048 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9049 (clear_speculation): Break out of ...
9050 (get_class_context): ... here; speed up handling obviously useless
9052 (odr_type_warn_count, decl_warn_count): New structures.
9053 (final_warning_record): New structure.
9054 (final_warning_records): New static variable.
9055 (possible_polymorphic_call_targets): Cleanup handling of
9056 speculative info; do not build speculation when user do not care;
9057 record info about warnings when asked for.
9058 (add_decl_warning): New function.
9059 (type_warning_cmp): New function.
9060 (decl_warning_cmp): New function.
9061 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9062 (gate): Enable pass when warnings are requested.
9063 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9066 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9068 * hash-map.h (default_hashmap_traits::mark_key_deleted):
9070 (hash_map::remove): New method.
9071 (hash_map::traverse): New method.
9072 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
9073 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
9074 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
9075 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
9076 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
9077 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
9080 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
9082 * hash-set.h: new File.
9083 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
9084 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
9085 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
9086 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
9087 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
9088 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
9089 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
9090 varpool.c: Use hash_set instead of pointer_set.
9092 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
9094 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
9096 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9098 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
9099 for frame access when strict_p is false.
9101 2014-08-01 Renlin Li <renlin.li@arm.com>
9102 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9104 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
9105 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
9106 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
9108 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
9110 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
9111 aarch64_mem_pair_offset.
9113 2014-08-01 Jiong Wang <jiong.wang@arm.com>
9115 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
9117 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
9118 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
9120 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
9122 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
9124 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
9127 * cgraphunit.c (analyze_functions): Use get_create rather than get
9128 for decls which are clones of abstract functions.
9130 2014-08-01 Martin Liska <mliska@suse.cz>
9132 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
9133 * ipa-prop.h (count_formal_params): Global function created from static.
9134 * ipa-prop.c (count_formal_params): Likewise.
9135 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
9136 profiles for semantically equivalent functions.
9137 * passes.c (do_per_function): If we load body of a function
9138 during WPA, this condition should behave same.
9139 * varpool.c (ctor_for_folding): More tolerant assert for variable
9140 aliases created during WPA.
9142 2014-08-01 Martin Liska <mliska@suse.cz>
9144 * doc/invoke.texi (Options That Control Optimization): Documentation
9145 for -foptimize-strlen introduced. Optimization levels default options
9148 2014-08-01 Jakub Jelinek <jakub@redhat.com>
9150 * opts.c (common_handle_option): Handle -fsanitize=alignment.
9151 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
9152 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
9154 * stor-layout.h (min_align_of_type): New prototype.
9155 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
9156 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
9158 * ubsan.c: Include builtins.h.
9159 (ubsan_expand_bounds_ifn): Change return type to bool,
9161 (ubsan_expand_null_ifn): Change return type to bool, change
9162 argument to gimple_stmt_iterator *. Handle both null and alignment
9163 sanitization, take type from ckind argument's type rather than
9165 (instrument_member_call): Removed.
9166 (instrument_mem_ref): Remove t argument, add mem and base arguments.
9167 Handle both null and alignment sanitization, don't say whole
9168 struct access is member access. Build 3 argument IFN_UBSAN_NULL
9169 call instead of 2 argument.
9170 (instrument_null): Adjust instrument_mem_ref caller. Don't
9171 instrument calls here.
9172 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
9174 * stor-layout.c (min_align_of_type): New function.
9175 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
9176 Or it into SANITIZE_UNDEFINED.
9177 * doc/invoke.texi (-fsanitize=alignment): Document.
9179 2014-07-31 Andi Kleen <ak@linux.intel.com>
9181 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
9183 2014-07-31 Andi Kleen <ak@linux.intel.com>
9185 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
9187 (vn_reference_compute_hash): Dito.
9188 (vn_nary_op_compute_hash): Dito.
9189 (vn_phi_compute_hash): Dito.
9190 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
9192 2014-07-31 Andi Kleen <ak@linux.intel.com>
9194 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
9195 Rename to inchash:add_expr_commutative. Convert to inchash.
9196 (iterative_hash_hashable_expr): Rename to
9197 inchash:add_hashable_expr. Convert to inchash.
9198 (avail_expr_hash): Dito.
9200 2014-07-31 Andi Kleen <ak@linux.intel.com>
9202 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
9205 2014-07-31 Andi Kleen <ak@linux.intel.com>
9207 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
9209 2014-07-31 Andi Kleen <ak@linux.intel.com>
9211 * Makefile.in (OBJS): Add rtlhash.o
9212 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
9213 (loc_checksum): Dito.
9214 (loc_checksum_ordered): Dito.
9215 (hash_loc_operands): Dito.
9217 (hash_loc_list): Dito.
9218 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
9219 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
9220 * rtlhash.c: New file.
9221 * rtlhash.h: New file.
9223 2014-07-31 Andi Kleen <ak@linux.intel.com>
9225 * inchash.h (inchash): Change inchash class to namespace.
9226 (class hash): ... Rename from inchash.
9227 (add_object): Move from macro to class template.
9228 * lto-streamer-out.c (hash_tree): Change inchash
9230 * tree.c (build_type_attribute_qual_variant): Dito.
9231 (type_hash_list): Dito.
9232 (attribute_hash_list): Dito.
9233 (iterative_hstate_expr): Rename to inchash::add_expr
9234 (build_range_type_1): Change inchash to inchash::hash
9235 and use hash::add_expr.
9236 (build_array_type_1): Dito.
9237 (build_function_type): Dito
9238 (build_method_type_directly): Dito.
9239 (build_offset_type): Dito.
9240 (build_complex_type): Dito.
9241 (make_vector_type): Dito.
9242 * tree.h (iterative_hash_expr): Dito.
9244 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
9246 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
9248 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9250 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
9251 correct alphabetical position.
9252 (vpaddd_f64): Rewrite using builtins.
9253 (vpaddd_s64): Move to correct alphabetical position.
9256 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
9259 * config/sh/sh.c (sh_legitimate_address_p,
9260 sh_legitimize_reload_address): Handle reg+reg address modes when
9261 ALLOW_INDEXED_ADDRESS is false.
9262 * config/sh/predicates.md (general_movsrc_operand,
9263 general_movdst_operand): Likewise.
9265 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9267 * config/aarch64/aarch64-builtins.c
9268 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
9271 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
9273 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
9274 the generated mask based on BYTES_BIG_ENDIAN.
9275 (aarch64_simd_check_vect_par_cnst_half): New.
9276 * config/aarch64/aarch64-protos.h
9277 (aarch64_simd_check_vect_par_cnst_half): New.
9278 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
9279 the check out to aarch64_simd_check_vect_par_cnst_half.
9280 (vect_par_cnst_lo_half): Likewise.
9281 * config/aarch64/aarch64-simd.md
9282 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
9283 (move_hi_quad_<mode>): Always generate a low mask.
9285 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9287 * doc/invoke.texi (AVR Options): Add documentation about
9288 __AVR_DEVICE_NAME__ built-in macro.
9290 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
9293 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
9294 constraints are satisfied.
9295 (<shift>di3_neon): Likewise.
9297 2014-07-31 Richard Biener <rguenther@suse.de>
9299 PR tree-optimization/61964
9300 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
9301 by structural equality.
9303 2014-07-31 Yury Gribov <y.gribov@samsung.com>
9305 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
9306 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
9307 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
9309 * gcc.c (sanitize_spec_function): Support new option.
9310 (SANITIZER_SPEC): Remove now redundant check.
9311 * opts.c (common_handle_option): Support new option.
9312 (finish_options): Check for incompatibilities.
9313 * toplev.c (process_options): Split userspace-specific checks.
9315 2014-07-31 Richard Biener <rguenther@suse.de>
9317 * lto-streamer.h (struct output_block): Remove global.
9318 (struct data_in): Remove labels, num_named_labels and
9320 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
9321 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
9323 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
9326 * common.opt (-Wreturn-local-addr): Moved from c.opt.
9327 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
9328 (isolate_path): New argument to avoid inserting a trap.
9329 (find_implicit_erroneous_behaviour): Handle returning the address
9330 of a local variable.
9331 (find_explicit_erroneous_behaviour): Likewise.
9333 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
9336 * toplev.c (init_random_seed): Move piece of code never called to
9338 (set_random_seed): see above.
9340 2014-07-31 Tom de Vries <tom@codesourcery.com>
9342 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
9344 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
9346 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
9347 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
9349 2014-07-31 Richard Biener <rguenther@suse.de>
9351 * data-streamer.h (streamer_write_data_stream): Declare here,
9353 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
9354 * lto-cgraph.c (lto_output_node): Adjust.
9355 (lto_output_varpool_node): Likewise.
9356 * data-streamer-out.c (streamer_string_index): Likewise.
9357 (streamer_write_data_stream, lto_append_block): Move from ...
9358 * lto-section-out.c (lto_output_data_stream,
9359 lto_append_block): ... here.
9361 2014-07-30 Mike Stump <mikestump@comcast.net>
9363 * configure.ac: Also check for popen.
9364 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
9365 * configure: Regenerate.
9366 * config.in: Regenerate.
9368 2014-07-30 Martin Jambor <mjambor@suse.cz>
9370 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
9371 parameter to gimple.
9373 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9375 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
9376 address as second parameter to __tpf_eh_return routine.
9378 2014-07-30 Jiong Wang <jiong.wang@arm.com>
9380 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
9383 2014-07-30 Tom Tromey <tromey@redhat.com>
9386 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
9387 * doc/extend.texi (Type Attributes): Document designated_init
9390 2014-07-30 Roman Gareev <gareevroman@gmail.com>
9392 * graphite-isl-ast-to-gimple.c:
9393 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
9394 (gcc_expression_from_isl_expression): Pass type to
9395 gcc_expression_from_isl_ast_expr_id.
9397 2014-07-30 Richard Biener <rguenther@suse.de>
9399 * lto-streamer.h (lto_write_data): New function.
9400 * langhooks.c (lhd_append_data): Do not free block.
9401 * lto-section-out.c (lto_write_data): New function writing
9402 raw data to the current section.
9403 (lto_write_stream): Adjust for langhook semantic change.
9404 (lto_destroy_simple_output_block): Write header directly.
9405 * lto-opts.c (lto_write_options): Write options directly.
9406 * lto-streamer-out.c (produce_asm): Write heaeder directly.
9407 (lto_output_toplevel_asms): Likewise.
9408 (copy_function_or_variable): Copy data directly.
9409 (write_global_references): Output index table directly.
9410 (lto_output_decl_state_refs): Likewise.
9411 (write_symbol): Write data directly.
9412 (produce_symtab): Adjust.
9413 (produce_asm_for_decls): Output header and refs directly.
9415 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
9417 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
9418 to speculative_targets
9419 (get_class_context): Fix handling of contextes without outer type;
9420 avoid matching non-polymorphic types in LTO.
9421 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
9422 parameter to speculative_targetsp; handle speculation.
9423 (dump_possible_polymorphic_call_targets): Update dumping.
9425 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
9427 * common.opt (Wodr): Enable by default.
9429 2014-07-29 Olivier Hainque <hainque@adacore.com>
9431 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
9433 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
9436 * gengtype.c (strtoken): New function.
9437 (create_user_defined_type): Replace strtok with strtoken.
9439 2014-07-29 Nathan Sidwell <nathan@acm.org>
9441 * gcov-io.c (gcov_var): Make hidden.
9442 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
9443 (gcov_do_dump): Declare.
9444 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
9446 2014-07-29 Martin Jambor <mjambor@suse.cz>
9448 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
9449 parameter to gimple.
9450 (sra_modify_assign): Likewise.
9452 2014-07-29 Richard Biener <rguenther@suse.de>
9455 * expr.c (expand_expr_real_2): Revert last change.
9457 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
9459 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
9460 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
9461 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
9463 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
9464 (contains_type_p): Forward declare.
9465 (polymorphic_call_target_hasher::hash): Hash speculative info.
9466 (polymorphic_call_target_hasher::equal): Compare speculative info.
9467 (get_class_context): Handle speuclation.
9468 (contains_type_p): Update.
9469 (get_polymorphic_call_info_for_decl): Update.
9470 (walk_ssa_copies): Break out from ...
9471 (get_polymorphic_call_info): ... here; set speculative context
9473 * ipa-prop.c (ipa_write_indirect_edge_info,
9474 ipa_read_indirect_edge_info): Stream speculative context.
9475 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
9476 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
9477 SPECULATIVE_MAYBE_DERIVED_TYPE).
9478 (possible_polymorphic_call_targets overriders): Update.
9479 (dump_possible_polymorphic_call_targets overriders): Update.
9480 (dump_possible_polymorphic_call_target_p overriders): Update.
9482 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
9484 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
9485 ipa-devirt path; fix thinko there.
9487 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
9489 * config/i386/i386.c (ix86_return_in_memory): Replace one
9490 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
9492 2014-07-28 Marek Polacek <polacek@redhat.com>
9494 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
9496 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
9498 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
9499 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
9500 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
9501 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9502 (USE_LD_AS_NEEDED): Likewise.
9503 (ASM_APP_ON): Likewise.
9504 (ASM_APP_OFF): Likewise.
9505 (TARGET_POSIX_IO): Likewise.
9506 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
9507 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9508 (USE_LD_AS_NEEDED): Likewise.
9509 (ASM_APP_ON): Likewise.
9510 (ASM_APP_OFF): Likewise.
9511 (TARGET_POSIX_IO): Likewise.
9513 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
9516 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
9517 operators other than the equality operators.
9519 2014-07-28 Richard Biener <rguenther@suse.de>
9522 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
9523 sure to register SImode ones, not only >= word_mode ones.
9524 * expr.c (expand_expr_real_2): When expanding -ftrapv
9525 binops do not use OPTAB_LIB_WIDEN.
9527 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
9530 * tree-outof-ssa.c (insert_partition_copy_on_edge)
9531 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
9532 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
9533 inserting them in the insn stream.
9535 2014-07-28 Marek Polacek <polacek@redhat.com>
9538 * common.opt (Wodr): Add Var.
9540 2014-07-28 Richard Biener <rguenther@suse.de>
9542 PR tree-optimization/61921
9543 * tree-ssa-structalias.c (create_variable_info_for_1): Check
9544 if there is a varpool node before dereferencing it.
9546 2014-07-28 Roman Gareev <gareevroman@gmail.com>
9548 * graphite-sese-to-poly.c:
9549 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
9550 id of the pbb), which contains pointer to the pbb1.
9552 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
9554 2014-07-28 Roman Gareev <gareevroman@gmail.com>
9556 * graphite-isl-ast-to-gimple.c:
9557 (graphite_create_new_guard): New function.
9558 (translate_isl_ast_node_if): New function.
9559 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
9561 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
9563 2014-07-27 Anthony Green <green@moxielogic.com>
9565 * config.gcc: Add moxie-*-moxiebox* configuration.
9566 * config/moxie/moxiebox.h: New file.
9568 2014-07-26 Andrew Pinski <apinski@cavium.com>
9570 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
9571 from the read only register.
9573 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
9575 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
9576 as the allocation class if it isn't likely to be spilled.
9578 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
9580 * rtl.h (tls_referenced_p): Declare.
9581 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
9582 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
9583 (mips_cannot_force_const_mem): Use tls_referenced_p.
9584 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
9585 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
9586 instead of pa_tls_referenced_p.
9587 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
9588 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
9589 (pa_legitimate_constant_p): Likewise.
9590 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
9591 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
9592 (rs6000_cannot_force_const_mem, rs6000_emit_move)
9593 (rs6000_address_for_altivec): Use tls_referenced_p instead of
9594 rs6000_tls_referenced_p.
9595 (rs6000_tls_symbol_ref_1): Delete.
9597 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
9600 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9601 Optimize inverse of a VEC_CONCAT.
9603 2014-07-25 Xinliang David Li <davidxl@google.com>
9605 * params.def: New parameter.
9606 * coverage.c (get_coverage_counts): Check new flag.
9607 (coverage_compute_profile_id): Check new flag.
9608 (coverage_begin_function): Check new flag.
9609 (coverage_end_function): Check new flag.
9610 * value-prof.c (coverage_node_map_initialized_p): New function.
9611 (init_node_map): Populate map with all functions.
9612 * doc/invoke.texi: Document new parameter.
9614 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
9615 Richard Biener <rguenther@suse.de>
9617 * lto-streamer-out.c (struct sccs): Turn to ...
9618 (class DFS): ... this one; refactor the DFS walk so it can
9619 be re-done on per-SCC basis.
9620 (DFS::DFS): New constructor.
9621 (DFS::~DFS): New destructor.
9622 (hash_tree): Add new MAP argument holding in-SCC hash values;
9623 remove POINTER_TYPE hashing hack.
9624 (scc_entry_compare): Rename to ...
9625 (DFS::scc_entry_compare): ... this one.
9626 (hash_scc): Rename to ...
9627 (DFS::hash_scc): ... this one; pass output_block instead
9628 of streamer_cache; work harder to get unique and stable SCC
9630 (DFS_write_tree): Rename to ...
9631 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
9632 (lto_output_tree): Update.
9634 2014-07-25 Andi Kleen <ak@linux.intel.com>
9636 * lto-streamer-out.c (hash_tree): Convert to inchash.
9638 2014-07-25 Andi Kleen <ak@linux.intel.com>
9640 * tree.c (build_type_attribute_qual_variant): Use inchash.
9641 (type_hash_list): Dito.
9642 (attribute_hash_list): Dito
9643 (iterative_hstate_expr): Dito.
9644 (iterative_hash_expr): Dito.
9645 (build_range_type_1): Dito.
9646 (build_array_type_1): Dito.
9647 (build_function_type): Dito.
9648 (build_method_type_directly): Dito.
9649 (build_offset_type): Dito.
9650 (build_complex_type): Dito.
9651 (make_vector_type): Dito.
9652 * tree.h (iterative_hash_expr): Add compat wrapper.
9653 (iterative_hstate_expr): Add.
9655 2014-07-25 Andi Kleen <ak@linux.intel.com>
9657 * Makefile.in (OBJS): Add inchash.o.
9658 (PLUGIN_HEADERS): Add inchash.h.
9659 * ipa-devirt.c: Include inchash.h.
9660 * lto-streamer-out.c: Dito.
9661 * tree-ssa-dom.c: Dito.
9662 * tree-ssa-pre.c: Dito.
9663 * tree-ssa-sccvn.c: Dito.
9664 * tree-ssa-tail-merge.c: Dito.
9666 * tree.c (iterative_hash_hashval_t): Move to ...
9667 (iterative_hash_host_wide_int): Move to ...
9668 * inchash.c: Here. New file.
9669 * tree.h (iterative_hash_hashval_t): Move to ...
9670 (iterative_hash_host_wide_int): Move to ...
9671 * inchash.h: Here. New file.
9673 2014-07-25 Richard Biener <rguenther@suse.de>
9677 * fold-const.c (native_encode_int): Add and handle offset
9678 parameter to do partial encodings of expr.
9679 (native_encode_fixed): Likewise.
9680 (native_encode_real): Likewise.
9681 (native_encode_complex): Likewise.
9682 (native_encode_vector): Likewise.
9683 (native_encode_string): Likewise.
9684 (native_encode_expr): Likewise.
9685 * fold-const.c (native_encode_expr): Add offset parameter
9687 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
9688 (fold_ctor_reference): Handle all reads from tcc_constant
9691 2014-07-25 Richard Biener <rguenther@suse.de>
9693 * tree-inline.c (estimate_move_cost): Mark speed_p argument
9696 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9698 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
9700 2014-07-24 Kyle McMartin <kyle@redhat.com>
9702 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
9704 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9706 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
9708 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
9710 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
9711 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9712 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
9714 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9716 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
9717 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
9718 aggregate types. Instead, *all* aggregate types, except for single-
9719 element or homogeneous float/vector aggregates, are quadword-aligned
9720 if required by their type alignment. Issue -Wpsabi note when a type
9721 is now treated differently than before.
9723 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9725 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
9726 does not fit fully into floating-point registers, and there is still
9727 space in the register parameter area, use GPRs to pass those parts
9728 of the argument. Issue -Wpsabi note if any parameter is now treated
9729 differently than before.
9730 (rs6000_arg_partial_bytes): Update.
9732 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
9734 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
9736 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
9738 * rtl.h (target_rtl): Remove lang_dependent_initialized.
9739 * toplev.c (initialize_rtl): Don't use it. Move previously
9740 "language-dependent" calls to...
9741 (backend_init): ...here.
9742 (lang_dependent_init_target): Don't set lang_dependent_initialized.
9743 Assert that RTL initialization hasn't happend yet.
9745 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
9747 PR rtl-optimization/61629
9748 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
9749 they have already been initialized.
9751 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
9754 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
9755 DECL_INCOMING_RTL and entry_parm.
9756 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
9757 * calls.c (load_register_parameters): Likewise argument values.
9758 (emit_library_call_value_1, store_one_arg): Likewise argument
9760 * config/i386/i386.c (assign_386_stack_local): Likewise the local
9762 * explow.c (validize_mem): Modify the argument in-place.
9764 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9766 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
9767 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
9769 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9771 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
9772 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
9774 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9776 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
9777 (aarch64_save_callee_saves): New parameter "skip_wb".
9778 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
9780 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9782 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
9784 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
9786 2014-07-24 Roman Gareev <gareevroman@gmail.com>
9788 * graphite-isl-ast-to-gimple.c:
9789 (graphite_create_new_loop): Add calling of isl_id_free to properly
9790 decrement reference counts.
9792 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
9794 2014-07-24 Martin Liska <mliska@suse.cz>
9795 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
9797 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
9798 (rs6000_code_end): Likewise.
9800 2014-07-24 Martin Liska <mliska@suse.cz>
9802 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
9803 symtab_node funtion used.
9804 (rs6000_xcoff_declare_object_name): Likewise.
9806 2014-07-24 Martin Liska <mliska@suse.cz>
9808 * cgraphunit.c (compile): Correct function used.
9810 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
9812 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
9815 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
9818 * varasm.c (bss_initializer_p): Handle offlined ctors.
9819 (align_variable, get_variable_align): Likewise.
9820 (make_decl_one_only): Likewise.
9821 (default_binds_local_p_1): Likewise.
9822 (decl_binds_to_current_def_p): Likewise.
9823 (get_variable_section): Get constructor if it is offlined.
9824 (assemble_variable_contents): Sanity check that the caller
9825 streamed in the ctor in LTO.
9827 2014-07-24 Roman Gareev <gareevroman@gmail.com>
9829 * graphite-isl-ast-to-gimple.c:
9830 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
9831 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
9832 isl_ast_op_pdiv_r to the different case.
9834 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
9836 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9839 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
9840 when flag_errno_math is on.
9842 2014-07-24 Martin Liska <mliska@suse.cz>
9844 * cgraph.h (varpool_node):
9845 (availability get_availability (void)):
9846 created from cgraph_variable_initializer_availability
9847 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
9848 created from: cgraph_variable_initializer_availability
9849 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
9850 (void finalize_named_section_flags (void)):
9851 created from varpool_finalize_named_section_flags
9852 (bool assemble_decl (void)): created from varpool_assemble_decl
9853 (void analyze (void)): created from varpool_analyze_node
9854 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
9855 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
9856 (void remove_initializer (void)): created from varpool_remove_initializer
9857 (tree get_constructor (void)): created from varpool_get_constructor
9858 (bool externally_visible_p (void)): created from varpool_externally_visible_p
9859 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
9860 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
9861 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
9862 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
9863 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
9864 (static bool output_variables (void)): created from varpool_output_variables
9865 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
9866 created from varpool_extra_name_alias
9867 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
9868 (static void dump_varpool (FILE *f)): created from dump_varpool
9869 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
9870 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
9871 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
9872 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
9873 (void assemble_aliases (void)): created from assemble_aliases
9875 2014-07-24 Martin Liska <mliska@suse.cz>
9877 * cgraph.h (symtab_node):
9878 (void register_symbol (void)): created from symtab_register_node
9879 (void remove (void)): created from symtab_remove_node
9880 (void dump (FILE *f)): created from dump_symtab_node
9881 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
9882 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
9883 (struct ipa_ref *add_reference (symtab_node *referred_node,
9884 enum ipa_ref_use use_type)): created from add_reference
9885 (struct ipa_ref *add_reference (symtab_node *referred_node,
9886 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
9887 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
9888 gimple stmt)): created from maybe_add_reference
9889 (bool semantically_equivalent_p (symtab_node *target)): created from
9890 symtab_semantically_equivalent_p
9891 (void remove_from_same_comdat_group (void)): created from
9892 remove_from_same_comdat_group
9893 (void add_to_same_comdat_group (symtab_node *old_node)): created from
9894 symtab_add_to_same_comdat_group
9895 (void dissolve_same_comdat_group_list (void)): created from
9896 symtab_dissolve_same_comdat_group_list
9897 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
9898 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
9899 created from symtab_alias_ultimate_target
9900 (inline symtab_node *next_defined_symbol (void)): created from
9901 symtab_next_defined_symbol
9902 (bool resolve_alias (symtab_node *target)): created from
9903 symtab_resolve_alias
9904 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
9905 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
9906 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
9907 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
9908 (void set_section (const char *section)): created from set_section_1
9909 (enum availability get_availability (void)): created from symtab_node_availability
9910 (void make_decl_local (void)): created from symtab_make_decl_local
9911 (bool real_symbol_p (void)): created from symtab_read_node
9912 (can_be_discarded_p (void)): created from symtab_can_be_discarded
9913 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
9914 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
9915 symtab_in_same_comdat_p;
9916 (bool address_taken_from_non_vtable_p (void)): created from
9917 address_taken_from_non_vtable_p
9918 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
9919 (static void dump_table (FILE *)): created from dump_symtab
9920 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
9921 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
9922 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
9923 symtab_used_from_object_file_p
9924 (void dump_base (FILE *)): created from dump_symtab_base
9925 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
9926 (void unregister (void)): created from symtab_unregister_node
9927 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
9928 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
9929 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
9930 symtab_nonoverwritable_alias_1
9931 * cgraph.h (cgraph_node):
9932 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
9933 created from cgraph_remove_node_and_inline_clones
9934 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
9935 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
9936 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
9937 (cgraph_node *function_symbol (enum availability *avail = NULL)):
9938 created from cgraph_function_node
9939 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
9940 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
9941 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
9942 created from cgraph_create_clone
9943 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
9944 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
9945 created from cgraph_create_virtual_clone
9946 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
9947 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
9948 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
9949 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
9950 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
9951 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
9952 created from cgraph_function_version_info
9953 (struct cgraph_function_version_info *insert_new_function_version (void)):
9954 created from insert_new_cgraph_node_version
9955 (struct cgraph_function_version_info *function_version (void)): created from
9956 get_cgraph_node_version
9957 (void analyze (void)): created from analyze_function
9958 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
9959 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
9960 tree real_alias) cgraph_add_thunk
9961 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
9962 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
9963 created from cgraph_function_or_thunk_node
9964 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
9965 created from expand_thunk
9966 (void reset (void)): created from cgraph_reset_node
9967 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
9968 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
9969 (void remove (void)): created from cgraph_remove_node
9970 (void dump (FILE *f)): created from dump_cgraph_node
9971 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
9972 (bool get_body (void)): created from cgraph_get_body
9973 (void release_body (void)): created from cgraph_release_function_body
9974 (void unnest (void)): created from cgraph_unnest_node
9975 (void make_local (void)): created from cgraph_make_node_local
9976 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
9977 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
9978 gcov_type count, int freq)): created from cgraph_create_edge
9979 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
9980 gcov_type count, int freq)): created from cgraph_create_indirect_edge
9981 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
9982 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
9983 created from cgraph_create_edge_including_clones
9984 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
9985 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
9986 (void remove_callers (void)): created from cgraph_node_remove_callers
9987 (void remove_callees (void)): created from cgraph_node_remove_callees
9988 (enum availability get_availability (void)): created from cgraph_function_body_availability
9989 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
9990 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
9991 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
9992 (void call_duplication_hooks (cgraph_node *node2)): created from
9993 cgraph_call_node_duplication_hooks
9994 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
9995 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
9996 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
9997 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
9998 (void call_function_insertion_hooks (void)):
9999 created from cgraph_call_function_insertion_hooks
10000 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10001 (bool local_p (void)): created from cgraph_local_node
10002 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10003 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10004 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10005 (inline bool only_called_directly_or_aliased_p (void)):
10006 created from cgraph_only_called_directly_or_aliased_p
10007 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10008 created from cgraph_will_be_removed_from_program_if_no_direct_calls
10009 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10010 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10011 (bool can_remove_if_no_direct_calls_p (void)):
10012 created from cgraph_can_remove_if_no_direct_calls_p
10013 (inline bool has_gimple_body_p (void)):
10014 created from cgraph_function_with_gimple_body_p
10015 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10016 (static void dump_cgraph (FILE *f)): created from dump_cgraph
10017 (static inline void debug_cgraph (void)): created from debug_cgraph
10018 (static void record_function_versions (tree decl1, tree decl2)):
10019 created from record_function_versions
10020 (static void delete_function_version (tree decl)):
10021 created from delete_function_version
10022 (static void add_new_function (tree fndecl, bool lowered)):
10023 created from cgraph_add_new_function
10024 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10025 (static cgraph_node * create (tree decl)): created from cgraph_create_node
10026 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10027 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10028 (static cgraph_node *get_for_asmname (tree asmname)):
10029 created from cgraph_node_for_asm
10030 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10031 created from cgraph_same_body_alias
10032 (static bool used_from_object_file_p_worker (cgraph_node *node,
10033 void *): new function
10034 (static bool non_local_p (cgraph_node *node, void *)):
10035 created from cgraph_non_local_node_p_1
10036 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10037 created from verify_cgraph
10038 (static bool make_local (cgraph_node *node, void *)):
10039 created from cgraph_make_node_local
10040 (static cgraph_node *create_alias (tree alias, tree target)):
10041 created from cgraph_create_function_alias
10042 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10043 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10044 created from cgraph_create_edge_1
10045 * cgraph.h (varpool_node):
10046 (void remove (void)): created from varpool_remove_node
10047 (void dump (FILE *f)): created from dump_varpool_node
10049 2014-07-24 Richard Biener <rguenther@suse.de>
10052 * tree-ssa-structalias.c (create_variable_info_for_1):
10053 Use varpool_get_constructor.
10054 (create_variable_info_for): Likewise.
10056 2014-07-24 Jiong Wang <jiong.wang@arm.com>
10058 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10059 subtract outgoing area size when restoring stack_pointer_rtx.
10061 2014-07-24 Nick Clifton <nickc@redhat.com>
10063 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10064 that operations are taking place in parallel.
10065 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10067 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
10069 * omp-low.c (extract_omp_for_data): Add missing break statement.
10071 2014-07-24 Richard Biener <rguenther@suse.de>
10073 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
10074 * tree-inline.c (estimate_move_cost): Add speed_p parameter
10075 and adjust MOVE_RATIO query accordingly.
10076 (estimate_num_insns): Adjust callers.
10077 * ipa-prop.c (ipa_populate_param_decls): Likewise.
10078 * ipa-cp.c (gather_context_independent_values,
10079 estimate_local_effects): Likewise.
10080 * ipa-split.c (consider_split): Likewise.
10082 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
10084 * config/i386/driver-i386.c: Remove names of unused arguments and
10085 unnecessary unused attributes.
10086 * config/i386/host-mingw32.c: Likewise.
10087 * config/i386/i386.c: Likewise.
10088 * config/i386/winnt-stubs.c: Likewise.
10089 * config/i386/winnt.c: Likewise.
10091 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10093 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
10094 (aarch64_gen_loadwb_pair): New helper function.
10095 (aarch64_expand_epilogue): Simplify code using new helper functions.
10096 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
10098 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10100 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
10101 (aarch64_gen_storewb_pair): New helper function.
10102 (aarch64_expand_prologue): Simplify code using new helper functions.
10103 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
10105 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10107 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
10108 Rename to aarch64_save_callee_saves, remove restore code.
10109 (aarch64_restore_callee_saves): New function.
10111 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10113 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
10114 (aarch64_save_callee_saves): New function to handle reg save
10115 for both core and vectore regs.
10117 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10119 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
10120 (aarch64_gen_store_pair): New helper function.
10121 (aarch64_save_or_restore_callee_save_registers)
10122 (aarch64_save_or_restore_fprs): Use new helper functions.
10124 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10126 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
10127 (aarch64_save_or_restore_callee_save_registers)
10128 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
10130 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10132 * config/aarch64/aarch64.c
10133 (aarch64_save_or_restore_callee_save_registers)
10134 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
10136 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10138 * config/aarch64/aarch64.c
10139 (aarch64_save_or_restore_callee_save_registers)
10140 (aarch64_save_or_restore_fprs): Remove 'increment'.
10142 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10144 * config/aarch64/aarch64.c
10145 (aarch64_save_or_restore_callee_save_registers)
10146 (aarch64_save_or_restore_fprs): Use register offset in
10147 cfun->machine->frame.reg_offset.
10149 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10151 * config/aarch64/aarch64.c
10152 (aarch64_save_or_restore_callee_save_registers)
10153 (aarch64_save_or_restore_fprs): Remove base_rtx.
10155 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10157 * config/aarch64/aarch64.c
10158 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
10159 to 'start_offset'. Remove local variable 'start_offset'.
10161 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10163 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
10164 type to HOST_WIDE_INT.
10166 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10168 * config/aarch64/aarch64.c (aarch64_expand_prologue)
10169 (aarch64_save_or_restore_fprs)
10170 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
10172 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10174 * config/arm/t-rtems-eabi: Add
10175 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
10176 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
10177 mbig-endian/mthumb/march=armv7-r, and
10178 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
10181 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
10182 Chris Johns <chrisj@rtems.org>
10183 Joel Sherrill <joel.sherrill@oarcorp.com>
10185 * config.gcc: Add nios2-*-rtems*.
10186 * config/nios2/rtems.h: New file.
10187 * gcc/config/nios2/t-rtems: New file.
10189 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10192 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
10193 constant numbers, not general constants.
10194 (rs6000_expand_vector_init): Ditto.
10196 2014-07-23 Nathan Sidwell <nathan@acm.org>
10198 * gcov-tool.c (gcov_list): Declare here.
10199 (set_gcov_list): Remove.
10200 (gcov_output_files): Set gcov_list directly.
10202 2014-07-23 Host Schirmeier <horst@schirmeier.com>
10204 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
10206 2014-07-23 Jiong Wang <jiong.wang@arm.com>
10208 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
10209 callee-saved registers are available for padding purpose
10210 and r3 is not mandatory, then prefer use those callee-saved
10213 2014-07-23 Richard Biener <rguenther@suse.de>
10215 * params.def (PARAM_MAX_COMBINE_INSNS): New.
10216 * combine.c: Include statistics.h and params.h.
10217 (combine_instructions): Guard three and four insn combines
10218 with max-combine-insns value. Record statistics for combines
10220 * doc/invoke.texi (max-combine-insns): Document new param.
10222 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10224 * graphite-isl-ast-to-gimple.c:
10225 (translate_isl_ast_node_block): New function.
10226 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
10228 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
10229 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
10231 2014-07-23 Roman Gareev <gareevroman@gmail.com>
10233 * graphite-isl-ast-to-gimple.c:
10234 (get_max_schedule_dimensions): New function.
10235 (extend_schedule): Likewise.
10236 (generate_isl_schedule): Add calling of extend_schedule and
10237 get_max_schedule_dimensions.
10239 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10241 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
10242 (case UNSPEC): Handle UNSPEC_RBIT.
10244 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10246 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
10247 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
10249 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10251 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
10253 2014-07-22 Roman Gareev <gareevroman@gmail.com>
10255 * graphite-isl-ast-to-gimple.c:
10256 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
10257 (ivs_params_clear):
10258 (build_iv_mapping): New function.
10259 (translate_isl_ast_node_user): Likewise.
10260 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
10262 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
10263 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
10264 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
10266 2014-07-21 Bin Cheng <bin.cheng@arm.com>
10269 * config/arm/arm.md (setmem): New pattern.
10270 * config/arm/arm-protos.h (struct tune_params): New fields.
10271 (arm_gen_setmem): New prototype.
10272 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
10273 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10274 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10275 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
10276 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
10277 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
10278 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
10279 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10280 (arm_const_inline_cost): New function.
10281 (arm_block_set_max_insns): New function.
10282 (arm_block_set_non_vect_profit_p): New function.
10283 (arm_block_set_vect_profit_p): New function.
10284 (arm_block_set_unaligned_vect): New function.
10285 (arm_block_set_aligned_vect): New function.
10286 (arm_block_set_unaligned_non_vect): New function.
10287 (arm_block_set_aligned_non_vect): New function.
10288 (arm_block_set_vect, arm_gen_setmem): New functions.
10290 2014-07-21 Bin Cheng <bin.cheng@arm.com>
10292 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
10294 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
10297 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
10298 out of #ifdef __OPTIMIZE__.
10300 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
10302 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
10303 different trapping status if -fnon-call-exceptions is enabled.
10305 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
10307 * expr.c (store_field): Handle VOIDmode for calls that return values
10308 in multiple locations.
10310 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10312 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
10313 (altivec_vsldoi_<mode>): Likewise.
10315 2014-07-20 Roman Gareev <gareevroman@gmail.com>
10317 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
10318 to the number of characters in the line.
10320 2014-07-20 Roman Gareev <gareevroman@gmail.com>
10322 * graphite-isl-ast-to-gimple.c: Add using of
10323 build_nonstandard_integer_type instead of int128_integer_type_node.
10325 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
10327 * toplev.c (output_stack_usage): Adjust the location of the warning.
10329 2014-07-19 Daniel Cederman <cederman@gaisler.com>
10331 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
10332 (*membar_storeload): Disable for LEON3.
10334 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10336 PR rtl-optimization/61461
10337 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
10339 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
10342 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
10343 Fix instruction constraint.
10344 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
10346 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
10348 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
10350 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
10352 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
10353 GNU coding standards.
10354 (nds32_register_move_cost): Likewise.
10355 (nds32_memory_move_cost): Likewise.
10356 (nds32_address_cost): Likewise.
10358 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10360 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
10362 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
10364 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
10365 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
10366 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
10367 (HAVE_sync_compare_and_swapqi): Define.
10368 (HAVE_sync_compare_and_swaphi): Likewise.
10369 (HAVE_sync_compare_and_swapsi): Likewise.
10371 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
10373 * config/mips/p5600.md: Add missing cpu tests.
10375 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10377 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
10378 (vmla_f64): Likewise.
10379 (vfms_f64): Likewise.
10380 (vmls_f64): Likewise.
10382 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10384 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
10385 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
10387 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10389 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
10390 (vmlal_high_lane_s32): Likewise.
10391 (vmlal_high_lane_u16): Likewise.
10392 (vmlal_high_lane_u32): Likewise.
10393 (vmlsl_high_lane_s16): Likewise.
10394 (vmlsl_high_lane_s32): Likewise.
10395 (vmlsl_high_lane_u16): Likewise.
10396 (vmlsl_high_lane_u32): Likewise.
10398 2014-07-17 Terry Guo <terry.guo@arm.com>
10400 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
10401 (alus_reg): Renamed to alus_sreg.
10402 * config/arm/arm-fixed.md: Change type of non-dsp instructions
10403 from alu_reg to alu_sreg. Change type of dsp instructions from
10404 alu_reg to alu_dsp_reg.
10405 * config/arm/thumb1.md: Likewise.
10406 * config/arm/thumb2.md: Likewise.
10407 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
10408 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
10409 with alu_sreg and alus_sreg.
10410 * config/arm/arm1026ejs.md (alu_op): Likewise.
10411 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10412 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10413 * config/arm/fa526.md (526_alu_op): Likewise.
10414 * config/arm/fa606te.md (606te_alu_op): Likewise.
10415 * config/arm/fa626te.md (626te_alu_op): Likewise.
10416 * config/arm/fa726te.md (726te_alu_op): Likewise.
10417 * config/arm/fmp626.md (mp626_alu_op): Likewise.
10418 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
10419 alu_sreg, alu_dsp_reg and alus_sreg.
10420 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10421 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10422 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10423 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
10424 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10425 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10426 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10427 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10428 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
10429 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
10430 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
10431 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
10432 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
10433 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
10434 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
10435 alus_reg to alus_sreg.
10437 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
10439 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
10442 2014-07-17 Richard Biener <rguenther@suse.de>
10444 PR rtl-optimization/61801
10445 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
10446 don't set reg_pending_barrier if it appears in a debug-insn.
10448 2014-07-16 DJ Delorie <dj@redhat.com>
10450 * config/rx/rx.c (rx_option_override): Fix alignment values.
10451 (rx_align_for_label): Likewise.
10453 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
10456 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
10457 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10458 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
10460 (cris_print_index, cris_print_operand, cris_constant_index_p)
10461 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
10462 (cris_address_cost): Ditto last CONSTANT_P.
10463 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
10464 callers changed. Yield cris_offsettable_symbol for non-PIC
10465 constant symbolic expressions including labels. Yield cris_unspec
10467 (cris_expand_pic_call_address): New parameter MARKERP. Set its
10468 target to pic_offset_table_rtx for calls that will likely go
10469 through PLT, const0_rtx when they can't. All callers changed.
10470 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
10471 symbolic expressions to be PICified. Remove second, redundant,
10472 assert on can_create_pseudo_p returning non-zero. Use
10473 replace_equiv_address_nv, not replace_equiv_address, for final
10475 * config/cris/cris.md ("movsi"): Move variable t to pattern
10476 toplevel. Adjust assert for new cris_symbol_type member. Use
10477 CONSTANT_P instead of CONSTANT_ADDRESS_P.
10478 ("*movsi_internal") <case 9>: Make check for valid unspec operands
10480 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
10481 ("call", "call_value"): Use second incoming operand as a marker
10482 for pic-offset-table-register being used.
10483 ("*expanded_call_non_v32", "*expanded_call_v32")
10484 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
10485 second incoming operand to CALL, match cris_call_type_marker.
10486 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
10487 ("*expanded_call_side"): Ditto. Fix typo in comment.
10488 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
10490 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
10491 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
10492 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
10493 users changed. Add members cris_offsettable_symbol and cris_unspec.
10494 (cris_symbol_type): Rename from cris_pic_symbol_type.
10495 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
10497 * config/cris/cris-protos.h (cris_symbol_type_of,
10498 cris_expand_pic_call_address): Adjust prototypes.
10499 (cris_legitimate_constant_p): New prototype.
10501 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
10502 an existing tmake_file. Don't add t-slibgcc and t-linux.
10504 2014-07-17 Jason Merrill <jason@redhat.com>
10507 * symtab.c (symtab_remove_from_same_comdat_group): Also
10508 set_comdat_group to NULL_TREE.
10509 (verify_symtab): Fix diagnostic.
10511 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
10514 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
10516 2014-07-16 Dodji Seketeli <dodji@redhat.com>
10518 Support location tracking for built-in macro tokens
10519 * input.h (is_location_from_builtin_token): New function declaration.
10520 * input.c (is_location_from_builtin_token): New function definition.
10521 * toplev.c (general_init): Tell libcpp what the pre-defined
10522 spelling location for built-in tokens is.
10524 2014-07-16 Jakub Jelinek <jakub@redhat.com>
10526 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
10527 on the FUNCTION_DECL.
10529 2014-07-16 Richard Biener <rguenther@suse.de>
10532 * doc/extend.texi (always_inline): Clarify.
10534 2014-07-15 Eric Christopher <echristo@gmail.com>
10536 * doc/invoke.texi (Link Options): Document -z option.
10538 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
10540 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
10541 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10543 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
10545 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
10547 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
10549 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
10550 varpool_assemble_decl.
10551 * varpool.c (varpool_assemble_decl): Assert that node->definition is
10554 2014-07-15 Michael Matz <matz@suse.de>
10556 PR rtl-optimization/61772
10557 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
10559 2014-07-15 Richard Biener <rguenther@suse.de>
10561 * opts.c (default_options_table): Disable bit-ccp at -Og.
10563 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
10565 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
10567 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
10569 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
10570 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
10571 call langhook for unknown declaration.
10572 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
10573 * tree.h (DECL_ARGUMENTS): Update.
10574 * print-tree.c (print_node): Update.
10575 * tree-core.h (tree_decl_non_common): Remove arguments.
10576 (tree_function_decl): Add arguments.
10578 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
10580 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
10582 2014-07-14 Richard Biener <rguenther@suse.de>
10584 PR tree-optimization/61779
10585 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
10586 simplifying a condition.
10588 2014-07-14 Richard Biener <rguenther@suse.de>
10590 * builtins.c (c_strlen): Make only_value == 2 really only
10591 affect warning generation.
10593 2014-07-14 Richard Biener <rguenther@suse.de>
10595 PR tree-optimization/61757
10596 PR tree-optimization/61783
10597 PR tree-optimization/61787
10598 * tree-ssa-dom.c (record_equality): Revert canonicalization
10599 change and add comment.
10600 (propagate_rhs_into_lhs): Revert previous fix, removing
10601 loop depth restriction again.
10603 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10605 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
10606 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10607 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10608 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
10609 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10610 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10611 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10613 2014-07-14 Richard Biener <rguenther@suse.de>
10615 * cgraph.h (decl_in_symtab_p): Make inline.
10617 2014-07-14 Jakub Jelinek <jakub@redhat.com>
10619 PR middle-end/61294
10620 * doc/invoke.texi (-Wmemset-transposed-args): Document.
10623 * config/i386/i386.c (classify_argument): Don't merge classes above
10626 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
10628 * cgraph.h (symtab_node): Add nonzero_address.
10629 (decl_in_symtab_p): Break out from ...
10630 (symtab_get_node): ... here.
10631 * fold-const.c: Include cgraph.h
10632 (tree_single_nonzero_warnv_p): Use symtab to determine
10633 if symbol is non-zero.
10634 * symtab.c (symtab_node::nonzero_address): New method.
10636 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
10638 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
10639 forgotten in previous commit.
10641 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
10643 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
10645 * ipa-devirt.c: Include stor-layout.h and intl.h
10646 (odr_subtypes_equivalent_p): New function.
10647 (warn_odr): New function.
10648 (warn_type_mismatch): New function.
10649 (odr_types_equivalent_p): New function.
10650 (add_type_duplicate): Use it.
10651 * common.opt (Wodr): New flag.
10652 * doc/invoke.texi (Wodr): Document new warning.
10654 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
10656 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
10657 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
10658 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
10659 (varpool_get_constructor): Push CTORS_IN timevar.
10660 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
10662 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
10664 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
10665 Remove VOID_FTYPE_PUSHORT.
10666 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
10667 Change code to USHORT_FTYPE_VOID.
10668 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
10669 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
10670 (ix86_atomic_assign_expand_fenv): Update for
10671 __builtin_ia32_fnstsw changes.
10672 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
10673 (fnstsw): Change operand 0 to nonimmediate operand.
10675 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
10677 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
10678 (varpool_get_constructor): New function.
10679 (varpool_ctor_useable_for_folding_p): Break out from ...
10680 (ctor_for_folding): ... here; use varpool_get_constructor.
10681 (varpool_assemble_decl): Likewise.
10682 * lto-streamer.h (struct output_block): Turn cgraph_node
10684 (lto_input_variable_constructor): Declare.
10685 * ipa-visibility.c (function_and_variable_visibility): Use
10686 varpool_get_constructor.
10687 * cgraph.h (varpool_get_constructor): Declare.
10688 (varpool_ctor_useable_for_folding_p): New function.
10689 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
10690 parameter; return error_mark_node for non-trivial constructors.
10691 (lto_write_tree_1, DFS_write_tree): Update use of
10692 get_symbol_initial_value.
10693 (output_function): Update initialization of symbol.
10694 (output_constructor): New function.
10695 (copy_function): Rename to ..
10696 (copy_function_or_variable): ... this one; handle vars too.
10697 (lto_output): Output variable sections.
10698 * lto-streamer-in.c (input_constructor): New function.
10699 (lto_read_body): Rename from ...
10700 (lto_read_body_or_constructor): ... this one; handle vars too.
10701 (lto_input_variable_constructor): New function.
10702 * ipa-prop.c (ipa_prop_write_jump_functions,
10703 ipa_prop_write_all_agg_replacement): Update.
10704 * lto-cgraph.c (compute_ltrans_boundary): Use it.
10705 (output_cgraph_opt_summary): Set symbol to NULL.
10707 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
10709 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
10710 non-polymorphic types.
10711 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
10712 * ipa-devirt.c (types_same_for_odr): Do not explode when one
10713 of types is not polymorphic.
10715 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
10717 * lra-constraints.c (remove_inheritance_pseudos): Process
10718 destination pseudo too.
10720 2014-07-11 Rong Xu <xur@google.com>
10722 * gcov-tool.c (gcov_output_files): Fix build error introduced in
10725 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10727 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
10728 * config/avr/avr-devices.c (AVR_MCU): Same.
10729 (avr_mcu_types): add text start value to end of device list.
10730 * config/avr/avr-mcus.def: Add text section start for all devices.
10731 (ata5782): Add new avr5 device.
10733 * config/avr/avr-tables.opt: Regenerate.
10734 * config/avr/avr.h: Add declaration for text section start handler.
10735 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
10737 (LINK_SPEC): Include text section start handler to linker spec.
10738 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
10739 pass -Ttext option to linker if the text section start for the device
10741 * config/avr/t-multilib: Regenerate.
10742 * doc/avr-mmcu.texi: Regenerate.
10744 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
10746 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
10747 * config/rs6000/aix52.h (LINK_SPEC): Same.
10748 * config/rs6000/aix53.h (LINK_SPEC): Same.
10749 * config/rs6000/aix61.h (LINK_SPEC): Same.
10750 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
10752 2014-07-11 Roman Gareev <gareevroman@gmail.com>
10754 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
10755 (graphite_verify): New function.
10756 (ivs_params_clear): New function.
10757 (gcc_expression_from_isl_ast_expr_id): New function.
10758 (gcc_expression_from_isl_expr_int): New function.
10759 (binary_op_to_tree): New function.
10760 (ternary_op_to_tree): New function.
10761 (unary_op_to_tree): New function.
10762 (nary_op_to_tree): New function.
10763 (gcc_expression_from_isl_expr_op): New function.
10764 (gcc_expression_from_isl_expression): New function.
10765 (graphite_create_new_loop): New function.
10766 (translate_isl_ast_for_loop): New function.
10767 (get_upper_bound): New function.
10768 (graphite_create_new_loop_guard): New function.
10769 (translate_isl_ast_node_for): New function.
10770 (translate_isl_ast): New function.
10771 (add_parameters_to_ivs_params): New function.
10772 (scop_to_isl_ast): New parameter ip.
10773 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
10775 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
10777 * config/xtensa/predicates.md (call expander): Update for
10778 DECL_SECTION_NAME being string.
10780 2014-07-11 Richard Biener <rguenther@suse.de>
10782 PR middle-end/61473
10783 * builtins.c (fold_builtin_memory_op): Inline memory moves that
10784 can be implemented with a single load followed by a single store.
10785 (c_strlen): Only warn when only_value is not 2.
10787 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
10789 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
10791 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
10794 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
10795 (*movhi_bytes): Likewise.
10796 (*arm_movqi_insn): Likewise.
10798 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
10801 * config/alpha/alpha.c: Include tree-pass.h, context.h
10802 and pass_manager.h.
10803 (pass_data_handle_trap_shadows): New pass.
10804 (pass_handle_trap_shadows::gate): New pass gate function.
10805 (make_pass_handle_trap_shadows): New function.
10806 (rest_of_handle_trap_shadows): Ditto.
10808 (alpha_align_insns_1): Rename from alpha_align_insns.
10809 (pass_data_align_insns): New pass.
10810 (pass_align_insns::gate): New pass gate function.
10811 (make_pass_aling_insns): New function.
10812 (rest_of_align_insns): Ditto.
10813 (alpha_align_insns): Ditto.
10815 (alpha_option_override): Declare handle_trap_shadows info
10816 and align_insns_info. Register handle_trap_shadows and align_insns
10818 (alpha_reorg): Do not call alpha_trap_shadows and
10819 alpha_align_insn from here.
10821 (alpha_pad_function_end): Do not skip BARRIERs.
10823 2014-07-10 Rong Xu <xur@google.com>
10825 Add gcov-tool: an offline gcda profile processing tool support.
10826 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
10827 (gcov_is_error): Ditto.
10828 (gcov_read_string): Ditto.
10829 (gcov_read_sync): Ditto.
10830 * gcov-io.h: Move counter defines to gcov-counter.def.
10831 * gcov-dump.c (tag_counters): Use gcov-counter.def.
10832 * coverage.c: Ditto.
10833 * gcov-tool.c: Offline gcda profile processing tool.
10834 (unlink_gcda_file): Remove one gcda file.
10835 (unlink_profile_dir): Remove gcda files from the profile path.
10836 (gcov_output_files): Output gcda files to an output dir.
10837 (profile_merge): Merge two profiles in directory.
10838 (print_merge_usage_message): Print merge usage.
10839 (merge_usage): Print merge usage and exit.
10840 (do_merge): Driver for profile merge sub-command.
10841 (profile_rewrite): Rewrite profile.
10842 (print_rewrite_usage_message): Print rewrite usage.
10843 (rewrite_usage): Print rewrite usage and exit.
10844 (do_rewrite): Driver for profile rewrite sub-command.
10845 (print_usage): Print gcov-info usage and exit.
10846 (print_version): Print gcov-info version.
10847 (process_args): Process arguments.
10848 (main): Main routine for gcov-tool.
10849 * Makefile.in: Build and install gcov-tool.
10850 * gcov-counter.def: New file split from gcov-io.h.
10851 * doc/gcc.texi: Include gcov-tool.texi.
10852 * doc/gcov-tool.texi: Document for gcov-tool.
10854 2014-07-10 Richard Biener <rguenther@suse.de>
10856 PR tree-optimization/61757
10857 * tree-ssa-dom.c (loop_depth_of_name): Restore.
10858 (propagate_rhs_into_lhs): Revert part of last change.
10860 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
10862 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
10865 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
10867 PR middle-end/53590
10868 * function.c (allocate_struct_function): Revert r188667 change.
10870 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
10872 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
10874 * doc/install.texi: Remove links to defunct package providers for
10877 2014-07-09 Tom de Vries <tom@codesourcery.com>
10879 * final.c (get_call_fndecl): Declare.
10880 (self_recursive_call_p): New function.
10881 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
10883 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10885 * ipa-devirt.c (record_node): Walk through aliases.
10887 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10889 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
10891 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10894 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10896 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10898 * ipa-visibility.c (function_and_variable_visibility): Remove
10899 temporary hack disabling local aliases on AIX.
10901 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10903 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
10904 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
10906 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10908 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
10909 * rs6000/rs6000.c: Inline output of .set instruction.
10910 (declare_alias_data): New struct.
10911 (rs6000_declare_alias): New function.
10912 (rs6000_xcoff_declare_function_name): Use it.
10913 (rs6000_xcoff_declare_object_name): New function.
10914 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
10915 (ASM_OUTPUT_DEF): Turn to empty definition.
10917 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10920 * hash-table.h: use hash_table::value_type instead of
10921 Descriptor::value_type in the return types of several methods.
10923 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10925 * tree-pass.h (pass_data): Remove has_execute member.
10926 * passes.c (execute_one_pass): Don't check pass->has_execute.
10927 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10928 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10929 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10930 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10931 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10932 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
10933 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
10934 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
10935 gimple-low.c, gimple-ssa-isolate-paths.c,
10936 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
10937 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
10938 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
10939 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
10940 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
10941 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
10942 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
10943 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
10944 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
10945 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
10946 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
10947 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10948 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10949 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10950 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10951 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10952 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10953 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10954 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10955 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10956 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10957 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10958 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
10959 web.c: Remove initializer for pass_data::has_execute.
10961 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10963 * graphite-htab.h: Use hash_map instead of hash_table.
10964 * graphite-clast-to-gimple.c: Adjust.
10965 * passes.c: Use hash_map instead of hash_table.
10966 * sese.c: Likewise.
10967 * sese.h: Remove now unused code.
10969 2014-07-08 Sriraman Tallam <tmsriram@google.com>
10972 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
10975 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10977 PR rtl-optimization/61673
10978 * combine.c (simplify_comparison): Test just mode's sign bit
10979 in tmode rather than the sign bit and any bits above it.
10981 2014-07-08 Roman Gareev <gareevroman@gmail.com>
10983 * graphite-isl-ast-to-gimple.c (generate_isl_context):
10984 Add __isl_give to the declaration.
10985 (generate_isl_schedule): Likewise.
10986 (scop_to_isl_ast): Likewise.
10988 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10990 * config/arm/arm.c (cortexa5_extra_costs): New table.
10991 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
10993 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10995 PR tree-optimization/61725
10996 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
10997 range, use range_includes_zerop_p instead of integer_zerop on
10998 vr0->min, only use log2 of max if min is not negative.
11000 2014-07-08 Richard Biener <rguenther@suse.de>
11002 * tree-ssa-dom.h (loop_depth_of_name): Remove.
11003 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11004 restriction on loop depth difference.
11005 (record_equality): Likewise.
11006 (propagate_rhs_into_lhs): Likewise. Simplify condition.
11007 (loop_depth_of_name): Remove.
11008 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11009 restriction on loop depth difference.
11010 (init_copy_prop): Likewise.
11012 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
11014 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11016 (walk_aliased_vdefs): Likewise.
11017 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11018 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11019 (detect_type_change_from_memory_writes): Check if entry was reached.
11021 2014-07-08 Richard Biener <rguenther@suse.de>
11023 PR tree-optimization/61681
11024 * tree-ssa-structalias.c (find_what_var_points_to): Expand
11025 NONLOCAL inside ESCAPED.
11027 2014-07-08 Richard Biener <rguenther@suse.de>
11029 PR tree-optimization/61680
11030 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11031 Handle properly all read-write dependences with group accesses.
11033 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11035 PR tree-optimization/61576
11036 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11037 block containing reduction statement is predecessor of phi basi block.
11039 2014-07-08 Marek Polacek <polacek@redhat.com>
11042 * fold-const.c (round_up_loc): Change the parameter type.
11044 * fold-const.h (round_up_loc): Adjust declaration.
11045 * stor-layout.c (finalize_record_size): Check for too large types.
11047 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
11049 * symtab.c: Include calls.h.
11050 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11052 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
11054 * config/rs6000/rs6000.c (output_vec_const_move): Handle
11055 little-endian code generation.
11056 * config/rs6000/spe.md (spe_evmergehi): Rename to...
11057 (vec_perm00_v2si): ... this. Handle little-endian code generation.
11058 (spe_evmergehilo): Rename to...
11059 (vec_perm01_v2si): ... this. Handle little-endian code generation.
11060 (spe_evmergelo): Rename to...
11061 (vec_perm11_v2si): ... this. Handle little-endian code generation.
11062 (spe_evmergelohi): Rename to...
11063 (vec_perm10_v2si): ... this. Handle little-endian code generation.
11064 (spe_evmergehi, spe_evmergehilo): New expanders.
11065 (spe_evmergelo, spe_evmergelohi): Likewise.
11066 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11067 (*frob_tf_ti): Likewise.
11068 (*frob_<mode>_di_2): Likewise.
11069 (*frob_tf_di_8_2): Likewise.
11070 (*frob_di_<mode>): Likewise.
11071 (*frob_ti_tf): Likewise.
11072 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
11073 (*frob_ti_<mode>_8_2): Likewise.
11074 (*frob_ti_tf_2): Likewise.
11075 (mov_si<mode>_e500_subreg0): Rename to...
11076 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
11078 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
11079 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
11080 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
11081 the big endianness only.
11082 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
11083 (*mov_si<mode>_e500_subreg0_2): Rename to...
11084 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
11085 big big endianness only.
11086 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
11087 (*mov_si<mode>_e500_subreg4): Rename to...
11088 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
11090 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
11091 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
11092 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
11093 the big endianness only.
11094 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
11096 (*mov_si<mode>_e500_subreg4_2): Rename to...
11097 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
11099 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
11100 (*mov_sitf_e500_subreg8): Rename to...
11101 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
11103 (*mov_sitf_e500_subreg8_le): New instruction pattern.
11104 (*mov_sitf_e500_subreg8_2): Rename to...
11105 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
11107 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
11108 (*mov_sitf_e500_subreg12): Rename to...
11109 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
11111 (*mov_sitf_e500_subreg12_le): New instruction pattern.
11112 (*mov_sitf_e500_subreg12_2): Rename to...
11113 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
11115 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
11117 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
11119 * asan.c (instrument_strlen_call): Do not instrument first byte
11120 in strlen if already instrumented.
11122 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11124 * config/arm/arm.opt (mwords-little-endian): Delete.
11125 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
11126 of TARGET_LITTLE_WORDS.
11127 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11128 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
11130 * doc/invoke.texi: Remove references to -mwords-little-endian.
11132 2014-07-07 Jakub Jelinek <jakub@redhat.com>
11134 * expmed.c (struct init_expmed_rtl): Change all fields but
11135 pow2 and cint from struct rtx_def to rtx.
11136 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
11137 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
11140 2014-07-06 Marek Polacek <polacek@redhat.com>
11143 * doc/invoke.texi: Document -Wsizeof-array-argument.
11145 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
11147 * wide-int.h (wide_int_storage): Change declaration from struct
11150 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
11152 * cgraph.c (cgraph_create_indirect_edge): Update call of
11153 get_polymorphic_call_info.
11154 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
11155 (possible_polymorphic_call_targets): Add parameter call.
11156 (decl_maybe_in_construction_p): New predicate.
11157 (get_polymorphic_call_info): Add parameter call;
11158 use decl_maybe_in_construction_p.
11159 * gimple-fold.c (fold_gimple_assign): Update use of
11160 possible_polymorphic_call_targets.
11161 (gimple_fold_call): Likewise.
11162 * ipa-prop.c: Inlcude calls.h
11163 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
11164 (param_type_may_change_p): New predicate.
11165 (detect_type_change_from_memory_writes): Break out from ...
11166 (detect_type_change): ... this one; use param_type_may_change_p.
11167 (detect_type_change_ssa): Use param_type_may_change_p.
11168 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
11170 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
11173 * config/arm/arm-protos.h (arm_legitimate_address_p,
11174 arm_is_constant_pool_ref): Add prototypes.
11175 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
11176 (arm_is_constant_pool_ref) New function.
11177 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
11178 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
11179 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
11180 operand. Remove pool_range and neg_pool_range attributes.
11181 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
11182 pool_range and neg_pool_range attributes.
11183 * config/arm/constraints.md (Uh): New constraint.
11184 (Uq): Don't allow constant pool references.
11186 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
11188 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
11189 (move_lo_quad_internal_be_<mode>): Likewise.
11190 (move_lo_quad_<mode>): Convert to define_expand.
11191 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
11192 (aarch64_simd_move_hi_quad_be_<mode>): New.
11193 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
11194 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
11195 (aarch64_combinez_be<mode>): New.
11196 (aarch64_combine<mode>): Convert to define_expand.
11197 (aarch64_combine_internal<mode>): New.
11198 (aarch64_simd_combine<mode>): Remove bogus RTL description.
11200 2014-07-04 Tom de Vries <tom@codesourcery.com>
11202 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
11203 combination of earlyclobber and read/write modifiers.
11205 2014-07-04 Tom de Vries <tom@codesourcery.com>
11207 * config/aarch64/aarch64-simd.md
11208 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
11210 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
11213 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
11215 2014-07-04 Jakub Jelinek <jakub@redhat.com>
11217 PR middle-end/61654
11218 * cgraphunit.c (expand_thunk): Call free_dominance_info.
11220 PR tree-optimization/61684
11221 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
11222 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
11224 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11225 Kito Cheng <kito@0xlab.org>
11226 Monk Chiang <sh.chiang04@gmail.com>
11228 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
11229 (nds32_symbol_load_store_p): Move to ...
11230 (nds32_fp_as_gp_check_available): Move to ...
11231 * config/nds32/nds32-fp-as-gp.c: ... here.
11232 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
11233 extern declaration.
11235 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11236 Kito Cheng <kito@0xlab.org>
11237 Monk Chiang <sh.chiang04@gmail.com>
11239 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
11240 (nds32_expand_store_multiple): Move to ...
11241 (nds32_expand_movmemqi): Move to ...
11242 * config/nds32/nds32-memory-manipulation.c: ... here.
11244 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11245 Kito Cheng <kito@0xlab.org>
11246 Monk Chiang <sh.chiang04@gmail.com>
11248 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
11249 (nds32_output_casesi_pc_relative): Move to ...
11250 (nds32_output_casesi): Move to ...
11251 (nds32_mem_format): Move to ...
11252 (nds32_output_16bit_store): Move to ...
11253 (nds32_output_16bit_load): Move to ...
11254 (nds32_output_32bit_store): Move to ...
11255 (nds32_output_32bit_load): Move to ...
11256 (nds32_output_32bit_load_s): Move to ...
11257 (nds32_output_stack_push): Move to ...
11258 (nds32_output_stack_pop): Move to ...
11259 * config/nds32/nds32-md-auxiliary.c: ... here.
11261 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11262 Ling-Hua Tseng <uranus@tinlans.org>
11264 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
11265 the purpose of this file.
11267 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11268 Kito Cheng <kito@0xlab.org>
11269 Monk Chiang <sh.chiang04@gmail.com>
11271 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
11272 (nds32_address_cost): Move implementation to ...
11273 * config/nds32/nds32-cost.c: ... here.
11274 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
11275 (nds32_address_cost_impl): Declare.
11277 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11278 Kito Cheng <kito@0xlab.org>
11279 Monk Chiang <sh.chiang04@gmail.com>
11281 * config/nds32/nds32.c
11282 (nds32_consecutive_registers_load_store_p): Move to ...
11283 (nds32_valid_multiple_load_store): Move to ...
11284 (nds32_valid_stack_push_pop): Move to ...
11285 (nds32_can_use_bclr_p): Move to ...
11286 (nds32_can_use_bset_p): Move to ...
11287 (nds32_can_use_btgl_p): Move to ...
11288 (nds32_can_use_bitci_p): Move to ...
11289 * config/nds32/nds32-predicates.c: ... here.
11291 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11292 Kito Cheng <kito@0xlab.org>
11293 Monk Chiang <sh.chiang04@gmail.com>
11295 * config/nds32/nds32.c
11296 (nds32_expand_builtin_null_ftype_reg): Move to ...
11297 (nds32_expand_builtin_reg_ftype_imm): Move to ...
11298 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
11299 (nds32_init_builtins): Move implementation to ...
11300 (nds32_expand_builtin): Move implementation to ...
11301 * config/nds32/nds32-intrinsic.c: ... here.
11302 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
11303 (nds32_expand_builtin_impl): Declare.
11305 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11306 Kito Cheng <kito@0xlab.org>
11307 Monk Chiang <sh.chiang04@gmail.com>
11309 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
11310 (nds32_emit_section_tail_template): Move to ...
11311 (nds32_emit_isr_jmptbl_section): Move to ...
11312 (nds32_emit_isr_vector_section): Move to ...
11313 (nds32_emit_isr_reset_conten): Move to ...
11314 (nds32_check_isr_attrs_conflict): Move to ...
11315 (nds32_construct_isr_vectors_information): Move to ...
11316 (nds32_asm_file_start): Move implementation to ...
11317 (nds32_asm_file_end): Move implementation to ...
11318 * config/nds32/nds32-isr.c: ... here.
11319 * config/nds32/nds32-protos.h
11320 (nds32_check_isr_attrs_conflict): Declare.
11321 (nds32_construct_isr_vectors_information): Declare.
11322 (nds32_asm_file_start_for_isr): Declare.
11323 (nds32_asm_file_end_for_isr): Declare.
11325 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
11326 Kito Cheng <kito@0xlab.org>
11327 Monk Chiang <sh.chiang04@gmail.com>
11329 * config.gcc (nds32*): Add new modules to extra_objs.
11330 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
11331 (nds32be-*-*): Likewise.
11332 * config/nds32/nds32-cost.c: New file.
11333 * config/nds32/nds32-fp-as-gp.c: New file.
11334 * config/nds32/nds32-intrinsic.c: New file.
11335 * config/nds32/nds32-isr.c: New file.
11336 * config/nds32/nds32-md-auxiliary.c: New file.
11337 * config/nds32/nds32-memory-manipulation.c: New file.
11338 * config/nds32/nds32-pipelines-auxiliary.c: New file.
11339 * config/nds32/nds32-predicates.c: New file.
11340 * config/nds32/t-nds32: New file.
11342 2014-07-03 Jakub Jelinek <jakub@redhat.com>
11344 PR tree-optimization/61682
11345 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
11346 using cases and when one of the operands is equal to 1.
11348 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
11350 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
11351 ashr<mode>3): Correct mode of operands[2].
11352 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
11353 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
11354 Correct mode of operands[2]. Fix split condition.
11356 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
11358 * arm.md (arch): Add armv6_or_vfpv3.
11359 (arch_enabled): Add test for the above.
11360 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
11362 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
11364 2014-07-03 Jakub Jelinek <jakub@redhat.com>
11366 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
11367 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
11368 HWI 1 and negate the unsigned value.
11369 * expmed.c (expand_sdiv_pow2): For modes wider than word always
11370 use AND instead of shift.
11371 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
11373 2014-07-03 Marek Polacek <polacek@redhat.com>
11375 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
11376 (-fsanitize=float-divide-by-zero): Move to the table with
11377 -fsanitize=undefined suboptions.
11378 (-fsanitize=float-cast-overflow): Likewise.
11380 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
11382 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
11383 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
11386 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11388 * loop-invariant.c (struct invariant): Add a new member: eqno;
11389 (find_identical_invariants): Update eqno;
11390 (create_new_invariant): Init eqno;
11391 (get_inv_cost): Compute comp_cost with eqno;
11393 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
11395 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
11396 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
11397 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
11398 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
11399 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
11401 2014-07-02 Christian Bruel <christian.bruel@st.com>
11405 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
11406 (make_preds_opaque): Delete.
11407 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
11408 (commit_mode_sets): New function.
11409 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
11410 Process all modes at once.
11411 * basic-block.h (pre_edge_lcm_avs): Declare.
11412 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
11413 Call clear_aux_for_edges. Fix comments.
11414 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
11415 (pre_edge_rev_lcm): Idem.
11416 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
11418 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
11419 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11421 * config/i386/i386.c (x96_emit_mode_set): Idem.
11422 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
11423 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
11424 (fpscr_toggle) Disallow from delay slot.
11425 * target.def (emit_mode_set): Add prev_mode parameter.
11426 * doc/tm.texi: Regenerate.
11428 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11430 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
11433 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
11435 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
11436 vtable_pointer_value_to_vtable): Constify.
11437 (contains_polymorphic_type_p): Declare.
11438 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
11439 vtable_pointer_value_to_vtable): Constify.
11440 (contains_polymorphic_type_p): New predicate.
11441 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
11443 (ipa_set_ancestor_jf): Likewise.
11444 (detect_type_change): Return false in easy cases.
11445 (compute_complex_assign_jump_func): Require type to contain
11447 (compute_known_type_jump_func): Likewise.
11449 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
11451 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
11453 (type_in_anonymous_namespace_p): Constify argument.
11454 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
11455 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
11456 (main_odr_variant): New function.
11457 (hash_type_name): Make static; update assert; do not ICE on
11459 (types_same_for_odr): Bring here from tree.c; simplify and remove
11460 old structural comparing code that doesn't work for templates.
11461 (odr_hasher::equal): Update assert.
11462 (add_type_duplicate): Return true when bases should be computed;
11463 replace incomplete loader by complete; do not output duplicated
11464 warnings; do not ICE on non-records; set odr_violated flag.
11465 (get_odr_type): Be ready to replace incomplete type by complete
11466 one; work on ODR variants instead of main variants; reorder item
11467 in array so bases have still smaller indexes.
11468 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
11469 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
11471 2014-07-01 Cary Coutant <ccoutant@google.com>
11473 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
11475 (resolve_addr_in_expr): When replacing the rtx in a location list
11476 entry, get a new address table entry.
11477 (dwarf2out_finish): Call index_location_lists even if there are no
11478 addr_index_table entries yet.
11480 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
11482 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
11483 change for not being obvious.
11485 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
11487 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
11490 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11492 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
11493 (vcagt_f64): Likewise.
11494 (vcale_f64): Likewise.
11495 (vcaled_f64): Likewise.
11496 (vcales_f32): Likewise.
11497 (vcalt_f64): Likewise.
11498 (vcaltd_f64): Likewise.
11499 (vcalts_f32): Likewise.
11501 2014-07-01 Marek Polacek <polacek@redhat.com>
11503 * doc/invoke.texi: Document -Wint-conversion.
11505 2014-07-01 Marek Polacek <polacek@redhat.com>
11508 * doc/invoke.texi: Document -Wincompatible-pointer-types.
11510 2014-07-01 Martin Liska <mliska@suse.cz>
11512 IPA REF alias refactoring
11513 * cgraph.h (iterate_direct_aliases): New function.
11514 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
11515 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
11516 FOR_EACH_ALIAS added.
11517 (cgraph_for_node_and_aliases): Likewise.
11518 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
11519 * ipa-inline.c (reset_edge_caches): Likewise.
11520 (update_caller_keys): Likewise.
11521 * trans-mem.c (ipa_tm_execute): Likewise.
11522 *varpool.c (varpool_analyze_node): Likewise.
11523 (varpool_for_node_and_aliases): Likewise.
11524 * ipa-ref.h (first_alias): New function.
11525 (last_alias): Likewise.
11526 (has_aliases_p): Likewise.
11527 * ipa-ref.c (ipa_ref::remove_reference): Removal function
11528 is sensitive to IPA_REF_ALIASes.
11529 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
11530 are put at the beginning of the list.
11531 (symtab_node::iterate_direct_aliases): New function.
11533 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11536 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11538 (write_ts_type_common_tree_pointers): Do not stream fields not set
11539 for incomplete types; do not stream duplicated fields for variants;
11540 sanity check that variant and type match.
11541 (write_ts_type_non_common_tree_pointers): Likewise.
11542 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11543 TYPE_SIZE whether type is complete.
11544 (lto_input_ts_type_common_tree_pointers): Do same changes as in
11545 write_ts_type_common_tree_pointers
11546 (lto_input_ts_type_non_common_tree_pointers): Likewise.
11548 2014-06-30 Joseph Myers <joseph@codesourcery.com>
11550 * var-tracking.c (add_stores): Return instead of asserting if old
11551 and new values for conditional store are the same.
11553 2014-06-30 Richard Henderson <rth@redhat.com>
11557 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
11558 the cfg if there were any changes.
11559 * passes.def: Revert move of peephole2 after reorder_blocks;
11560 move duplicate_computed_gotos before peephole2.
11562 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
11564 * except.c (emit_note_eh_region_end): New helper function.
11565 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
11566 emit EH_REGION_END note.
11567 * jump.c (cleanup_barriers): Do not split a call and its
11568 corresponding CALL_ARG_LOCATION note.
11570 2014-06-30 Jeff Law <law@redhat.com>
11572 PR tree-optimization/61607
11573 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
11574 deeper into the SSA_NAME_VALUE chain.
11576 2014-06-30 Marek Polacek <polacek@redhat.com>
11578 * convert.c (convert_to_integer): Don't instrument conversions if the
11579 function has no_sanitize_undefined attribute.
11580 * ubsan.c: Don't run the ubsan pass if the function has
11581 no_sanitize_undefined attribute.
11583 2014-06-30 Jakub Jelinek <jakub@redhat.com>
11585 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
11586 -fsanitize=undefined suboptions.
11588 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
11590 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
11591 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
11592 against bigendian and adjust indices.
11594 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
11596 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
11598 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
11601 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
11602 Add alternative; make early clobber. Adjust both split patterns
11603 to use operand 0 as the working register.
11605 2014-06-30 Jakub Jelinek <jakub@redhat.com>
11607 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
11608 as ira_object_id_map might be NULL, or 1.
11610 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11612 * loop-invariant.c (get_inv_cost): Handle register class.
11613 (gain_for_invariant): Check the register pressure of the inv
11614 and its overlapped register class, other than all.
11616 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
11618 * doc/invoke.texi (Optimize Options): Fix descriptions of
11619 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
11621 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
11623 * doc/extend.texi (Function Attributes): Update 'naked' attribute
11626 2014-06-29 Tobias Grosser <tobias@grosser.es>
11629 * graphite-isl-ast-to-gimple.c: Add missing guards.
11631 2014-06-29 Roman Gareev <gareevroman@gmail.com>
11633 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
11634 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
11635 * flag-types.h: Add new enum fgraphite_generator.
11636 * graphite-isl-ast-to-gimple.c: New.
11637 * graphite-isl-ast-to-gimple.h: New.
11638 * graphite.c (graphite_transform_loops): Add choice of Graphite
11639 code generator, which depends on flag_graphite_code_gen.
11641 2014-06-29 Roman Gareev <gareevroman@gmail.com>
11643 * graphite-dependences.c (subtract_commutative_associative_deps):
11644 Add NULL checking of the following variables: must_raw_no_source,
11645 may_raw_no_source, must_war_no_source, may_war_no_source,
11646 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
11647 must_war, may_war, must_waw, may_waw.
11649 2014-06-29 Roman Gareev <gareevroman@gmail.com>
11651 * graphite-clast-to-gimple.c: gloog is renamed to
11652 graphite_regenerate_ast_cloog. gloog_error is renamed to
11653 graphite_regenerate_error.
11654 * graphite-clast-to-gimple.h: The definition of the struct
11655 bb_pbb_def is moved to graphite-htab.h.
11656 Add inclusion of the hash-table.h.
11657 * graphite-htab.h: The declaration of the function gloog is moved
11658 to graphite-clast-to-gimple.h and renamed to
11659 graphite_regenerate_ast_cloog.
11660 * graphite.c (graphite_transform_loops): gloog is renamed
11661 to graphite_regenerate_ast_cloog.
11663 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11665 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11667 (write_ts_type_common_tree_pointers): Do not stream fields not set
11668 for incomplete types; do not stream duplicated fields for variants;
11669 sanity check that variant and type match.
11670 (write_ts_type_non_common_tree_pointers): Likewise.
11671 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11672 TYPE_SIZE whether type is complete.
11673 (lto_input_ts_type_common_tree_pointers): Do same changes as in
11674 write_ts_type_common_tree_pointers
11675 (lto_input_ts_type_non_common_tree_pointers): Likewise.
11677 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11679 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
11681 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11683 * tree-inline.c (remap_type_1): Do not duplicate fields
11684 that are shared in between type and its main variant.
11686 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11688 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
11690 (ipa_set_ancestor_jf) Likewise.
11691 (check_stmt_for_type_change): Check that we work on main variant.
11692 (detect_type_change): Look into main variant.
11693 (compute_known_type_jump_func): Check that main variant has BINFO.
11695 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11697 * ipa-devirt.c (set_type_binfo): New function.
11698 (add_type_duplicate): Use it.
11699 (get_odr_type): Sanity check that binfos points to main variants.
11700 (get_class_context): Be sure the context's outer_type is main variant.
11701 (contains_type_p): Walk main variant.
11702 (get_polymorphic_call_info_for_decl): Set outer_type to be
11704 (get_polymorphic_call_info): Likewise.
11705 (possible_polymorphic_call_targets): Sanity check that we operate
11708 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11710 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11712 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11714 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
11715 accidental change due to wide-int branch merge.
11717 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11719 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
11720 compressed debug support.
11721 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
11722 * configure: Regenerate.
11723 * config.in: Regenerate.
11724 * common.opt (compressed_debug_sections): New enum.
11725 (gz, gz=): New options.
11726 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
11727 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
11728 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
11729 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
11730 LINK_COMPRESS_DEBUG_SPEC.
11731 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
11732 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
11733 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
11734 (Debugging Options): Document -gz[=type].
11736 2014-06-27 Martin Jambor <mjambor@suse.cz>
11739 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
11740 args_to_skip, use those from node instead. Copy args_to_skip and
11741 combined_args_to_skip from node to the new thunk.
11742 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
11743 (cgraph_create_virtual_clone): Moved computation of
11744 combined_args_to_skip...
11745 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
11747 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
11749 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
11750 redundant diagnostic machinary.
11752 2014-06-27 Richard Biener <rguenther@suse.de>
11754 * tree-ssa-math-opts.c (bswap_replace): Fix
11755 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
11757 2014-06-27 Martin Liska <mliska@suse.cz>
11759 * gimple.h (gimple_location_safe): New function introduced.
11760 * cgraphunit.c (walk_polymorphic_call_targets): Usage
11761 of gimple_location_safe replaces gimple_location.
11762 (gimple_fold_call): Likewise.
11763 * ipa-devirt.c (ipa_devirt): Likewise.
11764 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11765 * ipa.c (walk_polymorphic_call_targets): Likewise.
11766 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
11768 2014-06-27 Jakub Jelinek <jakub@redhat.com>
11770 PR tree-optimization/57233
11771 PR tree-optimization/61299
11772 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
11774 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
11775 would be lowered to scalar shifts, check if corresponding
11776 shifts and vector BIT_IOR_EXPR are supported and don't lower
11777 or lower just to narrower vector type in that case.
11778 * expmed.c (expand_shift_1): Fix up handling of vector
11779 shifts and rotates.
11781 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
11784 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
11786 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
11788 * doc/invoke.texi (-fsemantic-interposition): Document.
11789 * common.opt (fsemantic-interposition): New flag.
11790 * varasm.c (decl_replaceable_p): Use it.
11792 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11795 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
11796 extraction other than index 3.
11798 2014-06-26 Teresa Johnson <tejohnson@google.com>
11800 * doc/invoke.texi: Fix typo.
11801 * dumpfile.c: Add support for documented -fdump-* options
11802 optimized/missed/note/optall.
11804 2014-06-26 Martin Jambor <mjambor@suse.cz>
11806 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
11807 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
11808 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
11809 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
11810 * opts.c (default_options_optimization): Set
11811 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
11812 * doc/invoke.texi (allow-load-data-races)
11813 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
11814 (allow-store-data-races): Document the new default.
11816 2014-06-26 Martin Jambor <mjambor@suse.cz>
11818 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
11819 renamed to ipa_impossible_devirt_target. Fix typo.
11820 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
11821 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
11822 ipa_impossible_devirt_target.
11824 2014-06-26 Richard Biener <rguenther@suse.de>
11826 PR tree-optimization/61607
11827 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
11828 explaining why we restrict copies on loop depth.
11829 * tree-ssa-dom.c (cprop_operand): Remove restriction on
11831 (record_equivalences_from_phis): Instead add it here.
11833 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
11835 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
11836 (LTO_WRAPPER_OBJS): New variable.
11837 (lto-wrapper$(exeext)): Use it.
11838 * collect2.c: Include "collect-utils.h".
11839 (verbose, debug): Remove variables.
11840 (at_file_supplied): No longer static.
11841 (tool_name): New variable.
11842 (do_wait, fork_execute, maybe_unlink): Don't declare.
11843 (tool_cleanup): No longer static.
11844 (notice): Remove function.
11845 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
11846 fork_execute calls.
11847 (collect_wait, do_wait, collect_execute): Remove functions.
11848 (maybe_unlink): No longer static.
11849 * collect2.h (verbose, debug): Don't declare.
11850 (at_file_supplied): Declare.
11851 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
11853 (collect_execute): Replace with implementation from collect2, plus a
11854 new arg use_atfile. All callers changed.
11855 (collect_wait): Replace with implementation from collect2.
11856 (maybe_unlink_file): Remove function.
11857 (fork_execute): Replace with implementation from collect2, plus a
11858 new arg use_atfile. All callers changed.
11859 (do_wait): Add call to utils_cleanup to the error path.
11860 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
11861 (tool_cleanup): Adjust declarations.
11862 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
11863 * tlink.c: Include "collect-utils.h".
11864 (tlink_execute): New arg use_atfile. All callers changed.
11865 (tlink_init, tlink_execute): Remove declarations.
11867 * collect-utils.c (save_temps): New variable.
11868 (do_wait): Use it instead of debug. Use fatal_error.
11869 * collect-utils.h (save_temps): Declare.
11870 * collect2.c (verbose): Rename from vflag. All uses changed.
11871 (tool_cleanup): New function, copied from collect_atexit.
11872 (collect_atexit, handler): Just call it.
11873 * collect2.h (verbose): Declaration renamed from vflag.
11874 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
11877 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
11878 (lto-wrapper$(exeext)): Link with collect-utils.o.
11879 * collect-utils.c: New file.
11880 * collect-utils.h: New file.
11881 * lto-wrapper.c: Include "collect-utils.h".
11882 (args_name): Delete variable.
11883 (tool_name): New variable.
11884 (tool_cleanup): New function.
11885 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
11886 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
11887 (fork_execute): Remove functions.
11889 2014-06-26 Nick Clifton <nickc@redhat.com>
11891 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
11893 * doc/extend.texi (Function Attributes): Fix typo in description
11894 of RX vector attribute.
11896 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11898 * config.gcc (supported_defaults): Error when passing either
11899 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
11901 2014-06-26 Richard Biener <rguenther@suse.de>
11903 * tree-ssa-dom.c (cprop_operand): Remove restriction on
11904 propagating volatile pointers.
11906 2014-06-26 Richard Biener <rguenther@suse.de>
11908 PR tree-optimization/61607
11909 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
11910 loop if we redirected its latch edge.
11911 (thread_block_1): Do not cancel loops prematurely.
11913 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
11915 * toplev.c (backend_init_target): Move init_emit_regs and
11917 (backend_init) ... here; skip ira_init_once and backend_init_target.
11918 (target_reinit) ... and here; clear
11919 this_target_rtl->lang_dependent_initialized.
11920 (lang_dependent_init_target): Clear
11921 this_target_rtl->lang_dependent_initialized;
11922 break out rtl initialization to ...
11923 (initialize_rtl): ... here; call also backend_init_target
11925 * toplev.h (initialize_rtl): New function.
11926 * function.c: Include toplev.h
11927 (init_function_start): Call initialize_rtl.
11928 * rtl.h (target_rtl): Add target_specific_initialized,
11929 lang_dependent_initialized.
11931 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
11932 Jakub Jelinek <jakub@redhat.com>
11934 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
11936 2014-06-25 Tom de Vries <tom@codesourcery.com>
11938 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
11940 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11942 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
11943 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
11944 Issue a strict overflow warning if appropriate.
11946 2014-06-25 Martin Liska <mliska@suse.cz>
11948 IPA REF refactoring
11949 * Makefile.in: Removed header file (ipa-ref-inline.h).
11950 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
11952 (cgraph_speculative_call_info): Likewise.
11953 (cgraph_for_node_thunks_and_aliases): Likewise.
11954 (cgraph_for_node_and_aliases): Likewise.
11955 (verify_cgraph_node): Likewise.
11956 * cgraph.h: Batch of IPA REF functions become member functions of
11957 symtab_node: add_reference, maybe_add_reference, clone_references,
11958 clone_referring, clone_reference, find_reference,
11959 remove_stmt_references, remove_all_references,
11960 remove_all_referring, dump_references, dump_referring,
11961 has_alias_p, iterate_reference, iterate_referring.
11962 * cgraphbuild.c (record_reference): New IPA REF function used.
11963 (record_type_list): Likewise.
11964 (record_eh_tables): Likewise.
11965 (mark_address): Likewise.
11966 (mark_load): Likewise.
11967 (mark_store): Likewise.
11968 (pass_build_cgraph_edges): Likewise.
11969 (rebuild_cgraph_edge): Likewise.
11970 (cgraph_rebuild_references): Likewise.
11971 (pass_remove_cgraph_callee_edges): Likewise.
11972 * cgraphclones.c (cgraph_clone_node): Likewise.
11973 (cgraph_create_virtual_clone): Likewise.
11974 (cgraph_materialize_clone): Likewise.
11975 (cgraph_materialize_all_clones): Likewise.
11976 * cgraphunit.c (cgraph_reset_node): Likewise.
11977 (cgraph_reset_node): Likewise.
11978 (analyze_function): Likewise.
11979 (assemble_thunks_and_aliases): Likewise.
11980 (expand_function): Likewise.
11981 * ipa-comdats.c (propagate_comdat_group): Likewise.
11982 (enqueue_references): Likewise.
11983 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
11984 (create_specialized_node): Likewise.
11985 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
11986 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
11987 * ipa-inline.c (reset_edge_caches): Likewise.
11988 (update_caller_keys): Likewise.
11989 (execute): Likewise.
11990 * ipa-prop.c (remove_described_reference): Likewise.
11991 (propagate_controlled_uses): Likewise.
11992 (ipa_edge_duplication_hook): Likewise.
11993 (ipa_modify_call_arguments): Likewise.
11994 * ipa-pure-const.c (propagate_pure_const): Likewise.
11995 * ipa-ref-inline.h: Header file removed, functions moved
11996 to symtab_node class.
11997 * ipa-ref.c (remove_reference): New class member function.
11998 (cannot_lead_to_return): New class member function.
11999 (referring_ref_list): Likewise.
12000 (referred_ref_list): Likewise.
12001 Rest of functions moved to symtab_node class.
12002 * ipa-ref.h: New member functions remove_reference,
12003 cannot_lead_to_return, referring_ref_list, referred_ref_list added
12005 ipa_ref_list class has new member functions: first_reference,
12006 first_referring, clear, nreferences.
12007 * ipa-reference.c (analyze_function): New IPA REF function used.
12008 (write_node_summary_p): Likewise.
12009 (ipa_reference_write_optimization_summary): Likewise.
12010 * ipa-split.c (split_function): Likewise.
12011 * ipa-utils.c (ipa_reverse_postorder): Likewise.
12012 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12013 (function_and_variable_visibility): Likewise.
12014 * ipa.c (has_addr_references_p): Likewise.
12015 (process_references): Argument type changed.
12016 (symtab_remove_unreachable_nodes): New IPA REF function used.
12017 (process_references): Likewise.
12018 (set_writeonly_bit): Likewise.
12019 * lto-cgraph.c: Implementation of new symtab_node member functions
12020 that uses new IPA REF functions.
12021 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12023 * lto-streamer-out.c (output_symbol_p): Likewise.
12024 * lto-streamer.h (referenced_from_this_partition_p): Argument type
12026 * symtab.c: Implementation of new IPA REF API.
12027 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12028 (ipa_tm_create_version): Likewise.
12029 (ipa_tm_execute): Likewise.
12030 * tree-emutls.c (gen_emutls_addr): Likewise.
12031 * tree-inline.c (copy_bb): Likewise.
12032 (delete_unreachable_blocks_update_callgraph): Likewise.
12033 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12034 (varpool_for_node_and_aliases): Likewise.
12036 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12038 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12040 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
12043 * fold-const.c (fold_checksum_tree): Use a hash_table of const
12044 tree_node * instead of tree_node *.
12046 (print_fold_checksum): Likewise.
12047 (fold_check_failed): Likewise.
12048 (debug_fold_checksum): Likewise.
12049 (fold_build1_stat_loc): Likewise.
12050 (fold_build2_stat_loc): Likewise.
12051 (fold_build3_stat_loc): Likewise.
12052 (fold_build_call_array_loc): Likewise.
12054 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
12056 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12057 implementation with call to...
12058 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12060 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12063 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
12065 PR tree-optimization/57742
12066 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12067 after replacing the statement.
12069 2014-06-25 Nick Clifton <nickc@redhat.com>
12071 * config/v850/v850.c (GHS_default_section_names): Change to const
12073 (GHS_current_section_names): Likewise.
12074 (v850_insert_attributes): Do not build strings, just assign the
12075 names directly. Change the type of 'chosen_section' to const
12077 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
12078 directly to the array entry.
12079 * config/v850/v850.h (GHS_default_section_names): Change to const
12081 (GHS_current_section_names): Likewise.
12083 2014-06-25 Jakub Jelinek <jakub@redhat.com>
12085 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
12086 (LANG_HOOKS_DECLS): Add it.
12087 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
12089 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
12090 * langhooks.h (struct lang_hooks_for_decls): Add
12091 omp_clause_linear_ctor hook.
12092 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
12093 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
12094 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
12095 combined simd loop use omp_clause_linear_ctor hook.
12097 2014-06-24 Cong Hou <congh@google.com>
12099 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
12100 pattern recognition.
12101 (type_conversion_p): PROMOTION is true if it's a type promotion
12102 conversion, and false otherwise. Return true if the given expression
12103 is a type conversion one.
12104 * tree-vectorizer.h: Adjust the number of patterns.
12105 * tree.def: Add SAD_EXPR.
12106 * optabs.def: Add sad_optab.
12107 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
12108 * expr.c (expand_expr_real_2): Likewise.
12109 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12110 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12111 * optabs.c (optab_for_tree_code): Likewise.
12112 * tree-cfg.c (estimate_operator_cost): Likewise.
12113 * tree-ssa-operands.c (get_expr_operands): Likewise.
12114 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
12115 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
12116 * doc/generic.texi: Add document for SAD_EXPR.
12117 * doc/md.texi: Add document for ssad and usad.
12119 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12121 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
12122 qualification in cast.
12124 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
12126 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
12127 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
12128 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
12129 (tree_function_decl): ... here.
12130 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
12131 streaming of vindex to ...
12132 (write_ts_function_decl_tree_pointers): ... here.
12133 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
12134 Do not stream DECL_VINDEX.
12135 (lto_input_ts_function_decl_tree_pointers): Stream it here.
12137 2014-06-24 Catherine Moore <clm@codesourcery.com>
12138 Sandra Loosemore <sandra@codesourcery.com>
12140 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
12141 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
12142 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
12144 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12146 * doc/invoke.texi (Warning Options): Remove duplicated
12147 -Wmaybe-uninitialized.
12149 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
12151 PR tree-optimization/57742
12152 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
12153 (handle_builtin_malloc, handle_builtin_memset): New functions.
12154 (strlen_optimize_stmt): Call them.
12155 * passes.def: Move strlen after loop+dom but before vrp.
12157 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12160 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
12161 model family 6 CPU with has_longmode never use a CPU without
12164 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
12167 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
12170 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12172 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
12173 * dominance.c (iterate_fix_dominators): Use hash_map instead of
12175 * hash-map.h: New file.
12176 * ipa-comdats.c: Use hash_map instead of pointer_map.
12178 * lto-section-out.c: Adjust.
12179 * lto-streamer.h: Replace pointer_map with hash_map.
12180 * symtab.c (verify_symtab): Likewise.
12181 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
12182 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
12183 * tree-streamer.h: Likewise.
12184 * tree-streamer.c: Adjust.
12185 * pointer-set.h: Remove pointer_map.
12187 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12189 * hash-table.h: Add a template arg to choose between storing values
12190 and storing pointers to values, and then provide partial
12191 specializations for both.
12192 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
12193 should store, not the type values should point to.
12194 * tree-into-ssa.c (var_info_hasher): Likewise.
12195 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12196 * tree-complex.c: Adjust.
12197 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
12198 table instead of int_tree_map *.
12199 * tree-parloops.c: Adjust.
12200 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
12201 type is being stored.
12202 * tree-vectorizer.c: Adjust.
12204 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
12206 * hash-table.h: Remove a layer of indirection from hash_table so that
12207 it contains the hash table's data instead of a pointer to the data.
12208 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
12209 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
12210 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
12211 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
12212 fold-const.c, gcse.c, ggc-common.c,
12213 gimple-ssa-strength-reduction.c, gimplify.c,
12214 graphite-clast-to-gimple.c, graphite-dependences.c,
12215 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
12216 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
12217 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
12218 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
12219 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
12220 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
12221 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
12222 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
12223 tree-ssa-live.c, tree-ssa-loop-im.c,
12224 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
12225 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
12226 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
12227 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
12228 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
12229 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
12230 vtable-verify.c, vtable-verify.h: Adjust.
12232 2014-06-24 Richard Biener <rguenther@suse.de>
12234 PR tree-optimization/61572
12235 * tree-ssa-sink.c (statement_sink_location): Do not sink
12236 loads from hard registers.
12238 2014-06-24 Jakub Jelinek <jakub@redhat.com>
12240 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
12241 not mentioned in clauses use private clause if the iterator is
12242 declared in #pragma omp for simd, and when adding lastprivate
12243 instead, add it to the outer #pragma omp for too. Diagnose
12244 if the variable is private in outer context. For simd collapse > 1
12245 loops, replace all iterators with temporaries.
12246 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
12247 same even in collapse > 1 loops.
12249 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
12250 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
12252 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
12253 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
12255 (gimplify_adjust_omp_clauses): Likewise.
12256 * omp-low.c (lower_rec_simd_input_clauses,
12257 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
12258 safelen the same as safelen(1).
12259 * tree-nested.c (convert_nonlocal_omp_clauses,
12260 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
12261 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
12262 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
12263 Fixup handling of GIMPLE_OMP_TARGET.
12264 (convert_tramp_reference_stmt, convert_gimple_call): Handle
12267 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
12269 PR tree-optimization/61554
12270 * tree-ssa-propagate.c: Include "bitmap.h".
12271 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
12272 properly update constructor/destructor.
12273 (substitute_and_fold_dom_walker::before_dom_children):
12274 Remove call to gimple_purge_dead_eh_edges, add bb->index to
12275 need_eh_cleaup instead.
12276 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
12279 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
12281 * varpool.c (dump_varpool_node): Dump used_by_single_function.
12282 * tree-pass.h (make_pass_ipa_single_use): New pass.
12283 * cgraph.h (used_by_single_function): New flag.
12284 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
12286 * passes.def (pass_ipa_single_use): Scedule.
12287 * ipa.c (BOTTOM): New macro.
12288 (meet): New function
12289 (propagate_single_user): New function.
12290 (ipa_single_use): New function.
12291 (pass_data_ipa_single_use): New pass.
12292 (pass_ipa_single_use): New pass.
12293 (pass_ipa_single_use::gate): New gate.
12294 (make_pass_ipa_single_use): New function.
12296 2014-06-23 Kai Tietz <ktietz@redhat.com>
12299 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
12300 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
12302 2014-06-23 Richard Biener <rguenther@suse.de>
12304 * tree-ssa-loop.c (gate_loop): New function.
12305 (pass_tree_loop::gate): Call it.
12306 (pass_data_tree_no_loop, pass_tree_no_loop,
12307 make_pass_tree_no_loop): New.
12308 * tree-vectorizer.c: Include tree-scalar-evolution.c
12309 (pass_slp_vectorize::execute): Initialize loops and SCEV if
12311 (pass_slp_vectorize::clone): New method.
12312 * timevar.def (TV_TREE_NOLOOP): New.
12313 * tree-pass.h (make_pass_tree_no_loop): Declare.
12314 * passes.def (pass_tree_no_loop): New pass group with
12317 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
12320 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
12321 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
12323 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
12325 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
12326 "yes" where needed.
12328 2014-06-23 Alan Modra <amodra@gmail.com>
12331 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
12332 to zero on debug statements.
12334 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
12337 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
12338 Ignore third operand if present by marking qualifier_internal.
12340 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
12342 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
12344 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
12345 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
12346 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
12347 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
12348 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
12349 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
12350 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
12351 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
12352 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
12353 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
12354 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
12355 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
12356 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
12357 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
12358 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
12359 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
12360 logic in GCC vector extensions
12362 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
12363 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
12364 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
12365 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
12366 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
12367 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
12368 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
12369 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
12370 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
12371 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
12373 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
12375 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
12378 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
12379 (vget_low_s64): Use __GET_LOW macro.
12380 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
12381 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
12382 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
12383 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
12384 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
12386 (vcombine_s64): Use GCC vector extensions; remove cast.
12387 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
12388 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
12389 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
12390 Fix type signature; remove cast.
12392 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
12395 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
12397 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
12399 (BUILTIN_VD1): New.
12400 (BUILTIN_VD_RE): Remove.
12401 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
12402 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
12403 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
12404 variant but not df.
12405 (vreinterpretv1df*, vreinterpret*v1df): New.
12406 (vreinterpretdf*, vreinterpret*df): Remove.
12407 * config/aarch64/aarch64-simd.md (aarch64_create,
12408 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
12409 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
12411 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
12412 (vcreate_f64): Remove cast, use v1df builtin.
12413 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
12414 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
12415 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
12416 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
12417 vmov_n_f64, vst1_f64): Use gcc vector extensions.
12418 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
12419 add range check using __builtin_aarch64_im_lane_boundsi.
12420 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
12421 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
12422 type signature, use gcc vector extensions.
12423 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
12424 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
12425 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
12426 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
12427 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
12428 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
12429 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
12430 vreinterpret_u64_f64): Use v1df builtin not df.
12432 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
12434 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
12437 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
12439 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
12442 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12444 * loop-invariant.c (pre_check_invariant_p): New function.
12445 (find_invariant_insn): Call pre_check_invariant_p.
12447 2014-06-22 Richard Henderson <rth@redhat.com>
12450 * compare-elim.c (struct comparison): Add eh_note.
12451 (find_comparison_dom_walker::before_dom_children): Don't eliminate
12452 a redundant comparison in a different EH region. Purge EH edges if
12455 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12457 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
12458 (var_shift): Use it.
12459 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
12460 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
12461 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
12462 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
12463 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
12464 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
12465 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
12466 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
12467 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
12468 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
12469 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
12470 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
12471 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
12472 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
12473 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
12474 *rotldi3_internal15be): Use the new attribute. Merge register and
12475 integer alternatives.
12477 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12479 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
12480 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
12481 split, *ashrdi3_internal3 and split): Delete, merge into...
12482 (ashr<mode>3): New expander.
12483 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
12484 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
12486 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12488 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
12489 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
12490 *rotldi3_internal3 and split): Delete, merge into...
12491 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
12492 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
12493 Use "rotlw" extended mnemonic.
12495 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12497 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
12498 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
12499 and split, *ashldi3_internal3 and split): Delete, merge into...
12500 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
12501 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
12503 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12505 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
12506 (lshrsi3, two anonymous define_insns and define_splits,
12507 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
12508 *lshrdi3_internal3 and split): Delete, merge into...
12509 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
12510 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
12512 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12514 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
12515 Remove "O" alternative.
12517 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
12519 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
12520 (mips_move_from_gpr_cost): Likewise.
12521 (mips_register_move_cost): Update accordingly.
12522 (mips_secondary_reload_class): Remove name of in_p.
12524 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
12527 * config/i386/i386.md (x86_64_shrd, x86_shrd,
12528 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
12530 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12532 * config/nios2/nios2.c: Include "builtins.h".
12534 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12536 * cgraph.h (tls_model_names): New variable.
12537 * print-tree.c (print_node): Simplify.
12538 * varpool.c (tls_model_names): New variable.
12539 (dump_varpool_node): Output tls model.
12541 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12543 * ipa-visibility.c (function_and_variable_visibility): Disable
12544 temporarily local aliases for some targets.
12546 2014-06-20 Marek Polacek <polacek@redhat.com>
12548 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
12549 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
12550 into SANITIZE_UNDEFINED.
12551 * doc/invoke.texi: Describe -fsanitize=bounds.
12552 * gimplify.c (gimplify_call_expr): Add gimplification of internal
12553 functions created in the FEs.
12554 * internal-fn.c: Move "internal-fn.h" after "tree.h".
12555 (expand_UBSAN_BOUNDS): New function.
12556 * internal-fn.def (UBSAN_BOUNDS): New internal function.
12557 * internal-fn.h: Don't define internal functions here.
12558 * opts.c (common_handle_option): Add -fsanitize=bounds.
12559 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
12560 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
12561 * tree-core.h: Define internal functions here.
12562 (struct tree_base): Add ifn field.
12563 * tree-pretty-print.c: Include "internal-fn.h".
12564 (dump_generic_node): Handle functions without CALL_EXPR_FN.
12565 * tree.c (get_callee_fndecl): Likewise.
12566 (build_call_expr_internal_loc): New function.
12567 * tree.def (CALL_EXPR): Update description.
12568 * tree.h (CALL_EXPR_IFN): Define.
12569 (build_call_expr_internal_loc): Declare.
12570 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
12572 (ubsan_type_descriptor): Change bool parameter to enum
12573 ubsan_print_style. Adjust the code. Add handling of
12575 (ubsan_expand_bounds_ifn): New function.
12576 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
12577 (ubsan_build_overflow_builtin): Likewise.
12578 (instrument_bool_enum_load): Likewise.
12579 (ubsan_instrument_float_cast): Likewise.
12580 * ubsan.h (enum ubsan_print_style): New enum.
12581 (ubsan_expand_bounds_ifn): Declare.
12582 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
12584 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
12586 * config/rs6000/rs6000.md: Append `DONE' to preparation
12587 statements of `bswap' pattern splitters.
12589 2014-06-20 Tom de Vries <tom@codesourcery.com>
12591 * target.def (call_fusage_contains_non_callee_clobbers): Update
12593 * doc/tm.texi: Regenerate.
12595 2014-06-20 Yury Gribov <y.gribov@samsung.com>
12596 Max Ostapenko <m.ostapenko@partner.samsung.com>
12599 * asan.c (instrument_strlen_call): Fixed instrumentation of
12602 2014-06-20 Martin Jambor <mjambor@suse.cz>
12605 * ipa-prop.c (impossible_devirt_target): New function.
12606 (try_make_edge_direct_virtual_call): Use it, also instead of
12609 2014-06-20 Yury Gribov <y.gribov@samsung.com>
12610 Max Ostapenko <m.ostapenko@partner.samsung.com>
12613 * asan.c (build_check_stmt): Add condition.
12615 2014-06-20 Martin Jambor <mjambor@suse.cz>
12618 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
12621 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12623 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
12625 (VCONQ): Make comment more helpful.
12627 * config/aarch64/aarch64-simd.md
12628 (aarch64_sqdmulh_lane<mode>):
12629 Use VCOND for operands 2. Update lane checking and flipping logic.
12630 (aarch64_sqrdmulh_lane<mode>): Likewise.
12631 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
12632 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
12633 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
12634 attribute of operand 3 to VCOND.
12635 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
12636 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12637 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
12638 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
12639 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12640 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
12642 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
12643 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
12644 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
12645 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
12646 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
12647 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
12648 operand to VCOND. Update lane flipping and bounds checking logic.
12649 (aarch64_sqdmlal2_lane<mode>): Likewise.
12650 (aarch64_sqdmlsl_lane<mode>): Likewise.
12651 (aarch64_sqdmull_lane<mode>): Likewise.
12652 (aarch64_sqdmull2_lane<mode>): Likewise.
12653 (aarch64_sqdmlal_laneq<mode>):
12654 Replace VCON usage with VCONQ.
12655 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
12656 (aarch64_sqdmlal2_laneq<mode>): Emit
12657 aarch64_sqdmlal2_laneq<mode>_internal insn.
12658 Replace VCON with VCONQ.
12659 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
12660 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12661 (aarch64_sqdmull_laneq<mode>): Emit
12662 aarch64_sqdmull_laneq<mode>_internal insn.
12663 Replace VCON with VCONQ.
12664 (aarch64_sqdmull2_laneq<mode>): Emit
12665 aarch64_sqdmull2_laneq<mode>_internal insn.
12666 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
12667 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
12668 of 3rd argument to int16x4_t.
12669 (vqdmlalh_lane_s16): Likewise.
12670 (vqdmlslh_lane_s16): Likewise.
12671 (vqdmull_high_lane_s16): Likewise.
12672 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
12673 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
12674 (vqdmlsl_lane_s16): Likewise.
12675 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
12676 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
12677 (vqdmlals_lane_s32): Likewise.
12678 (vqdmlsls_lane_s32): Likewise.
12679 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
12680 (vqdmulls_lane_s32): Likewise.
12681 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
12682 (vqdmlsl_lane_s32): Likewise.
12683 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
12684 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
12685 (vqrdmulhh_lane_s16): Likewise.
12686 (vqdmlsl_high_lane_s16): Likewise.
12687 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
12688 (vqdmlsl_high_lane_s32): Likewise.
12689 (vqrdmulhs_lane_s32): Likewise.
12691 2014-06-20 Tom de Vries <tom@codesourcery.com>
12693 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
12694 get_call_reg_set_usage.
12696 2014-06-20 Tom de Vries <tom@codesourcery.com>
12698 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
12699 it contains all call_used_regs.
12701 2014-06-20 Tom de Vries <tom@codesourcery.com>
12703 * final.c (collect_fn_hard_reg_usage): Add and use variable
12704 function_used_regs.
12706 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12708 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
12709 (set_init_priority, get_init_priority, set_fini_priority,
12710 get_fini_priority): New methods.
12711 * tree.c (init_priority_for_decl): Remove.
12712 (init_ttree): Do not initialize init priority.
12713 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
12714 (decl_priority_info): Remove.
12715 (decl_init_priority_insert): Rewrite.
12716 (decl_fini_priority_insert): Rewrite.
12717 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
12718 tree_priority_map_marked_p): Remove.
12719 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
12720 * lto-streamer-out.c (hash_tree): Do not hash priorities.
12721 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
12722 not output priorities.
12723 (pack_ts_function_decl_value_fields): Likewise.
12724 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12725 not input priorities.
12726 (unpack_ts_function_decl_value_fields): Likewise.
12727 * symtab.c (symbol_priority_map): Declare.
12728 (init_priority_hash): Declare.
12729 (symtab_unregister_node): Unregister from priority hash, too.
12730 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
12732 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
12733 (symbol_priority_info): New function.
12734 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
12736 * tree-core.h (tree_priority_map): Remove.
12738 2014-06-20 Jakub Jelinek <jakub@redhat.com>
12740 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
12741 0xff to uint64_t before shifting it up.
12743 2014-06-20 Julian Brown <julian@codesourcery.com>
12744 Chung-Lin Tang <cltang@codesourcery.com>
12746 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
12747 TARGET_THUMB1_ONLY. Add comments.
12749 2014-06-19 Tom de Vries <tom@codesourcery.com>
12751 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
12752 return type to void.
12753 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
12755 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12757 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
12758 as "move", from depends_on.
12760 2014-06-19 Terry Guo <terry.guo@arm.com>
12762 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
12765 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12767 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
12769 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
12771 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
12774 * config/sh/sh.c (prepare_move_operands): Don't process TLS
12775 addresses here if reload in progress or completed.
12777 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
12779 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
12780 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
12781 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
12782 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
12783 (mips_register_priority): New function that implements the target
12784 hook TARGET_REGISTER_PRIORITY.
12785 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
12786 (mips_lra_p): Likewise for TARGET_LRA_P.
12787 (TARGET_REGISTER_PRIORITY): Define macro.
12788 (TARGET_SPILL_CLASS): Likewise.
12789 (TARGET_LRA_P): Likewise.
12790 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
12792 (REG_CLASS_NAMES): Likewise.
12793 (REG_CLASS_CONTENTS): Likewise.
12794 (BASE_REG_CLASS): Use M16_SP_REGS.
12795 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
12796 New set attribute to enable alternatives depending on the register
12798 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
12799 (*lea64): Disable pattern for MIPS16.
12800 * config/mips/mips.opt (mlra): New option.
12802 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
12804 * lra-constraints.c (base_to_reg): New function.
12805 (process_address): Use new function.
12807 2014-06-18 Tom de Vries <tom@codesourcery.com>
12809 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
12810 * config/aarch64/aarch64.c
12811 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
12812 (aarch64_emit_call_insn): New function.
12813 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
12815 * config/aarch64/aarch64.md (define_expand "call_internal")
12816 (define_expand "call_value_internal", define_expand "sibcall_internal")
12817 (define_expand "sibcall_value_internal"): New.
12818 (define_expand "call", define_expand "call_value")
12819 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
12820 expand variant and aarch64_emit_call_insn.
12822 2014-06-18 Radovan Obradovic <robradovic@mips.com>
12823 Tom de Vries <tom@codesourcery.com>
12825 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
12826 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
12828 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
12829 clobbers to CALL_INSN_FUNCTION_USAGE.
12830 (define_expand "sibcall_internal")
12831 (define_expand "sibcall_value_internal"): New.
12832 (define_expand "call", define_expand "call_value"): Add argument to
12833 arm_emit_call_insn.
12834 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
12835 (define_expand "sibcall_value"): Use sibcall_value_internal and
12836 arm_emit_call_insn.
12838 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12840 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
12842 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12844 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
12847 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12849 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
12850 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
12851 annotations. Fix DWARF information.
12853 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12855 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
12856 __udivmoddi4, and fixups for negative operands.
12858 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12860 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
12862 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12864 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
12867 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12869 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
12872 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12874 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
12875 describing register usage on function entry and exit.
12877 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12879 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
12880 (__aeabi_ldivmod): Fix whitespace.
12882 2014-06-18 Andreas Schwab <schwab@suse.de>
12884 * doc/md.texi (Standard Names): Use @itemx for grouped items.
12885 Remove blank line after @item.
12887 2014-06-18 Richard Henderson <rth@redhat.com>
12890 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
12892 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12894 * config/arm/arm.c (neon_vector_mem_operand): Allow register
12895 POST_MODIFY for neon loads and stores.
12896 (arm_print_operand): Output post-index register for neon loads and
12899 2014-06-18 Richard Biener <rguenther@suse.de>
12901 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
12903 2014-06-18 Richard Biener <rguenther@suse.de>
12905 * tree-pass.h (make_pass_dce_loop): Remove.
12906 * passes.def: Replace pass_dce_loop with pass_dce.
12907 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
12908 changed free niter estimates and reset the scev cache.
12909 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
12910 make_pass_dce_loop): Remove.
12911 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
12912 (fini_copy_prop): Return whether something changed. Always
12913 let substitute_and_fold perform DCE and free niter estimates
12914 and reset the scev cache if so.
12915 (execute_copy_prop): If sth changed schedule cleanup-cfg.
12916 (pass_data_copy_prop): Do not unconditionally schedule
12917 cleanup-cfg or update-ssa.
12919 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12921 PR tree-optimization/61518
12922 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12923 reduction var is used in reduction stmt or phi-function only.
12925 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12927 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
12929 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12931 PR tree-optimization/61517
12932 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
12933 whose rhs's first tree is the source expression instead of the
12935 (find_bswap_or_nop): Likewise.
12936 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
12937 gimple stmt whose rhs's first tree is the source. In the memory source
12938 case, move the stmt to be replaced close to one of the original load to
12939 avoid the problem of a store between the load and the stmt's original
12941 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
12944 2014-06-18 Andreas Schwab <schwab@suse.de>
12946 PR rtl-optimization/54555
12947 * postreload.c (move2add_use_add2_insn): Substitute
12948 STRICT_LOW_PART only if it is cheaper.
12950 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
12952 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
12953 Do not use unspec as call operand. Use memory_operand instead of
12954 memory_nox32_operand and add "m" operand constraint. Disable
12955 pattern for TARGET_X32.
12956 (*sibcall_pop_memory): Ditto.
12957 (*sibcall_value_memory): Ditto.
12958 (*sibcall_value_pop_memory): Ditto.
12959 (sibcall peepholes): Merge SImode and DImode patterns using
12960 W mode iterator. Use memory_operand instead of memory_nox32_operand.
12961 Disable pattern for TARGET_X32. Check if eliminated register is
12962 really dead after call insn. Generate call RTX without unspec operand.
12963 (sibcall_value peepholes): Ditto.
12964 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
12965 instead of memory_nox32_operand. Check if eliminated register is
12966 really dead after call insn. Generate call RTX without unspec operand.
12967 (sibcall_value_pop peepholes): Ditto.
12968 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
12970 2014-06-18 Terry Guo <terry.guo@arm.com>
12973 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
12976 2014-06-18 Olivier Hainque <hainque@adacore.com>
12978 * tree-core.h (tree_block): Add an "end_locus" field, allowing
12979 memorization of the end of block source location.
12980 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
12981 * gimplify.c (gimplify_bind_expr): Propagate the block start and
12982 end source location info we have on the block entry/exit code we
12985 2014-06-18 Richard Biener <rguenther@suse.de>
12987 * common.opt (fssa-phiopt): New option.
12988 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
12990 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
12991 * doc/invoke.texi (-fssa-phiopt): Document.
12993 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12995 * genattrtab.c (n_bypassed): New variable.
12996 (process_bypasses): Initialise n_bypassed.
12997 Count number of bypassed reservations.
12998 (make_automaton_attrs): Allocate space for bypassed reservations
12999 rather than number of bypasses.
13001 2014-06-18 Richard Biener <rguenther@suse.de>
13003 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13004 we propagated anything.
13005 (substitute_and_fold_dom_walker::before_dom_children): Something
13006 changed if we propagated into PHI arguments.
13007 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13010 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
13012 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13014 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13015 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13016 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13017 Introduces alternative way of loads group permutaions.
13018 (vect_transform_grouped_load): Try alternative way of permutations.
13020 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13022 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13023 changed in ORT_TARGET region, don't jump to do_outer.
13024 (struct gimplify_adjust_omp_clauses_data): New type.
13025 (gimplify_adjust_omp_clauses_1): Adjust for data being
13026 a struct gimplify_adjust_omp_clauses_data pointer instead
13027 of tree *. Pass pre_p as a new argument to
13028 lang_hooks.decls.omp_finish_clause hook.
13029 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13030 splay_tree_foreach to pass both list_p and pre_p.
13031 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13032 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13033 gimplify_adjust_omp_clauses callers.
13034 * langhooks.c (lhd_omp_finish_clause): New function.
13035 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13036 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13037 * langhooks.h (struct lang_hooks_for_decls): Add a new
13038 gimple_seq * argument to omp_finish_clause hook.
13039 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13040 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13041 (scan_omp_parallel, lower_omp_for): When adding
13042 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13043 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13044 * tree-nested.c (convert_nonlocal_omp_clauses,
13045 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13046 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13048 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
13050 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13051 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13053 2014-06-17 Xinliang David Li <davidxl@google.com>
13055 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13056 * passes.c (pass_init_dump_file): Do not set initialize
13057 flag to false unconditionally.
13059 2014-06-17 Richard Biener <rguenther@suse.de>
13061 * genopinit.c (main): Use vec<>::qsort method.
13062 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13064 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13066 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
13068 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13069 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
13070 (mips_move_to_gpr_cost): Remove ST_REGS case.
13071 (mips_move_from_gpr_cost): Likewise.
13072 (mips_register_move_cost): Likewise.
13073 (mips_secondary_reload_class): Likewise.
13075 2014-06-17 Richard Biener <rguenther@suse.de>
13077 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
13078 (pass_all_optimizations): Move 3rd copy-prop pass from after
13079 fre to before ifcombine/phiopt.
13081 2014-06-17 Richard Biener <rguenther@suse.de>
13083 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
13084 and allow all blocks to be forwarders.
13086 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
13089 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
13090 variable 'size'; calculate 'size' right in the front; use
13091 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
13092 pcum->aapcs_stack_words.
13094 2014-06-17 Nick Clifton <nickc@redhat.com>
13096 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
13097 (umulhi3, mulsidi3, umulsidi3): Likewise.
13099 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
13101 PR middle-end/61508
13102 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
13103 check for section name.
13105 2014-06-17 Richard Biener <rguenther@suse.de>
13107 * tree-ssa-propagate.c: Include domwalk.h.
13108 (substitute_and_fold): Outline main worker into a domwalker ...
13109 (substitute_and_fold_dom_walker::before_dom_children): ... here.
13110 Schedule stmts we can fully propagate for removal. Remove
13112 (substitute_and_fold): Apply a dominator walk to perform
13113 substitution. Process stmts scheduled for removal here.
13115 2014-06-17 Richard Biener <rguenther@suse.de>
13117 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
13118 of PHI node moving.
13120 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13122 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
13123 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
13124 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13125 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
13126 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
13128 (get_fpscr) : Likewise.
13130 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13132 PR rtl-optimization/61325
13133 * lra-constraints.c (valid_address_p): Add forward declaration.
13134 (simplify_operand_subreg): Check address validity before and after
13135 alter_reg of memory subreg.
13137 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
13139 * config/i386/i386.c (decide_alg): Correctly handle
13140 maximum size of stringop algorithm.
13142 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13144 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
13146 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
13148 PR rtl-optimization/61522
13149 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
13151 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
13154 * symtab.c (symtab_node::reset_section): New method.
13155 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13157 * cgraph.h (reset_section): Declare.
13158 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13159 do not consider comdat locals.
13160 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13162 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13163 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13164 reset sections of symbols dragged out of the comdats.
13165 (function_and_variable_visibility): Reset sections of
13168 2014-06-16 Richard Biener <rguenther@suse.de>
13170 PR tree-optimization/61482
13171 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
13172 [-INF(OVF), +INF(OVF)] range.
13174 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13176 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
13177 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
13178 handling 32-bit multiplication.
13180 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
13182 PR middle-end/61430
13183 * lra-lives.c (process_bb_lives): Skip creating copy during
13184 insn scan when src/dest has constrained to same regno.
13186 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13188 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
13189 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
13191 2014-06-16 Yury Gribov <y.gribov@samsung.com>
13193 * asan.c (check_func): New function.
13194 (maybe_create_ssa_name): Likewise.
13195 (build_check_stmt_with_calls): Likewise.
13196 (use_calls_p): Likewise.
13197 (report_error_func): Change interface.
13198 (build_check_stmt): Allow non-integer lengths; add support
13200 (asan_instrument): Likewise.
13201 (instrument_mem_region_access): Moved code to build_check_stmt.
13202 (instrument_derefs): Likewise.
13203 (instrument_strlen_call): Likewise.
13204 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
13205 * doc/invoke.texi: Describe new parameter.
13206 * params.def: Define new parameter.
13207 * params.h: Likewise.
13208 * sanitizer.def: Describe new builtins.
13210 2014-06-16 Richard Biener <rguenther@suse.de>
13212 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13213 Make all defs available at the end.
13214 (eliminate): If we remove a PHI node schedule cfg-cleanup.
13216 2014-06-18 Jakub Jelinek <jakub@redhat.com>
13219 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
13221 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
13224 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
13225 initialization. Replace remaining use of uid.
13227 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
13229 * c-family/c-common.c (handle_tls_model_attribute): Use
13230 set_decl_tls_model.
13231 * c-family/c-common.c (handle_tls_model_attribute): Use
13232 set_decl_tls_model.
13233 * cgraph.h (struct varpool_node): Add tls_model.
13234 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
13235 * tree.h (DECL_TLS_MODEL): Update.
13236 (DECL_THREAD_LOCAL_P): Check that variable is static.
13237 (decl_tls_model): Declare.
13238 (set_decl_tls_model): Declare.
13239 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
13240 set symbol prorperties.
13241 (get_emutls_init_templ_addr): Cleanup.
13242 (new_emutls_decl): Update.
13243 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
13244 (lto_input_varpool_node): Likewise.
13245 * lto-streamer-out.c (hash_tree): Likewise.
13246 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13247 not stream DECL_TLS_MODEL.
13248 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
13249 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
13251 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13253 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
13255 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13257 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
13258 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
13260 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
13261 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
13262 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
13263 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
13264 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
13265 (df_get_artificial_defs, df_get_artificial_uses)
13266 (df_single_def, df_single_use): Update accordingly.
13267 (df_refs_chain_dump): Take the first element in a linked list as
13268 parameter, rather than a pointer to an array of pointers.
13269 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
13270 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
13271 (df_chain_create_bb_process_use): Likewise.
13272 (df_md_bb_local_compute_process_def): Likewise.
13273 * fwprop.c (process_defs, process_uses): Likewise.
13274 (register_active_defs, update_uses): Likewise.
13275 (forward_propagate_asm): Update for new df_ref linking.
13276 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
13277 (df_null_ref_rec, df_null_mw_rec): Likewise.
13278 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
13280 (df_scan_free_bb_info): Remove check for null artificial_defs.
13281 (df_install_ref_incremental): Adjust for new df_ref linking.
13282 Use a single-element insertion rather than a full sort.
13283 (df_ref_chain_delete_du_chain): Take the first element
13284 in a linked list as parameter, rather than a pointer to an array of
13286 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
13287 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
13288 (df_insn_info_delete): Remove check for null defs and call to
13289 df_scan_free_mws_vec.
13290 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
13291 null rather than df_null_*_rec.
13292 (df_insn_rescan_debug_internal): Likewise, and update null
13293 checks in the same way. Remove check for null defs.
13294 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
13295 Move a single element rather doing a full sort.
13296 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
13298 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
13299 Initialize df_ref and df_mw_hardreg lists to null rather than
13301 (df_ref_compare): Take df_refs as parameter, transferring the
13302 old interface to...
13303 (df_ref_ptr_compare): ...this new function.
13304 (df_sort_and_compress_refs): Update accordingly.
13305 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
13306 old interface to...
13307 (df_mw_ptr_compare): ...this new function.
13308 (df_sort_and_compress_mws): Update accordingly.
13309 (df_install_refs, df_install_mws): Return a linked list rather than
13310 an array of pointers.
13311 (df_refs_add_to_chains): Assert that old lists are empty rather
13313 (df_insn_refs_verify): Don't handle null defs speciailly.
13314 * web.c (union_match_dups): Update for new df_ref linking.
13316 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13318 * df.h (df_ref_create, df_ref_remove): Delete.
13319 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
13320 (df_ref_remove): Likewise.
13322 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13324 * df.h (df_single_def, df_single_use): New functions.
13325 * ira.c (find_moveable_pseudos): Use them.
13327 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13329 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
13330 * df-problems.c (df_note_bb_compute): Use it.
13331 * regstat.c (regstat_bb_compute_ri): Likewise.
13333 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13335 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
13336 * cse.c (cse_extended_basic_block): Use them.
13337 * dce.c (mark_artificial_use): Likewise.
13338 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
13339 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13340 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
13341 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
13342 (df_simulate_initialize_backwards): Likewise.
13343 (df_simulate_finalize_backwards): Likewise.
13344 (df_simulate_initialize_forwards): Likewise.
13345 (df_md_simulate_artificial_defs_at_top): Likewise.
13346 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13347 * regrename.c (init_rename_info): Likewise.
13348 * regstat.c (regstat_bb_compute_ri): Likewise.
13349 (regstat_bb_compute_calls_crossed): Likewise.
13351 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
13353 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
13354 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
13355 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
13356 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
13357 * combine.c (create_log_links): Likewise.
13358 * compare-elim.c (find_flags_uses_in_insn): Likewise.
13359 (try_eliminate_compare): Likewise.
13360 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
13361 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
13362 (remove_reg_equal_equiv_notes_for_defs): Likewise.
13363 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
13364 (word_dce_process_block, dce_process_block): Likewise.
13365 * ddg.c (def_has_ccmode_p): Likewise.
13366 * df-core.c (df_bb_regno_first_def_find): Likewise.
13367 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
13368 * df-problems.c (df_rd_simulate_one_insn): Likewise.
13369 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13370 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
13371 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
13372 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
13373 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
13374 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
13375 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
13376 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
13377 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13378 * fwprop.c (local_ref_killed_between_p): Likewise.
13379 (all_uses_available_at, free_load_extend): Likewise.
13380 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
13381 * hw-doloop.c (scan_loop): Likewise.
13382 * ifcvt.c (dead_or_predicable): Likewise.
13383 * init-regs.c (initialize_uninitialized_regs): Likewise.
13384 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
13385 (process_bb_node_lives): Likewise.
13386 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
13387 (find_moveable_pseudos): Likewise.
13388 * loop-invariant.c (check_dependencies, record_uses): Likewise.
13389 * recog.c (peep2_find_free_register): Likewise.
13390 * ree.c (get_defs): Likewise.
13391 * regstat.c (regstat_bb_compute_ri): Likewise.
13392 (regstat_bb_compute_calls_crossed): Likewise.
13393 * sched-deps.c (find_inc, find_mem): Likewise.
13394 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
13395 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
13396 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13397 (prepare_shrink_wrap): Likewise.
13398 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
13399 * web.c (union_defs, pass_web::execute): Likewise.
13400 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
13401 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
13403 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
13405 * lra-assign.c (assign_by_spills): Add code to assign vector regs
13406 to inheritance pseudos.
13407 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
13409 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
13412 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
13413 (BU_MISC_2): Rename to ...
13414 (BU_LDBL128_2): ... this.
13415 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
13416 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
13417 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13418 RS6000_BTM_LDBL128.
13419 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
13420 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
13421 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
13422 (unpacktf_1): Likewise.
13423 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
13424 (__builtin_longdouble_dw1): Likewise.
13425 * doc/sourcebuild.texi (longdouble128): Document.
13427 2014-06-13 Jeff Law <law@redhat.com>
13429 PR rtl-optimization/61094
13430 PR rtl-optimization/61446
13431 * ree.c (combine_reaching_defs): Get the mode for the copy from
13432 the extension insn rather than the defining insn.
13434 2014-06-13 Dehao Chen <dehao@google.com>
13436 * dwarf2out.c (add_linkage_name): Emit more linkage name.
13438 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
13440 * doc/install.texi (--enable-linker-plugin-configure-flags)
13441 (--enable-linker-plugin-flags): Document new flags.
13443 2014-06-13 Martin Jambor <mjambor@suse.cz>
13446 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
13447 cache_token if returning early.
13449 2014-06-13 Nick Clifton <nickc@redhat.com>
13451 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
13452 requested alignment is active.
13453 (LABEL_ALIGN): Likewise.
13454 (LOOP_ALIGN): Likewise.
13456 2014-06-13 Richard Biener <rguenther@suse.de>
13458 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13459 Rewrite to propagate the VN result into all uses where
13460 possible and to remove stmts becoming dead because of that.
13461 (eliminate): Generalize stmt removal handling, remove in
13462 reverse dominator order to support proper debug stmt
13463 generation. Update stmts before removing stmts.
13464 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
13466 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13468 PR tree-optimization/61375
13469 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
13470 symbolic number cannot be represented in an uint64_t.
13471 (find_bswap_or_nop_1): Likewise.
13473 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
13475 * symtab.c (symtab_node::reset_section): New method.
13476 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13478 * cgraph.h (reset_section): Declare.
13479 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13480 do not consider comdat locals.
13481 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13483 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13484 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13485 reset sections of symbols dragged out of the comdats.
13486 (function_and_variable_visibility): Reset sections of
13489 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
13491 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
13492 to use symtab and decl_binds_to_current_def_p
13493 * tree-vectorizer.c (increase_alignment): Increase alignment
13494 of alias target, too.
13496 2014-06-12 Jakub Jelinek <jakub@redhat.com>
13498 PR middle-end/61486
13499 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
13500 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
13501 if outer combined construct is distribute.
13502 (gimplify_omp_for): For OMP_DISTRIBUTE set
13503 gimplify_omp_ctxp->distribute.
13504 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
13505 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
13506 mapping into decl map.
13508 2014-06-12 Jason Merrill <jason@redhat.com>
13510 * common.opt (fabi-version): Change default to 0.
13512 2014-06-12 Jason Merrill <jason@redhat.com>
13514 * toplev.c (process_options): Reject -fabi-version=1.
13516 2014-06-12 Jeff Law <law@redhat.com>
13518 PR tree-optimization/61009
13519 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
13520 value when we stop processing a block due to problematic PHIs.
13522 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
13524 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
13525 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
13526 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
13527 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
13528 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
13529 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
13530 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
13531 are not in the spec.
13533 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
13536 * config/aarch64/aarch64-modes.def: Add V1DFmode.
13537 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
13540 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
13542 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
13544 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
13547 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
13548 loading from address spaces.
13550 2014-06-12 Martin Liska <mliska@suse.cz>
13553 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
13554 statement is reachable.
13556 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
13558 * symtab.c (section_hash): New hash.
13559 (symtab_unregister_node): Clear section before freeing.
13560 (hash_section_hash_entry): New haser.
13561 (eq_sections): New function.
13562 (symtab_node::set_section_for_node): New method.
13563 (set_section_1): Update.
13564 (symtab_node::set_section): Take string instead of tree as parameter.
13565 (symtab_resolve_alias): Update.
13566 * cgraph.h (section_hash_entry_d): New structure.
13567 (section_hash_entry): New typedef.
13568 (cgraph_node): Change comdat_group_ to x_comdat_group,
13569 change section_ to x_section and turn into section_hash_entry;
13570 update accestors; put set_section_for_node offline.
13571 * tree.c (decl_section_name): Turn into string.
13572 (set_decl_section_name): Change parameter to be string.
13573 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
13574 * sdbout.c (sdbout_one_type): Update.
13575 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
13576 * varasm.c (IN_NAMED_SECTION, get_named_section,
13577 resolve_unique_section, hot_function_section, get_named_text_section,
13578 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
13579 make_decl_rtl, default_unique_section): Update.
13580 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
13581 (c6x_elf_unique_section): Update.
13582 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
13583 * config/pa/pa.c (pa_function_section): Update.
13584 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
13585 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
13586 * config/arc/arc.c (arc_in_small_data_p): Update.
13587 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
13588 * config/mcore/mcore.c (mcore_unique_section): Update.
13589 * config/mips/mips.c (mips16_build_function_stub): Update.
13590 (mips16_build_call_stub): Update.
13591 (mips_function_rodata_section): Update.
13592 (mips_in_small_data_p): Update.
13593 * config/score/score.c (score_in_small_data_p): Update.
13594 * config/rx/rx.c (rx_in_small_data): Update.
13595 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
13596 (rs6000_xcoff_asm_named_section): Update.
13597 (rs6000_xcoff_unique_section): Update.
13598 * config/frv/frv.c (frv_string_begins_with): Update.
13599 (frv_in_small_data_p): Update.
13600 * config/v850/v850.c (v850_encode_data_area): Update.
13601 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
13602 (bfin_handle_l1_data_attribute): Update.
13603 (bfin_handle_l2_attribute): Update.
13604 * config/mep/mep.c (mep_unique_section): Update.
13605 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
13607 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
13608 (h8300_handle_tiny_data_attribute): Update.
13609 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
13610 (m32r_in_small_data_p): Update.
13611 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
13612 * config/i386/i386.c (ix86_in_large_data_p): Update.
13613 * config/i386/winnt.c (i386_pe_unique_section): Update.
13614 * config/darwin.c (darwin_function_section): Update.
13615 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
13616 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13617 (new_emutls_decl): Update.
13618 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
13619 input_varpool_node): Update.
13620 (ead_string_cst): Turn to ...
13621 (read_string): ... this one.
13622 * dwarf2out.c (secname_for_decl): Update.
13623 * asan.c (asan_protect_global): Update.
13625 2014-06-11 DJ Delorie <dj@redhat.com>
13627 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
13629 * config/rx/rx.c (rx_option_override): Likewise.
13630 (rx_align_for_label): Likewise.
13632 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
13634 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
13636 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
13639 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13641 * common.md: New file.
13642 * doc/md.texi: Update description of generic, machine-independent
13644 * config/s390/constraints.md (e): Delete.
13645 * Makefile.in (md_file): Include common.md.
13646 * config/m32c/t-m32c (md_file): Likewise.
13647 * genpreds.c (general_mem): New array.
13648 (generic_constraint_letters): Remove constraints now defined by
13650 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13651 Allow the first character to be '<' or '>' as well.
13652 * genoutput.c (general_mem): New array.
13653 (indep_constraints): Remove constraints now defined by common.md.
13654 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13655 Remove special handling of 'm'.
13656 * ira-costs.c (record_reg_classes): Remove special handling of
13657 constraints now defined by common.md.
13658 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13659 * ira-lives.c (single_reg_class): Likewise.
13660 (ira_implicitly_set_insn_hard_regs): Likewise.
13661 * lra-constraints.c (reg_class_from_constraints): Likewise.
13662 (process_alt_operands, process_address, curr_insn_transform): Likewise.
13663 * postreload.c (reload_cse_simplify_operands): Likewise.
13664 * reload.c (push_secondary_reload, scratch_reload_class)
13665 (find_reloads, alternative_allows_const_pool_ref): Likewise.
13666 * reload1.c (maybe_fix_stack_asms): Likewise.
13667 * targhooks.c (default_secondary_reload): Likewise.
13668 * stmt.c (parse_output_constraint): Likewise.
13669 * recog.c (preprocess_constraints): Likewise.
13670 (constrain_operands, peep2_find_free_register): Likewise.
13671 (asm_operand_ok): Likewise, but add a comment saying why 'o'
13672 must be handled specially.
13674 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13676 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
13677 * genpreds.c (have_const_dbl_constraints): Delete.
13678 (add_constraint): Don't set it.
13679 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
13680 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
13681 constraints using the lookup_constraint logic.
13682 * ira-lives.c (single_reg_class): Likewise.
13683 * ira.c (ira_setup_alts): Likewise.
13684 * lra-constraints.c (process_alt_operands): Likewise.
13685 * recog.c (asm_operand_ok, constrain_operands): Likewise.
13686 * reload.c (find_reloads): Likewise.
13688 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13690 * genpreds.c (const_int_start, const_int_end): New variables.
13691 (choose_enum_order): Output CONST_INT constraints before memory
13693 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
13695 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
13696 * ira.c (ira_setup_alts): Likewise.
13697 * lra-constraints.c (process_alt_operands): Likewise.
13698 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13699 * reload.c (find_reloads): Likewise.
13701 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13703 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
13704 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
13705 * recog.c (preprocess_constraints): Update accordingly.
13707 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13709 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
13710 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
13711 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
13712 * genpreds.c (print_type_tree): New function.
13713 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
13714 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
13715 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
13716 Write out enum constraint_type and get_constraint_type.
13717 * lra-constraints.c (satisfies_memory_constraint_p): Take a
13718 constraint_num rather than a constraint string.
13719 (satisfies_address_constraint_p): Likewise.
13720 (reg_class_from_constraints): Avoid old constraint macros.
13721 (process_alt_operands, process_address_1): Likewise.
13722 (curr_insn_transform): Likewise.
13723 * ira-costs.c (record_reg_classes): Likewise.
13724 (record_operand_costs): Likewise.
13725 * ira-lives.c (single_reg_class): Likewise.
13726 (ira_implicitly_set_insn_hard_regs): Likewise.
13727 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13728 * postreload.c (reload_cse_simplify_operands): Likewise.
13729 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13730 (constrain_operands, peep2_find_free_register): Likewise.
13731 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
13732 (find_reloads, alternative_allows_const_pool_ref): Likewise.
13733 * reload1.c (maybe_fix_stack_asms): Likewise.
13734 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13735 * targhooks.c (default_secondary_reload): Likewise.
13736 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
13737 to EXTRA_CONSTRAINT_STR.
13738 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
13740 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13742 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
13743 (write_constraint_satisfied_p_array): ...this new function.
13744 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
13746 (write_insn_preds_c): Update accordingly.
13748 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13750 * genpreds.c (write_lookup_constraint): Rename to...
13751 (write_lookup_constraint_1): ...this.
13752 (write_lookup_constraint_array): New function.
13753 (write_tm_preds_h): Define lookup_constraint as an inline function
13754 that uses write_lookup_constraint_array where possible.
13755 (write_insn_preds_c): Update for the changes above.
13757 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13759 * doc/md.texi (regclass_for_constraint): Rename to...
13760 (reg_class_for_constraint): ...this.
13761 * genpreds.c (num_constraints, enum_order, register_start)
13762 (register_end, satisfied_start, memory_start, memory_end)
13763 (address_start, address_end): New variables.
13764 (add_constraint): Count the number of constraints.
13765 (choose_enum_order): New function.
13766 (write_enum_constraint_num): Iterate over enum_order.
13767 (write_regclass_for_constraint): Rename to...
13768 (write_reg_class_for_constraint_1): ...this and update output
13770 (write_constraint_satisfied_p): Rename to...
13771 (write_constraint_satisfied_p_1): ...this and update output
13772 accordingly. Do nothing if all extra constraints are register
13774 (write_insn_extra_memory_constraint): Delete.
13775 (write_insn_extra_address_constraint): Delete.
13776 (write_range_function): New function.
13777 (write_tm_preds_h): Define constraint_satisfied_p and
13778 reg_class_for_constraint as inline functions that do a range check
13779 before calling the out-of-line function. Use write_range_function
13780 to implement insn_extra_{register,memory,address}_constraint,
13781 the first of which is new.
13782 (write_insn_preds_c): Update after above changes to write_* functions.
13783 (main): Call choose_enum_order.
13785 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
13787 PR tree-optimization/61306
13788 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
13789 expression instead of its size.
13790 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
13791 false to prevent optimization when the result is unpredictable due to
13792 arithmetic right shift of signed type with highest byte is set.
13793 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
13794 (init_symbolic_number): Likewise.
13795 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
13796 when the result is unpredictable due to sign extension.
13798 2014-06-11 Terry Guo <terry.guo@arm.com>
13800 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
13801 (*thumb1_addsi3): Ditto.
13802 (*thumb_subdi3): Ditto.
13803 (thumb1_subsi3_insn): Ditto.
13804 (*thumb_mulsi3): Ditto.
13805 (*thumb_mulsi3_v6): Ditto.
13806 (*thumb1_andsi3_insn): Ditto.
13807 (thumb1_bicsi3): Ditto.
13808 (*thumb1_iorsi3_insn): Ditto.
13809 (*thumb1_xorsi3_insn): Ditto.
13810 (*thumb1_ashlsi3): Ditto.
13811 (*thumb1_ashrsi3): Ditto.
13812 (*thumb1_lshrsi3): Ditto.
13813 (*thumb1_rotrsi3): Ditto.
13814 (*thumb1_negdi2): Ditto.
13815 (*thumb1_negsi2): Ditto.
13816 (*thumb1_abssi2): Ditto.
13817 (*thumb1_neg_abssi2): Ditto.
13818 (*thumb1_one_cmplsi2): Ditto.
13819 (*thumb1_zero_extendhisi2): Ditto.
13820 (*thumb1_zero_extendqisi2): Ditto.
13821 (*thumb1_zero_extendqisi2_v6): Ditto.
13822 (thumb1_extendhisi2): Ditto.
13823 (thumb1_extendqisi2): Ditto.
13824 (*thumb1_movdi_insn): Ditto.
13825 (*thumb1_movsi_insn): Ditto.
13826 (*thumb1_movhi_insn): Ditto.
13827 (thumb_movhi_clobber): Ditto.
13828 (*thumb1_movqi_insn): Ditto.
13829 (*thumb1_movhf): Ditto.
13830 (*thumb1_movsf_insn): Ditto.
13831 (*thumb_movdf_insn): Ditto.
13832 (movmem12b): Ditto.
13834 (cbranchqi4): Ditto.
13835 (cbranchsi4_insn): Ditto.
13836 (cbranchsi4_scratch): Ditto.
13837 (*negated_cbranchsi4): Ditto.
13838 (*tbit_cbranch): Ditto.
13839 (*tlobits_cbranch): Ditto.
13840 (*tstsi3_cbranch): Ditto.
13841 (*cbranchne_decr1): Ditto.
13842 (*addsi3_cbranch): Ditto.
13843 (*addsi3_cbranch_scratch): Ditto.
13844 (*thumb_cmpdi_zero): Ditto.
13845 (cstoresi_eq0_thumb1): Ditto.
13846 (cstoresi_ne0_thumb1): Ditto.
13847 (*cstoresi_eq0_thumb1_insn): Ditto.
13848 (*cstoresi_ne0_thumb1_insn): Ditto.
13849 (cstoresi_nltu_thumb1): Ditto.
13850 (cstoresi_ltu_thumb1): Ditto.
13851 (thumb1_addsi3_addgeu): Ditto.
13852 (*thumb_jump): Ditto.
13853 (*call_reg_thumb1_v5): Ditto.
13854 (*call_reg_thumb1): Ditto.
13855 (*call_value_reg_thumb1_v5): Ditto.
13856 (*call_value_reg_thumb1): Ditto.
13857 (*call_insn): Ditto.
13858 (*call_value_insn): Ditto.
13859 (thumb1_casesi_internal_pic): Ditto.
13860 (thumb1_casesi_dispatch): Ditto.
13861 (*thumb1_indirect_jump): Ditto.
13862 (prologue_thumb1_interwork): Ditto.
13863 (*epilogue_insns): Ditto.
13864 (consttable_1): Ditto.
13865 (consttable_2): Ditto.
13866 (tablejump): Ditto.
13867 (*thumb1_tablejump): Ditto.
13868 (thumb_eh_return): Ditto.
13869 (define_peephole2): Two of them are thumb1 only and got moved into
13870 new file thumb1.md.
13871 (define_split): Six of them are thumb1 only and got moved into new
13873 * config/arm/thumb1.md: New file comprised of above thumb1 only
13876 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13878 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
13879 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
13881 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
13882 (aarch64_crc_builtin_datum): New struct.
13883 (aarch64_crc_builtin_data): New.
13884 (aarch64_init_crc32_builtins): New function.
13885 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
13886 (aarch64_crc32_expand_builtin): New.
13887 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
13888 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13889 __ARM_FEATURE_CRC32 when appropriate.
13890 (TARGET_CRC32): Define.
13891 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
13892 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
13893 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
13894 (aarch64_<crc_variant>): New pattern.
13895 * config/aarch64/arm_acle.h: New file.
13896 * config/aarch64/iterators.md (CRC): New int iterator.
13897 (crc_variant, crc_mode): New int attributes.
13898 * doc/aarch64-acle-intrinsics.texi: New file.
13899 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
13900 Include aarch64-acle-intrinsics.texi.
13902 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
13904 * tree-vect-data-refs.c (vect_grouped_store_supported): New
13905 check for stores group of length 3.
13906 (vect_permute_store_chain): New permutations for stores group of
13908 * tree-vect-stmts.c (vect_model_store_cost): Change cost
13909 of vec_perm_shuffle for the new permutations.
13911 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
13913 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
13914 table rewriting temporarily on targets not supporting ONE_ONLY.
13916 2014-06-11 Richard Biener <rguenther@suse.de>
13918 PR middle-end/61437
13920 2014-06-04 Richard Biener <rguenther@suse.de>
13922 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13923 TREE_PUBLIC and DECL_EXTERNAL decls.
13925 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13927 * varasm.c (set_implicit_section): New function.
13928 (resolve_unique_section): Use it to set implicit section
13930 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
13931 (default_function_section): Likewise.
13932 (decl_binds_to_current_def_p): Constify argument.
13933 * varasm.h (decl_binds_to_current_def_p): Update prototype.
13934 * asan.c (asan_protect_global): Use
13935 symtab_get_node (decl)->implicit_section.
13936 * symtab.c (dump_symtab_base): Dump implicit sections.
13937 (verify_symtab_base): Verify sanity of sectoins and comdats.
13938 (symtab_resolve_alias): Alias share the section of its target.
13939 (set_section_1): New function.
13940 (symtab_node::set_section): Move here, recurse to aliases.
13941 (verify_symtab): Check for duplicated symtab lists.
13942 * tree-core.h (implicit_section_name_p): Remove.
13943 * tree-vect-data-refs.c: Include varasm.h.
13944 (vect_can_force_dr_alignment_p): Fix conditional on when
13945 decl bints to current definition; use
13946 symtab_get_node (decl)->implicit_section.
13947 * cgraph.c (cgraph_make_node_local_1): Fix section set.
13948 * cgraph.h (struct symtab_node): Add implicit_section.
13949 (set_section): Rename to ...
13950 (set_section_for_node): ... this one.
13951 (set_section): Declare.
13952 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
13953 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
13954 input_overwrite_node, input_varpool_node): Stream implicit_section.
13955 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
13956 removal; it will fail in LTO.
13958 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13960 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
13961 Change second alternative type to f_mcr.
13962 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
13963 and 12th alternatives' types to f_mcr and f_mrc.
13964 (*movdi_aarch64): Same for 12th and 13th alternatives.
13965 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
13966 (aarch64_movtilow_tilow): Change type to fmov.
13968 2014-06-10 Jiong Wang <jiong.wang@arm.com>
13970 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
13971 (aarch64_save_or_restore_callee_save_registers): Fix layout.
13973 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13975 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
13977 (aarch64_sqrdmulh_lane<mode>): Likewise.
13978 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13979 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13980 (aarch64_sqdmulh_laneq<mode>): New expander.
13981 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13982 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
13983 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
13984 (aarch64_sqdmulh_lane<mode>): New expander.
13985 (aarch64_sqrdmulh_lane<mode>): Likewise.
13986 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13987 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13988 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
13989 (aarch64_sqdmlal_laneq<mode>): Likewise.
13990 (aarch64_sqdmlsl_lane<mode>): Likewise.
13991 (aarch64_sqdmlsl_laneq<mode>): Likewise.
13992 (aarch64_sqdmlal2_lane<mode>): Likewise.
13993 (aarch64_sqdmlal2_laneq<mode>): Likewise.
13994 (aarch64_sqdmlsl2_lane<mode>): Likewise.
13995 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13996 (aarch64_sqdmull_lane<mode>): Likewise.
13997 (aarch64_sqdmull_laneq<mode>): Likewise.
13998 (aarch64_sqdmull2_lane<mode>): Likewise.
13999 (aarch64_sqdmull2_laneq<mode>): Likewise.
14001 2014-06-10 Richard Biener <rguenther@suse.de>
14003 PR tree-optimization/61438
14004 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14005 (eliminate_dom_walker::before_dom_children): Only try to inhibit
14006 insertion of IVs if running PRE.
14007 (eliminate): Adjust.
14008 (pass_pre::execute): Likewise.
14009 (pass_fre::execute): Likewise.
14011 2014-06-10 Richard Biener <rguenther@suse.de>
14013 PR middle-end/61456
14014 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14015 Do not use the main variant for the type comparison.
14016 (ncr_compar): Likewise.
14017 (nonoverlapping_component_refs_p): Likewise.
14019 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
14021 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14022 REG_CFA_RESTORE mode.
14024 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
14026 * config/i386/i386.c (expand_vec_perm_pblendv): New.
14027 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14028 expand_vec_perm_pblendv.
14030 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14032 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14034 Simplify description of __crc32d and __crc32cd intrinsics.
14035 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14038 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
14041 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14042 * config.in: Regenerate.
14043 * configure: Likewise.
14045 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
14047 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14049 (intersect_static_var_sets): Remove.
14050 (propagate): Do not prune local statics.
14052 2014-06-10 Jakub Jelinek <jakub@redhat.com>
14055 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14056 Set lastprivate_firstprivate even if omp_private_outer_ref
14057 langhook returns true.
14058 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14059 langhook, call unshare_expr on new_var and call
14060 build_outer_var_ref to get the last argument.
14062 2014-06-10 Marek Polacek <polacek@redhat.com>
14065 * doc/extend.texi: Add cindex for transparent_union.
14067 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
14069 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
14070 init_symbolic_number ().
14072 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
14074 PR middle-end/61141
14075 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
14076 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
14077 (verify_rtl_sharing): Likewise.
14079 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
14082 * tree.c (build_qualified_type): Use a canonical type for
14085 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14087 * config/arm/arm-modes.def: Remove XFmode.
14089 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
14092 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
14093 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
14094 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
14095 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
14096 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
14097 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
14098 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
14099 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
14100 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
14102 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
14104 * tree-core.h (tree_decl_with_vis): Remove section_name.
14106 2014-06-09 Kito Cheng <kito@0xlab.org>
14108 * ira.c (ira): Don't call init_caller_save if LRA enabled
14109 since LRA use its own infrastructure to handle that.
14111 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14113 * symtab.c (dump_symtab_base): Update dumping.
14114 (symtab_make_decl_local): Clear only DECL_COMDAT.
14115 * tree-vect-data-refs.c (Check that variable is static before
14116 tampering with sections.
14117 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
14118 (cgraph_create_virtual_clone): Likewise.
14119 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
14120 (decl_section_name, set_decl_section_name): New accessors.
14121 (find_decls_types_r): Do not walk section name
14122 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
14123 (decl_comdat_group, decl_comdat_group_id): Constify.
14124 (decl_section_name, set_decl_section_name): Update.
14125 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
14126 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
14127 (cgraph_make_node_local_1): Clear section and comdat group.
14128 * cgraph.h (set_comdat_group): Sanity check.
14129 (get_section, set_section): New.
14130 * ipa-comdats.c (ipa_comdats): Use get_section.
14131 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
14132 * lto-streamer-out.c: Do not follow section names.
14133 * c-family/c-common.c (handle_section_attribute): Update.
14134 * lto-cgraph.c (lto_output_node): Output section.
14135 (lto_output_varpool_node): Likewise.
14136 (read_comdat_group): Rename to ...
14137 (read_identifier): ... this one.
14138 (read_string_cst): New function.
14139 (input_node, input_varpool_node): Input section names.
14140 * tree-emutls.c (get_emutls_init_templ_addr): Update.
14141 (new_emutls_decl): Update.
14142 (secname_for_decl): Check section names only of static vars.
14143 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
14144 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
14145 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14146 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14147 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
14148 * config/mcore/mcore.c (mcore_unique_section): Likewise.
14149 * config/mips/mips.c (mips16_build_function_stub): Likewise.
14150 * config/v850/v850.c (v850_insert_attributes): Likewise.
14151 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
14153 (h8300_handle_tiny_data_attribute): Likewise.
14154 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
14155 (bfin_handle_l2_attribute): Likewise.
14157 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14159 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
14160 remove static initializer.
14162 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14164 * varasm.c (use_blocks_for_decl_p): Check symbol table
14165 instead of alias attribute.
14166 (place_block_symbol): Recurse on aliases.
14168 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14170 * ipa-visibility.c: Include varasm.h
14171 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
14173 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
14175 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
14176 outputting aliases.
14178 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
14180 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
14181 from test_insn into GGC space escape via SET_SRC.
14183 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
14185 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
14186 call statement, if any.
14187 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
14188 statements, if any. Tidy up.
14190 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14193 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
14194 iterators, VSX_D that handles 64-bit types, and VSX_LE that
14195 handles swapping the two 64-bit double words on little endian
14196 systems. Include V1TImode and optionally TImode in VSX_LE so that
14197 these types are properly swapped. Change all of the insns and
14198 splits that do the 64-bit swaps to use VSX_LE.
14199 (vsx_le_perm_load_<mode>): Likewise.
14200 (vsx_le_perm_store_<mode>): Likewise.
14201 (splitters for little endian memory operations): Likewise.
14202 (vsx_xxpermdi2_le_<mode>): Likewise.
14203 (vsx_lxvd2x2_le_<mode>): Likewise.
14204 (vsx_stxvd2x2_le_<mode>): Likewise.
14206 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
14209 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
14210 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
14211 and corresponding splitters. Zero extend general register
14212 or memory input operand to XMM temporary. Enable for
14213 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
14214 (floatunssi<mode>2): Update expander predicate.
14216 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
14218 PR rtl-optimization/61325
14219 * lra-constraints.c (process_address_1): Check scale equal to one
14220 to prevent transformation: base + scale * index => base + new_reg.
14222 2014-06-06 Richard Biener <rguenther@suse.de>
14224 PR tree-optimization/59299
14225 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
14227 (nearest_common_dominator_of_uses): Likewise.
14228 (statement_sink_location): Adjust. Support sinking loads.
14230 2014-06-06 Martin Jambor <mjambor@suse.cz>
14232 * ipa-prop.c (get_place_in_agg_contents_list): New function.
14233 (build_agg_jump_func_from_list): Likewise.
14234 (determine_known_aggregate_parts): Renamed to
14235 determine_locally_known_aggregate_parts. Moved some functionality
14236 to the two functions above, removed bound checks.
14238 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
14240 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
14241 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
14242 (aarch64_progress_pointer): Likewise.
14243 (aarch64_copy_one_part_and_move_pointers): Likewise.
14244 (aarch64_expand_movmen): Likewise.
14245 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
14246 * config/aarch64/aarch64.md (movmem<mode>): New.
14248 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
14250 * targhooks.c (default_add_stmt_cost): Call target specific
14251 hook instead of default one.
14253 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14255 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
14256 endianness instead of host endianness.
14257 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
14260 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14263 * function.c (instantiate_decls): Process the saved static chain.
14264 (expand_function_start): If not optimizing, save the static chain
14266 * tree-nested.c (convert_all_function_calls): Always create the static
14267 chain for nested functions if not optimizing.
14269 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14271 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
14273 2014-06-06 Richard Biener <rguenther@suse.de>
14275 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
14276 (construct_init_block): Likewise.
14277 (construct_exit_block): Likewise.
14278 (pass_expand::execute): Likewise.
14279 * graphite.c (graphite_transforms): Replace check for current_loops
14280 with a check for > 1 loops.
14281 (pass_graphite_transforms::execute): Adjust.
14282 * ipa-split.c (split_function): Remove check for current_loops.
14283 * omp-low.c (expand_parallel_call): Likewise.
14284 (expand_omp_for_init_counts): Likewise.
14285 (extract_omp_for_update_vars): Likewise.
14286 (expand_omp_for_generic): Likewise.
14287 (expand_omp_sections): Likewise.
14288 (expand_omp_target): Likewise.
14289 * tracer.c (tail_duplicate): Likewise.
14290 (pass_tracer::execute): Likewise.
14291 * trans-mem.c (expand_transaction): Likewise.
14292 * tree-complex.c (expand_complex_div_wide): Likewise.
14293 * tree-eh.c (lower_resx): Likewise.
14294 (cleanup_empty_eh_merge_phis): Likewise.
14295 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
14296 current_loops with a check for > 1 loops.
14297 (pass_predcom::execute): Adjust.
14298 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
14299 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
14300 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
14301 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
14302 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14303 * tree-switch-conversion.c (process_switch): Likewise.
14304 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14305 * tree-vrp.c (vrp_visit_phi_node): Likewise.
14306 (execute_vrp): Likewise.
14307 * ubsan.c (ubsan_expand_null_ifn): Likewise.
14309 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
14311 * rtl.h (insn_location): Declare.
14312 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
14313 with UNKNOWN_LOCATION.
14314 * emit-rtl.c (insn_location): New function.
14315 * final.c (notice_source_line): Check that the instruction has a
14316 location before retrieving it and use insn_location.
14317 * modulo-sched.c (loop_single_full_bb_p): Likewise.
14318 * print-rtl.c (print_rtx): Likewise.
14320 2014-06-06 Richard Biener <rguenther@suse.de>
14322 * passes.def: Move 2nd VRP pass before phi-only-cprop.
14324 2014-06-06 Christian Bruel <christian.bruel@st.com>
14326 PR tree-optimization/43934
14327 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
14330 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
14332 * ira-lives.c (single_reg_class): Add missing break. Explicitly
14333 return NO_REGS for extra address and memory constraints. Handle
14334 operands that match (or are equivalent to something that matches)
14335 extra constant constraints. Ignore other non-register operands.
14337 2014-06-06 Alan Modra <amodra@gmail.com>
14340 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
14341 * doc/tm.texi: Regenerate.
14342 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
14343 Use throughout in place of REG_PARM_STACK_SPACE.
14344 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
14345 "incoming" param. Pass to rs6000_function_parms_need_stack.
14346 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
14347 prototype_p when incoming. Use function decl when incoming
14348 to handle K&R style functions.
14349 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
14350 (INCOMING_REG_PARM_STACK_SPACE): Define.
14352 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14355 * cfgexpand.c (expand_debug_expr): Use address space of nested
14356 TREE_TYPE for ADDR_EXPR and MEM_REF.
14358 2014-06-05 Jeff Law <law@redhat.com>
14360 PR tree-optimization/61289
14361 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
14362 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
14363 looking for those which match LHS. All callers changed.
14364 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
14365 parameters and code which manipulated them. All callers changed.
14366 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
14367 and DST_MAP parameters. Simplify invalidation code by just calling
14368 invalidate_equivalences. All callers changed.
14369 (thread_across_edge): Simplify now that we don't need to maintain
14370 the map of equivalences to invalidate.
14372 2014-06-05 Kai Tietz <ktietz@redhat.com>
14373 Richard Henderson <rth@redhat.com>
14376 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
14377 checking for !TARGET_X32.
14378 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
14379 (sibcall_intern): New define_insn, plus required peepholes.
14380 (sibcall_pop_intern): Likewise.
14381 (sibcall_value_intern): Likewise.
14382 (sibcall_value_pop_intern): Likewise.
14384 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
14386 * tree-inline.c (tree_function_versioning): Check DF info existence
14387 before accessing it.
14389 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14391 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
14393 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
14394 aarch64_frame hard_fp_offset and frame_size.
14395 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
14396 frame_size; remove original_frame_size.
14397 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
14398 (aarch64_initial_elimination_offset): Remove frame_size and
14399 offset. Use aarch64_frame frame_size.
14401 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14402 Jiong Wang <jiong.wang@arm.com>
14403 Renlin <renlin.li@arm.com>
14405 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
14406 initialization of R30 offset. Update offset. Iterate core
14407 regisers upto X30. Remove X29, X30 specific code.
14409 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14410 Jiong Wang <jiong.wang@arm.com>
14412 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
14413 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
14414 (aarch64_register_saved_on_entry): Adjust test.
14416 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14418 * config/aarch64/aarch64.h (machine_function): Move
14419 saved_varargs_size from here...
14420 (aarch64_frame): ... to here.
14422 * config/aarch64/aarch64.c (aarch64_expand_prologue)
14423 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
14424 (aarch64_initial_elimination_offset)
14425 (aarch64_setup_incoming_varargs): Adjust location of
14426 saved_varargs_size.
14428 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14430 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
14433 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
14434 Prachi Godbole <Prachi.Godbole@imgtec.com>
14436 * config/mips/mips-cpus.def: Add definition for p5600. Updated
14437 mips32r5 entry to use PROCESSOR_P5600.
14438 * config/mips/mips-tables.opt: Regenerate.
14439 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
14440 * config/mips/mips.c (mips_fmadd_bypass): New function.
14441 (mips_rtx_cost_data): Add costs for p5600.
14442 (mips_issue_rate): Add support for p5600.
14443 (mips_multipass_dfa_lookahead): Likewise.
14444 * config/mips/mips.h (TUNE_P5600): New define.
14445 (TUNE_MACC_CHAINS): Add TUNE_P5600.
14446 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
14447 * config/mips/mips.md: Include p5600.md.
14448 (processor): Add p5600.
14449 * config/mips/p5600.md: New file.
14451 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
14453 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
14454 * config/i386/predicates.md (palignr_operand): New.
14455 Indicates if permutation is suitable for palignr instruction.
14457 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
14459 PR tree-optimization/61319
14460 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14461 stmt belongs to loop.
14463 2014-06-05 Richard Biener <rguenther@suse.de>
14465 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
14466 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
14467 (lookup_tmp_var): Adjust.
14468 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
14470 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14472 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
14474 2014-06-05 Marek Polacek <polacek@redhat.com>
14477 * doc/invoke.texi: Document -Wlogical-not-parentheses.
14479 2014-06-04 Tom de Vries <tom@codesourcery.com>
14481 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
14484 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
14486 PR tree-optimization/61385
14487 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
14489 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
14491 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
14492 changed to use fatal_error.
14493 (main): Ensure lto_wrapper_cleanup is run atexit.
14495 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14497 * lra-constraints.c (valid_address_p): Move earlier in file.
14498 (address_eliminator): New structure.
14499 (satisfies_memory_constraint_p): New function.
14500 (satisfies_address_constraint_p): Likewise.
14501 (process_alt_operands, process_address, curr_insn_transform): Use them.
14503 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14505 * lra-int.h (lra_static_insn_data): Make operand_alternative a
14507 (target_lra_int, default_target_lra_int, this_target_lra_int)
14508 (op_alt_data): Delete.
14509 * lra.h (lra_init): Delete.
14510 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
14511 (init_insn_code_data_once): Remove op_alt_data handling.
14512 (finish_insn_code_data_once): Likewise.
14513 (init_op_alt_data): Delete.
14514 (get_static_insn_data): Initialize operand_alternative to null.
14515 (free_insn_recog_data): Cast operand_alternative before freeing it.
14516 (setup_operand_alternative): Take the operand_alternative as
14517 parameter and assume it isn't already cached in the static
14519 (lra_set_insn_recog_data): Update accordingly.
14520 (lra_init): Delete.
14521 * ira.c (ira_init): Don't call lra_init.
14522 * target-globals.h (this_target_lra_int): Declare.
14523 (target_globals): Remove lra_int.
14524 (restore_target_globals): Update accordingly.
14525 * target-globals.c: Don't include lra-int.h.
14526 (default_target_globals, save_target_globals): Remove lra_int.
14528 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14530 * recog.h (operand_alternative): Convert reg_class, reject,
14531 matched and matches into bitfields.
14532 (preprocess_constraints): New overload.
14533 (preprocess_insn_constraints): New function.
14534 (preprocess_constraints): Take the insn as parameter.
14535 (recog_op_alt): Change into a pointer.
14536 (target_recog): Add x_op_alt.
14537 * recog.c (asm_op_alt): New variable.
14538 (recog_op_alt): Change into a pointer.
14539 (preprocess_constraints): New overload, replacing the old function
14540 definition with one that doesn't use global state.
14541 (preprocess_insn_constraints): New function.
14542 (preprocess_constraints): Use them. Take the insn as parameter.
14543 Use asm_op_alt for asms.
14544 (recog_init): Free existing x_op_alt entries.
14545 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
14547 (make_early_clobber_and_input_conflicts): Likewise.
14548 (process_bb_node_lives): Pass the insn to process_constraints.
14549 * reg-stack.c (check_asm_stack_operands): Likewise.
14550 (subst_asm_stack_regs): Likewise.
14551 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14552 * regrename.c (build_def_use): Likewise.
14553 * sched-deps.c (sched_analyze_insn): Likewise.
14554 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
14555 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
14556 (note_invalid_constants): Likewise.
14557 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14558 (ix86_legitimate_combined_insn): Make operand_alternative pointer
14561 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14563 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
14564 * ira-lives.c (check_and_make_def_conflict): Check for disabled
14566 (make_early_clobber_and_input_conflicts): Likewise.
14567 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14569 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14571 * recog.h (alternative_class): New function.
14572 (which_op_alt): Return a const recog_op_alt.
14573 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
14574 (subst_asm_stack_regs): Likewise.
14575 * config/arm/arm.c (note_invalid_constants): Likewise.
14576 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
14577 the operand_alternative; use alternative class instead.
14578 * sel-sched.c (get_reg_class): Likewise.
14579 * regrename.c (build_def_use): Likewise.
14580 (hide_operands, restore_operands, record_out_operands): Update type
14583 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
14585 * recog.h (recog_op_alt): Convert to a flat array.
14586 (which_op_alt): New function.
14587 * recog.c (recog_op_alt): Convert to a flat array.
14588 (preprocess_constraints): Update accordingly, grouping all
14589 operands of the same alternative together, rather than the
14591 * ira-lives.c (check_and_make_def_conflict): Likewise.
14592 (make_early_clobber_and_input_conflicts): Likewise.
14593 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14594 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
14595 (subst_asm_stack_regs): Likewise.
14596 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14597 * regrename.c (hide_operands, record_out_operands): Likewise.
14598 (build_def_use): Likewise.
14599 * sel-sched.c (get_reg_class): Likewise.
14600 * config/arm/arm.c (note_invalid_constants): Likewise.
14602 2014-06-04 Jason Merrill <jason@redhat.com>
14606 * gimplify.c (gimplify_arg): Non-static.
14607 * gimplify.h: Declare it.
14609 2014-06-04 Richard Biener <rguenther@suse.de>
14611 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14612 TREE_PUBLIC and DECL_EXTERNAL decls.
14614 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
14616 * regcprop.c (copyprop_hardreg_forward_1): Account for
14617 HARD_REGNO_CALL_PART_CLOBBERED.
14619 2014-06-04 Richard Biener <rguenther@suse.de>
14621 * configure.ac: Check whether the underlying type of int64_t
14622 is long or long long.
14623 * configure: Regenerate.
14624 * config.in: Likewise.
14625 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
14626 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14628 2014-06-04 Richard Biener <rguenther@suse.de>
14630 PR tree-optimization/60098
14631 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
14633 (dse_optimize_stmt): Simplify, now that we found a kill
14636 2014-06-04 Richard Biener <rguenther@suse.de>
14638 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
14639 of accesses with non-invariant address.
14641 2014-06-04 Martin Liska <mliska@suse.cz>
14643 * cgraph.h (cgraph_make_wrapper): New function introduced.
14644 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
14645 * ipa-inline.h (inline_analyze_function): The function is global.
14646 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
14648 2014-06-04 Martin Liska <mliska@suse.cz>
14650 * tree.h (private_lookup_attribute_starting): New function.
14651 (lookup_attribute_starting): Likewise.
14652 * tree.c (private_lookup_attribute_starting): Likewise.
14654 2014-06-04 Martin Liska <mliska@suse.cz>
14656 * cgraph.h (expand_thunk): New argument added.
14657 (address_taken_from_non_vtable_p): New global function.
14658 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
14659 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
14660 * cgraphunit.c (analyze_function): Likewise.
14661 (assemble_thunks_and_aliases): Argument added to call.
14662 (expand_thunk): New argument forces to produce GIMPLE thunk.
14664 2014-06-04 Martin Liska <mliska@suse.cz>
14666 * coverage.h (coverage_compute_cfg_checksum): Argument added.
14667 * coverage.c (coverage_compute_cfg_checksum): Likewise.
14668 * profile.c (branch_prob): Likewise.
14670 2014-06-04 Martin Jambor <mjambor@suse.cz>
14673 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
14674 handler for switch on an ipa_ref_use enum.
14675 * ipa-reference.c (analyze_function): Likewise.
14677 2014-06-04 Kai Tietz <ktietz@redhat.com>
14679 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
14680 from old call-instruction.
14682 2014-06-04 Bin Cheng <bin.cheng@arm.com>
14684 * config/aarch64/aarch64.c (aarch64_classify_address)
14685 (aarch64_legitimize_reload_address): Support full addressing modes
14687 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
14688 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
14690 2014-06-03 Andrew Pinski <apinski@cavium.com>
14692 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
14695 2014-06-03 Andrew Pinski <apinski@cavium.com>
14697 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
14698 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
14700 2014-06-03 Kai Tietz <ktietz@redhat.com>
14702 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
14705 2014-06-03 Dehao Chen <dehao@google.com>
14707 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
14710 2014-06-03 Marek Polacek <polacek@redhat.com>
14713 * doc/invoke.texi: Document -Wswitch-bool.
14714 * function.c (stack_protect_epilogue): Cast controlling expression of
14716 * gengtype.c (walk_type): Generate switch expression with its
14717 controlling expression cast to int.
14719 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
14721 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
14723 * config/avr/avr-tables.opt: Regenerate.
14724 * config/avr/t-multilib: Regenerate.
14725 * doc/avr-mmcu.texi: Regenerate.
14727 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
14728 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14730 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
14731 (ata6617c, ata664251): Add new avr35 devices.
14732 (ata6612c): Add new avr4 device.
14733 (ata6613c, ata6614q): Add new avr5 devices.
14734 * config/avr/avr-tables.opt: Regenerate.
14735 * config/avr/t-multilib: Regenerate.
14736 * doc/avr-mmcu.texi: Regenerate.
14738 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14740 * gcc/config/aarch64/aarch64-builtins.c
14741 (aarch64_types_binop_ssu_qualifiers): New static data.
14742 (TYPES_BINOP_SSU): Define.
14743 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
14744 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
14745 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
14746 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
14747 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
14748 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
14749 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
14750 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
14751 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
14752 suffix to builtin function name, remove cast.
14753 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
14754 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
14755 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
14757 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14759 * gcc/config/aarch64/aarch64-builtins.c
14760 (aarch64_types_binop_uus_qualifiers,
14761 aarch64_types_shift_to_unsigned_qualifiers,
14762 aarch64_types_unsigned_shiftacc_qualifiers): Define.
14763 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
14764 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
14765 sqshlu_n, uqshl_n): Update qualifiers.
14766 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
14767 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
14768 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
14769 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
14770 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
14771 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
14772 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
14773 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
14774 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
14775 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
14776 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
14777 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
14778 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
14779 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
14780 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
14781 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
14782 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
14783 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
14784 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
14785 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
14786 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
14787 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
14788 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
14789 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
14790 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
14791 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
14792 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
14794 2014-06-03 Teresa Johnson <tejohnson@google.com>
14796 * tree-sra.c (modify_function): Record caller nodes after rebuild.
14798 2014-06-02 Jason Merrill <jason@redhat.com>
14801 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
14803 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14805 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
14808 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14810 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
14812 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
14813 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
14814 * config/aarch64/iterators.md (REVERSE): New iterator.
14815 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
14816 (rev_op): New int_attribute.
14817 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
14818 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
14819 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
14820 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
14821 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
14822 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
14823 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
14824 Replace temporary __asm__ with __builtin_shuffle.
14826 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14828 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
14830 * config/mips/mips-tables.opt: Regenerate.
14831 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
14832 to use mips_isa_rev rather than ISA_MIPS32R2.
14833 * config/mips/mips.h (ISA_MIPS32R3): New define.
14834 (ISA_MIPS32R5): New define.
14835 (ISA_MIPS64R3): New define.
14836 (ISA_MIPS64R5): New define.
14837 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
14838 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
14839 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
14841 (MIPS_ISA_SYNCI_SPEC): Likewise.
14842 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
14843 (LINK_SPEC): Added mips32r3 and mips32r5.
14844 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
14845 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
14846 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
14847 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
14848 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
14849 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
14850 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
14852 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14854 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
14856 * config/mips/mips.opt (mxpa): New option.
14857 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
14860 2014-06-03 Martin Jambor <mjambor@suse.cz>
14863 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
14866 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
14868 PR tree-optimization/61328
14869 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
14870 initialization from find_bswap_or_nop_1.
14871 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
14872 in source_expr2 before using the size value the function sets. Also
14873 make use of init_symbolic_number () in both the old place and
14874 find_bswap_or_nop_load () to avoid reading uninitialized memory when
14875 doing recursion in the GIMPLE_BINARY_RHS case.
14877 2014-06-03 Richard Biener <rguenther@suse.de>
14879 PR tree-optimization/61383
14880 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
14883 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
14885 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
14886 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
14887 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
14888 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
14890 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
14891 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
14892 * system.h: ...here and make it unconditional.
14893 * target.def (conditional_register_usage): Mention
14894 define_register_constraint instead of old-style constraint macros.
14895 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
14896 * doc/tm.texi: Regenerate.
14897 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
14898 protected by !USE_MD_CONSTRAINTS.
14899 * config/frv/frv.md: Remove quote from old version of documentation.
14900 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
14901 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
14902 CONST_DOUBLE_OK_FOR_LETTER.
14903 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
14905 2014-06-02 Andrew Pinski <apinski@cavium.com>
14907 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
14908 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
14909 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
14910 file whose name depends on -mabi= and -mbig-endian.
14911 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
14912 Handle LP64 better and handle ilp32 too.
14913 (MULTILIB_OPTIONS): Delete.
14914 (MULTILIB_DIRNAMES): Delete.
14916 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
14918 * expr.h: Remove prototypes of functions defined in builtins.c.
14919 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
14920 Remove prototypes of functions defined in builtins.c.
14921 * builtins.h: Update prototype list to include all exported functions.
14922 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
14923 no_c99_libc_has_function): Move to targhooks.c
14924 (build_string_literal, build_call_expr_loc_array,
14925 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
14927 (expand_builtin_object_size, fold_builtin_object_size): Make static.
14928 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
14929 no_c99_libc_has_function): Relocate from builtins.c.
14930 * tree.c: Include builtins.h.
14931 (build_call_expr_loc_array, build_call_expr_loc_vec,
14932 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
14934 * fold-const.h (fold_fma): Move prototype to builtins.h.
14935 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
14936 * asan.c: Include builtins.h.
14937 * cfgexpand.c: Likewise.
14938 * convert.c: Likewise.
14939 * emit-rtl.c: Likewise.
14940 * except.c: Likewise.
14941 * expr.c: Likewise.
14942 * fold-const.c: Likewise.
14943 * gimple-fold.c: Likewise.
14944 * gimple-ssa-strength-reduction.c: Likewise.
14945 * gimplify.c: Likewise.
14946 * ipa-inline.c: Likewise.
14947 * ipa-prop.c: Likewise.
14948 * lto-streamer-out.c: Likewise.
14949 * stmt.c: Likewise.
14950 * tree-inline.c: Likewise.
14951 * tree-object-size.c: Likewise.
14952 * tree-sra.c: Likewise.
14953 * tree-ssa-ccp.c: Likewise.
14954 * tree-ssa-forwprop.c: Likewise.
14955 * tree-ssa-loop-ivcanon.c: Likewise.
14956 * tree-ssa-loop-ivopts.c: Likewise.
14957 * tree-ssa-math-opts.c: Likewise.
14958 * tree-ssa-reassoc.c: Likewise.
14959 * tree-ssa-threadedge.c: Likewise.
14960 * tree-streamer-in.c: Likewise.
14961 * tree-vect-data-refs.c: Likewise.
14962 * tree-vect-patterns.c: Likewise.
14963 * tree-vect-stmts.c: Likewise.
14964 * config/aarch64/aarch64.c: Likewise.
14965 * config/alpha/alpha.c: Likewise.
14966 * config/arc/arc.c: Likewise.
14967 * config/arm/arm.c: Likewise.
14968 * config/avr/avr.c: Likewise.
14969 * config/bfin/bfin.c: Likewise.
14970 * config/c6x/c6x.c: Likewise.
14971 * config/cr16/cr16.c: Likewise.
14972 * config/cris/cris.c: Likewise.
14973 * config/epiphany/epiphany.c: Likewise.
14974 * config/fr30/fr30.c: Likewise.
14975 * config/frv/frv.c: Likewise.
14976 * config/h8300/h8300.c: Likewise.
14977 * config/i386/i386.c: Likewise.
14978 * config/i386/winnt.c: Likewise.
14979 * config/ia64/ia64.c: Likewise.
14980 * config/iq2000/iq2000.c: Likewise.
14981 * config/lm32/lm32.c: Likewise.
14982 * config/m32c/m32c.c: Likewise.
14983 * config/m32r/m32r.c: Likewise.
14984 * config/m68k/m68k.c: Likewise.
14985 * config/mcore/mcore.c: Likewise.
14986 * config/mep/mep.c: Likewise.
14987 * config/microblaze/microblaze.c: Likewise.
14988 * config/mips/mips.c: Likewise.
14989 * config/mmix/mmix.c: Likewise.
14990 * config/mn10300/mn10300.c: Likewise.
14991 * config/moxie/moxie.c: Likewise.
14992 * config/msp430/msp430.c: Likewise.
14993 * config/nds32/nds32.c: Likewise.
14994 * config/pa/pa.c: Likewise.
14995 * config/pdp11/pdp11.c: Likewise.
14996 * config/picochip/picochip.c: Likewise.
14997 * config/rl78/rl78.c: Likewise.
14998 * config/rs6000/rs6000.c: Likewise.
14999 * config/rx/rx.c: Likewise.
15000 * config/s390/s390.c: Likewise.
15001 * config/score/score.c: Likewise.
15002 * config/sh/sh.c: Likewise.
15003 * config/sparc/sparc.c: Likewise.
15004 * config/spu/spu.c: Likewise.
15005 * config/stormy16/stormy16.c: Likewise.
15006 * config/tilegx/tilegx.c: Likewise.
15007 * config/tilepro/tilepro.c: Likewise.
15008 * config/v850/v850.c: Likewise.
15009 * config/vax/vax.c: Likewise.
15010 * config/xtensa/xtensa.c: Likewise.
15012 2014-06-02 Jeff Law <law@redhat.com>
15014 PR rtl-optimization/61094
15015 * ree.c (combine_reaching_defs): Do not reextend an insn if it
15016 was marked as do_no_reextend. If a copy is needed to eliminate
15017 an extension, then mark it as do_not_reextend.
15019 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
15021 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15023 2014-06-02 Richard Henderson <rth@redhat.com>
15026 * config/alpha/alpha.c (print_operand_address): Allow symbolic
15027 addresses inside asms. Use output_operand_lossage instead of
15030 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
15033 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15034 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15036 2014-06-02 Tom de Vries <tom@codesourcery.com>
15038 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15039 case that x has VOIDmode.
15041 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
15043 * varasm.c (copy_constant): Delete function.
15044 (build_constant_desc): Don't call it.
15046 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15049 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15050 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15051 with immediate_operand.
15053 2014-06-02 Andreas Schwab <schwab@suse.de>
15055 * config/ia64/ia64.c
15056 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15057 pending_data_specs first.
15059 2014-06-02 Richard Biener <rguenther@suse.de>
15061 PR tree-optimization/61378
15062 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15063 valueized_anything.
15065 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
15067 * config/i386/constraints.md (Bw): Rename from 'w'.
15068 (Bz): Rename from 'z'.
15069 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
15071 2014-06-01 Kai Tietz <ktietz@redhat.com>
15074 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
15075 * config/i386/i386.md (sibcall_insn_operand): Use Bs
15076 instead of m constraint.
15078 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
15080 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
15081 a separate alternative where the scratch operand 2 is marked as
15084 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
15086 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15087 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
15088 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
15089 and __builtins_arm_get_fpscr.
15090 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15091 __builtins_arm_get_fpscr.
15092 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
15093 __builtins_arm_ldfpscr.
15094 (arm_atomic_assign_expand_fenv): New function.
15095 * config/arm/vfp.md (set_fpscr): New pattern.
15096 (get_fpscr) : Likewise.
15097 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
15099 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15100 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
15102 2014-05-30 Jakub Jelinek <jakub@redhat.com>
15104 * asan.c (report_error_func): Add SLOW_P argument, use
15105 BUILT_IN_ASAN_*_N if set.
15106 (build_check_stmt): Likewise.
15107 (instrument_derefs): If T has insufficient alignment,
15108 force same handling as for odd sizes.
15110 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
15111 BUILT_IN_ASAN_REPORT_STORE_N): New.
15112 * asan.c (struct asan_mem_ref): Change access_size type to
15114 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
15115 update_mem_ref_hash_table): Likewise.
15116 (asan_mem_ref_hasher::hash): Hash in a HWI.
15117 (report_error_func): Change size_in_bytes argument to HWI.
15118 Use *_N builtins if size_in_bytes is larger than 16 or not power of
15120 (build_shadow_mem_access): New function.
15121 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
15122 Handle size_in_bytes not power of two or larger than 16.
15123 (instrument_derefs): Don't give up if size_in_bytes is not
15124 power of two or is larger than 16.
15126 2014-05-30 Kai Tietz <ktietz@redhat.com>
15129 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
15130 for sibling-tail-calls.
15131 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
15133 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
15134 (sibcall_insn_operand): Add check for sibcall_memory_operand.
15136 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15138 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
15139 * config/avr/avr-tables.opt: Regenerate.
15140 * config/avr/t-multilib: Regenerate.
15141 * doc/avr-mmcu.texi: Regenerate.
15143 2014-05-30 Ian Lance Taylor <iant@google.com>
15145 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
15148 2014-05-30 Tom de Vries <tom@codesourcery.com>
15150 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15153 2014-05-30 Tom de Vries <tom@codesourcery.com>
15155 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15156 * lra.c (initialize_lra_reg_info_element): Add init of
15157 actual_call_used_reg_set field.
15158 (lra): Call lra_create_live_ranges before lra_inheritance for
15160 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15162 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
15163 instead of call_used_reg_set for -fuse-caller-save.
15164 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15166 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15168 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
15170 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
15172 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
15174 * ira.c (ira_get_dup_out_num): Check for output operands at
15175 the start of the loop. Handle cases where an included alternative
15176 follows an excluded one.
15178 2014-05-29 Mike Stump <mikestump@comcast.net>
15181 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
15182 post ld passes when lto is used.
15184 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
15186 PR rtl-optimization/61325
15187 * lra-constraints.c (process_address): Rename to process_address_1.
15188 (process_address): New function.
15190 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
15192 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
15193 TYPES_BINOPV): New static data.
15194 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
15196 * config/aarch64/aarch64-simd.md (aarch64_ext,
15197 aarch64_im_lane_boundsi): New patterns.
15198 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
15200 (aarch64_evpc_ext): New function.
15202 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
15204 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
15205 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
15206 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
15207 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
15208 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
15210 2014-05-29 Tom de Vries <tom@codesourcery.com>
15212 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
15214 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
15215 Richard Sandiford <rdsandiford@googlemail.com>
15217 * arm/iterators.md (shiftable_ops): New code iterator.
15218 (t2_binop0, arith_shift_insn): New code attributes.
15219 * arm/predicates.md (shift_nomul_operator): New predicate.
15220 * arm/arm.md (insn_enabled): Delete.
15221 (enabled): Remove insn_enabled test.
15222 (*arith_shiftsi): Delete. Replace with ...
15223 (*<arith_shift_insn>_multsi): ... new pattern.
15224 (*<arith_shift_insn>_shiftsi): ... new pattern.
15225 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
15227 2014-05-29 Radovan Obradovic <robradovic@mips.com>
15228 Tom de Vries <tom@codesourcery.com>
15230 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
15231 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
15233 (mips_split_call): Use POST_CALL_TMP_REG.
15234 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
15236 2014-05-29 Tom de Vries <tom@codesourcery.com>
15238 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
15239 with #ifdef STACK_REGS.
15241 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
15243 * varasm.c (get_variable_section): Walk aliases.
15244 (place_block_symbol): Walk aliases.
15246 2014-05-28 Tom de Vries <tom@codesourcery.com>
15249 2014-05-28 Tom de Vries <tom@codesourcery.com>
15251 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15252 * lra.c (initialize_lra_reg_info_element): Add init of
15253 actual_call_used_reg_set field.
15254 (lra): Call lra_create_live_ranges before lra_inheritance for
15256 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15258 * lra-constraints.c (need_for_call_save_p): Use
15259 actual_call_used_reg_set instead of call_used_reg_set for
15261 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15263 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15265 * doc/md.texi: Document that the % constraint character must
15266 be at the beginning of the string.
15267 * genoutput.c (validate_insn_alternatives): Check that '=',
15268 '+' and '%' only appear at the beginning of a constraint.
15269 * ira.c (commutative_constraint_p): Delete.
15270 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
15271 at the start of the string.
15272 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
15274 * config/arm/neon.md (bicdi3_neon): Likewise.
15275 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
15276 (slt_si, sltu_si): Likewise.
15277 * config/vax/vax.md (sbcdi3): Likewise.
15278 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
15279 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
15280 (mul64): Move '%' to beginning of constraint.
15281 * config/arm/arm.md (*xordi3_insn): Likewise.
15282 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
15283 (xorsi3): Likewise.
15285 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15287 * doc/md.texi: Document the restrictions on the "enabled" attribute.
15289 2014-05-28 Jason Merrill <jason@redhat.com>
15292 * cgraph.h (symtab_node::get_comdat_group_id): New.
15293 * cgraphunit.c (analyze_functions): Call it.
15294 * symtab.c (dump_symtab_node): Likewise.
15295 * tree.c (decl_comdat_group_id): New.
15296 * tree.h: Declare it.
15297 * lto-streamer-out.c (write_symbol): Use it.
15298 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
15300 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15302 PR bootstrap/PR61146
15303 * wide-int.cc: Do not include longlong.h when compiling with clang.
15305 2014-05-28 Richard Biener <rguenther@suse.de>
15307 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
15308 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
15309 (vrp_visit_assignment_or_call): Print less vertical space.
15310 (vrp_visit_stmt): Likewise.
15311 (vrp_visit_phi_node): Likewise. For a PHI argument with
15312 VR_VARYING range consider recording it as copy.
15314 2014-05-28 Richard Biener <rguenther@suse.de>
15317 2014-05-28 Richard Biener <rguenther@suse.de>
15319 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15321 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15323 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
15324 sufficiently aligned and an offset is used at the same time.
15325 (expand_expr_real_1): Likewise.
15327 2014-05-28 Richard Biener <rguenther@suse.de>
15329 PR middle-end/61045
15330 * fold-const.c (fold_comparison): When folding
15331 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
15332 the sign of the remaining constant operand stays the same.
15334 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
15336 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15337 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
15338 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
15340 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
15341 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
15342 (m32bit-doubles) Likewise.
15343 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
15344 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
15347 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15349 * configure.ac ($gcc_cv_ld_clearcap): New test.
15350 * configure: Regenerate.
15351 * config.in: Regenerate.
15352 * config/sol2.opt (mclear-hwcap): New option.
15353 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
15354 * config/sol2-clearcap.map: Moved here from
15355 testsuite/gcc.target/i386/clearcap.map.
15356 * config/sol2-clearcapv2.map: Move here from
15357 gcc.target/i386/clearcapv2.map.
15358 * config/t-sol2 (install): Depend on install-clearcap-map.
15359 (install-clearcap-map): New target.
15360 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
15363 2014-05-28 Richard Biener <rguenther@suse.de>
15365 * hwint.h (*_HALF_WIDE_INT*): Move to ...
15366 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
15367 ... here and remove the rest.
15368 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15370 2014-05-28 Richard Biener <rguenther@suse.de>
15372 PR tree-optimization/61335
15373 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
15374 new range fails, drop to varying.
15376 2014-05-28 Olivier Hainque <hainque@adacore.com>
15378 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
15379 (CPP_SPEC): Add entry for -mcpu=8548.
15380 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
15381 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
15383 2014-05-28 Tom de Vries <tom@codesourcery.com>
15385 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15386 * lra.c (initialize_lra_reg_info_element): Add init of
15387 actual_call_used_reg_set field.
15388 (lra): Call lra_create_live_ranges before lra_inheritance for
15390 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15392 * lra-constraints.c (need_for_call_save_p): Use
15393 actual_call_used_reg_set instead of call_used_reg_set for
15395 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15397 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15398 Tom de Vries <tom@codesourcery.com>
15400 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
15402 (@item -fuse-caller-save): New item.
15404 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15405 Tom de Vries <tom@codesourcery.com>
15407 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
15408 OPT_fuse_caller_save.
15410 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15411 Tom de Vries <tom@codesourcery.com>
15413 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
15414 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
15415 get_call_reg_set_usage.
15416 * resource.c (mark_set_resources, mark_target_live_regs): Use
15417 get_call_reg_set_usage.
15418 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
15420 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
15421 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
15422 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15423 * ira-build.c (ira_create_allocno): Init
15424 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15425 (create_cap_allocno, propagate_allocno_info)
15426 (propagate_some_info_from_allocno)
15427 (copy_info_to_removed_store_destinations): Handle
15428 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15429 * ira-costs.c (ira_tune_allocno_costs): Use
15430 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
15432 2014-05-28 Radovan Obradovic <robradovic@mips.com>
15433 Tom de Vries <tom@codesourcery.com>
15435 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
15436 and function_used_regs_valid fields.
15437 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
15438 find_all_hard_reg_sets.
15439 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
15440 (get_call_reg_set_usage): New function.
15441 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
15442 * regs.h (get_call_reg_set_usage): Declare.
15444 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
15447 * config/dbx.h (License): Add Runtime Library Exception.
15448 * config/newlib-stdint.h (License): Same.
15449 * config/rtems.h (License): Same
15450 * config/initfini-array.h (License): Same
15451 * config/v850/v850.h (License): Same.
15452 * config/v850/v850-opts.h (License): Same
15453 * config/v850/rtems.h (License): Same.
15455 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
15458 * doc/extend.texi (Local Labels): Note that label differences are
15459 not supported for AVR.
15461 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
15462 Olivier Hainque <hainque@adacore.com>
15464 * rtl.h (set_for_reg_notes): Declare.
15465 * emit-rtl.c (set_for_reg_notes): New function.
15466 (set_unique_reg_note): Use it.
15467 * optabs.c (add_equal_note): Likewise
15469 2014-05-27 Andrew Pinski <apinski@cavium.com>
15471 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
15472 Use <w> for the register in assembly template.
15473 (stack_protect_test): Use the mode of operands[0] for the result.
15474 (stack_protect_test_<mode>): Use <w> for the register
15475 in assembly template.
15477 2014-05-27 DJ Delorie <dj@redhat.com>
15479 * config/rx/rx.c (add_vector_labels): New.
15480 (rx_output_function_prologue): Call it.
15481 (rx_handle_func_attribute): Don't require empty arguments.
15482 (rx_handle_vector_attribute): New.
15483 (rx_attribute_table): Add "vector" attribute.
15484 * doc/extend.texi (interrupt, vector): Document new/changed
15485 RX-specific attributes.
15487 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
15489 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
15491 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
15492 predicate to detect a negative quotient.
15494 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
15496 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
15497 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
15498 Add X - Y CMP 0 to X CMP Y transformation.
15499 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
15501 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
15503 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
15506 2014-05-27 Steve Ellcey <sellcey@mips.com>
15508 * config/mips/mips.c: Add include of cgraph.h.
15510 2014-05-27 Richard Biener <rguenther@suse.de>
15512 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
15514 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
15517 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
15518 * config/arm/arm-cores.def (License): Same.
15519 * config/arm/arm-opts.h (License): Same.
15520 * config/arm/aout.h (License): Same.
15521 * config/arm/bpabi.h (License): Same.
15522 * config/arm/elf.h (License): Same.
15523 * config/arm/linux-elf.h (License): Same.
15524 * config/arm/linux-gas.h (License): Same.
15525 * config/arm/netbsd-elf.h (License): Same.
15526 * config/arm/uclinux-eabi.h (License): Same.
15527 * config/arm/uclinux-elf.h (License): Same.
15528 * config/arm/vxworks.h (License): Same.
15530 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15532 * config/arm/neon.md (neon_bswap<mode>): New pattern.
15533 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
15534 (arm_init_neon_builtins): Handle NEON_BSWAP.
15535 Define required type nodes.
15536 (arm_expand_neon_builtin): Handle NEON_BSWAP.
15537 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
15538 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
15539 * config/arm/iterators.md (VDQHSD): New mode iterator.
15541 2014-05-27 Richard Biener <rguenther@suse.de>
15543 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15544 Try using literal operands when comparing value-ranges failed.
15546 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15548 * ira.c (commutative_operand): Adjust for change to recog_data.
15549 [Missing from previous commit.]
15551 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15553 * system.h (TEST_BIT): New macro.
15554 * recog.h (alternative_mask): New type.
15555 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
15556 (recog_data_d): Replace alternative_enabled_p array with
15557 enabled_alternatives.
15558 (target_recog): New structure.
15559 (default_target_recog, this_target_recog): Declare.
15560 (get_enabled_alternatives, recog_init): Likewise.
15561 * recog.c (default_target_recog, this_target_recog): New variables.
15562 (get_enabled_alternatives): New function.
15563 (extract_insn): Use it.
15564 (recog_init): New function.
15565 (preprocess_constraints, constrain_operands): Adjust for change to
15567 * postreload.c (reload_cse_simplify_operands): Likewise.
15568 * reload.c (find_reloads): Likewise.
15569 * ira-costs.c (record_reg_classes): Likewise.
15570 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
15571 all alternatives after a disabled one would be skipped.
15572 (ira_implicitly_set_insn_hard_regs): Likewise.
15573 * ira.c (ira_setup_alts): Adjust for change to recog_data.
15574 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
15575 with enabled_alternatives.
15576 * lra.c (free_insn_recog_data): Update accordingly.
15577 (lra_update_insn_recog_data): Likewise.
15578 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
15579 * lra-constraints.c (process_alt_operands): Likewise. Handle
15580 only_alternative as part of the enabled mask.
15581 * target-globals.h (this_target_recog): Declare.
15582 (target_globals): Add a recog field.
15583 (restore_target_globals): Restore this_target_recog.
15584 * target-globals.c: Include recog.h.
15585 (default_target_globals): Initialize recog field.
15586 (save_target_globals): Likewise.
15587 * reginfo.c (reinit_regs): Call recog_init.
15588 * toplev.c (backend_init_target): Likewise.
15590 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
15592 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
15593 rather than any named insn's code.
15595 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
15598 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
15599 * config/arm/arm-cores.def (License): Same.
15601 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
15603 * tree.h (decl_comdat_group): Declare.
15604 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
15605 * tree.c (decl_comdat_group): Here.
15607 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
15609 PR rtl-optimization/61222
15610 * combine.c (simplify_shift_const_1): When moving a PLUS outside
15611 the shift, truncate the PLUS operand to the result mode.
15613 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
15616 * config/i386/i386.c (ix86_rtx_costs)
15617 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
15620 2014-05-26 Martin Jambor <mjambor@suse.cz>
15622 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
15625 2014-05-26 Richard Biener <rguenther@suse.de>
15627 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
15628 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
15629 Provide specializations.
15630 (wi::int_traits <HOST_WIDE_INT>,
15631 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
15633 2014-05-26 Alan Modra <amodra@gmail.com>
15636 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
15637 params and return a bool. Remove dead code. Update comment.
15638 Assert we have a const_int source. Remove bogus code from
15639 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
15640 handling of constants > 2G and reg_equal note, from..
15641 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
15642 return value. Update comment. If we can, use a new pseudo
15643 for intermediate calculations.
15644 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
15646 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
15647 call to rs6000_emit_set_const in splitter.
15648 (movdi_internal64+2, +3): Likewise.
15650 2014-05-26 Richard Biener <rguenther@suse.de>
15652 * system.h: Define __STDC_FORMAT_MACROS before
15653 including inttypes.h.
15654 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
15655 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
15656 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
15657 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
15658 HOST_WIDEST_INT_C): Remove.
15659 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
15660 if C99 inttypes.h is not available.
15661 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
15662 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
15663 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
15664 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
15665 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
15666 (struct output_info): Likewise.
15667 (print_statistics): Adjust.
15668 (dump_bitmap_statistics): Likewise.
15669 * bt-load.c (migrate_btr_defs): Print with PRId64.
15670 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
15671 (MAX_SAFE_MULTIPLIER): Adjust.
15672 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
15673 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
15674 dump_cgraph_node): Likewise.
15675 * final.c (dump_basic_block_info): Likewise.
15676 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
15677 * gcov.c (format_gcov): Likewise.
15678 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
15680 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
15681 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
15682 (inline_small_functions, dump_overall_stats, dump_inline_stats):
15683 Use PRId64 for dumping.
15684 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
15685 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
15686 (add_allocno_hard_regs): Adjust.
15687 * loop-doloop.c (doloop_modify): Print using PRId64.
15688 * loop-iv.c (inverse): Compute in uint64_t.
15689 (determine_max_iter, iv_number_of_iterations): Likewise.
15690 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
15691 Print using PRId64.
15692 * lto-streamer-out.c (write_symbol): Use uint64_t.
15693 * mcf.c (CAP_INFINITY): Use int64_t maximum.
15694 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
15695 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
15696 * modulo-sched.c (const_iteration_count): Use int64_t.
15697 (sms_schedule): Dump using PRId64.
15698 * predict.c (dump_prediction): Likewise.
15699 * pretty-print.h (pp_widest_integer): Remove.
15700 * profile.c (get_working_sets, is_edge_inconsistent,
15701 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
15702 * tree-pretty-print.c (pp_double_int): Remove case handling
15703 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
15704 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
15706 (pass_optimize_bswap::execute): Remove restriction on hosts.
15707 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
15708 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
15709 * tree.c (widest_int_cst_value): Remove.
15710 * tree.h (widest_int_cst_value): Likewise.
15711 * value-prof.c (dump_histogram_value): Print using PRId64.
15712 * gengtype.c (main): Also inject int64_t.
15713 * ggc-page.c (struct max_alignment): Use int64_t.
15714 * alloc-pool.c (struct allocation_object_def): Likewise.
15715 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
15717 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
15718 * doc/tm.texi: Regenerated.
15719 * gengtype-lex.l (IWORD): Handle [u]int64_t.
15720 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
15721 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
15722 mmix_output_register_setting): Use [u]int64_t in prototypes.
15723 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
15724 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
15725 mmix_output_octa, mmix_output_shifted_value): Adjust.
15726 (mmix_intval): Adjust. Remove unreachable case.
15727 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
15729 2014-05-26 Richard Biener <rguenther@suse.de>
15731 * configure.ac: Drop __int64 type check. Insist that we
15732 found uint64_t and int64_t.
15733 * hwint.h (HOST_BITS_PER___INT64): Remove.
15734 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
15735 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
15736 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
15737 (HOST_WIDEST_FAST_INT): Remove __int64 case.
15738 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
15739 for dst_q_src_df_rms_cdt.
15740 * configure: Regenerate.
15741 * config.in: Likewise.
15743 2014-05-26 Michael Tautschnig <mt@debian.org>
15746 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
15747 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
15749 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15751 PR rtl-optimization/61278
15752 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
15754 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15756 PR rtl-optimization/61220
15757 Part of PR rtl-optimization/61225
15758 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
15759 insn; skip split_edge for a block with only one successor.
15761 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15763 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
15766 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15768 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
15769 (update_vtable_references): New function.
15770 (function_and_variable_visibility): Rewrite also vtable initializers.
15771 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
15773 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15775 * ggc.h (ggc_grow): New function.
15776 * ggc-none.c (ggc_grow): New function.
15777 * ggc-page.c (ggc_grow): Likewise.
15779 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15781 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
15782 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
15783 comdat_can_be_unshared_p, cgraph_externally_visible_p,
15784 varpool_externally_visible_p, can_replace_by_local_alias,
15785 update_visibility_by_resolution_info, function_and_variable_visibility,
15786 pass_data_ipa_function_and_variable_visibility,
15787 make_pass_ipa_function_and_variable_visibility,
15788 whole_program_function_and_variable_visibility,
15789 pass_data_ipa_whole_program_visibility,
15790 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
15791 * cgraph.h (cgraph_local_node_p): Declare.
15792 * ipa-visibility.c: New file.
15793 * Makefile.in (OBJS): Add ipa-visiblity.o
15795 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15797 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
15798 that var decl is available.
15800 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15802 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
15803 symtab_node pointer.
15804 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
15805 (find_decls_types_r): Do not walk COMDAT_GROUP.
15806 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
15807 * varasm.c (make_decl_one_only): Use set_comdat_group;
15808 create node if needed.
15809 * ipa-inline-transform.c (save_inline_function_body): Update
15810 way we decl->symtab mapping.
15811 * symtab.c (symtab_hash, hash_node, eq_node
15812 symtab_insert_node_to_hashtable): Remove.
15813 (symtab_register_node): Update.
15814 (symtab_unregister_node): Update.
15815 (symtab_get_node): Reimplement as inline function.
15816 (symtab_add_to_same_comdat_group): Update.
15817 (symtab_dissolve_same_comdat_group_list): Update.
15818 (dump_symtab_base): Update.
15819 (verify_symtab_base): Update.
15820 (symtab_make_decl_local): Update.
15821 (fixup_same_cpp_alias_visibility): Update.
15822 (symtab_nonoverwritable_alias): Update.
15823 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
15824 * ipa.c (update_visibility_by_resolution_info): UPdate.
15825 * bb-reorder.c: Include cgraph.h
15826 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
15827 with comdat groups.
15828 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
15829 * cgraph.c (cgraph_get_create_node): Update.
15830 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
15832 (symtab_get_node): Make inline.
15833 (symtab_insert_node_to_hashtable): Remove.
15834 (symtab_can_be_discarded): Update.
15835 (decl_comdat_group): New function.
15836 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
15838 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
15840 (read_comdat_group): New function.
15841 (input_node, input_varpool_node): Use it.
15842 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
15844 * mips.c (mips_start_unique_function): Likewise.
15845 (ix86_code_end): Likewise.
15846 (rs6000_code_end): Likweise.
15847 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
15849 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15851 * gengtype-state.c (fatal_reading_state): Bring offline.
15852 * optabs.c (widening_optab_handler): Bring offline.
15853 * optabs.h (widening_optab_handler): Likewise.
15854 * final.c (get_attr_length_1): Likewise.
15856 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15858 * sched-int.h (sd_iterator_cond): Manually tail recurse.
15860 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15862 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
15863 (ppc440-compare): Include shift with dot.
15864 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
15865 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
15867 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
15869 (e6500_sfx2): Include it.
15870 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
15871 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
15872 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
15873 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
15874 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
15875 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
15876 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
15877 *lshiftrt_internal1le, *lshiftrt_internal1be,
15878 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
15879 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
15880 *rotldi3_internal10le, *rotldi3_internal10be,
15881 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
15882 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
15883 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
15884 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
15885 define_insns): Use type "shift" in the appropriate alternatives.
15887 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15889 * config/rs6000/rs6000.md (type): Add "logical". Delete
15891 (dot): Adjust comment.
15892 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
15893 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
15894 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
15895 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
15896 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
15897 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
15898 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
15899 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15901 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15902 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15903 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15904 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15905 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15906 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15907 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15908 * config/rs6000/8540.md (ppc8540_su): Adjust.
15909 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15910 cell-cmp-microcoded): Adjust.
15911 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15912 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15913 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15914 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15915 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15916 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15917 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15918 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15919 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15921 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15922 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
15923 Adjust. Adjust comment.
15924 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15925 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15927 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15929 * config/rs6000/rs6000.md (type): Add "add".
15930 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
15931 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
15932 define_insns): Use it.
15933 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15935 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15936 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15937 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15938 * config/rs6000/601.md (ppc601-integer): Adjust.
15939 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15940 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15941 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15942 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15943 * config/rs6000/8540.md (ppc8540_su): Adjust.
15944 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15945 cell-cmp-microcoded): Adjust.
15946 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15947 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15948 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15949 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15950 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15951 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15952 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15953 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15954 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15956 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15957 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
15958 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15959 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15961 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15963 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
15964 "delayed_compare", "var_delayed_compare".
15965 (var_shift): New attribute.
15966 (cell_micro): Adjust.
15967 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
15968 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
15969 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
15970 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15971 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15972 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15973 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15974 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
15975 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
15976 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15977 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
15978 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
15979 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
15980 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
15981 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
15982 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
15983 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
15984 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
15985 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
15986 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
15987 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
15988 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
15989 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
15990 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15991 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15993 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15994 * config/rs6000/440.md (ppc440-integer): Adjust.
15995 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15996 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
15997 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15998 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15999 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16000 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16001 * config/rs6000/8540.md (ppc8540_su): Adjust.
16002 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16003 cell-cmp-microcoded): Adjust.
16004 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16005 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16006 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16007 e500mc64_delayed): Adjust.
16008 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16009 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16010 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16011 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16012 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16013 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16014 power6-delayed-compare, power6-var-delayed-compare): Adjust.
16015 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16016 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16018 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16019 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16021 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16023 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
16024 (bits): New mode_attr.
16025 (idiv_ldiv): Delete mode_attr.
16026 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16027 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16028 rs6000_adjust_priority, is_nonpipeline_insn,
16029 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16031 * config/rs6000/40x.md (ppc403-idiv): Adjust.
16032 * config/rs6000/440.md (ppc440-idiv): Adjust.
16033 * config/rs6000/476.md (ppc476-idiv): Adjust.
16034 * config/rs6000/601.md (ppc601-idiv): Adjust.
16035 * config/rs6000/603.md (ppc603-idiv): Adjust.
16036 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16037 ppc620-ldiv): Adjust.
16038 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16039 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16040 * config/rs6000/8540.md (ppc8540_divide): Adjust.
16041 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16042 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16043 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16044 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16045 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16046 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16047 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16048 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16049 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16050 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16051 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16052 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16053 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16054 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16055 * config/rs6000/titan.md (titan_fxu_div): Adjust.
16057 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16059 * config/rs6000/rs6000.md (type): Delete "insert_word",
16060 "insert_dword". Add "insert".
16061 (size): Update comment.
16062 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16063 insn_must_be_first_in_group): Adjust.
16064 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16065 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16066 *insvsi_internal6, insvdi_internal): Adjust.
16068 * config/rs6000/40x.md (ppc403-integer): Adjust.
16069 * config/rs6000/440.md (ppc440-integer): Adjust.
16070 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
16071 * config/rs6000/601.md (ppc601-integer): Adjust.
16072 * config/rs6000/603.md (ppc603-integer): Adjust.
16073 * config/rs6000/6xx.md (ppc604-integer): Adjust.
16074 * config/rs6000/7450.md (ppc7450-integer): Adjust.
16075 * config/rs6000/7xx.md (ppc750-integer): Adjust.
16076 * config/rs6000/8540.md (ppc8540_su): Adjust.
16077 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
16078 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
16079 * config/rs6000/e500mc.md (e500mc_su): Adjust.
16080 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
16081 * config/rs6000/e5500.md (e5500_sfx): Adjust.
16082 * config/rs6000/e6500.md (e6500_sfx): Adjust.
16083 * config/rs6000/mpc.md (mpccore-integer): Adjust.
16084 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
16085 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
16086 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
16087 * config/rs6000/power7.md (power7-integer): Adjust.
16088 * config/rs6000/power8.md (power8-1cyc): Adjust.
16089 * config/rs6000/rs64.md (rs64a-integer): Adjust.
16090 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16092 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16094 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
16095 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
16096 (size): New attribute.
16097 (dot): New attribute.
16098 (cell_micro): Adjust.
16099 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
16100 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
16101 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
16102 umuldi3_highpart): Adjust.
16103 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16104 rs6000_adjust_priority, is_nonpipeline_insn,
16105 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16107 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
16108 ppc405-imul3): Adjust.
16109 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
16110 * config/rs6000/476.md (ppc476-imul): Adjust.
16111 * config/rs6000/601.md (ppc601-imul): Adjust.
16112 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
16113 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
16114 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
16115 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
16116 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
16118 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
16119 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
16120 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
16121 cell-imul): Adjust.
16122 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
16123 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
16124 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
16125 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
16126 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
16127 * config/rs6000/mpc.md (mpccore-imul): Adjust.
16128 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
16129 power4-lmul, power4-imul, power4-imul3): Adjust.
16130 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
16131 power5-lmul, power5-imul, power5-imul3): Adjust.
16132 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
16133 power6-lmul, power6-imul, power6-imul3): Adjust.
16134 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
16135 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
16137 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
16138 rs64a-lmul): Adjust.
16139 * config/rs6000/titan.md (titan_imul): Adjust.
16141 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16143 * config/rs6000/rs6000.md (type): Add new value "halfmul".
16144 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
16145 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
16146 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
16147 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
16148 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
16149 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
16150 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
16151 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
16152 * config/rs6000/titan.md: Delete nonsensical comment.
16153 (titan_imul): Add type imul3.
16154 (titan_mulhw): Remove type imul3; add type halfmul.
16156 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
16158 * config/rs6000/rs6000.md (type): Reorder, reformat.
16160 2014-05-23 Martin Jambor <mjambor@suse.cz>
16162 PR tree-optimization/53787
16163 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
16164 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
16165 analysis_done, update all uses.
16166 * ipa-prop.c: Include domwalk.h
16167 (param_analysis_info): Removed.
16168 (param_aa_status): New type.
16169 (ipa_bb_info): Likewise.
16170 (func_body_info): Likewise.
16171 (ipa_get_bb_info): New function.
16172 (aa_overwalked): Likewise.
16173 (find_dominating_aa_status): Likewise.
16174 (parm_bb_aa_status_for_bb): Likewise.
16175 (parm_preserved_before_stmt_p): Changed to use new param AA info.
16176 (load_from_unmodified_param): Accept func_body_info as a parameter
16177 instead of parms_ainfo.
16178 (parm_ref_data_preserved_p): Changed to use new param AA info.
16179 (parm_ref_data_pass_through_p): Likewise.
16180 (ipa_load_from_parm_agg_1): Likewise. Update callers.
16181 (compute_complex_assign_jump_func): Changed to use new param AA info.
16182 (compute_complex_ancestor_jump_func): Likewise.
16183 (ipa_compute_jump_functions_for_edge): Likewise.
16184 (ipa_compute_jump_functions): Removed.
16185 (ipa_compute_jump_functions_for_bb): New function.
16186 (ipa_analyze_indirect_call_uses): Likewise, moved variable
16188 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
16189 and info, moved variable declarations down.
16190 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
16192 (ipa_analyze_stmt_uses): Likewise.
16193 (ipa_analyze_params_uses): Removed.
16194 (ipa_analyze_params_uses_in_bb): New function.
16195 (ipa_analyze_controlled_uses): Likewise.
16196 (free_ipa_bb_info): Likewise.
16197 (analysis_dom_walker): New class.
16198 (ipa_analyze_node): Handle node-specific forbidden analysis,
16199 initialize and free func_body_info, use dominator walker.
16200 (ipcp_modif_dom_walker): New class.
16201 (ipcp_transform_function): Create and free func_body_info, use
16202 ipcp_modif_dom_walker, moved a lot of functionality there.
16204 2014-05-23 Marek Polacek <polacek@redhat.com>
16205 Jakub Jelinek <jakub@redhat.com>
16207 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
16208 * gcc.c (sanitize_spec_function): Likewise.
16209 * convert.c (convert_to_integer): Include "ubsan.h". Add
16210 floating-point to integer instrumentation.
16211 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
16212 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
16213 SANITIZE_NONDEFAULT.
16214 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
16215 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
16216 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
16217 * ubsan.c: Include "realmpfr.h" and "dfp.h".
16218 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
16219 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
16220 float/double/long double.
16221 (ubsan_instrument_float_cast): New function.
16222 * ubsan.h (ubsan_instrument_float_cast): Declare.
16224 2014-05-23 Jiong Wang <jiong.wang@arm.com>
16226 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
16228 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
16229 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
16230 Adjust for tailcalling through registers.
16231 * config/aarch64/aarch64.h (enum reg_class): New caller save
16233 (REG_CLASS_NAMES): Likewise.
16234 (REG_CLASS_CONTENTS): Likewise.
16235 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
16236 Allow tailcalling without decls.
16238 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16240 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16241 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
16243 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
16244 gsi, and variables v_* to v*.
16246 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
16248 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
16250 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
16252 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
16253 * omp-low.c: Update accordingly.
16255 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
16256 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
16257 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
16258 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
16259 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
16260 GF_OMP_TARGET_KIND_UPDATE.
16262 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16263 Explicitly enumerate the expected region types.
16265 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
16268 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
16269 documentation; the old documentation didn't clearly state the
16270 constraints on the contents of the pointed-to storage.
16272 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16274 Fix bootstrap error on ia64
16275 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
16276 Return default value.
16278 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
16280 PR tree-optimization/54733
16281 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
16283 (find_bswap_or_nop_load): New.
16284 (find_bswap_1): Renamed to ...
16285 (find_bswap_or_nop_1): This. Also add support for memory source.
16286 (find_bswap): Renamed to ...
16287 (find_bswap_or_nop): This. Also add support for memory source and
16288 detection of bitwise operations equivalent to load in target
16290 (execute_optimize_bswap): Likewise. Also move its leading comment back
16291 in place and split statement transformation into ...
16292 (bswap_replace): This.
16294 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
16296 PR rtl-optimization/61215
16297 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
16298 simplify_gen_subreg until final substitution.
16300 2014-05-23 Alan Modra <amodra@gmail.com>
16303 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
16304 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
16305 Use "Y" constraint rather than "m".
16307 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16309 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
16311 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
16312 New function declaration.
16313 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
16314 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
16315 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
16316 (aarch64_init_builtins) : Initialize builtins
16317 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16318 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16319 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
16320 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
16321 and __builtins_aarch64_set_fpsr.
16322 (aarch64_atomic_assign_expand_fenv): New function.
16323 * config/aarch64/aarch64.md (set_fpcr): New pattern.
16324 (get_fpcr) : Likewise.
16325 (set_fpsr) : Likewise.
16326 (get_fpsr) : Likewise.
16327 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
16328 and UNSPECV_SET_FPSR.
16329 * doc/extend.texi (AARCH64 Built-in Functions) : Document
16330 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16331 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16333 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
16335 PR rtl-optimization/60969
16336 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
16337 constraints. Set up mem cost for NO_REGS case.
16339 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
16341 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
16343 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
16345 * config/darwin.c: Include "lto-section-names.h".
16346 (LTO_SEGMENT_NAME): Don't define.
16347 * config/i386/winnt.c: Include "lto-section-names.h".
16348 * lto-streamer.c: Include "lto-section-names.h".
16349 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
16350 * lto-wrapper.c: Include "lto-section-names.h".
16351 (LTO_SECTION_NAME_PREFIX): Don't define.
16352 * lto-section-names.h: New file.
16353 * cgraphunit.c: Include "lto-section-names.h".
16355 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
16357 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
16359 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
16362 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
16364 2014-05-22 Nick Clifton <nickc@redhat.com>
16366 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
16368 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
16370 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
16371 -> (T)A transformation to integer types.
16373 2014-05-22 Teresa Johnson <tejohnson@google.com>
16375 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
16376 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
16377 (gcov_rewrite): Use gcov_nonruntime_assert.
16378 (gcov_open): Ditto.
16379 (gcov_write_words): Ditto.
16380 (gcov_write_length): Ditto.
16381 (gcov_read_words): Use gcov_nonruntime_assert, and remove
16382 gcc_assert from IN_LIBGCOV code.
16383 (gcov_read_summary): Use gcov_error to flag profile corruption.
16384 (gcov_sync): Use gcov_nonruntime_assert.
16385 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
16386 (gcov_histo_index): Use gcov_nonruntime_assert.
16387 (static void gcov_histogram_merge): Ditto.
16388 (compute_working_sets): Ditto.
16389 * gcov-io.h (gcov_nonruntime_assert): Define.
16390 (gcov_error): Define for !IN_LIBGCOV
16392 2014-05-22 Richard Biener <rguenther@suse.de>
16394 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16395 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
16396 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
16397 and deallocation site.
16398 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16399 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
16400 passing through the incoming points-to set.
16401 (handle_lhs_call): Use flags argument instead of recomputing it.
16402 (find_func_aliases_for_call): Call handle_lhs_call with proper
16405 2014-05-22 Jakub Jelinek <jakub@redhat.com>
16407 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
16408 all padding bits in REAL_VALUE_TYPE are cleared.
16410 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16412 Cleanup and improve multipass_dfa_lookahead_guard
16413 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
16414 (core2i7_first_cycle_multipass_begin,)
16415 (core2i7_first_cycle_multipass_issue,)
16416 (core2i7_first_cycle_multipass_backtrack): Update signature.
16417 * config/ia64/ia64.c
16418 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
16419 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
16420 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
16422 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
16423 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
16425 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
16427 * doc/tm.texi: Regenerate.
16429 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
16430 * haifa-sched.c (ready_try): Make signed to allow negative values.
16431 (rebug_ready_list_1): Update.
16432 (choose_ready): Simplify.
16433 (sched_extend_ready_list): Update.
16435 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16437 Remove IA64 speculation tweaking flags
16438 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
16439 speculation tuning flags.
16440 (msched-prefer-non-data-spec-insns,)
16441 (msched-prefer-non-control-spec-insns): Obsolete options.
16442 * haifa-sched.c (choose_ready): Remove handling of
16443 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16444 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
16445 and PREFER_NON_DATA_SPEC.
16446 * sel-sched.c (process_spec_exprs): Remove handling of
16447 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16449 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16451 Improve scheduling debug output
16452 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
16453 (advance_one_cycle): Update.
16454 (schedule_insn, queue_to_ready): Add debug printouts.
16455 (debug_ready_list_1): New static function.
16456 (debug_ready_list): Update.
16457 (max_issue): Add debug printouts.
16458 (dump_insn_stream): New static function.
16459 (schedule_block): Use it. Also better indent printouts.
16461 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16463 Fix sched_insn debug counter
16464 * haifa-sched.c (schedule_insn): Update.
16465 (struct haifa_saved_data): Add nonscheduled_insns_begin.
16466 (save_backtrack_point, restore_backtrack_point): Update.
16467 (first_nonscheduled_insn): New static function.
16468 (queue_to_ready, choose_ready): Use it.
16469 (schedule_block): Init nonscheduled_insns_begin.
16470 (sched_emit_insn): Update.
16473 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
16475 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
16477 (aarch64_secondary_reload) : LikeWise.
16478 (aarch64_class_max_nregs) : Remove CORE_REGS.
16479 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
16480 (REG_CLASS_NAMES) : Likewise.
16481 (REG_CLASS_CONTENTS) : LikeWise.
16482 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
16484 2014-05-21 Guozhi Wei <carrot@google.com>
16487 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
16489 (vqdmulhq_n_s16): Likewise.
16491 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16493 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
16495 2014-05-21 Marek Polacek <polacek@redhat.com>
16498 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
16500 2014-05-21 Martin Jambor <mjambor@suse.cz>
16502 * doc/invoke.texi (Optimize Options): Document parameters
16503 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
16504 ipa-cp-array-index-hint-bonus.
16506 2014-05-21 Mark Wielaard <mjw@redhat.com>
16509 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
16510 version >= 3 or not strict DWARF.
16511 * langhooks.h (struct lang_hooks_for_types): Add
16512 enum_underlying_base_type.
16513 * langhooks.c (lhd_enum_underlying_base_type): New function.
16514 * gcc/langhooks.h (struct lang_hooks_for_types): Add
16515 enum_underlying_base_type.
16516 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
16517 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
16518 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
16520 2014-05-21 Richard Biener <rguenther@suse.de>
16522 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
16524 2014-05-21 John Marino <gnugcc@marino.st>
16526 * config.gcc (*-*-dragonfly*): New target.
16527 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
16528 * configure: Regenerate.
16529 * config/dragonfly-stdint.h: New.
16530 * config/dragonfly.h: New.
16531 * config/dragonfly.opt: New.
16532 * config/i386/dragonfly.h: New.
16533 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
16535 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16537 * tree.def (VOID_CST): New.
16538 * tree-core.h (TI_VOID): New.
16539 * tree.h (void_node): New.
16540 * tree.c (tree_node_structure_for_code, tree_code_size)
16541 (iterative_hash_expr): Handle VOID_CST.
16542 (build_common_tree_nodes): Initialize void_node.
16544 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
16546 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
16548 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
16550 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
16553 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
16554 flag_reorder_blocks_and_partition.
16555 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
16557 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
16560 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
16562 (*addc_r_t): Add new insn_and_split.
16564 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16566 PR middle-end/61252
16567 * omp-low.c (handle_simd_reference): New function.
16568 (lower_rec_input_clauses): Use it. Defer adding reference
16569 initialization even for reduction without placeholder if in simd,
16570 handle it properly later on.
16572 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16574 PR tree-optimization/60899
16575 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
16576 assume all static symbols will have definition wile parsing and
16577 check the do have definition later in compilation; check that
16578 variable referring symbol will be output before concluding that
16579 reference is safe; be conservative for referring local statics;
16580 be more precise about when comdat is output in other partition.
16582 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16585 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
16587 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
16588 (ipa_inline): Loop inline_to_all_callers until no more aliases
16591 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16593 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
16594 set writeonly flag only for vars actually written to.
16596 2014-05-20 Dehao Chen <dehao@google.com>
16598 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
16599 and callee count to get clone count.
16600 * tree-inline.c (expand_call_inline): Use callee count instead of bb
16601 count in copy_body.
16603 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
16605 PR rtl-optimization/61243
16606 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
16608 2014-05-20 Xinliang David Li <davidxl@google.com>
16610 * cgraphunit.c (walk_polymorphic_call_targets): Add
16611 dbgcnt and fopt-info support.
16612 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
16613 * ipa-devirt.c (ipa_devirt): Ditto.
16614 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
16615 * ipa.c (walk_polymorphic_call_targets): Ditto.
16616 * gimple-fold.c (fold_gimple_assign): Ditto.
16617 (gimple_fold_call): Ditto.
16618 * dbgcnt.def: New counter.
16620 2014-05-20 DJ Delorie <dj@redhat.com>
16622 * config/msp430/msp430.md (split): Don't allow subregs when
16623 splitting SImode adds.
16624 (andneghi): Fix subtraction logic.
16625 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
16627 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
16629 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
16631 * except.c (switch_to_exception_section, resolve_unique_section,
16632 get_named_text_section, default_function_rodata_section,
16633 align_variable, get_block_for_decl, default_section_type_flags):
16634 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
16635 * symtab.c (symtab_add_to_same_comdat_group,
16636 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
16637 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
16639 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
16640 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
16641 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16642 (c6x_function_in_section_p): Likewise.
16643 * config/darwin.c (machopic_select_section): Likewise.
16644 * config/arm/arm.c (arm_function_in_section_p): Likewise.
16645 * config/mips/mips.c (mips_function_rodata_section): Likewise.
16646 * config/mep/mep.c (mep_select_section): LIkewise.
16647 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16649 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
16651 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
16652 EH region of calls to pure functions that can throw an exception.
16653 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
16654 (copy_reference_ops_from_call): Also copy the EH region of the call if
16655 it can throw an exception.
16657 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16659 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
16660 nested VEC_SELECTs that are inverses of each other.
16662 2014-05-20 Richard Biener <rguenther@suse.de>
16664 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
16665 (extract_and_process_scc_for_name): not here.
16666 (cond_dom_walker::before_dom_children): Only process
16667 stmts that end the BB in interesting ways.
16668 (run_scc_vn): Mark param uses as visited.
16670 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16672 * config/arm/arm.md (arith_shiftsi): Do not predicate for
16675 2014-05-20 Nick Clifton <nickc@redhat.com>
16677 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
16678 (msp430_gimplify_va_arg_expr): New function.
16679 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
16681 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
16682 operand 0 in order to prevent confusion about the number of
16683 registers involved.
16685 2014-05-20 Richard Biener <rguenther@suse.de>
16687 PR tree-optimization/61221
16688 * tree-ssa-pre.c (el_to_update): Remove.
16689 (eliminate_dom_walker::before_dom_children): Handle released
16690 VDEFs by value-numbering them to the associated VUSE. Update
16691 stmt immediately for substituted call address.
16692 (eliminate): Remove delayed stmt updating code.
16693 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
16694 possibly late re-numbered vuses.
16695 (vn_reference_lookup_2): Adjust.
16696 (vn_reference_lookup_pieces): Likewise.
16697 (vn_reference_lookup): Likewise.
16699 2014-05-20 Richard Biener <rguenther@suse.de>
16701 * config.gcc: Remove need_64bit_hwint.
16702 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
16703 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
16705 * config.in: Regenerate.
16706 * configure: Likewise.
16708 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
16710 * doc/extend.texi: Create Label Attributes section,
16711 move all label attributes into it and reference it.
16713 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
16715 * arm.c (thumb1_reorg): When scanning backwards skip anything
16716 that's not a proper insn.
16718 2014-05-19 Richard Biener <rguenther@suse.de>
16720 PR tree-optimization/61221
16721 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16722 Do nothing for unreachable blocks.
16723 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
16724 Improve unreachability detection.
16726 2014-05-19 Richard Biener <rguenther@suse.de>
16728 PR tree-optimization/61209
16729 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
16731 2014-05-19 Nick Clifton <nickc@redhat.com>
16733 * except.c (init_eh): Fix computation of builtin setjmp buffer
16734 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
16736 2014-05-19 Richard Biener <rguenther@suse.de>
16738 PR tree-optimization/61184
16739 * tree-vrp.c (is_negative_overflow_infinity): Use
16740 TREE_OVERFLOW_P and do that check first.
16741 (is_positive_overflow_infinity): Likewise.
16742 (is_overflow_infinity): Likewise.
16743 (vrp_operand_equal_p): Properly treat operands with
16744 differing overflow as not equal.
16746 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
16748 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
16749 shift simplification where it was intended.
16751 2014-05-19 Christian Bruel <christian.bruel@st.com>
16754 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
16756 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
16759 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
16762 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16764 * reg-notes.def (CROSSING_JUMP): Likewise.
16765 * rtl.h (rtx_def): Update comment for jump flag.
16766 (CROSSING_JUMP_P): Define.
16767 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
16768 of a REG_CROSSING_JUMP note.
16769 * cfghooks.c (tidy_fallthru_edges): Likewise.
16770 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
16771 * emit-rtl.c (try_split): Likewise.
16772 * haifa-sched.c (sched_create_recovery_edges): Likewise.
16773 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
16774 * jump.c (redirect_jump_2): Likewise.
16775 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
16776 (relax_delay_slots): Likewise.
16777 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
16778 (bbit_di): Likewise.
16779 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
16780 * config/sh/sh.md (jump_compact): Likewise.
16781 * bb-reorder.c (rotate_loop): Likewise.
16782 (pass_duplicate_computed_gotos::execute): Likewise.
16783 (add_reg_crossing_jump_notes): Rename to...
16784 (update_crossing_jump_flags): ...this.
16785 (pass_partition_blocks::execute): Update accordingly.
16787 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16789 * tree.h: Remove extraneous template <>.
16791 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16793 * ipa.c (symtab_remove_unreachable_nodes): Remove
16794 symbol from comdat group if its body was eliminated.
16795 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
16796 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
16797 (symtab_unregister_node): ... this one.
16798 (verify_symtab_base): More strict checking of comdats.
16799 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
16801 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16803 * tree-pass.h (make_pass_ipa_comdats): New pass.
16804 * timevar.def (TV_IPA_COMDATS): New timevar.
16805 * passes.def (pass_ipa_comdats): Add.
16806 * Makefile.in (OBJS): Add ipa-comdats.o
16807 * ipa-comdats.c: New file.
16809 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16811 * ipa.c (update_visibility_by_resolution_info): New function.
16812 (function_and_variable_visibility): Use it.
16814 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16816 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
16818 (FOR_EACH_DEFINED_SYMBOL): New macro.
16819 (varpool_first_static_initializer, varpool_next_static_initializer,
16820 varpool_first_defined_variable, varpool_next_defined_variable):
16822 (symtab_in_same_comdat_p): Correctly deal with inline functions.
16824 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16826 * ggc-page.c (ggc_handle_finalizers): Add comment.
16828 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16830 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
16831 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
16832 (ggc_internal_cleared_alloc): Likewise.
16833 * ggc-page.c (finalizer): New class.
16834 (vec_finalizer): Likewise.
16835 (globals::finalizers): New member.
16836 (globals::vec_finalizers): Likewise.
16837 (ggc_internal_alloc): Record the finalizer if any for the block being
16839 (ggc_handle_finalizers): New function.
16840 (ggc_collect): Call ggc_handle_finalizers.
16841 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
16843 (ggc_internal_cleared_alloc): Likewise.
16844 (finalize): New function.
16845 (need_finalization_p): Likewise.
16846 (ggc_alloc): Install the type's destructor as the finalizer if it
16847 might do something.
16848 (ggc_cleared_alloc): Likewise.
16849 (ggc_vec_alloc): Likewise.
16850 (ggc_cleared_vec_alloc): Likewise.
16852 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16854 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
16856 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16858 * alias.c (record_alias_subset): Adjust.
16859 * bitmap.c (bitmap_element_allocate): Likewise.
16860 (bitmap_gc_alloc_stat): Likewise.
16861 * cfg.c (init_flow): Likewise.
16862 (alloc_block): Likewise.
16863 (unchecked_make_edge): Likewise.
16864 * cfgloop.c (alloc_loop): Likewise.
16865 (flow_loops_find): Likewise.
16866 (rescan_loop_exit): Likewise.
16867 * cfgrtl.c (init_rtl_bb_info): Likewise.
16868 * cgraph.c (insert_new_cgraph_node_version): Likewise.
16869 (cgraph_allocate_node): Likewise.
16870 (cgraph_create_edge_1): Likewise.
16871 (cgraph_allocate_init_indirect_info): Likewise.
16872 * cgraphclones.c (cgraph_clone_edge): Likewise.
16873 * cgraphunit.c (add_asm_node): Likewise.
16874 (init_lowered_empty_function): Likewise.
16875 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
16876 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16877 (alpha_use_linkage): Likewise.
16878 * config/arc/arc.c (arc_init_machine_status): Likewise.
16879 * config/arm/arm.c (arm_init_machine_status): Likewise.
16880 * config/avr/avr.c (avr_init_machine_status): Likewise.
16881 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16882 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
16883 * config/cris/cris.c (cris_init_machine_status): Likewise.
16884 * config/darwin.c (machopic_indirection_name): Likewise.
16885 (darwin_build_constant_cfstring): Likewise.
16886 (darwin_enter_string_into_cfstring_table): Likewise.
16887 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
16888 * config/frv/frv.c (frv_init_machine_status): Likewise.
16889 * config/i386/i386.c (get_dllimport_decl): Likewise.
16890 (ix86_init_machine_status): Likewise.
16891 (assign_386_stack_local): Likewise.
16892 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16893 (i386_pe_maybe_record_exported_symbol): Likewise.
16894 (i386_pe_record_stub): Likewise.
16895 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16896 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16897 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16898 (m32c_note_pragma_address): Likewise.
16899 * config/mep/mep.c (mep_init_machine_status): Likewise.
16900 (mep_note_pragma_flag): Likewise.
16901 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16902 (mips16_local_alias): Likewise.
16903 (mips_init_machine_status): Likewise.
16904 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16905 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16906 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
16907 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
16908 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
16909 * config/pa/pa.c (pa_init_machine_status): Likewise.
16910 (pa_get_deferred_plabel): Likewise.
16911 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
16912 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16913 (rs6000_init_machine_status): Likewise.
16914 (output_toc): Likewise.
16915 * config/s390/s390.c (s390_init_machine_status): Likewise.
16916 * config/score/score.c (score_output_external): Likewise.
16917 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16918 * config/spu/spu.c (spu_init_machine_status): Likewise.
16919 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
16920 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
16921 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16922 * coverage.c (coverage_end_function): Likewise.
16923 * dbxout.c (dbxout_init): Likewise.
16924 * doc/gty.texi: Don't mention variable_size attribute.
16925 * dwarf2cfi.c (new_cfi): Adjust.
16926 (new_cfi_row): Likewise.
16927 (copy_cfi_row): Likewise.
16928 (create_cie_data): Likewise.
16929 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
16930 (new_loc_descr): Likewise.
16931 (find_AT_string_in_table): Likewise.
16932 (add_addr_table_entry): Likewise.
16933 (new_die): Likewise.
16934 (add_var_loc_to_decl): Likewise.
16935 (clone_die): Likewise.
16936 (clone_as_declaration): Likewise.
16937 (break_out_comdat_types): Likewise.
16938 (new_loc_list): Likewise.
16939 (add_loc_descr_to_each): Likewise.
16940 (add_location_or_const_value_attribute): Likewise.
16941 (add_linkage_name): Likewise.
16942 (lookup_filename): Likewise.
16943 (dwarf2out_var_location): Likewise.
16944 (new_line_info_table): Likewise.
16945 (dwarf2out_init): Likewise.
16946 (mem_loc_descriptor): Likewise.
16947 (loc_descriptor): Likewise.
16948 (add_const_value_attribute): Likewise.
16949 (tree_add_const_value_attribute): Likewise.
16950 (comp_dir_string): Likewise.
16951 (dwarf2out_vms_debug_main_pointer): Likewise.
16952 (string_cst_pool_decl): Likewise.
16953 * emit-rtl.c (set_mem_attrs): Likewise.
16954 (get_reg_attrs): Likewise.
16955 (start_sequence): Likewise.
16956 (init_emit): Likewise.
16957 (init_emit_regs): Likewise.
16958 * except.c (init_eh_for_function): Likewise.
16959 (gen_eh_region): Likewise.
16960 (gen_eh_region_catch): Likewise.
16961 (gen_eh_landing_pad): Likewise.
16962 (add_call_site): Likewise.
16963 * function.c (add_frame_space): Likewise.
16964 (insert_temp_slot_address): Likewise.
16965 (assign_stack_temp_for_type): Likewise.
16966 (get_hard_reg_initial_val): Likewise.
16967 (allocate_struct_function): Likewise.
16968 (prepare_function_start): Likewise.
16969 (types_used_by_var_decl_insert): Likewise.
16970 * gengtype.c (variable_size_p): Remove function.
16971 (enum alloc_quantity): Remove enum.
16972 (write_typed_alloc_def): Remove function.
16973 (write_typed_struct_alloc_def): Likewise.
16974 (write_typed_typedef_alloc_def): Likewise.
16975 (write_typed_alloc_defns): Likewise.
16977 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
16978 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
16979 * ggc.h (ggc_alloc): new function.
16980 (ggc_cleared_alloc): Likewise.
16981 (ggc_vec_alloc): Template on type of vector element, and remove
16982 element size argument.
16983 (ggc_cleared_vec_alloc): Likewise.
16984 * gimple.c (gimple_build_omp_for): Adjust.
16985 (gimple_copy): Likewise.
16986 * ipa-cp.c (get_replacement_map): Likewise.
16987 (find_aggregate_values_for_callers_subset): Likewise.
16988 (known_aggs_to_agg_replacement_list): Likewise.
16989 * ipa-devirt.c (get_odr_type): Likewise.
16990 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
16991 (read_agg_replacement_chain): Likewise.
16992 * loop-iv.c (get_simple_loop_desc): Likewise.
16993 * lto-cgraph.c (input_node_opt_summary): Likewise.
16994 * lto-section-in.c (lto_new_in_decl_state): Likewise.
16995 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16996 (input_eh_region): Likewise.
16997 (input_eh_lp): Likewise.
16998 (input_cfg): Likewise.
16999 * optabs.c (set_optab_libfunc): Likewise.
17000 (init_tree_optimization_optabs): Likewise.
17001 (set_conv_libfunc): Likewise.
17002 * passes.c (do_per_function_toporder): Likewise.
17003 * rtl.h: Don't use variable_size gty attribute.
17004 * sese.c (if_region_set_false_region): Adjust.
17005 * stringpool.c (gt_pch_save_stringpool): Likewise.
17006 * target-globals.c (save_target_globals): Likewise.
17007 * toplev.c (general_init): Likewise.
17008 * trans-mem.c (record_tm_replacement): Likewise.
17009 (split_bb_make_tm_edge): Likewise.
17010 * tree-cfg.c (move_sese_region_to_fn): Likewise.
17011 * tree-data-ref.h (lambda_vector_new): Likewise.
17012 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17013 * tree-iterator.c (tsi_link_before): Likewise.
17014 (tsi_link_after): Likewise.
17015 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17016 * tree-ssa-loop-niter.c (record_estimate): Likewise.
17017 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17018 * tree-ssa-operands.h: Don't use variable_size gty attribute.
17019 * tree-ssa.c (init_tree_ssa): Adjust.
17020 * tree-ssanames.c (set_range_info): Likewise.
17021 (get_ptr_info): Likewise.
17022 (duplicate_ssa_name_ptr_info): Likewise.
17023 (duplicate_ssa_name_range_info): Likewise.
17024 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17025 (unpack_ts_fixed_cst_value_fields): Likewise.
17026 * tree.c (build_fixed): Likewise.
17027 (build_real): Likewise.
17028 (build_string): Likewise.
17029 (decl_priority_info): Likewise.
17030 (decl_debug_expr_insert): Likewise.
17031 (decl_value_expr_insert): Likewise.
17032 (decl_debug_args_insert): Likewise.
17033 (type_hash_add): Likewise.
17034 (build_omp_clause): Likewise.
17035 * ubsan.c (decl_for_type_insert): Likewise.
17036 * varasm.c (get_unnamed_section): Likewise.
17037 (get_noswitch_section): Likewise.
17038 (get_section): Likewise.
17039 (get_block_for_section): Likewise.
17040 (create_block_symbol): Likewise.
17041 (build_constant_desc): Likewise.
17042 (create_constant_pool): Likewise.
17043 (force_const_mem): Likewise.
17044 (record_tm_clone_pair): Likewise.
17045 * varpool.c (varpool_create_empty_node): Likewise.
17047 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
17049 * dwarf2out.c (tree_add_const_value_attribute): Call
17050 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17051 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17052 instead of ggc_internal_<x>alloc_stat.
17053 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17054 (ggc_realloc): Likewise.
17055 * ggc-none.c (ggc_internal_alloc): Likewise.
17056 (ggc_internal_cleared_alloc): Likewise.
17057 * ggc-page.c: Likewise.
17058 * ggc.h (ggc_internal_alloc_stat): Likewise.
17059 (ggc_internal_alloc): Remove macro.
17060 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17061 (ggc_internal_cleared_alloc): Remove macro.
17062 (GGC_RESIZEVEC): Adjust.
17063 (ggc_resizevar): Remove macro.
17064 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17065 (ggc_internal_cleared_vec_alloc_stat): Likewise.
17066 (ggc_internal_vec_cleared_alloc): Remove macro.
17067 (ggc_alloc_atomic_stat): Drop _stat suffix.
17068 (ggc_alloc_atomic): Remove macro.
17069 (ggc_alloc_cleared_atomic): Remove macro.
17070 (ggc_alloc_string_stat): Drop _stat suffix.
17071 (ggc_alloc_string): Remove macro.
17072 (ggc_alloc_rtx_def_stat): Adjust.
17073 (ggc_alloc_tree_node_stat): Likewise.
17074 (ggc_alloc_cleared_tree_node_stat): Likewise.
17075 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
17076 (ggc_alloc_cleared_simd_clone_stat): Likewise.
17077 * gimple.c (gimple_build_omp_for): Likewise.
17078 (gimple_copy): Likewise.
17079 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
17080 * toplev.c (realloc_for_line_map): Adjust.
17081 * tree-data-ref.h (lambda_vector_new): Likewise.
17082 * tree-phinodes.c (allocate_phi_node): Likewise.
17083 * tree.c (grow_tree_vec_stat): Likewise.
17084 * vec.h (va_gc::reserve): Adjust.
17086 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
17088 * config/microblaze/microblaze.c (break_handler): New Declaration.
17089 (microblaze_break_function_p,microblaze_is_break_handler): New.
17090 (compute_frame_size): Use microblaze_break_function_p.
17091 Add the test of break_handler.
17092 (microblaze_function_prologue) : Add the test of variable
17093 break_handler. Check the fnname by BREAK_HANDLER_NAME.
17094 (microblaze_function_epilogue) : Add the test of break_handler.
17095 (microblaze_globalize_label) : Add the test of break_handler.
17096 Check the name by BREAK_HANDLER_NAME.
17098 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
17100 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
17101 microblaze_is_break_handler test.
17102 (call_internal1,call_value_intern): Use microblaze_break_function_p.
17103 Use SYMBOL_REF_DECL.
17105 * config/microblaze/microblaze-protos.h
17106 (microblaze_break_function_p,microblaze_is_break_handler):
17109 * doc/extend.texi (MicroBlaze break_handler Functions): Document
17110 new MicroBlaze break_handler functions.
17112 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17114 * doc/extend.texi (Size of an asm): Move node text according
17115 to its @menu entry position.
17117 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
17119 PR tree-optimization/61140
17120 PR tree-optimization/61150
17121 PR tree-optimization/61197
17122 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
17124 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
17126 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
17128 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
17130 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
17131 __SIZEOF_INT128__ is defined.
17133 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17135 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
17136 (rs6000_delegitimize_address): Use it.
17138 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
17140 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
17141 inplace argument. Store the new address in the original MEM when true.
17142 * emit-rtl.c (change_address_1): Likewise.
17143 (adjust_address_1, adjust_automodify_address_1, offset_address):
17144 Update accordingly.
17145 * rtl.h (plus_constant): Add an inplace argument.
17146 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
17147 when true. Avoid generating (plus X (const_int 0)).
17148 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
17149 in-place. Pass true to plus_constant.
17150 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
17152 2014-05-16 Dehao Chen <dehao@google.com>
17154 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
17156 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17159 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
17161 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
17163 2014-05-16 Dehao Chen <dehao@google.com>
17165 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
17166 optimize_function_for_size_p.
17167 * regs.h (REG_FREQ_FROM_BB): Likewise.
17169 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17172 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
17173 negt_reg_operand cases.
17174 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
17176 * config/sh/predicates.md (cbranch_treg_value): Simplify.
17178 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
17180 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
17183 2014-05-16 David Malcolm <dmalcolm@redhat.com>
17186 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17188 * tree-cfg.c (dump_function_to_file): Dump the return type of
17189 functions, in a line to itself before the function body, mimicking
17190 the layout of a C function.
17192 2014-05-16 Dehao Chen <dehao@google.com>
17194 * cfghooks.c (make_forwarder_block): Use direct computation to
17195 get fall-through edge's count and frequency.
17197 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
17199 * config/arc/arc.c (arc_init): Fix typo in error message.
17200 * config/i386/i386.c (ix86_expand_builtin): Likewise.
17201 (split_stack_prologue_scratch_regno): Likewise.
17202 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
17203 word from error message.
17205 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17207 * ira-costs.c: Fix typo in comment.
17209 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
17211 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
17213 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
17215 * varpool.c (dump_varpool_node): Dump write-only flag.
17216 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
17218 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
17219 write-only variables.
17220 * ipa.c (process_references): New function.
17221 (set_readonly_bit): New function.
17222 (set_writeonly_bit): New function.
17223 (clear_addressable_bit): New function.
17224 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
17225 fix handling of aliases.
17226 * cgraph.h (struct varpool_node): Add writeonly flag.
17228 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
17230 PR rtl-optimization/60969
17231 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
17232 Calculate costs for this case.
17234 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
17236 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
17237 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
17239 2014-05-16 Richard Biener <rguenther@suse.de>
17241 PR tree-optimization/61194
17242 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
17243 bool patterns ending in a COND_EXPR.
17245 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17247 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
17249 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17251 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
17252 where we were unable to cost an RTX.
17254 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17256 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
17259 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17260 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17262 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
17264 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17265 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17267 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
17268 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
17270 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17271 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17273 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
17276 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17277 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17279 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17282 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17283 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17285 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
17286 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
17288 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17289 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17291 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17292 rotates and shifts.
17294 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17295 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17297 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
17298 ZERO_EXTEND and SIGN_EXTEND better.
17300 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17301 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17303 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
17304 logical operations.
17306 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17307 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17309 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
17310 costs when costing loads and stores to memory.
17312 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17313 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
17315 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
17318 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17320 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
17322 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17323 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17325 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
17327 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
17329 (aarch64_rtx_mult_cost): New.
17330 (aarch64_rtx_costs): Use it, refactor as appropriate.
17332 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17333 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17335 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
17336 emit instructions, return number of instructions which would
17338 (aarch64_add_constant): Update call to aarch64_build_constant.
17339 (aarch64_output_mi_thunk): Likewise.
17340 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
17343 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17345 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
17346 (TARGET_RTX_COSTS): Call it.
17348 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17350 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
17351 (cortexa57_vector_cost): Likewise.
17352 (cortexa57_tunings): Use them.
17354 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
17356 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
17357 (cpu_addrcost_table): Use it.
17358 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
17359 (aarch64_address_cost): Rewrite using aarch64_classify_address,
17362 2014-05-16 Richard Biener <rguenther@suse.de>
17364 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
17365 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
17366 (visit_phi): Ignore edges marked as not executable.
17367 (class cond_dom_walker): New.
17368 (cond_dom_walker::before_dom_children): Value-number
17369 control statements and mark successor edges as not
17370 executable if possible.
17371 (run_scc_vn): First walk all control statements in
17372 dominator order, marking edges as not executable.
17373 * tree-inline.c (copy_edges_for_bb): Be not confused
17374 about random edge flags.
17376 2014-05-16 Richard Biener <rguenther@suse.de>
17378 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
17380 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
17383 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
17384 (__TM_simple_begin): Use it.
17385 (__TM_begin): Likewise.
17387 2014-05-15 Martin Jambor <mjambor@suse.cz>
17390 * ipa-prop.c (update_indirect_edges_after_inlining): Check
17391 type_preserved flag when the indirect edge is polymorphic.
17393 2014-05-15 Martin Jambor <mjambor@suse.cz>
17395 PR tree-optimization/61090
17396 * tree-sra.c (sra_modify_expr): Pass the current gsi to
17397 build_ref_for_model.
17399 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17401 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
17402 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
17404 2014-05-15 Jakub Jelinek <jakub@redhat.com>
17406 PR tree-optimization/61158
17407 * fold-const.c (fold_binary_loc): If X is zero-extended and
17408 shiftc >= prec, make sure zerobits is all ones instead of
17409 invoking undefined behavior.
17411 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17413 * regcprop.h: New file.
17414 * regcprop.c (skip_debug_insn_p): New decl.
17415 (replace_oldest_value_reg): Check skip_debug_insn_p.
17416 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
17417 * shrink-wrap.c: Include regcprop.h.
17418 (prepare_shrink_wrap): Call
17419 copyprop_hardreg_forward_bb_without_debug_insn.
17421 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17423 * shrink-wrap.h: Update comment.
17424 * shrink-wrap.c: Update comment.
17425 (next_block_for_reg): Rename to live_edge_for_reg.
17426 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
17427 (move_insn_for_shrink_wrap): Split live_edge.
17428 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
17430 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
17432 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
17434 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
17435 * config/sparc/sparc.md (fptype_ut699): New attribute.
17436 (in_branch_delay): Return false if -mfix-ut699 is specified and
17437 fptype_ut699 is set to single.
17438 (truncdfsf2): Add fptype_ut699 attribute.
17439 (fix_truncdfsi2): Likewise.
17440 (floatsisf2): Change fptype attribute.
17441 (fix_truncsfsi2): Likewise.
17442 (negtf2_notv9): Delete.
17443 (negtf2_v9): Likewise.
17444 (negtf2_hq): New instruction.
17445 (negtf2): New instruction and splitter.
17446 (negdf2_notv9): Rewrite.
17447 (abstf2_notv9): Delete.
17448 (abstf2_hq_v9): Likewise.
17449 (abstf2_v9): Likewise.
17450 (abstf2_hq): New instruction.
17451 (abstf2): New instruction and splitter.
17452 (absdf2_notv9): Rewrite.
17454 2014-05-14 Cary Coutant <ccoutant@google.com>
17457 * opts.c (common_handle_option): Don't special-case "-g".
17458 (set_debug_level): Default to at least level 2 with "-g".
17460 2014-05-14 DJ Delorie <dj@redhat.com>
17462 * config/msp430/msp430.c (msp430_builtin): Add
17463 MSP430_BUILTIN_DELAY_CYCLES.
17464 (msp430_init_builtins): Register void __delay_cycles(long long).
17465 (msp430_builtin_decl): Add it.
17466 (cg_magic_constant): New.
17467 (msp430_expand_delay_cycles): New.
17468 (msp430_expand_builtin): Call it.
17469 (msp430_print_operand_raw): Change integer printing from "int" to
17471 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
17472 (delay_cycles_start): New.
17473 (delay_cycles_end): New.
17474 (delay_cycles_32): New.
17475 (delay_cycles_32x): New.
17476 (delay_cycles_16): New.
17477 (delay_cycles_16x): New.
17478 (delay_cycles_2): New.
17479 (delay_cycles_1): New.
17480 * doc/extend.texi: Document __delay_cycles().
17482 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
17484 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
17485 length attribute computation.
17487 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
17490 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
17492 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
17495 * config/sparc/sparc.md: Fix types of low and high in DI constant
17496 splitter. Use gen_int_mode in some other splitters.
17498 2014-05-14 Martin Jambor <mjambor@suse.cz>
17501 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
17503 2014-05-14 James Norris <jnorris@codesourcery.com>
17505 * omp-low.c (expand_parallel_call): Remove shadow variable.
17506 (expand_omp_taskreg): Likewise.
17508 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
17510 * common/config/i386/i386-common.c
17511 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
17512 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
17513 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
17514 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
17515 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
17516 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
17517 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
17518 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
17519 xsavecintrin.h, xsavesintrin.h.
17520 (x86_64-*-*): Ditto.
17521 * config/i386/clflushoptintrin.h: New.
17522 * config/i386/xsavecintrin.h: Ditto.
17523 * config/i386/xsavesintrin.h: Ditto.
17524 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
17525 (bit_XSAVES): Ditto.
17526 (bit_XSAVES): Ditto.
17527 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
17528 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
17530 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17531 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
17532 OPTION_MASK_ISA_XSAVES.
17533 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
17534 -mxsavec, -mxsaves.
17535 (PTA_CLFLUSHOPT) Define.
17536 (PTA_XSAVEC): Ditto.
17537 (PTA_XSAVES): Ditto.
17538 (ix86_option_override_internal): Handle new options.
17539 (ix86_valid_target_attribute_inner_p): Ditto.
17540 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
17541 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
17542 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
17543 (bdesc_special_args): Add __builtin_ia32_xsaves,
17544 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
17545 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
17546 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
17547 (ix86_expand_builtin): Handle new builtins.
17548 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
17549 (TARGET_CLFLUSHOPT_P): Ditto.
17550 (TARGET_XSAVEC): Ditto.
17551 (TARGET_XSAVEC_P): Ditto.
17552 (TARGET_XSAVES): Ditto.
17553 (TARGET_XSAVES_P): Ditto.
17554 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
17555 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
17556 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
17558 (ANY_XRSTOR64): Ditto.
17560 (xrstor): Change into <xrstor>.
17561 (xrstor_rex64): Change into <xrstor>_rex64.
17562 (xrstor64): Change into <xrstor>64
17564 * config/i386/i386.opt (mclflushopt): New.
17567 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
17569 * doc/invoke.texi: Document new options.
17571 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
17573 PR rtl-optimization/60866
17574 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
17575 Default it to -1. Pass it down to init_simplejump_data.
17576 (init_simplejump_data): New parameter old_seqno. Pass it down
17577 to get_seqno_for_a_jump.
17578 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
17579 initializing new jump seqno as a last resort. Add comment.
17580 (sel_redirect_edge_and_branch): Save old seqno of the conditional
17581 jump and pass it down to sel_init_new_insn.
17582 (sel_redirect_edge_and_branch_force): Likewise.
17584 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
17586 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
17587 shifted values to avoid build warning.
17589 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
17591 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
17592 * cfgrtl.c (rtl_merge_blocks): Fix comment.
17593 (cfg_layout_merge_blocks): Likewise.
17594 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
17596 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
17598 PR rtl-optimization/60901
17599 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
17600 bb predecessor belongs to the same scheduling region. Adjust comment.
17602 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
17604 * doc/sourcebuild.texi: (dfp_hw): Document.
17605 (p8vector_hw): Likewise.
17606 (powerpc_eabi_ok): Likewise.
17607 (powerpc_elfv2): Likewise.
17608 (powerpc_htm_ok): Likewise.
17609 (ppc_recip_hw): Likewise.
17610 (vsx_hw): Likewise.
17612 2014-05-13 Cary Coutant <ccoutant@google.com>
17614 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
17616 2014-05-13 David Malcolm <dmalcolm@redhat.com>
17618 * gengtype-parse.c (require3): Eliminate in favor of...
17620 (require_template_declaration): Update to support optional single *
17623 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
17624 (create_user_defined_type): Handle a single level of explicit
17625 pointerness within template arguments.
17626 (struct write_types_data): Add field "kind".
17627 (filter_type_name): Handle "*" character.
17628 (write_user_func_for_structure_ptr): Require a write_types_data
17629 rather than just a prefix string, so that we can look up the kind
17630 of the wtd and use it as an index into wrote_user_func_for_ptr,
17631 ensuring that such functions are written at most once. Support
17632 subclasses by invoking the marking function of the ultimate base class.
17633 (write_user_func_for_structure_body): Require a write_types_data
17634 rather than just a prefix string, so that we can pass this to
17635 write_user_func_for_structure_ptr.
17636 (write_func_for_structure): Likewise.
17637 (ggc_wtd): Add initializer of new "kind" field.
17638 (pch_wtd): Likewise.
17640 * gengtype.h (enum write_types_kinds): New.
17641 (struct type): Add field wrote_user_func_for_ptr to the "s"
17644 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
17646 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
17647 instead of const_binop.
17648 (fold_binary_loc): Likewise.
17650 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
17652 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
17653 calculation to match get_ref_base_and_extent.
17655 2014-05-13 Catherine Moore <clm@codesourcery.com>
17656 Sandra Loosemore <sandra@codesourcery.com>
17658 * configure.ac: Fix assembly for explicit JALR relocation check.
17659 * configure: Regenerate.
17661 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17663 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
17664 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
17665 Remove associated type declarations and initialisations.
17666 (arm_expand_neon_builtin): Likewise.
17667 (neon_emit_pair_result_insn): Delete.
17668 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
17669 * config/arm/neon.md (neon_vtrn<mode>): Delete.
17670 (neon_vzip<mode>): Likewise.
17671 (neon_vuzp<mode>): Likewise.
17673 2014-05-13 Richard Biener <rguenther@suse.de>
17676 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
17677 it needs revisiting whether the call still may be tail-called.
17679 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17681 * rtl.def (SYMBOL_REF): Remove middle "0" field.
17682 * rtl.h (block_symbol): Reduce number of fields to 2.
17683 (rtx_def): Add u2.symbol_ref_flags.
17684 (SYMBOL_REF_FLAGS): Use it.
17685 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
17686 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
17687 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
17688 Lower index of SYMBOL_REF_DATA.
17689 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
17690 Print SYMBOL_REF_FLAGS at the same time.
17691 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
17693 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17695 * rtl.def (VAR_LOCATION): Remove "i" field.
17696 * rtl.h (rtx_def): Add u2.var_location_status.
17697 (PAT_VAR_LOCATION_STATUS): Use it.
17698 (gen_rtx_VAR_LOCATION): Declare.
17699 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
17700 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
17701 * var-tracking.c (emit_note_insn_var_location): Remove casts.
17703 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17705 * rtl.def (scratch): Fix outdated comment and remove "0" field.
17706 * gengtype.c (adjust_field_rtx_def): Update accordingly.
17708 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17710 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
17711 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
17712 * rtl.h (rtx_def): Add insn_uid to u2 field.
17713 (RTX_FLAG_CHECK8): Delete in favor of...
17714 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
17715 (INSN_DELETED_P): Update accordingly.
17716 (INSN_UID): Use u2.insn_uid.
17717 (INSN_CHAIN_CODE_P): Define.
17718 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
17719 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
17720 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
17721 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
17722 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
17723 indices accordingly.
17724 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
17725 Update indices for insn-chain rtxes.
17726 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
17727 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
17728 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
17729 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
17730 * combine.c (try_combine): Likewise.
17731 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17733 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17735 * rtl.def (REG): Remove middle field.
17736 * rtl.h (rtx_def): Add orignal_regno to u2.
17737 (ORIGINAL_REGNO): Use it instead of field 1.
17738 (REG_ATTRS): Lower field index accordingly.
17739 * gengtype.c (adjust_field_rtx_def): Remove handling of
17740 ORIGINAL_REGNO. Move REG_ATTRS index down.
17741 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
17742 code that prints the REGNO.
17744 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17746 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
17749 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17751 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
17753 2014-05-13 Bin Cheng <bin.cheng@arm.com>
17755 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
17756 (alloc_iv): Lower base expressions containing ADDR_EXPR.
17758 2014-05-13 Ian Bolton <ian.bolton@arm.com>
17760 * config/aarch64/aarch64-protos.h
17761 (aarch64_hard_regno_caller_save_mode): New prototype.
17762 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
17764 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
17766 2014-05-13 Christian Bruel <christian.bruel@st.com>
17768 * target.def (mode_switching): New hook vector.
17769 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
17770 (mode_exit, modepriority_to_mode): Likewise.
17771 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
17772 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17773 * target.h: Include tm.h and hard-reg-set.h.
17774 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
17775 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
17776 * doc/tm.texi Regenerate.
17777 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
17778 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17779 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
17780 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
17781 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
17782 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17783 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
17784 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
17785 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
17786 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
17787 (ix86_emit_mode_set): Hookify.
17788 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
17790 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17791 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
17792 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
17793 (epiphany_mode_priority_to_mode): Remove declaration.
17794 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
17795 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
17796 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
17798 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
17799 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
17800 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
17802 2014-05-13 Jakub Jelinek <jakub@redhat.com>
17805 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
17806 is const0_rtx, return immediately. Don't test count == 0 when
17809 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17811 * Makefile.in: add shrink-wrap.o.
17812 * config/i386/i386.c: include "shrink-wrap.h"
17813 * function.c: Likewise.
17814 (requires_stack_frame_p, next_block_for_reg,
17815 move_insn_for_shrink_wrap, prepare_shrink_wrap,
17816 dup_block_and_redirect): Move to shrink-wrap.c
17817 (thread_prologue_and_epilogue_insns): Extract three code segments
17818 as functions in shrink-wrap.c
17819 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
17821 * shrink-wrap.c: New file.
17822 * shrink-wrap.h: New file.
17824 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
17826 * doc/extend.texi: Reflect current numbers of pragmas. Remove
17827 reference to Solaris.
17829 2014-05-12 Mike Stump <mikestump@comcast.net>
17832 * genattrtab.c (filename): Add.
17833 (convert_set_attr_alternative): Improve error message.
17834 (check_defs): Restore read_md_filename for error messages.
17835 (gen_insn): Save filename.
17837 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
17839 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
17840 -fno-local-ivars and -fivar-visibility.
17841 * c-family/c.opt: Make -Wshadow also implicitly enable
17844 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
17846 * doc/tm.texi: Remove reference to deleted macro.
17847 * doc/tm.texi.in: Likewise.
17849 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17852 * config/avr/avr.c (avr_out_store_psi): Use correct constant
17855 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
17858 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
17859 * config/arm/aout.h (License): Same.
17860 * config/arm/bpabi.h (License): Same.
17861 * config/arm/elf.h (License): Same.
17862 * config/arm/linux-elf.h (License): Same.
17863 * config/arm/linux-gas.h (License): Same.
17864 * config/arm/netbsd-elf.h (License): Same.
17865 * config/arm/uclinux-eabi.h (License): Same.
17866 * config/arm/uclinux-elf.h (License): Same.
17867 * config/arm/vxworks.h (License): Same.
17869 2014-05-11 Jakub Jelinek <jakub@redhat.com>
17871 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
17872 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
17873 number of operands to 3.
17874 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
17875 * tree-nested.c (convert_nonlocal_omp_clauses,
17876 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
17877 * gimplify.c (gimplify_scan_omp_clauses): Handle
17878 OMP_CLAUSE_LINEAR_STMT.
17879 * omp-low.c (lower_rec_input_clauses): Fix typo.
17880 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
17881 cast between Fortran boolean_type_node and C _Bool if
17884 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
17886 PR tree-optimization/61136
17887 * wide-int.h (multiple_of_p): Define a version that doesn't return
17889 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
17890 integer_zerop/const_binop pair.
17891 (multiple_of_p): Likewise, converting both operands to widest_int
17894 2014-05-09 Teresa Johnson <tejohnson@google.com>
17896 * cgraphunit.c (analyze_functions): Use correct dump file.
17898 2014-05-09 Florian Weimer <fweimer@redhat.com>
17900 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
17902 (stack_protect_return_slot_p): New function.
17903 (expand_used_vars): Call stack_protect_decl_p and
17904 stack_protect_return_slot_p for -fstack-protector-strong.
17906 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
17907 Andrew Haley <aph@redhat.com>
17908 Richard Sandiford <rdsandiford@googlemail.com>
17910 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
17913 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
17915 PR middle-end/61111
17916 * fold-const.c (fold_binary_loc): Changed width of mask.
17918 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17920 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
17921 unsigned int initializers for regno_in, regno_out.
17923 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17926 * config/avr/avr.md (cc): Add new attribute set_vzn.
17927 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
17928 Set cc insn attribute to set_vzn instead of set_zn for alternatives
17929 with INC, DEC or NEG.
17930 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
17931 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
17932 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
17934 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17937 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17939 * wide-int.cc (UTItype): Define.
17940 (UDWtype): Define for appropriate W_TYPE_SIZE.
17942 2014-05-09 Richard Biener <rguenther@suse.de>
17944 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
17945 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
17946 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
17947 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
17948 ssa_propagate): Adjust.
17950 2014-05-08 Jeff Law <law@redhat.com>
17952 PR tree-optimization/61009
17953 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
17954 tri-state rather than a boolean. When a block is too big to
17955 thread through, inform caller via negative return value.
17956 (thread_across_edge): If a block was too big for normal threading,
17957 then it's too big for a joiner too, so remove temporary equivalences
17958 and return immediately.
17960 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17961 Matthias Klose <doko@ubuntu.com>
17964 * optc-gen.awk: Fix option handling for -Wunused-parameter.
17966 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17969 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
17971 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17974 * config/alpha/alpha.c: Include gimple-iterator.h.
17975 (alpha_gimple_fold_builtin): New function. Move
17976 ALPHA_BUILTIN_UMULH folding from ...
17977 (alpha_fold_builtin): ... here.
17978 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
17980 2014-05-08 Wei Mi <wmi@google.com>
17983 * config/i386/i386.c (ix86_compute_frame_layout): Update
17984 preferred_stack_boundary for call, expanded from tls descriptor.
17985 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
17986 to depend on SP register.
17987 (*tls_local_dynamic_base_32_gnu): Ditto.
17988 (*tls_local_dynamic_32_once): Ditto.
17989 (tls_global_dynamic_64_<mode>): Set
17990 ix86_tls_descriptor_calls_expanded_in_cfun.
17991 (tls_local_dynamic_base_64_<mode>): Ditto.
17992 (tls_global_dynamic_32): Set
17993 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
17994 to depend on SP register.
17995 (tls_local_dynamic_base_32): Ditto.
17997 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17999 * config/arm/arm_neon.h: Update comment.
18000 * config/arm/neon-docgen.ml: Delete.
18001 * config/arm/neon-gen.ml: Delete.
18002 * doc/arm-neon-intrinsics.texi: Update comment.
18004 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18006 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18008 (vand, vorr, veor, vorn, vbic): Remove.
18009 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18011 (neon_vsub_unspec): Likewise.
18012 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18014 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18016 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18017 (vadd_s16): Likewise.
18018 (vadd_s32): Likewise.
18019 (vadd_f32): Likewise.
18020 (vadd_u8): Likewise.
18021 (vadd_u16): Likewise.
18022 (vadd_u32): Likewise.
18023 (vadd_s64): Likewise.
18024 (vadd_u64): Likewise.
18025 (vaddq_s8): Likewise.
18026 (vaddq_s16): Likewise.
18027 (vaddq_s32): Likewise.
18028 (vaddq_s64): Likewise.
18029 (vaddq_f32): Likewise.
18030 (vaddq_u8): Likewise.
18031 (vaddq_u16): Likewise.
18032 (vaddq_u32): Likewise.
18033 (vaddq_u64): Likewise.
18034 (vmul_s8): Likewise.
18035 (vmul_s16): Likewise.
18036 (vmul_s32): Likewise.
18037 (vmul_f32): Likewise.
18038 (vmul_u8): Likewise.
18039 (vmul_u16): Likewise.
18040 (vmul_u32): Likewise.
18041 (vmul_p8): Likewise.
18042 (vmulq_s8): Likewise.
18043 (vmulq_s16): Likewise.
18044 (vmulq_s32): Likewise.
18045 (vmulq_f32): Likewise.
18046 (vmulq_u8): Likewise.
18047 (vmulq_u16): Likewise.
18048 (vmulq_u32): Likewise.
18049 (vsub_s8): Likewise.
18050 (vsub_s16): Likewise.
18051 (vsub_s32): Likewise.
18052 (vsub_f32): Likewise.
18053 (vsub_u8): Likewise.
18054 (vsub_u16): Likewise.
18055 (vsub_u32): Likewise.
18056 (vsub_s64): Likewise.
18057 (vsub_u64): Likewise.
18058 (vsubq_s8): Likewise.
18059 (vsubq_s16): Likewise.
18060 (vsubq_s32): Likewise.
18061 (vsubq_s64): Likewise.
18062 (vsubq_f32): Likewise.
18063 (vsubq_u8): Likewise.
18064 (vsubq_u16): Likewise.
18065 (vsubq_u32): Likewise.
18066 (vsubq_u64): Likewise.
18067 (vand_s8): Likewise.
18068 (vand_s16): Likewise.
18069 (vand_s32): Likewise.
18070 (vand_u8): Likewise.
18071 (vand_u16): Likewise.
18072 (vand_u32): Likewise.
18073 (vand_s64): Likewise.
18074 (vand_u64): Likewise.
18075 (vandq_s8): Likewise.
18076 (vandq_s16): Likewise.
18077 (vandq_s32): Likewise.
18078 (vandq_s64): Likewise.
18079 (vandq_u8): Likewise.
18080 (vandq_u16): Likewise.
18081 (vandq_u32): Likewise.
18082 (vandq_u64): Likewise.
18083 (vorr_s8): Likewise.
18084 (vorr_s16): Likewise.
18085 (vorr_s32): Likewise.
18086 (vorr_u8): Likewise.
18087 (vorr_u16): Likewise.
18088 (vorr_u32): Likewise.
18089 (vorr_s64): Likewise.
18090 (vorr_u64): Likewise.
18091 (vorrq_s8): Likewise.
18092 (vorrq_s16): Likewise.
18093 (vorrq_s32): Likewise.
18094 (vorrq_s64): Likewise.
18095 (vorrq_u8): Likewise.
18096 (vorrq_u16): Likewise.
18097 (vorrq_u32): Likewise.
18098 (vorrq_u64): Likewise.
18099 (veor_s8): Likewise.
18100 (veor_s16): Likewise.
18101 (veor_s32): Likewise.
18102 (veor_u8): Likewise.
18103 (veor_u16): Likewise.
18104 (veor_u32): Likewise.
18105 (veor_s64): Likewise.
18106 (veor_u64): Likewise.
18107 (veorq_s8): Likewise.
18108 (veorq_s16): Likewise.
18109 (veorq_s32): Likewise.
18110 (veorq_s64): Likewise.
18111 (veorq_u8): Likewise.
18112 (veorq_u16): Likewise.
18113 (veorq_u32): Likewise.
18114 (veorq_u64): Likewise.
18115 (vbic_s8): Likewise.
18116 (vbic_s16): Likewise.
18117 (vbic_s32): Likewise.
18118 (vbic_u8): Likewise.
18119 (vbic_u16): Likewise.
18120 (vbic_u32): Likewise.
18121 (vbic_s64): Likewise.
18122 (vbic_u64): Likewise.
18123 (vbicq_s8): Likewise.
18124 (vbicq_s16): Likewise.
18125 (vbicq_s32): Likewise.
18126 (vbicq_s64): Likewise.
18127 (vbicq_u8): Likewise.
18128 (vbicq_u16): Likewise.
18129 (vbicq_u32): Likewise.
18130 (vbicq_u64): Likewise.
18131 (vorn_s8): Likewise.
18132 (vorn_s16): Likewise.
18133 (vorn_s32): Likewise.
18134 (vorn_u8): Likewise.
18135 (vorn_u16): Likewise.
18136 (vorn_u32): Likewise.
18137 (vorn_s64): Likewise.
18138 (vorn_u64): Likewise.
18139 (vornq_s8): Likewise.
18140 (vornq_s16): Likewise.
18141 (vornq_s32): Likewise.
18142 (vornq_s64): Likewise.
18143 (vornq_u8): Likewise.
18144 (vornq_u16): Likewise.
18145 (vornq_u32): Likewise.
18146 (vornq_u64): Likewise.
18148 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18150 * wide-int.cc (UTItype): Define.
18151 (UDWtype): Define for appropriate W_TYPE_SIZE.
18153 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
18155 PR tree-optimization/59100
18156 * tree-ssa-phiopt.c: Include tree-inline.h.
18157 (neutral_element_p, absorbing_element_p): New functions.
18158 (value_replacement): Handle conditional binary operations with a
18159 neutral or absorbing element.
18161 2014-05-08 Richard Biener <rguenther@suse.de>
18163 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
18164 folding the expression.
18165 (valueize_expr): Remove.
18166 (visit_reference_op_load): Do not valueize the result of
18168 (simplify_binary_expression): Likewise.
18169 (simplify_unary_expression): Likewise.
18171 2014-05-08 Richard Biener <rguenther@suse.de>
18173 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
18174 looking at TYPE_ARG_TYPES.
18176 2014-05-08 Richard Biener <rguenther@suse.de>
18178 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18179 pointer propagation special-case.
18181 2014-05-08 Bin Cheng <bin.cheng@arm.com>
18183 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
18184 core part of address expressions.
18186 2014-05-08 Alan Modra <amodra@gmail.com>
18189 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
18190 loads and stores when -mno-strict-align at any alignment.
18191 (expand_block_clear): Similarly. Also correct calculation of
18194 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18196 PR middle-end/39246
18197 * tree-complex.c (expand_complex_move): Keep line info when expanding
18199 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
18200 of complex expression. Use new argument to display correct location
18201 for values coming from phi statement.
18202 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
18203 (warn_uninitialized_phi): Pass location of phi argument to
18205 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
18206 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
18208 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18210 * config/rs6000/predicates.md (indexed_address_mem): New.
18211 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
18212 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
18213 fpstore_ux, fpstore_u.
18214 (sign_extend, indexed, update): New.
18215 (cell_micro): Adjust.
18216 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
18217 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
18218 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
18219 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
18220 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18221 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
18222 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
18223 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
18224 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
18225 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
18226 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
18227 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
18228 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
18229 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
18230 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
18232 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
18233 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
18234 *vsx_extract_<mode>_store): Adjust.
18235 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
18236 is_cracked_insn, insn_must_be_first_in_group,
18237 insn_must_be_last_in_group): Adjust.
18239 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
18241 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
18242 ppc440-fpstore): Adjust.
18243 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
18244 ppc476-fpstore): Adjust.
18245 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
18246 ppc601-fpstore): Adjust.
18247 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
18249 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
18251 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
18252 ppc7450-fpstore): Adjust.
18253 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
18254 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
18255 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
18257 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
18258 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
18259 cell-fpstore, cell-fpstore-update): Adjust.
18260 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
18261 ppce300c3_store, ppce300c3_fpstore): Adjust.
18262 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
18263 e500mc_fpstore): Adjust.
18264 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
18265 e500mc64_store, e500mc64_fpstore): Adjust.
18266 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
18267 e5500_fpstore): Adjust.
18268 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
18269 e6500_fpstore): Adjust.
18270 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
18272 * config/rs6000/power4.md (power4-load, power4-load-ext,
18273 power4-load-ext-update, power4-load-ext-update-indexed,
18274 power4-load-update-indexed, power4-load-update, power4-fpload,
18275 power4-fpload-update, power4-store, power4-store-update,
18276 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
18278 * config/rs6000/power5.md (power5-load, power5-load-ext,
18279 power5-load-ext-update, power5-load-ext-update-indexed,
18280 power5-load-update-indexed, power5-load-update, power5-fpload,
18281 power5-fpload-update, power5-store, power5-store-update,
18282 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
18284 * config/rs6000/power6.md (power6-load, power6-load-ext,
18285 power6-load-update, power6-load-update-indexed,
18286 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
18287 power6-fpload-update, power6-store, power6-store-update,
18288 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
18290 * config/rs6000/power7.md (power7-load, power7-load-ext,
18291 power7-load-update, power7-load-update-indexed,
18292 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
18293 power7-fpload-update, power7-store, power7-store-update,
18294 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
18296 * config/rs6000/power8.md (power8-load, power8-load-update,
18297 power8-load-ext, power8-load-ext-update, power8-fpload,
18298 power8-fpload-update, power8-store, power8-store-update-indexed,
18299 power8-fpstore, power8-fpstore-update): Adjust.
18300 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
18302 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
18303 titan_lsu_store, titan_lsu_fpstore): Adjust.
18304 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
18306 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
18309 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
18310 unrolled byte insns. Emit address increments after move insns.
18312 2014-05-07 David Malcolm <dmalcolm@redhat.com>
18314 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
18315 const_gimple, rather than a gimple.
18316 (gimple_call_builtin_p): Likewise, for the three variants.
18318 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
18319 (gimple_call_builtin_p): Likewise, for the three variants.
18321 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18323 PR tree-optimization/61095
18324 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
18326 2014-05-07 Richard Biener <rguenther@suse.de>
18328 PR tree-optimization/61034
18329 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
18330 (maybe_skip_until): Use translate to take into account
18331 lattices when trying to do disambiguations.
18332 (get_continuation_for_phi_1): Likewise.
18333 (get_continuation_for_phi): Adjust for added translate arguments.
18334 (walk_non_aliased_vuses): Likewise.
18335 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
18336 (walk_non_aliased_vuses): Likewise.
18337 (call_may_clobber_ref_p_1): Declare.
18338 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
18339 calls. Stop early if we are only supposed to disambiguate.
18340 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
18342 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
18344 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
18345 Emit an error when the function has arguments.
18347 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
18349 * cfgloop.h (unswitch_loops): Remove.
18350 * doc/passes.texi: Remove references to loop-unswitch.c
18351 * timevar.def (TV_LOOP_UNSWITCH): Remove.
18353 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
18355 * tree-vect-data-refs.c (vect_grouped_load_supported): New
18356 check for loads group of length 3.
18357 (vect_permute_load_chain): New permutations for loads group of
18359 * tree-vect-stmts.c (vect_model_load_cost): Change cost
18360 of vec_perm_shuffle for the new permutations.
18362 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
18364 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
18365 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
18366 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
18367 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
18368 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
18369 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
18370 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
18371 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
18373 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
18375 * loop-unswitch.c: Delete.
18377 2014-05-07 Richard Biener <rguenther@suse.de>
18379 * config.gcc: Always set need_64bit_hwint to yes.
18381 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
18383 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
18384 of using optimize_size.
18386 2014-05-06 Mike Stump <mikestump@comcast.net>
18388 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
18390 2014-05-06 Joseph Myers <joseph@codesourcery.com>
18392 * config/i386/sse.md (*mov<mode>_internal)
18393 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
18394 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
18395 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
18396 (*<code><mode>3, *andnot<mode>3<mask_name>)
18397 (<mask_codefor><code><mode>3<mask_name>): Only consider
18398 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
18400 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
18403 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18405 * lra-constraints.c (valid_address_p): Move earlier in file.
18406 Add a constraint argument to the address_info version.
18407 (satisfies_memory_constraint_p): New function.
18408 (satisfies_address_constraint_p): Likewise.
18409 (process_alt_operands, curr_insn_transform): Use them.
18410 (process_address): Pass the constraint to valid_address_p when
18411 checking address operands.
18413 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
18415 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
18416 to their respective blocks. Fix inadvertent use of "node".
18418 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
18420 * emit-rtl.c (init_derived_machine_modes): New functionm, split
18422 (init_emit_once): ...here.
18423 * rtl.h (init_derived_machine_modes): Declare.
18424 * toplev.c (do_compile): Call it even if no_backend.
18426 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
18427 Mike Stump <mikestump@comcast.net>
18428 Richard Sandiford <rdsandiford@googlemail.com>
18429 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18431 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
18432 (rtx_equal_for_memref_p): Update comment.
18433 (adjust_offset_for_component_ref): Use wide-int interfaces.
18434 * builtins.c (get_object_alignment_2): Likewise.
18435 (c_readstr): Likewise.
18436 (target_char_cast): Add comment.
18437 (determine_block_size): Use wide-int interfaces.
18438 (expand_builtin_signbit): Likewise.
18439 (fold_builtin_int_roundingfn): Likewise.
18440 (fold_builtin_bitop): Likewise.
18441 (fold_builtin_bswap): Likewise.
18442 (fold_builtin_logarithm): Use signop.
18443 (fold_builtin_pow): Likewise.
18444 (fold_builtin_memory_op): Use wide-int interfaces.
18445 (fold_builtin_object_size): Likewise.
18446 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
18447 nb_iterations_estimate.
18448 (record_niter_bound): Use wide-int interfaces.
18449 (get_estimated_loop_iterations_int): Likewise.
18450 (get_estimated_loop_iterations): Likewise.
18451 (get_max_loop_iterations): Likewise.
18452 * cfgloop.h: Include wide-int.h.
18453 (struct nb_iter_bound): Change bound to widest_int.
18454 (struct loop): Change nb_iterations_upper_bound and
18455 nb_iterations_estimate to widest_int.
18456 (record_niter_bound): Switch to use widest_int.
18457 (get_estimated_loop_iterations): Likewise.
18458 (get_max_loop_iterations): Likewise.
18459 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
18460 update for wide-int.
18461 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
18462 * combine.c (try_combine): Likewise.
18463 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
18464 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
18466 (aarch64_float_const_representable_p): Likewise.
18467 * config/arc/arc.c: Include wide-int.h.
18468 (arc_can_use_doloop_p): Use wide-int interfaces.
18469 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
18470 (vfp3_const_double_index): Likewise.
18471 * config/avr/avr.c (avr_out_round): Likewise.
18472 (avr_fold_builtin): Likewise.
18473 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
18474 (bfin_can_use_doloop_p): Likewise.
18475 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
18476 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
18477 * config/i386/i386.c: Include wide-int.h.
18478 (ix86_data_alignment): Use wide-int interfaces.
18479 (ix86_local_alignment): Likewise.
18480 (ix86_emit_swsqrtsf): Update real_from_integer.
18481 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
18482 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
18483 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
18484 (zero_constant): Likewise.
18485 (input_operand): Likewise.
18486 (splat_input_operand): Likewise.
18487 (non_logical_cint_operand): Change const_double to const_wide_int.
18488 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
18489 (easy_altivec_constant): Remove comment.
18490 (paired_expand_vector_init): Use CONSTANT_P.
18491 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
18492 (rs6000_emit_move): Update checks.
18493 (rs6000_aggregate_candidate): Use wide-int interfaces.
18494 (rs6000_expand_ternop_builtin): Likewise.
18495 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
18496 (rs6000_assemble_integer): Likewise.
18497 (rs6000_hash_constant): Likewise.
18498 (output_toc): Likewise.
18499 (rs6000_rtx_costs): Likewise.
18500 (rs6000_emit_swrsqrt); Update call to real_from_integer.
18501 * config/rs6000/rs6000-c.c: Include wide-int.h.
18502 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
18503 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
18504 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
18505 Handle CONST_WIDE_INT.
18506 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
18507 Use tree_fits_uhwi_p.
18508 * config/sparc/sparc.c: Include wide-int.h.
18509 (sparc_fold_builtin): Use wide-int interfaces.
18510 * config/vax/vax.c: Include wide-int.h.
18511 (vax_float_literal): Use real_from_integer.
18512 * coretypes.h (struct hwivec_def): New.
18514 (const_hwivec): New.
18515 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
18516 (equiv_constant): Handle CONST_WIDE_INT.
18517 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
18518 (cselib_hash_rtx): Handle CONST_WIDE_INT.
18519 * dbxout.c (stabstr_U): Use wide-int interfaces.
18520 (dbxout_type): Update to use cst_fits_shwi_p.
18521 * defaults.h (LOG2_BITS_PER_UNIT): Define.
18522 (TARGET_SUPPORTS_WIDE_INT): Add default.
18523 * dfp.c: Include wide-int.h.
18524 (decimal_real_to_integer2): Use wide-int interfaces and rename to
18525 decimal_real_to_integer.
18526 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
18527 decimal_real_to_integer.
18528 * doc/generic.texi (Constant expressions): Update for wide_int.
18529 * doc/rtl.texi (const_double): Likewise.
18530 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
18531 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
18532 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
18533 (REAL_VALUE_FROM_INT): Remove.
18534 (TARGET_SUPPORTS_WIDE_INT): New.
18535 * doc/tm.texi: Regenerate.
18536 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
18537 * double-int.h: Include wide-int.h.
18538 (struct wi::int_traits): New.
18539 * dwarf2out.c (get_full_len): New.
18540 (dw_val_equal_p): Add case dw_val_class_wide_int.
18541 (size_of_loc_descr): Likewise.
18542 (output_loc_operands): Likewise.
18543 (insert_double): Remove.
18544 (insert_wide_int): New.
18545 (add_AT_wide): New.
18546 (print_die): Add case dw_val_class_wide_int.
18547 (attr_checksum): Likewise.
18548 (attr_checksum_ordered): Likewise.
18549 (same_dw_val_p): Likewise.
18550 (size_of_die): Likewise.
18551 (value_format): Likewise.
18552 (output_die): Likewise.
18553 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
18555 (clz_loc_descriptor): Use wide-int interfaces.
18556 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
18557 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
18558 (round_up_to_align): Use wide-int interfaces.
18559 (field_byte_offset): Likewise.
18560 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
18561 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
18562 CONST_DOUBLE handling. Use wide-int interfaces.
18563 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
18564 (gen_enumeration_type_die): Use add_AT_wide.
18565 (hash_loc_operands): Add case dw_val_class_wide_int.
18566 (compare_loc_operands): Likewise.
18567 * dwarf2out.h: Include wide-int.h.
18568 (wide_int_ptr): New.
18569 (enum dw_val_class): Add dw_val_class_wide_int.
18570 (struct dw_val_struct): Add val_wide.
18571 * emit-rtl.c (const_wide_int_htab): New.
18572 (const_wide_int_htab_hash): New.
18573 (const_wide_int_htab_eq): New.
18574 (lookup_const_wide_int): New.
18575 (const_double_htab_hash): Use wide-int interfaces.
18576 (const_double_htab_eq): Likewise.
18577 (rtx_to_double_int): Conditionally compile for wide-int.
18578 (immed_double_int_const): Rename to immed_wide_int_const and
18579 update for wide-int.
18580 (immed_double_const): Conditionally compile for wide-int.
18581 (init_emit_once): Use wide-int interfaces.
18582 * explow.c (plus_constant): Likewise.
18583 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
18584 (lshift_value): Use wide-int interfaces.
18585 (expand_mult): Likewise.
18586 (choose_multiplier): Likewise.
18587 (expand_smod_pow2): Likewise.
18588 (make_tree): Likewise.
18589 * expr.c (convert_modes): Consolidate handling of constants.
18590 Use wide-int interfaces.
18591 (emit_group_load_1): Add note.
18592 (store_expr): Update comment.
18593 (get_inner_reference): Use wide-int interfaces.
18594 (expand_constructor): Update comment.
18595 (expand_expr_real_2): Use wide-int interfaces.
18596 (expand_expr_real_1): Likewise.
18597 (reduce_to_bit_field_precision): Likewise.
18598 (const_vector_from_tree): Likewise.
18599 * final.c: Include wide-int-print.h.
18600 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
18601 * fixed-value.c: Include wide-int.h.
18602 (fixed_from_string): Use wide-int interfaces.
18603 (fixed_to_decimal): Likewise.
18604 (fixed_convert_from_real): Likewise.
18605 (real_convert_from_fixed): Likewise.
18606 * fold-const.h (mem_ref_offset): Return an offset_int.
18607 (div_if_zero_remainder): Remove code parameter.
18608 * fold-const.c (div_if_zero_remainder): Remove code parameter.
18609 Use wide-int interfaces.
18610 (may_negate_without_overflow_p): Use wide-int interfaces.
18611 (negate_expr_p): Likewise.
18612 (fold_negate_expr): Likewise.
18613 (int_const_binop_1): Likewise.
18614 (const_binop): Likewise.
18615 (fold_convert_const_int_from_int): Likewise.
18616 (fold_convert_const_int_from_real): Likewise.
18617 (fold_convert_const_int_from_fixed): Likewise.
18618 (fold_convert_const_fixed_from_int): Likewise.
18619 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
18620 (sign_bit_p): Use wide-int interfaces.
18621 (make_range_step): Likewise.
18622 (build_range_check): Likewise. Pass an integer of the correct type
18623 instead of using integer_one_node.
18624 (range_predecessor): Pass an integer of the correct type instead
18625 of using integer_one_node.
18626 (range_successor): Likewise.
18627 (merge_ranges): Likewise.
18628 (unextend): Use wide-int interfaces.
18629 (extract_muldiv_1): Likewise.
18630 (fold_div_compare): Likewise.
18631 (fold_single_bit_test): Likewise.
18632 (fold_sign_changed_comparison): Likewise.
18633 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
18634 (fold_plusminus_mult_expr): Use wide-int interfaces.
18635 (native_encode_int): Likewise.
18636 (native_interpret_int): Likewise.
18637 (fold_unary_loc): Likewise.
18638 (pointer_may_wrap_p): Likewise.
18639 (size_low_cst): Likewise.
18640 (mask_with_tz): Likewise.
18641 (fold_binary_loc): Likewise.
18642 (fold_ternary_loc): Likewise.
18643 (multiple_of_p): Likewise.
18644 (tree_call_nonnegative_warnv_p): Update calls to
18645 tree_int_cst_min_precision and real_from_integer.
18646 (fold_negate_const): Use wide-int interfaces.
18647 (fold_abs_const): Likewise.
18648 (fold_relational_const): Use tree_int_cst_lt.
18649 (round_up_loc): Use wide-int interfaces.
18650 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
18651 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
18652 * gengtype.c: Remove include of double-int.h.
18653 (do_typedef): Use wide-int interfaces.
18654 (open_base_files): Add wide-int.h.
18655 (main): Add offset_int and widest_int typedefs.
18656 * gengtype-lex.l: Handle "^".
18657 (CXX_KEYWORD): Add "static".
18658 * gengtype-parse.c (require3): New.
18659 (require_template_declaration): Handle constant template arguments
18660 and nested templates.
18661 * gengtype-state.c: Don't include "double-int.h".
18662 * genpreds.c (write_one_predicate_function): Update comment.
18663 (write_tm_constrs_h): Add check for hval and lval use in
18665 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
18666 (add_to_sequence): Likewise.
18667 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
18668 and const_double_operand.
18669 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
18671 * gimple-fold.c (get_base_constructor): Likewise.
18672 (fold_array_ctor_reference): Likewise.
18673 (fold_nonarray_ctor_reference): Likewise.
18674 (fold_const_aggregate_ref_1): Likewise.
18675 (gimple_val_nonnegative_real_p): Likewise.
18676 (gimple_fold_indirect_ref): Likewise.
18677 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
18678 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
18679 (struct slsr_cand_d): Change index to be widest_int.
18680 (struct incr_info_d): Change incr to be widest_int.
18681 (alloc_cand_and_find_basis): Use wide-int interfaces.
18682 (slsr_process_phi): Likewise.
18683 (backtrace_base_for_ref): Likewise. Return a widest_int.
18684 (restructure_reference): Take a widest_int instead of a double_int.
18685 (slsr_process_ref): Use wide-int interfaces.
18686 (create_mul_ssa_cand): Likewise.
18687 (create_mul_imm_cand): Likewise.
18688 (create_add_ssa_cand): Likewise.
18689 (create_add_imm_cand): Take a widest_int instead of a double_int.
18690 (slsr_process_add): Use wide-int interfaces.
18691 (slsr_process_cast): Likewise.
18692 (slsr_process_copy): Likewise.
18693 (dump_candidate): Likewise.
18694 (dump_incr_vec): Likewise.
18695 (replace_ref): Likewise.
18696 (cand_increment): Likewise. Return a widest_int.
18697 (cand_abs_increment): Likewise.
18698 (replace_mult_candidate): Take a widest_int instead of a double_int.
18699 (replace_unconditional_candidate): Use wide-int interfaces.
18700 (incr_vec_index): Take a widest_int instead of a double_int.
18701 (create_add_on_incoming_edge): Likewise.
18702 (create_phi_basis): Use wide-int interfaces.
18703 (replace_conditional_candidate): Likewise.
18704 (record_increment): Take a widest_int instead of a double_int.
18705 (record_phi_increments): Use wide-int interfaces.
18706 (phi_incr_cost): Take a widest_int instead of a double_int.
18707 (lowest_cost_path): Likewise.
18708 (total_savings): Likewise.
18709 (analyze_increments): Use wide-int interfaces.
18710 (ncd_with_phi): Take a widest_int instead of a double_int.
18711 (ncd_of_cand_and_phis): Likewise.
18712 (nearest_common_dominator_for_cands): Likewise.
18713 (insert_initializers): Use wide-int interfaces.
18714 (all_phi_incrs_profitable): Likewise.
18715 (replace_one_candidate): Likewise.
18716 (replace_profitable_candidates): Likewise.
18717 * godump.c: Include wide-int-print.h.
18718 (go_output_typedef): Use wide-int interfaces.
18719 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
18720 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
18721 (build_loop_iteration_domains): Likewise.
18722 * hooks.h: Include wide-int.h rather than double-int.h.
18723 (hook_bool_dint_dint_uint_bool_true): Delete.
18724 (hook_bool_wint_wint_uint_bool_true): Declare.
18725 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
18726 (hook_bool_wint_wint_uint_bool_true): New.
18727 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
18729 (ubsan_expand_si_overflow_mul_check): Likewise.
18730 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
18731 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
18732 (get_ancestor_addr_info): Likewise.
18733 (ipa_modify_call_arguments): Likewise.
18734 * loop-doloop.c (doloop_modify): Likewise.
18735 (doloop_optimize): Likewise.
18736 * loop-iv.c (iv_number_of_iterations): Likewise.
18737 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
18738 (unroll_loop_constant_iterations): Likewise.
18739 (decide_unroll_runtime_iterations): Likewise.
18740 (unroll_loop_runtime_iterations): Likewise.
18741 (decide_peel_simple): Likewise.
18742 (decide_unroll_stupid): Likewise.
18743 * lto-streamer-in.c (streamer_read_wi): Add.
18744 (input_cfg): Use wide-int interfaces.
18745 (lto_input_tree_1): Likewise.
18746 * lto-streamer-out.c (streamer_write_wi): Add.
18747 (hash_tree): Use wide-int interfaces.
18748 (output_cfg): Likewise.
18749 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
18750 (GTFILES): Add wide-int.h and signop.h.
18751 (TAGS): Look for .cc files too.
18752 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
18753 * optabs.c (expand_subword_shift): Likewise.
18754 (expand_doubleword_shift): Likewise.
18755 (expand_absneg_bit): Likewise.
18756 (expand_copysign_absneg): Likewise.
18757 (expand_copysign_bit): Likewise.
18758 * postreload.c (reload_cse_simplify_set): Likewise.
18759 * predict.c (predict_iv_comparison): Likewise.
18760 * pretty-print.h: Include wide-int-print.h.
18762 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
18763 * print-tree.c: Include wide-int-print.h.
18764 (print_node_brief): Use wide-int interfaces.
18765 (print_node): Likewise.
18766 * read-rtl.c (validate_const_wide_int): New.
18767 (read_rtx_code): Add CONST_WIDE_INT case.
18768 * real.c: Include wide-int.h.
18769 (real_to_integer2): Delete.
18770 (real_to_integer): New function, returning a wide_int.
18771 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
18772 (ten_to_ptwo): Update call to real_from_integer.
18773 (real_digit): Likewise.
18774 * real.h: Include signop.h, wide-int.h and insn-modes.h.
18775 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
18776 (REAL_VALUE_TO_INT): Delete.
18777 (real_to_integer): Declare a wide-int form.
18778 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
18779 * recog.c (const_int_operand): Improve comment.
18780 (const_scalar_int_operand): New.
18781 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
18782 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
18783 (split_double): Likewise.
18784 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
18785 (rtx_size): Likewise.
18786 (rtx_alloc_stat_v): New.
18787 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
18788 (cwi_output_hex): New.
18789 (iterative_hash_rtx): Handle CONST_WIDE_INT.
18790 (cwi_check_failed_bounds): New.
18791 * rtl.def (CONST_WIDE_INT): New.
18792 * rtl.h: Include <utility> and wide-int.h.
18793 (struct hwivec_def): New.
18794 (CWI_GET_NUM_ELEM): New.
18795 (CWI_PUT_NUM_ELEM): New.
18796 (struct rtx_def): Add num_elem and hwiv.
18797 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
18798 (CASE_CONST_UNIQUE): Likewise.
18799 (CASE_CONST_ANY): Likewise.
18800 (CONST_SCALAR_INT_P): Likewise.
18801 (CONST_WIDE_INT_P): New.
18803 (HWIVEC_CHECK): New.
18804 (cwi_check_failed_bounds): New.
18806 (HWIVEC_CHECK): New.
18807 (CONST_WIDE_INT_VEC) New.
18808 (CONST_WIDE_INT_NUNITS) New.
18809 (CONST_WIDE_INT_ELT) New.
18810 (rtx_mode_t): New type.
18811 (wi::int_traits <rtx_mode_t>): New.
18813 (wi::min_value): New.
18814 (wi::max_value): New.
18816 (const_wide_int_alloc): New.
18817 (immed_wide_int_const): New.
18818 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
18819 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
18820 * signop.h: New file.
18821 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
18822 (simplify_const_unary_operation): Use wide-int interfaces.
18823 (simplify_binary_operation_1): Likewise.
18824 (simplify_const_binary_operation): Likewise.
18825 (simplify_const_relational_operation): Likewise.
18826 (simplify_immed_subreg): Likewise.
18827 * stmt.c (expand_case): Likewise.
18828 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
18829 signop rather than a bool.
18830 * stor-layout.c (layout_type): Use wide-int interfaces.
18831 (initialize_sizetypes): Update calls to
18832 set_min_and_max_values_for_integral_type.
18833 (set_min_and_max_values_for_integral_type): Take a signop rather
18834 than a bool. Use wide-int interfaces.
18835 (fixup_signed_type): Update accordingly. Remove
18836 HOST_BITS_PER_DOUBLE_INT limit.
18837 (fixup_unsigned_type): Likewise.
18838 * system.h (STATIC_CONSTANT_P): New.
18839 (STATIC_ASSERT): New.
18840 * target.def (can_use_doloop_p): Take widest_ints rather than
18842 * target.h: Include wide-int.h rather than double-int.h.
18843 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
18845 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
18846 rather than INT_CST_LT_UNSIGNED.
18847 (can_use_doloop_if_innermost): Take widest_ints rather than
18849 * tree-affine.c: Include wide-int-print.h.
18850 (double_int_ext_for_comb): Delete.
18851 (wide_int_ext_for_comb): New.
18852 (aff_combination_zero): Use wide-int interfaces.
18853 (aff_combination_const): Take a widest_int instead of a double_int.
18854 (aff_combination_elt): Use wide-int interfaces.
18855 (aff_combination_scale): Take a widest_int instead of a double_int.
18856 (aff_combination_add_elt): Likewise.
18857 (aff_combination_add_cst): Likewise.
18858 (aff_combination_add): Use wide-int interfaces.
18859 (aff_combination_convert): Likewise.
18860 (tree_to_aff_combination): Likewise.
18861 (add_elt_to_tree): Take a widest_int instead of a double_int.
18862 (aff_combination_to_tree): Use wide-int interfaces.
18863 (aff_combination_remove_elt): Likewise.
18864 (aff_combination_add_product): Take a widest_int instead of
18866 (aff_combination_mult): Use wide-int interfaces.
18867 (aff_combination_expand): Likewise.
18868 (double_int_constant_multiple_p): Delete.
18869 (wide_int_constant_multiple_p): New.
18870 (aff_combination_constant_multiple_p): Take a widest_int pointer
18871 instead of a double_int pointer.
18872 (print_aff): Use wide-int interfaces.
18873 (get_inner_reference_aff): Take a widest_int pointer
18874 instead of a double_int pointer.
18875 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
18876 * tree-affine.h: Include wide-int.h.
18877 (struct aff_comb_elt): Change type of coef to widest_int.
18878 (struct affine_tree_combination): Change type of offset to widest_int.
18879 (double_int_ext_for_comb): Delete.
18880 (wide_int_ext_for_comb): New.
18881 (aff_combination_const): Use widest_int instead of double_int.
18882 (aff_combination_scale): Likewise.
18883 (aff_combination_add_elt): Likewise.
18884 (aff_combination_constant_multiple_p): Likewise.
18885 (get_inner_reference_aff): Likewise.
18886 (aff_comb_cannot_overlap_p): Likewise.
18887 (aff_combination_zero_p): Use wide-int interfaces.
18888 * tree.c: Include tree.h.
18889 (init_ttree): Use make_int_cst.
18890 (tree_code_size): Removed code for INTEGER_CST case.
18891 (tree_size): Add INTEGER_CST case.
18892 (make_node_stat): Update comment.
18893 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
18894 (build_int_cst_type): Use wide-int interfaces.
18895 (double_int_to_tree): Likewise.
18896 (double_int_fits_to_tree_p): Delete.
18897 (force_fit_type_double): Delete.
18898 (force_fit_type): New.
18899 (int_cst_hash_hash): Use wide-int interfaces.
18900 (int_cst_hash_eq): Likewise.
18901 (build_int_cst_wide): Delete.
18902 (wide_int_to_tree): New.
18903 (cache_integer_cst): Use wide-int interfaces.
18904 (build_low_bits_mask): Likewise.
18905 (cst_and_fits_in_hwi): Likewise.
18906 (real_value_from_int_cst): Likewise.
18907 (make_int_cst_stat): New.
18908 (integer_zerop): Use wide_int interfaces.
18909 (integer_onep): Likewise.
18910 (integer_all_onesp): Likewise.
18911 (integer_pow2p): Likewise.
18912 (integer_nonzerop): Likewise.
18913 (tree_log2): Likewise.
18914 (tree_floor_log2): Likewise.
18915 (tree_ctz): Likewise.
18916 (int_size_in_bytes): Likewise.
18917 (mem_ref_offset): Return an offset_int rather than a double_int.
18918 (build_type_attribute_qual_variant): Use wide_int interfaces.
18919 (type_hash_eq): Likewise
18920 (tree_int_cst_equal): Likewise.
18921 (tree_int_cst_lt): Delete.
18922 (tree_int_cst_compare): Likewise.
18923 (tree_fits_shwi_p): Use wide_int interfaces.
18924 (tree_fits_uhwi_p): Likewise.
18925 (tree_int_cst_sign_bit): Likewise.
18926 (tree_int_cst_sgn): Likewise.
18927 (tree_int_cst_min_precision): Take a signop rather than a bool.
18928 (simple_cst_equal): Use wide_int interfaces.
18929 (compare_tree_int): Likewise.
18930 (iterative_hash_expr): Likewise.
18931 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
18933 (get_type_static_bounds): Use wide_int interfaces.
18934 (tree_int_cst_elt_check_failed): New.
18935 (build_common_tree_nodes): Reordered to set prec before filling in
18937 (int_cst_value): Check cst_and_fits_in_hwi.
18938 (widest_int_cst_value): Use wide_int interfaces.
18939 (upper_bound_in_type): Likewise.
18940 (lower_bound_in_type): Likewise.
18941 (num_ending_zeros): Likewise.
18942 (drop_tree_overflow): Likewise.
18943 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
18944 (gen_conditions_for_pow_cst_base): Likewise.
18945 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
18946 (group_case_labels_stmt): Use wide-int interfaces.
18947 (verify_gimple_assign_binary): Likewise.
18948 (print_loop): Likewise.
18949 * tree-chrec.c (tree_fold_binomial): Likewise.
18950 * tree-core.h (struct tree_base): Add int_length.
18951 (struct tree_int_cst): Change rep of value.
18952 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
18953 (dr_may_alias_p): Likewise.
18954 (max_stmt_executions_tree): Likewise.
18955 * tree.def (INTEGER_CST): Update comment.
18956 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
18957 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
18958 * tree-dump.c: Include wide-int.h and wide-int-print.h.
18959 (dequeue_and_dump): Use wide-int interfaces.
18960 * tree.h: Include wide-int.h.
18961 (NULL_TREE): Moved to earlier loc in file.
18962 (TREE_INT_CST_ELT_CHECK): New.
18963 (tree_int_cst_elt_check_failed): New.
18965 (TREE_INT_CST): Delete.
18966 (TREE_INT_CST_LOW): Use wide-int interfaces.
18967 (TREE_INT_CST_HIGH): Delete.
18968 (TREE_INT_CST_NUNITS): New.
18969 (TREE_INT_CST_EXT_NUNITS): Likewise.
18970 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
18971 (TREE_INT_CST_ELT): Likewise.
18972 (INT_CST_LT): Delete.
18973 (tree_int_cst_elt_check): New (two forms).
18974 (type_code_size): Update comment.
18975 (make_int_cst_stat, make_int_cst): New.
18976 (tree_to_double_int): Delete.
18977 (double_int_fits_to_tree_p): Delete.
18978 (force_fit_type_double): Delete.
18979 (build_int_cstu): Replace with out-of-line function.
18980 (build_int_cst_wide): Delete.
18981 (tree_int_cst_lt): Define inline.
18982 (tree_int_cst_le): New.
18983 (tree_int_cst_compare): Define inline.
18984 (tree_int_cst_min_precision): Take a signop rather than a bool.
18985 (wi::int_traits <const_tree>): New.
18986 (wi::int_traits <tree>): New.
18987 (wi::extended_tree): New.
18988 (wi::int_traits <wi::extended_tree>): New.
18989 (wi::to_widest): New.
18990 (wi::to_offset): New.
18991 (wi::fits_to_tree_p): New.
18992 (wi::min_value): New.
18993 (wi::max_value): New.
18994 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
18995 (copy_tree_body_r): Likewise.
18996 * tree-object-size.c (compute_object_offset): Likewise.
18997 (addr_object_size): Likewise.
18998 * tree-predcom.c: Include wide-int-print.h.
18999 (struct dref_d): Change type of offset to widest_int.
19000 (dump_dref): Call wide-int printer.
19001 (aff_combination_dr_offset): Use wide-int interfaces.
19002 (determine_offset): Take a widest_int pointer rather than a
19003 double_int pointer.
19004 (split_data_refs_to_components): Use wide-int interfaces.
19005 (suitable_component_p): Likewise.
19006 (order_drefs): Likewise.
19007 (add_ref_to_chain): Likewise.
19008 (valid_initializer_p): Likewise.
19009 (determine_roots_comp): Likewise.
19010 * tree-pretty-print.c: Include wide-int-print.h.
19011 (dump_generic_node): Use wide-int interfaces.
19012 * tree-sra.c (sra_ipa_modify_expr): Likewise.
19013 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19014 (move_fixed_address_to_symbol): Likewise.
19015 (move_hint_to_base): Likewise.
19016 (move_pointer_to_base): Likewise.
19017 (move_variant_to_index): Likewise.
19018 (most_expensive_mult_to_index): Likewise.
19019 (addr_to_parts): Likewise.
19020 (copy_ref_info): Likewise.
19021 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19022 (indirect_refs_may_alias_p): Likewise.
19023 (stmt_kills_ref_p_1): Likewise.
19024 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19025 * tree-ssa-ccp.c: Update comment at top of file. Include
19027 (struct prop_value_d): Change type of mask to widest_int.
19028 (extend_mask): New function.
19029 (dump_lattice_value): Use wide-int interfaces.
19030 (get_default_value): Likewise.
19031 (set_constant_value): Likewise.
19032 (set_value_varying): Likewise.
19033 (valid_lattice_transition): Likewise.
19034 (set_lattice_value): Likewise.
19035 (value_to_double_int): Delete.
19036 (value_to_wide_int): New.
19037 (get_value_from_alignment): Use wide-int interfaces.
19038 (get_value_for_expr): Likewise.
19039 (do_dbg_cnt): Likewise.
19040 (ccp_finalize): Likewise.
19041 (ccp_lattice_meet): Likewise.
19042 (bit_value_unop_1): Use widest_ints rather than double_ints.
19043 (bit_value_binop_1): Likewise.
19044 (bit_value_unop): Use wide-int interfaces.
19045 (bit_value_binop): Likewise.
19046 (bit_value_assume_aligned): Likewise.
19047 (evaluate_stmt): Likewise.
19048 (ccp_fold_stmt): Likewise.
19049 (visit_cond_stmt): Likewise.
19050 (ccp_visit_stmt): Likewise.
19051 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19052 (constant_pointer_difference): Likewise.
19053 (associate_pointerplus): Likewise.
19054 (combine_conversions): Likewise.
19055 * tree-ssa-loop.h: Include wide-int.h.
19056 (struct tree_niter_desc): Change type of max to widest_int.
19057 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19058 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19059 (remove_redundant_iv_tests): Likewise.
19060 (canonicalize_loop_induction_variables): Likewise.
19061 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19062 (constant_multiple_of): Take a widest_int pointer instead of
19063 a double_int pointer.
19064 (get_computation_aff): Use wide-int interfaces.
19065 (ptr_difference_cost): Likewise.
19066 (difference_cost): Likewise.
19067 (get_loop_invariant_expr_id): Likewise.
19068 (get_computation_cost_at): Likewise.
19069 (iv_elimination_compare_lt): Likewise.
19070 (may_eliminate_iv): Likewise.
19071 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
19072 instead of double_int.
19073 (max_loop_iterations): Likewise.
19074 (max_stmt_executions): Likewise.
19075 (estimated_stmt_executions): Likewise.
19076 * tree-ssa-loop-niter.c: Include wide-int-print.h.
19077 (split_to_var_and_offset): Use wide-int interfaces.
19078 (determine_value_range): Likewise.
19079 (bound_difference_of_offsetted_base): Likewise.
19080 (bounds_add): Take a widest_int instead of a double_int.
19081 (number_of_iterations_ne_max): Use wide-int interfaces.
19082 (number_of_iterations_ne): Likewise.
19083 (number_of_iterations_lt_to_ne): Likewise.
19084 (assert_loop_rolls_lt): Likewise.
19085 (number_of_iterations_lt): Likewise.
19086 (number_of_iterations_le): Likewise.
19087 (number_of_iterations_cond): Likewise.
19088 (number_of_iterations_exit): Likewise.
19089 (finite_loop_p): Likewise.
19090 (derive_constant_upper_bound_assign): Likewise.
19091 (derive_constant_upper_bound): Return a widest_int.
19092 (derive_constant_upper_bound_ops): Likewise.
19093 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
19094 (record_estimate): Take a widest_int rather than a double_int.
19095 (record_nonwrapping_iv): Use wide-int interfaces.
19096 (double_int_cmp): Delete.
19097 (wide_int_cmp): New.
19098 (bound_index): Take a widest_int rather than a double_int.
19099 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
19100 (maybe_lower_iteration_bound): Likewise.
19101 (estimate_numbers_of_iterations_loop): Likewise.
19102 (estimated_loop_iterations): Take a widest_int pointer than than
19103 a double_int pointer.
19104 (estimated_loop_iterations_int): Use wide-int interfaces.
19105 (max_loop_iterations): Take a widest_int pointer than than
19106 a double_int pointer.
19107 (max_loop_iterations_int): Use wide-int interfaces.
19108 (max_stmt_executions): Take a widest_int pointer than than
19109 a double_int pointer.
19110 (estimated_stmt_executions): Likewise.
19111 (n_of_executions_at_most): Use wide-int interfaces.
19112 (scev_probably_wraps_p): Likewise.
19113 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
19114 to real_to_integer.
19115 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
19117 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
19118 double_ints. Adjust for trailing_wide_ints <3> representation.
19119 (set_nonzero_bits): Likewise.
19120 (get_range_info): Return wide_ints rather than double_ints.
19121 Adjust for trailing_wide_ints <3> representation.
19122 (get_nonzero_bits): Likewise.
19123 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
19125 * tree-ssanames.h (struct range_info_def): Replace min, max and
19126 nonzero_bits with a trailing_wide_ints <3>.
19127 (set_range_info): Use wide_int_refs rather than double_ints.
19128 (set_nonzero_bits): Likewise.
19129 (get_range_info): Return wide_ints rather than double_ints.
19130 (get_nonzero_bits): Likewise.
19131 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
19132 * tree-ssa-pre.c (phi_translate_1): Likewise.
19133 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
19134 (acceptable_pow_call): Likewise.
19135 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
19137 (vn_reference_fold_indirect): Likewise.
19138 (vn_reference_maybe_forwprop_address): Likewise.
19139 (valueize_refs_1): Likewise.
19140 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
19141 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
19142 tree_int_cst_lt and tree_int_cst_le.
19143 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
19145 (streamer_alloc_tree): Likewise.
19146 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
19147 (streamer_write_tree_header): Likewise.
19148 (streamer_write_integer_cst): Likewise.
19149 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19150 (build_constructors): Likewise.
19151 (array_value_type): Likewise.
19152 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
19153 (vect_check_gather): Likewise.
19154 * tree-vect-generic.c (build_replicated_const): Likewise.
19155 (expand_vector_divmod): Likewise.
19156 * tree-vect-loop.c (vect_transform_loop): Likewise.
19157 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
19158 (vect_do_peeling_for_alignment): Likewise.
19159 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19160 * tree-vrp.c: Include wide-int.h.
19161 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
19162 (extract_range_from_assert): Use wide-int interfaces.
19163 (vrp_int_const_binop): Likewise.
19164 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
19165 double_int pointers.
19166 (ranges_from_anti_range): Use wide-int interfaces.
19167 (quad_int_cmp): Delete.
19168 (quad_int_pair_sort): Likewise.
19169 (extract_range_from_binary_expr_1): Use wide-int interfaces.
19170 (extract_range_from_unary_expr_1): Likewise.
19171 (adjust_range_with_scev): Likewise.
19172 (masked_increment): Take and return wide_ints rather than double_ints.
19173 (register_edge_assert_for_2): Use wide-int interfaces.
19174 (check_array_ref): Likewise.
19175 (search_for_addr_array): Likewise.
19176 (maybe_set_nonzero_bits): Likewise.
19177 (union_ranges): Pass an integer of the correct type instead of
19178 using integer_one_node.
19179 (intersect_ranges): Likewise.
19180 (simplify_truth_ops_using_ranges): Likewise.
19181 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
19182 (range_fits_type_p): Likewise.
19183 (simplify_cond_using_ranges): Likewise. Take a signop rather than
19185 (simplify_conversion_using_ranges): Use wide-int interfaces.
19186 (simplify_float_conversion_using_ranges): Likewise.
19187 (vrp_finalize): Likewise.
19188 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
19189 (gimple_stringops_transform): Likewise.
19190 * varasm.c (decode_addr_const): Likewise.
19191 (const_hash_1): Likewise.
19192 (const_rtx_hash_1): Likewise
19193 (output_constant): Likewise.
19194 (array_size_for_constructor): Likewise.
19195 (output_constructor_regular_field): Likewise.
19196 (output_constructor_bitfield): Likewise.
19197 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
19198 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
19200 * gencheck.c: Define BITS_PER_UNIT.
19201 * wide-int.cc: New.
19203 * wide-int-print.cc: New.
19204 * wide-int-print.h: New.
19206 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19208 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
19210 2014-05-06 Richard Biener <rguenther@suse.de>
19212 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
19213 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
19214 (TODO_verify_all): Adjust.
19215 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
19216 TODO_verify_stmts and TODO_verify_rtl_sharing.
19217 * bb-reorder.c: Likewise.
19218 * cfgexpand.c: Likewise.
19219 * cprop.c: Likewise.
19221 * function.c: Likewise.
19222 * fwprop.c: Likewise.
19223 * gcse.c: Likewise.
19224 * gimple-ssa-isolate-paths.c: Likewise.
19225 * gimple-ssa-strength-reduction.c: Likewise.
19226 * ipa-split.c: Likewise.
19227 * loop-init.c: Likewise.
19228 * loop-unroll.c: Likewise.
19229 * lower-subreg.c: Likewise.
19230 * modulo-sched.c: Likewise.
19231 * postreload-gcse.c: Likewise.
19232 * predict.c: Likewise.
19233 * recog.c: Likewise.
19234 * sched-rgn.c: Likewise.
19235 * store-motion.c: Likewise.
19236 * tracer.c: Likewise.
19237 * trans-mem.c: Likewise.
19238 * tree-call-cdce.c: Likewise.
19239 * tree-cfg.c: Likewise.
19240 * tree-cfgcleanup.c: Likewise.
19241 * tree-complex.c: Likewise.
19242 * tree-eh.c: Likewise.
19243 * tree-emutls.c: Likewise.
19244 * tree-if-conv.c: Likewise.
19245 * tree-into-ssa.c: Likewise.
19246 * tree-loop-distribution.c: Likewise.
19247 * tree-object-size.c: Likewise.
19248 * tree-parloops.c: Likewise.
19249 * tree-pass.h: Likewise.
19250 * tree-sra.c: Likewise.
19251 * tree-ssa-ccp.c: Likewise.
19252 * tree-ssa-copy.c: Likewise.
19253 * tree-ssa-copyrename.c: Likewise.
19254 * tree-ssa-dce.c: Likewise.
19255 * tree-ssa-dom.c: Likewise.
19256 * tree-ssa-dse.c: Likewise.
19257 * tree-ssa-forwprop.c: Likewise.
19258 * tree-ssa-ifcombine.c: Likewise.
19259 * tree-ssa-loop-ch.c: Likewise.
19260 * tree-ssa-loop-ivcanon.c: Likewise.
19261 * tree-ssa-loop.c: Likewise.
19262 * tree-ssa-math-opts.c: Likewise.
19263 * tree-ssa-phiopt.c: Likewise.
19264 * tree-ssa-phiprop.c: Likewise.
19265 * tree-ssa-pre.c: Likewise.
19266 * tree-ssa-reassoc.c: Likewise.
19267 * tree-ssa-sink.c: Likewise.
19268 * tree-ssa-strlen.c: Likewise.
19269 * tree-ssa-tail-merge.c: Likewise.
19270 * tree-ssa-uncprop.c: Likewise.
19271 * tree-switch-conversion.c: Likewise.
19272 * tree-tailcall.c: Likewise.
19273 * tree-vect-generic.c: Likewise.
19274 * tree-vectorizer.c: Likewise.
19275 * tree-vrp.c: Likewise.
19276 * tsan.c: Likewise.
19277 * var-tracking.c: Likewise.
19278 * bt-load.c: Likewise.
19279 * cfgcleanup.c: Likewise.
19280 * combine-stack-adj.c: Likewise.
19281 * combine.c: Likewise.
19282 * compare-elim.c: Likewise.
19283 * config/epiphany/resolve-sw-modes.c: Likewise.
19284 * config/i386/i386.c: Likewise.
19285 * config/mips/mips.c: Likewise.
19286 * config/s390/s390.c: Likewise.
19287 * config/sh/sh_treg_combine.cc: Likewise.
19288 * config/sparc/sparc.c: Likewise.
19291 * final.c: Likewise.
19292 * ifcvt.c: Likewise.
19293 * mode-switching.c: Likewise.
19294 * passes.c: Likewise.
19295 * postreload.c: Likewise.
19297 * reg-stack.c: Likewise.
19298 * regcprop.c: Likewise.
19299 * regrename.c: Likewise.
19302 2014-05-06 Richard Biener <rguenther@suse.de>
19304 PR middle-end/61070
19305 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
19306 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
19308 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
19311 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
19313 2014-05-05 Radovan Obradovic <robradovic@mips.com>
19314 Tom de Vries <tom@codesourcery.com>
19316 * target.def (call_fusage_contains_non_callee_clobbers): New
19318 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
19320 (@node Miscellaneous Register Hooks): New node.
19321 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
19322 * doc/tm.texi: Regenerate.
19324 2014-05-05 Marek Polacek <polacek@redhat.com>
19327 * opts.c (common_handle_option): Call error_at instead of warning_at.
19329 2014-05-05 Richard Biener <rguenther@suse.de>
19331 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
19332 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
19333 under the TODO_verify_il umbrella.
19335 2014-05-05 Richard Biener <rguenther@suse.de>
19337 * passes.c (execute_function_todo): Move TODO_verify_flow under
19338 the TODO_verify_ul umbrella.
19340 2014-05-05 Richard Biener <rguenther@suse.de>
19342 PR middle-end/61010
19343 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
19344 X & CST away from a CST that is the mask of a mode.
19346 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19348 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
19349 int argument to enum machine_mode.
19350 (picochip_class_max_nregs): Ditto.
19351 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
19352 (picochip_class_max_nregs): Ditto.
19354 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19356 * target.def: Add new target hook.
19357 * doc/tm.texi: Regenerate.
19358 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
19359 * targhooks.c (default_keep_leaf_when_profiled): New function.
19361 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
19362 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
19364 2014-05-05 Bin Cheng <bin.cheng@arm.com>
19366 PR tree-optimization/60363
19367 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
19368 (copy_phi_args): New parameters. Call get_value_locus_in_path.
19369 (update_destination_phis): New parameter.
19370 (create_edge_and_update_destination_phis): Ditto.
19371 (ssa_fix_duplicate_block_edges): Pass new arguments.
19372 (thread_single_edge): Ditto.
19374 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
19376 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
19377 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
19378 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
19379 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
19380 Use RS6000_BTM_HARD_FLOAT.
19381 (BU_MISC_2): Likewise.
19382 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
19383 RS6000_BTM_HARD_FLOAT.
19384 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
19385 is explicitly used.
19386 (rs6000_invalid_builtin): Add hard floating builtin support.
19387 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
19388 hard float builtins.
19389 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
19391 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19393 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
19394 Add missing function* argument.
19396 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19398 * lra-constraints.c (valid_address_p): Move earlier in file.
19399 Add a constraint argument to the address_info version.
19400 (satisfies_memory_constraint_p): New function.
19401 (satisfies_address_constraint_p): Likewise.
19402 (process_alt_operands, curr_insn_transform): Use them.
19403 (process_address): Pass the constraint to valid_address_p when
19404 checking address operands.
19406 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
19408 * config/mips/mips.c (mips_isa_rev): New variable.
19409 (mips_set_architecture): Set it.
19410 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
19412 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
19413 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
19414 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
19415 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
19416 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
19417 conditions in terms of mips_isa_rev.
19418 (mips_isa_rev): Declare.
19420 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19422 * config/sh/sh-mem.cc: Use tabs instead of spaces.
19423 (prob_unlikely, prob_likely): Make variables const.
19425 2014-05-03 Denis Chertykov <chertykov@gmail.com>
19427 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
19429 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19431 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
19433 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19435 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
19436 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
19437 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
19439 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
19440 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
19442 Replace usage of ROUND_REG with sh_round_reg.
19443 Use CEIL instead of ROUND_ADVANCE.
19445 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
19448 * config/sh/sh.c: Include stdlib headers before everything else.
19450 2014-05-02 Jakub Jelinek <jakub@redhat.com>
19452 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
19453 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
19454 (gimplify_adjust_omp_clauses): Simd region is never
19455 directly nested in combined parallel. Instead, for linear
19456 with copyin/copyout, if in combined for simd loop, make decl
19457 firstprivate/lastprivate on OMP_FOR.
19458 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
19459 expand_omp_for_static_chunk): When setting endvar, also set
19460 fd->loop.v to the same value.
19462 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19464 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
19466 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
19468 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
19471 2014-05-02 Marek Polacek <polacek@redhat.com>
19473 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
19475 2014-05-02 Kito Cheng <kito@0xlab.org>
19477 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
19478 to a C expression marco.
19479 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
19480 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
19481 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
19482 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
19483 HONOR_REG_ALLOC_ORDER.
19484 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
19486 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19488 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
19490 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19492 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
19494 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
19496 * tree-if-conv.c (is_cond_scalar_reduction): New function.
19497 (convert_scalar_cond_reduction): Likewise.
19498 (predicate_scalar_phi): Add recognition and transformation
19499 of simple conditioanl reduction to be vectorizable.
19501 2014-05-01 Marek Polacek <polacek@redhat.com>
19504 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
19506 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
19508 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
19509 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
19510 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
19511 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
19512 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
19513 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
19514 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
19515 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
19517 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
19519 * config/arc/arc.opt (mlra): Move comment above option name
19520 to avoid mis-parsing as language options.
19522 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19524 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
19525 * config/sol2.h: ... here.
19526 * config/sol2-10.h: Remove.
19528 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
19529 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
19530 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
19531 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
19532 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
19533 * config/sol2.h: ... here.
19534 (SECTION_NAME_FORMAT): Don't redefine.
19535 (STARTFILE_ARCH32_SPEC): Rename to ...
19536 (STARTFILE_ARCH_SPEC): ... this.
19537 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19538 * config/sparc/sol2.h: ... here.
19539 (SECTION_NAME_FORMAT): Don't undef.
19540 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
19541 (SUBTARGET_EXTRA_SPECS): Remove.
19542 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19544 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
19545 (MD_STARTFILE_PREFIX): Remove.
19546 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
19547 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
19548 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
19549 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
19550 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
19551 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
19552 * config/i386/sol2.h: ... here.
19553 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
19554 * config/i386/sol2-bi.h: Remove.
19555 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
19556 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
19558 * config/i386/t-sol2-64: Rename to ...
19559 * config/i386/t-sol2: ... this.
19560 * config/sparc/t-sol2-64: Rename to ...
19561 * config/sparc/t-sol2: ... this.
19563 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
19564 sol2_tm_file_head, sol2_tm_file_tail.
19565 Include ${cpu_type}/sol2.h before sol2.h.
19567 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
19568 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
19569 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
19570 Reflect i386/t-sol2-64 renaming.
19571 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
19572 Reflect sparc/t-sol2-64 renaming.
19574 2014-04-30 Richard Biener <rguenther@suse.de>
19576 * passes.c (execute_function_todo): Move TODO_verify_stmts
19577 and TODO_verify_ssa under the TODO_verify_il umbrella.
19578 * tree-ssa.h (verify_ssa): Adjust prototype.
19579 * tree-ssa.c (verify_ssa): Add parameter to tell whether
19580 we should verify SSA operands.
19581 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
19582 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
19583 whether we should verify whether not throwing stmts have EH info.
19584 * graphite-scop-detection.c (create_sese_edges): Adjust.
19585 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
19586 * tree-eh.c (lower_try_finally_switch): Do not add the
19587 default case label twice.
19589 2014-04-30 Marek Polacek <polacek@redhat.com>
19591 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
19592 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
19593 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
19594 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
19596 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
19598 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
19599 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
19600 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
19601 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
19602 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
19603 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
19604 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
19605 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
19607 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19609 * tree-cfg.c (dump_function_to_file): Dump the return type of
19610 functions, in a line to itself before the function body, mimicking
19611 the layout of a C function.
19613 2014-04-29 Jakub Jelinek <jakub@redhat.com>
19615 PR tree-optimization/60971
19616 * tree-tailcall.c (process_assignment): Reject conversions which
19619 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
19621 * calls.c (initialize_argument_information): Always treat
19622 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
19623 (expand_call): Likewise.
19624 (emit_library_call_calue_1): Likewise.
19625 * expr.c (PUSH_ARGS_REVERSED): Do not define.
19626 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
19629 2014-04-29 Nick Clifton <nickc@redhat.com>
19631 * config/msp430/msp430.md (umulsidi): Fix typo.
19632 (mulhisi3): Enable even inside interrupt handlers.
19633 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
19634 bigger return address pushed in large mode.
19636 2014-04-29 Nick Clifton <nickc@redhat.com>
19638 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
19639 (arc_init_reg_tables): Use a machine_mode enum to iterate over
19641 * config/m32r/m32r.c (init_reg_tables): Likewise.
19642 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
19643 enum to hold the modes.
19645 2014-04-29 Richard Biener <rguenther@suse.de>
19647 * dominance.c (free_dominance_info): Add overload with
19648 function parameter.
19649 (dom_info_state): Likewise.
19650 (dom_info_available_p): Likewise.
19651 * basic-block.h (free_dominance_info, dom_info_state,
19652 dom_info_available_p): Declare overloads.
19653 * passes.c (execute_function_todo): Verify that verifiers
19654 don't change dominator info state. Drop dominator info
19655 for IPA pass invocations.
19656 * cgraph.c (release_function_body): Restore asserts that
19657 dominator information is released.
19659 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
19661 * doc/invoke.texi: Fix typo.
19662 * tree-vrp.c: Fix typos.
19663 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
19665 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19667 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
19669 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
19671 * config/aarch64/aarch64-builtins.c
19672 (aarch64_types_storestruct_lane_qualifiers): New.
19673 (TYPES_STORESTRUCT_LANE): Likewise.
19674 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
19675 (st3_lane): Likewise.
19676 (st4_lane): Likewise.
19677 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
19678 (vec_store_lanesci_lane<mode>): Likewise.
19679 (vec_store_lanesxi_lane<mode>): Likewise.
19680 (aarch64_st2_lane<VQ:mode>): Likewise.
19681 (aarch64_st3_lane<VQ:mode>): Likewise.
19682 (aarch64_st4_lane<VQ:mode>): Likewise.
19683 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
19684 * config/aarch64/arm_neon.h
19685 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
19686 use new macro arguments.
19687 (__ST3_LANE_FUNC): Likewise.
19688 (__ST4_LANE_FUNC): Likewise.
19689 * config/aarch64/iterators.md (V_TWO_ELEM): New.
19690 (V_THREE_ELEM): Likewise.
19691 (V_FOUR_ELEM): Likewise.
19693 2014-04-28 David Malcolm <dmalcolm@redhat.com>
19695 * doc/gimple.texi: Replace the description of the now-defunct
19696 union gimple_statement_d with a diagram showing the
19697 gimple_statement_base class hierarchy and its relationships to
19698 the GSS_ and GIMPLE_ enums.
19700 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
19702 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
19703 * config/aarch64/aarch64.c
19704 (aarch64_cannot_change_mode_class): Weaken conditions.
19705 (aarch64_modes_tieable_p): New.
19706 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
19708 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
19710 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19711 (loadsync_<mode>): Change mode.
19712 (load_quadpti, store_quadpti): New.
19713 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19714 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19716 2014-04-28 Martin Jambor <mjambor@suse.cz>
19718 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
19719 same alias type as the original statement.
19720 (subreplacement_assignment_data): New type.
19721 (handle_unscalarized_data_in_subtree): New type of parameter,
19722 generate new memory accesses with same alias type as the original
19724 (load_assign_lhs_subreplacements): Likewise.
19725 (sra_modify_constructor_assign): Generate new memory accesses with
19726 same alias type as the original statement.
19728 2014-04-28 Richard Biener <rguenther@suse.de>
19730 * tree-pass.h (TODO_verify_il): Define.
19731 (TODO_verify_all): Complete properly.
19732 * passes.c (execute_function_todo): Move existing loop-closed
19733 SSA verification under TODO_verify_il.
19734 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
19735 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
19736 Fix tree sharing issue.
19738 2014-04-28 Richard Biener <rguenther@suse.de>
19740 PR middle-end/60092
19741 * builtins.def (DEF_C11_BUILTIN): Add.
19742 (BUILT_IN_ALIGNED_ALLOC): Likewise.
19743 * coretypes.h (enum function_class): Add function_c11_misc.
19744 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19745 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
19746 (call_may_clobber_ref_p_1): Likewise.
19747 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
19748 (mark_all_reaching_defs_necessary_1): Likewise.
19749 (propagate_necessity): Likewise.
19750 (eliminate_unnecessary_stmts): Likewise.
19751 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
19753 2014-04-28 Richard Biener <rguenther@suse.de>
19755 * tree-vrp.c (vrp_var_may_overflow): Remove.
19756 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
19757 with overflow immediately bump to one before that value and
19758 let iteration figure out overflow status.
19760 2014-04-28 Richard Biener <rguenther@suse.de>
19762 * configure.ac: Do valgrind header checks unconditionally.
19763 Add --enable-valgrind-annotations.
19764 * system.h: Guard valgrind header inclusion with
19765 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
19766 * alloc-pool.c (pool_alloc, pool_free): Use
19767 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
19768 to guard possibly dead code.
19769 * config.in: Regenerated.
19770 * configure: Likewise.
19772 2014-04-28 Jeff Law <law@redhat.com>
19774 PR tree-optimization/60902
19775 * tree-ssa-threadedge.c
19776 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
19777 over real defs when invalidating outputs from statements that do not
19778 produce useful outputs for threading.
19780 2014-04-28 Richard Biener <rguenther@suse.de>
19782 PR tree-optimization/60979
19783 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
19784 SCOPs that end in a block with a successor with abnormal
19787 2014-04-28 Richard Biener <rguenther@suse.de>
19789 * tree-pass.h (execute_pass_list): Adjust prototype.
19790 * passes.c (pass_manager::execute_early_local_passes): Adjust.
19791 (do_per_function): Change callback signature, push all actual
19792 work to the callbals.
19793 (do_per_function_toporder): Likewise.
19794 (execute_function_dump): Adjust.
19795 (execute_function_todo): Likewise.
19796 (clear_last_verified): Likewise.
19797 (verify_curr_properties): Likewise.
19798 (update_properties_after_pass): Likewise.
19799 (execute_pass_list_1): Split out from ...
19800 (execute_pass_list): ... here. Adjust.
19801 (execute_ipa_pass_list): Likewise.
19802 * cgraphunit.c (cgraph_add_new_function): Adjust.
19803 (analyze_function): Likewise.
19804 (expand_function): Likewise.
19805 * cgraph.c (release_function_body): Free dominance info
19806 here instead of asserting it was magically freed elsewhere.
19808 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
19810 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
19811 * configure: Regenerate.
19812 * config/sparc/sparc.opt (muser-mode): New option.
19813 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
19815 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
19816 * doc/invoke.texi (SPARC options): Document -muser-mode.
19818 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
19820 * cselib.c (find_slot_memmode): Delete.
19821 (cselib_hasher): Change compare_type to a struct.
19822 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
19824 (preserve_constants_and_equivs): Adjust for new compare_type.
19825 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
19826 (wrap_constant): Delete.
19827 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
19829 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
19831 * doc/install.texi (Building with profile feedback): Remove
19834 2014-04-26 Tom de Vries <tom@codesourcery.com>
19836 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
19839 2014-04-25 Cary Coutant <ccoutant@google.com>
19842 * dwarf2out.c (should_move_die_to_comdat): A type definition
19843 can contain a subprogram definition, but don't move it to a
19845 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
19846 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
19848 (clone_tree_hash): Rename to...
19849 (clone_tree_partial): ...this; change callers. Copy
19850 DW_TAG_subprogram DIEs as declarations.
19851 (copy_decls_walk): Don't copy children of a declaration into a
19854 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
19857 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
19860 2014-04-25 Jiong Wang <jiong.wang@arm.com>
19862 * config/arm/predicates.md (call_insn_operand): Add long_call check.
19863 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
19865 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
19868 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19870 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
19872 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19874 PR tree-optimization/60930
19875 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
19876 creating a multiply candidate by folding two constant
19877 multiplicands when the result overflows.
19879 2014-04-25 Jakub Jelinek <jakub@redhat.com>
19881 PR tree-optimization/60960
19882 * tree-vect-generic.c (expand_vector_operation): Only call
19883 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
19885 2014-04-25 Tom de Vries <tom@codesourcery.com>
19887 * expr.c (clobber_reg_mode): New function.
19888 * expr.h (clobber_reg): New function.
19890 2014-04-25 Tom de Vries <tom@codesourcery.com>
19892 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
19895 2014-04-25 Radovan Obradovic <robradovic@mips.com>
19896 Tom de Vries <tom@codesourcery.com>
19898 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
19900 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
19901 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
19902 new argument to find_all_hard_reg_sets call.
19904 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19906 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
19907 Use HOST_WIDE_INT_C for mask literal.
19908 (aarch_rev16_shleft_mask_imm_p): Likewise.
19910 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
19913 * config/sparc/sparc.md (ashlsi3_extend): Delete.
19915 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
19917 PR preprocessor/56540
19918 * config/i386/i386-c.c (ix86_target_macros): Define
19919 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
19921 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19923 * configure.ac (tga_func): Remove.
19924 (LIB_TLS_SPEC): Remove.
19925 * configure: Regenerate.
19926 * config.in: Regenerate.
19927 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
19929 2014-04-25 Richard Biener <rguenther@suse.de>
19932 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
19933 call stmt use/clobber sets during stmt walk instead of
19934 walking the possibly incomplete set of caller edges.
19936 2014-04-25 Richard Biener <rguenther@suse.de>
19939 * passes.c (apply_ipa_transforms): Inline into only caller ...
19940 (execute_one_pass): ... here. Properly bring in function
19941 bodies for nodes we want to apply IPA transforms to.
19943 2014-04-24 Cong Hou <congh@google.com>
19945 PR tree-optimization/60896
19946 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
19947 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
19948 (vect_mark_pattern_stmts): Set the def type of all statements in
19949 PATTERN_DEF_SEQ as vect_internal_def.
19951 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19953 * doc/extend.texi (PowerPC Built-in Functions): Document new
19954 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
19955 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
19957 * config/rs6000/predicates.md (const_0_to_3_operand): New
19958 predicate to match 0..3 integer constants.
19960 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
19961 to support adding miscellaneous builtin functions.
19962 (BU_DFP_MISC_2): Likewise.
19963 (BU_P7_MISC_1): Likewise.
19964 (BU_P7_MISC_2): Likewise.
19965 (BU_P8V_MISC_3): Likewise.
19966 (BU_MISC_1): Likewise.
19967 (BU_MISC_2): Likewise.
19968 (DIVWE): Add extended divide builtin functions.
19969 (DIVWEO): Likewise.
19970 (DIVWEU): Likewise.
19971 (DIVWEUO): Likewise.
19973 (DIVDEO): Likewise.
19974 (DIVDEU): Likewise.
19975 (DIVDEUO): Likewise.
19976 (DXEX): Add decimal floating-point builtin functions.
19978 (DDEDPD): Likewise.
19979 (DDEDPDQ): Likewise.
19980 (DENBCD): Likewise.
19981 (DENBCDQ): Likewise.
19985 (DSCLIQ): Likewise.
19987 (DSCRIQ): Likewise.
19988 (CDTBCD): Add new BCD builtin functions.
19989 (CBCDTD): Likewise.
19990 (ADDG6S): Likewise.
19991 (BCDADD): Likewise.
19992 (BCDADD_LT): Likewise.
19993 (BCDADD_EQ): Likewise.
19994 (BCDADD_GT): Likewise.
19995 (BCDADD_OV): Likewise.
19996 (BCDSUB): Likewise.
19997 (BCDSUB_LT): Likewise.
19998 (BCDSUB_EQ): Likewise.
19999 (BCDSUB_GT): Likewise.
20000 (BCDSUB_OV): Likewise.
20001 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20002 (UNPACK_TD): Likewise.
20003 (PACK_TF): Likewise.
20004 (UNPACK_TF): Likewise.
20005 (UNPACK_TF_0): Likewise.
20006 (UNPACK_TF_1): Likewise.
20007 (PACK_V1TI): Likewise.
20008 (UNPACK_V1TI): Likewise.
20010 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20011 support for decimal floating point builtin functions.
20012 (rs6000_expand_ternop_builtin): Add checks for the new builtin
20013 functions that take constant arguments.
20014 (rs6000_invalid_builtin): Add decimal floating point builtin support.
20015 (rs6000_init_builtins): Setup long double, _Decimal64, and
20016 _Decimal128 types for new builtin functions.
20017 (builtin_function_type): Set the unsigned flags appropriately for
20018 the new builtin functions.
20019 (rs6000_opt_masks): Add support for decimal floating point builtin
20022 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20023 floating point builtin functions.
20024 (RS6000_BTM_COMMON): Likewise.
20025 (RS6000_BTI_long_double): Likewise.
20026 (RS6000_BTI_dfloat64): Likewise.
20027 (RS6000_BTI_dfloat128): Likewise.
20028 (long_double_type_internal_node): Likewise.
20029 (dfloat64_type_internal_node): Likewise.
20030 (dfloat128_type_internal_node): Likewise.
20032 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20033 2.07 bcd arithmetic instructions.
20034 (UNSPEC_BCDSUB): Likewise.
20035 (UNSPEC_BCD_OVERFLOW): Likewise.
20036 (UNSPEC_BCD_ADD_SUB): Likewise.
20037 (bcd_add_sub): Likewise.
20038 (BCD_TEST): Likewise.
20039 (bcd<bcd_add_sub>): Likewise.
20040 (bcd<bcd_add_sub>_test): Likewise.
20041 (bcd<bcd_add_sub>_test2): Likewise.
20042 (bcd<bcd_add_sub>_<code>): Likewise.
20043 (peephole2 for combined bcd ops): Likewise.
20045 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20046 decimal floating point builtin functions.
20047 (UNSPEC_DENBCD): Likewise.
20048 (UNSPEC_DXEX): Likewise.
20049 (UNSPEC_DIEX): Likewise.
20050 (UNSPEC_DSCLI): Likewise.
20051 (UNSPEC_DSCRI): Likewise.
20052 (D64_D128): Likewise.
20053 (dfp_suffix): Likewise.
20054 (dfp_ddedpd_<mode>): Likewise.
20055 (dfp_denbcd_<mode>): Likewise.
20056 (dfp_dxex_<mode>): Likewise.
20057 (dfp_diex_<mode>): Likewise.
20058 (dfp_dscli_<mode>): Likewise.
20059 (dfp_dscri_<mode>): Likewise.
20061 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20063 (UNSPEC_CDTBCD): Likewise.
20064 (UNSPEC_CBCDTD): Likewise.
20065 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20066 (UNSPEC_DIVEO): Likewise.
20067 (UNSPEC_DIVEU): Likewise.
20068 (UNSPEC_DIVEUO): Likewise.
20069 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
20070 pack/unpack 128-bit types.
20071 (UNSPEC_PACK_128BIT): Likewise.
20072 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
20073 (udiv<mode>3): Use idiv_ldiv mode attribute.
20074 (div<mode>3): Likewise.
20075 (addg6s): Add new BCD builtin functions.
20076 (cdtbcd): Likewise.
20077 (cbcdtd): Likewise.
20078 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
20079 (div_extend): Likewise.
20080 (div<div_extend>_<mode>"): Likewise.
20081 (FP128_64): Add support for new builtin functions to pack/unpack
20083 (unpack<mode>): Likewise.
20084 (unpacktf_0): Likewise.
20085 (unpacktf_1): Likewise.
20086 (unpack<mode>_dm): Likewise.
20087 (unpack<mode>_nodm): Likewise.
20088 (pack<mode>): Likewise.
20089 (unpackv1ti): Likewise.
20090 (packv1ti): Likewise.
20092 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
20094 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
20097 2014-04-24 Jakub Jelinek <jakub@redhat.com>
20099 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
20100 * gimplify.c (omp_is_private): Change last argument's type to int.
20101 Only diagnose lastprivate if the simd argument is 1, only diagnose
20102 linear if the simd argument is 2.
20103 (gimplify_omp_for): Adjust omp_is_private callers. When adding
20104 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
20105 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
20106 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
20107 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
20108 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20109 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
20110 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20111 * tree-nested.c (convert_nonlocal_omp_clauses,
20112 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
20114 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
20117 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
20120 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
20122 * flag-types.h (enum ivar_visibility): Add.
20124 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
20126 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
20127 function * argument.
20129 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
20131 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
20133 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20134 Tom de Vries <tom@codesourcery.com>
20136 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
20137 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
20139 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
20140 * emit-rtl.c (try_split): Same.
20142 2014-04-24 Radovan Obradovic <robradovic@mips.com>
20143 Tom de Vries <tom@codesourcery.com>
20145 * common.opt (fuse-caller-save): New option.
20147 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
20149 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
20150 elements for big-endian.
20152 2014-04-24 Richard Biener <rguenther@suse.de>
20154 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
20155 during TER and instead use the sepops interface for expanding
20156 non-GIMPLE_SINGLE_RHS.
20158 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20160 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
20161 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
20163 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20165 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
20166 assembler 64-bit option.
20167 * configure: Regenerate.
20169 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20171 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
20172 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
20173 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
20174 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
20175 (TARGET_CRYPTO): Take TARGET_SIMD into account.
20177 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20179 * config/aarch64/aarch64-builtins.c
20180 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
20181 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
20182 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
20183 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
20185 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
20186 (Vrevsuff): New mode attribute.
20188 2014-04-24 Terry Guo <terry.guo@arm.com>
20190 * config/arm/arm.h (machine_function): Define variable
20191 after_arm_reorg here.
20192 * config/arm/arm.c (after_arm_reorg): Remove the definition.
20193 (arm_split_constant): Update the way to access variable
20195 (arm_reorg): Ditto.
20196 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
20198 2014-04-23 Tom de Vries <tom@codesourcery.com>
20200 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
20202 2014-04-23 David Malcolm <dmalcolm@redhat.com>
20204 * is-a.h: Update comments to reflect the following changes to the
20205 "pointerness" of the API, making the template parameter match the
20206 return type, allowing use of is-a.h with typedefs of pointers.
20207 (is_a_helper::cast): Return a T rather then a pointer to a T, so
20208 that the return type matches the parameter to the is_a_helper.
20210 (dyn_cast): Likewise.
20212 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
20213 pointer from the is-a.h API.
20215 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
20216 (is_a_helper <cgraph_node *>::test): ...this, matching change to
20218 (is_a_helper <varpool_node>::test): Likewise, convert to...
20219 (is_a_helper <varpool_node *>::test): ...this.
20221 (varpool_first_variable): Update for removal of implicit pointer
20222 from the is-a.h API.
20223 (varpool_next_variable): Likewise.
20224 (varpool_first_static_initializer): Likewise.
20225 (varpool_next_static_initializer): Likewise.
20226 (varpool_first_defined_variable): Likewise.
20227 (varpool_next_defined_variable): Likewise.
20228 (cgraph_first_defined_function): Likewise.
20229 (cgraph_next_defined_function): Likewise.
20230 (cgraph_first_function): Likewise.
20231 (cgraph_next_function): Likewise.
20232 (cgraph_first_function_with_gimple_body): Likewise.
20233 (cgraph_next_function_with_gimple_body): Likewise.
20234 (cgraph_alias_target): Likewise.
20235 (varpool_alias_target): Likewise.
20236 (cgraph_function_or_thunk_node): Likewise.
20237 (varpool_variable_node): Likewise.
20238 (symtab_real_symbol_p): Likewise.
20239 * cgraphunit.c (referred_to_p): Likewise.
20240 (analyze_functions): Likewise.
20241 (handle_alias_pairs): Likewise.
20242 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
20243 * gimple-ssa.h (gimple_vuse_op): Likewise.
20244 (gimple_vdef_op): Likewise.
20245 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
20246 * gimple.c (gimple_build_asm_1): Likewise.
20247 (gimple_build_try): Likewise.
20248 (gimple_build_resx): Likewise.
20249 (gimple_build_eh_dispatch): Likewise.
20250 (gimple_build_omp_for): Likewise.
20251 (gimple_omp_for_set_clauses): Likewise.
20253 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
20254 (is_a_helper <gimple_statement_asm *>::test): ...this.
20255 (is_a_helper <gimple_statement_bind>::test): Convert to...
20256 (is_a_helper <gimple_statement_bind *>::test): ...this.
20257 (is_a_helper <gimple_statement_call>::test): Convert to...
20258 (is_a_helper <gimple_statement_call *>::test): ...this.
20259 (is_a_helper <gimple_statement_catch>::test): Convert to...
20260 (is_a_helper <gimple_statement_catch *>::test): ...this.
20261 (is_a_helper <gimple_statement_resx>::test): Convert to...
20262 (is_a_helper <gimple_statement_resx *>::test): ...this.
20263 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
20264 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
20265 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
20266 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
20267 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
20268 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
20269 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
20270 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
20271 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
20272 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
20273 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
20274 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
20275 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
20276 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
20277 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
20278 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
20279 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
20280 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
20281 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
20282 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
20283 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
20284 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
20285 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
20286 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
20287 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
20288 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
20289 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
20290 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
20291 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
20292 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
20293 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
20294 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
20295 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
20296 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
20297 (is_a_helper <gimple_statement_phi>::test): Convert to...
20298 (is_a_helper <gimple_statement_phi *>::test): ...this.
20299 (is_a_helper <gimple_statement_transaction>::test): Convert to...
20300 (is_a_helper <gimple_statement_transaction *>::test): ...this.
20301 (is_a_helper <gimple_statement_try>::test): Convert to...
20302 (is_a_helper <gimple_statement_try *>::test): ...this.
20303 (is_a_helper <gimple_statement_wce>::test): Convert to...
20304 (is_a_helper <gimple_statement_wce *>::test): ...this.
20305 (is_a_helper <const gimple_statement_asm>::test): Convert to...
20306 (is_a_helper <const gimple_statement_asm *>::test): ...this.
20307 (is_a_helper <const gimple_statement_bind>::test): Convert to...
20308 (is_a_helper <const gimple_statement_bind *>::test): ...this.
20309 (is_a_helper <const gimple_statement_call>::test): Convert to...
20310 (is_a_helper <const gimple_statement_call *>::test): ...this.
20311 (is_a_helper <const gimple_statement_catch>::test): Convert to...
20312 (is_a_helper <const gimple_statement_catch *>::test): ...this.
20313 (is_a_helper <const gimple_statement_resx>::test): Convert to...
20314 (is_a_helper <const gimple_statement_resx *>::test): ...this.
20315 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
20316 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
20317 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
20318 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
20319 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
20321 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
20323 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
20325 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
20327 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
20328 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
20329 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
20331 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
20332 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
20334 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
20335 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
20336 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
20337 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
20338 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
20339 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
20341 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
20342 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
20343 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
20344 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
20346 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
20347 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
20348 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
20349 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
20350 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
20351 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
20352 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
20353 (is_a_helper <const gimple_statement_phi>::test): Convert to...
20354 (is_a_helper <const gimple_statement_phi *>::test): ...this.
20355 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
20356 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
20357 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
20358 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
20359 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
20360 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
20361 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
20363 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
20365 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
20366 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
20368 (gimple_use_ops): Update for removal of implicit pointer from the
20370 (gimple_set_use_ops): Likewise.
20371 (gimple_vuse): Likewise.
20372 (gimple_vdef): Likewise.
20373 (gimple_vuse_ptr): Likewise.
20374 (gimple_vdef_ptr): Likewise.
20375 (gimple_set_vuse): Likewise.
20376 (gimple_set_vdef): Likewise.
20377 (gimple_omp_return_set_lhs): Likewise.
20378 (gimple_omp_return_lhs): Likewise.
20379 (gimple_omp_return_lhs_ptr): Likewise.
20380 (gimple_call_fntype): Likewise.
20381 (gimple_call_set_fntype): Likewise.
20382 (gimple_call_set_internal_fn): Likewise.
20383 (gimple_call_use_set): Likewise.
20384 (gimple_call_clobber_set): Likewise.
20385 (gimple_bind_vars): Likewise.
20386 (gimple_bind_set_vars): Likewise.
20387 (gimple_bind_body_ptr): Likewise.
20388 (gimple_bind_set_body): Likewise.
20389 (gimple_bind_add_stmt): Likewise.
20390 (gimple_bind_block): Likewise.
20391 (gimple_bind_set_block): Likewise.
20392 (gimple_asm_ninputs): Likewise.
20393 (gimple_asm_noutputs): Likewise.
20394 (gimple_asm_nclobbers): Likewise.
20395 (gimple_asm_nlabels): Likewise.
20396 (gimple_asm_input_op): Likewise.
20397 (gimple_asm_input_op_ptr): Likewise.
20398 (gimple_asm_output_op): Likewise.
20399 (gimple_asm_output_op_ptr): Likewise.
20400 (gimple_asm_set_output_op): Likewise.
20401 (gimple_asm_clobber_op): Likewise.
20402 (gimple_asm_set_clobber_op): Likewise.
20403 (gimple_asm_label_op): Likewise.
20404 (gimple_asm_set_label_op): Likewise.
20405 (gimple_asm_string): Likewise.
20406 (gimple_catch_types): Likewise.
20407 (gimple_catch_types_ptr): Likewise.
20408 (gimple_catch_handler_ptr): Likewise.
20409 (gimple_catch_set_types): Likewise.
20410 (gimple_catch_set_handler): Likewise.
20411 (gimple_eh_filter_types): Likewise.
20412 (gimple_eh_filter_types_ptr): Likewise.
20413 (gimple_eh_filter_failure_ptr): Likewise.
20414 (gimple_eh_filter_set_types): Likewise.
20415 (gimple_eh_filter_set_failure): Likewise.
20416 (gimple_eh_must_not_throw_fndecl): Likewise.
20417 (gimple_eh_must_not_throw_set_fndecl): Likewise.
20418 (gimple_eh_else_n_body_ptr): Likewise.
20419 (gimple_eh_else_e_body_ptr): Likewise.
20420 (gimple_eh_else_set_n_body): Likewise.
20421 (gimple_eh_else_set_e_body): Likewise.
20422 (gimple_try_eval_ptr): Likewise.
20423 (gimple_try_cleanup_ptr): Likewise.
20424 (gimple_try_set_eval): Likewise.
20425 (gimple_try_set_cleanup): Likewise.
20426 (gimple_wce_cleanup_ptr): Likewise.
20427 (gimple_wce_set_cleanup): Likewise.
20428 (gimple_phi_capacity): Likewise.
20429 (gimple_phi_num_args): Likewise.
20430 (gimple_phi_result): Likewise.
20431 (gimple_phi_result_ptr): Likewise.
20432 (gimple_phi_set_result): Likewise.
20433 (gimple_phi_arg): Likewise.
20434 (gimple_phi_set_arg): Likewise.
20435 (gimple_resx_region): Likewise.
20436 (gimple_resx_set_region): Likewise.
20437 (gimple_eh_dispatch_region): Likewise.
20438 (gimple_eh_dispatch_set_region): Likewise.
20439 (gimple_omp_critical_name): Likewise.
20440 (gimple_omp_critical_name_ptr): Likewise.
20441 (gimple_omp_critical_set_name): Likewise.
20442 (gimple_omp_for_clauses): Likewise.
20443 (gimple_omp_for_clauses_ptr): Likewise.
20444 (gimple_omp_for_set_clauses): Likewise.
20445 (gimple_omp_for_collapse): Likewise.
20446 (gimple_omp_for_index): Likewise.
20447 (gimple_omp_for_index_ptr): Likewise.
20448 (gimple_omp_for_set_index): Likewise.
20449 (gimple_omp_for_initial): Likewise.
20450 (gimple_omp_for_initial_ptr): Likewise.
20451 (gimple_omp_for_set_initial): Likewise.
20452 (gimple_omp_for_final): Likewise.
20453 (gimple_omp_for_final_ptr): Likewise.
20454 (gimple_omp_for_set_final): Likewise.
20455 (gimple_omp_for_incr): Likewise.
20456 (gimple_omp_for_incr_ptr): Likewise.
20457 (gimple_omp_for_set_incr): Likewise.
20458 (gimple_omp_for_pre_body_ptr): Likewise.
20459 (gimple_omp_for_set_pre_body): Likewise.
20460 (gimple_omp_parallel_clauses): Likewise.
20461 (gimple_omp_parallel_clauses_ptr): Likewise.
20462 (gimple_omp_parallel_set_clauses): Likewise.
20463 (gimple_omp_parallel_child_fn): Likewise.
20464 (gimple_omp_parallel_child_fn_ptr): Likewise.
20465 (gimple_omp_parallel_set_child_fn): Likewise.
20466 (gimple_omp_parallel_data_arg): Likewise.
20467 (gimple_omp_parallel_data_arg_ptr): Likewise.
20468 (gimple_omp_parallel_set_data_arg): Likewise.
20469 (gimple_omp_task_clauses): Likewise.
20470 (gimple_omp_task_clauses_ptr): Likewise.
20471 (gimple_omp_task_set_clauses): Likewise.
20472 (gimple_omp_task_child_fn): Likewise.
20473 (gimple_omp_task_child_fn_ptr): Likewise.
20474 (gimple_omp_task_set_child_fn): Likewise.
20475 (gimple_omp_task_data_arg): Likewise.
20476 (gimple_omp_task_data_arg_ptr): Likewise.
20477 (gimple_omp_task_set_data_arg): Likewise.
20478 (gimple_omp_taskreg_clauses): Likewise.
20479 (gimple_omp_taskreg_clauses_ptr): Likewise.
20480 (gimple_omp_taskreg_set_clauses): Likewise.
20481 (gimple_omp_taskreg_child_fn): Likewise.
20482 (gimple_omp_taskreg_child_fn_ptr): Likewise.
20483 (gimple_omp_taskreg_set_child_fn): Likewise.
20484 (gimple_omp_taskreg_data_arg): Likewise.
20485 (gimple_omp_taskreg_data_arg_ptr): Likewise.
20486 (gimple_omp_taskreg_set_data_arg): Likewise.
20487 (gimple_omp_task_copy_fn): Likewise.
20488 (gimple_omp_task_copy_fn_ptr): Likewise.
20489 (gimple_omp_task_set_copy_fn): Likewise.
20490 (gimple_omp_task_arg_size): Likewise.
20491 (gimple_omp_task_arg_size_ptr): Likewise.
20492 (gimple_omp_task_set_arg_size): Likewise.
20493 (gimple_omp_task_arg_align): Likewise.
20494 (gimple_omp_task_arg_align_ptr): Likewise.
20495 (gimple_omp_task_set_arg_align): Likewise.
20496 (gimple_omp_single_clauses): Likewise.
20497 (gimple_omp_single_clauses_ptr): Likewise.
20498 (gimple_omp_single_set_clauses): Likewise.
20499 (gimple_omp_target_clauses): Likewise.
20500 (gimple_omp_target_clauses_ptr): Likewise.
20501 (gimple_omp_target_set_clauses): Likewise.
20502 (gimple_omp_target_child_fn): Likewise.
20503 (gimple_omp_target_child_fn_ptr): Likewise.
20504 (gimple_omp_target_set_child_fn): Likewise.
20505 (gimple_omp_target_data_arg): Likewise.
20506 (gimple_omp_target_data_arg_ptr): Likewise.
20507 (gimple_omp_target_set_data_arg): Likewise.
20508 (gimple_omp_teams_clauses): Likewise.
20509 (gimple_omp_teams_clauses_ptr): Likewise.
20510 (gimple_omp_teams_set_clauses): Likewise.
20511 (gimple_omp_sections_clauses): Likewise.
20512 (gimple_omp_sections_clauses_ptr): Likewise.
20513 (gimple_omp_sections_set_clauses): Likewise.
20514 (gimple_omp_sections_control): Likewise.
20515 (gimple_omp_sections_control_ptr): Likewise.
20516 (gimple_omp_sections_set_control): Likewise.
20517 (gimple_omp_for_set_cond): Likewise.
20518 (gimple_omp_for_cond): Likewise.
20519 (gimple_omp_atomic_store_set_val): Likewise.
20520 (gimple_omp_atomic_store_val): Likewise.
20521 (gimple_omp_atomic_store_val_ptr): Likewise.
20522 (gimple_omp_atomic_load_set_lhs): Likewise.
20523 (gimple_omp_atomic_load_lhs): Likewise.
20524 (gimple_omp_atomic_load_lhs_ptr): Likewise.
20525 (gimple_omp_atomic_load_set_rhs): Likewise.
20526 (gimple_omp_atomic_load_rhs): Likewise.
20527 (gimple_omp_atomic_load_rhs_ptr): Likewise.
20528 (gimple_omp_continue_control_def): Likewise.
20529 (gimple_omp_continue_control_def_ptr): Likewise.
20530 (gimple_omp_continue_set_control_def): Likewise.
20531 (gimple_omp_continue_control_use): Likewise.
20532 (gimple_omp_continue_control_use_ptr): Likewise.
20533 (gimple_omp_continue_set_control_use): Likewise.
20534 (gimple_transaction_body_ptr): Likewise.
20535 (gimple_transaction_label): Likewise.
20536 (gimple_transaction_label_ptr): Likewise.
20537 (gimple_transaction_set_body): Likewise.
20538 (gimple_transaction_set_label): Likewise.
20540 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
20541 * ipa-inline-analysis.c (inline_write_summary): Likewise.
20542 * ipa-ref.c (ipa_record_reference): Likewise.
20543 * ipa-reference.c (analyze_function): Likewise.
20544 (ipa_reference_write_optimization_summary): Likewise.
20545 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
20546 (address_taken_from_non_vtable_p): Likewise.
20547 (comdat_can_be_unshared_p_1): Likewise.
20548 * lto-cgraph.c (lto_output_ref): Likewise.
20549 (add_references): Likewise.
20550 (compute_ltrans_boundary): Likewise.
20551 (output_symtab): Likewise.
20552 (input_ref): Likewise.
20553 (input_cgraph_1): Likewise.
20554 (output_cgraph_opt_summary): Likewise.
20555 * lto-streamer-out.c (lto_output): Likewise.
20556 (output_symbol_p): Likewise.
20557 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
20558 (lsei_start_function_in_partition): Likewise.
20559 (lsei_next_variable_in_partition): Likewise.
20560 (lsei_start_variable_in_partition): Likewise.
20561 * symtab.c (insert_to_assembler_name_hash): Likewise.
20562 (unlink_from_assembler_name_hash): Likewise.
20563 (symtab_unregister_node): Likewise.
20564 (symtab_remove_node): Likewise.
20565 (dump_symtab_node): Likewise.
20566 (verify_symtab_base): Likewise.
20567 (verify_symtab_node): Likewise.
20568 (symtab_make_decl_local): Likewise.
20569 (symtab_alias_ultimate_target): Likewise.
20570 (symtab_resolve_alias): Likewise.
20571 (symtab_get_symbol_partitioning_class): Likewise.
20572 * tree-phinodes.c (allocate_phi_node): Likewise.
20573 (reserve_phi_args_for_new_edge): Likewise.
20574 (remove_phi_args): Likewise.
20575 * varpool.c (varpool_node_for_asm): Likewise.
20576 (varpool_remove_unreferenced_decls): Likewise.
20578 2014-04-23 Jeff Law <law@redhat.com>
20580 PR tree-optimization/60902
20581 * tree-ssa-threadedge.c
20582 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
20583 invalidate outputs from statements that do not produce useful
20584 outputs for threading.
20586 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
20588 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
20589 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
20590 machine descriptions for Stack Smashing Protector.
20592 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
20594 * aarch64.md (<optab>_rol<mode>3): New pattern.
20595 (<optab>_rolsi3_uxtw): Likewise.
20596 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
20598 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
20600 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
20601 (arm_cortex_a12_tune): Likewise.
20603 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20605 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
20607 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20609 * config/arm/arm.md (arm_rev16si2): New pattern.
20610 (arm_rev16si2_alt): Likewise.
20611 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
20613 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20615 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
20616 (rev16<mode>2_alt): Likewise.
20617 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
20618 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
20619 (aarch_rev16_shleft_mask_imm_p): Likewise.
20620 (aarch_rev16_p_1): Likewise.
20621 (aarch_rev16_p): Likewise.
20622 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
20623 (aarch_rev16_shright_mask_imm_p): Likewise.
20624 (aarch_rev16_shleft_mask_imm_p): Likewise.
20626 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20628 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
20629 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
20631 (cortex_a53_extra_costs): Likewise.
20632 (cortex_a57_extra_costs): Likewise.
20633 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
20634 (cortexa7_extra_costs): Likewise.
20635 (cortexa8_extra_costs): Likewise.
20636 (cortexa12_extra_costs): Likewise.
20637 (cortexa15_extra_costs): Likewise.
20638 (v7m_extra_costs): Likewise.
20639 (arm_new_rtx_costs): Handle BSWAP.
20641 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20643 * config/arm/arm.c (cortexa8_extra_costs): New table.
20644 (arm_cortex_a8_tune): New tuning struct.
20645 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
20647 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20649 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
20651 2014-04-23 Richard Biener <rguenther@suse.de>
20653 * Makefile.in (OBJS): Remove loop-unswitch.o.
20654 * tree-pass.h (make_pass_rtl_unswitch): Remove.
20655 * passes.def (pass_rtl_unswitch): Likewise.
20656 * loop-init.c (gate_rtl_unswitch): Likewise.
20657 (rtl_unswitch): Likewise.
20658 (pass_data_rtl_unswitch): Likewise.
20659 (pass_rtl_unswitch): Likewise.
20660 (make_pass_rtl_unswitch): Likewise.
20661 * rtl.h (reversed_condition): Likewise.
20662 (compare_and_jump_seq): Likewise.
20663 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
20665 * loop-unroll.c (compare_and_jump_seq): Likewise.
20667 2014-04-23 Richard Biener <rguenther@suse.de>
20669 PR tree-optimization/60903
20670 * tree-ssa-loop-im.c (analyze_memory_references): Remove
20671 commented code block.
20672 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
20673 loop flags to newly created BBs and edges.
20675 2014-04-23 Nick Clifton <nickc@redhat.com>
20677 * config/msp430/msp430.c (msp430_handle_option): Move function
20679 (msp430_option_override): Simplify mcu and mcpu option handling.
20680 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
20681 support for -mhwmult command line option.
20682 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
20683 -mhwmult command line option.
20684 (msp430_hwmult_enabled): Delete.
20685 (msp43o_output_labelref): Add support for -mhwmult command line option.
20686 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
20687 (umulsidi3): Likewise.
20688 * config/msp430/msp430.opt (mmcu): Add Report attribute.
20689 (mcpu, mlarge, msmall): Likewise.
20690 (mhwmult): New option.
20691 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
20693 (msp430_is_f5_mcu): Remove prototype.
20694 (msp430_use_f5_series_hwmult): Add prototype.
20695 * config/msp430/msp430-opts.h: New file.
20696 * common/config/msp430: New directory.
20697 * common/config/msp430/msp430-common.c: New file.
20698 * config.gcc (msp430): Remove target_has_targetm_common.
20699 * doc/invoke.texi: Document -mhwmult command line option.
20701 2014-04-23 Nick Clifton <nickc@redhat.com>
20703 * config/i386/cygwin.h (ENDFILE_SPEC): Include
20704 default-manifest.o if it can be found in the search path.
20705 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
20707 2014-04-23 Terry Guo <terry.guo@arm.com>
20709 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
20711 2014-04-23 Richard Biener <rguenther@suse.de>
20713 PR middle-end/60895
20714 * tree-inline.c (declare_return_variable): Use mark_addressable.
20716 2014-04-23 Richard Biener <rguenther@suse.de>
20718 PR middle-end/60891
20719 * loop-init.c (loop_optimizer_init): Make sure to apply
20720 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
20722 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20725 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
20727 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
20728 if flag_sanitize_undefined_trap_on_error.
20729 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
20730 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
20731 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
20732 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
20733 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
20734 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
20735 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
20736 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
20737 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
20738 * ubsan.c (ubsan_instrument_unreachable): Return
20739 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
20740 (ubsan_expand_null_ifn): Emit __builtin_trap ()
20741 if flag_sanitize_undefined_trap_on_error and
20742 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
20743 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
20744 instrument_bool_enum_load): Emit __builtin_trap () if
20745 flag_sanitize_undefined_trap_on_error and
20746 __builtin_handle_*_abort () if !flag_sanitize_recover.
20747 * doc/invoke.texi (-fsanitize-recover,
20748 -fsanitize-undefined-trap-on-error): Document.
20750 2014-04-22 Christian Bruel <christian.bruel@st.com>
20752 * config/sh/sh.md (mov<mode>): Replace movQIHI.
20753 Force immediates to SImode.
20755 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
20757 * config/nios2/nios2.md (UNSPEC_ROUND): New.
20758 (lroundsfsi2): New.
20759 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
20760 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
20761 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
20762 (nios2_fpu_insn): Add entry for round.
20763 (N2FPU_NO_ERRNO_P): Define.
20764 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
20766 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
20768 2014-04-22 Richard Henderson <rth@redhat.com>
20770 * config/aarch64/aarch64 (addti3, subti3): New expanders.
20771 (add<GPI>3_compare0): Remove leading * from name.
20772 (add<GPI>3_carryin): Likewise.
20773 (sub<GPI>3_compare0): Likewise.
20774 (sub<GPI>3_carryin): Likewise.
20775 (<su_optab>mulditi3): New expander.
20776 (multi3): New expander.
20777 (madd<GPI>): Remove leading * from name.
20779 2014-04-22 Martin Jambor <mjambor@suse.cz>
20781 * cgraphclones.c (cgraph_function_versioning): Copy
20782 ipa_transforms_to_apply instead of asserting it is empty.
20784 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
20787 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
20788 on count_exp to get mode.
20790 2014-04-22 Andrew Pinski <apinski@cavium.com>
20792 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20793 Handle TLS for ILP32.
20794 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
20795 (tlsie_small_<mode>): this and handle PTR.
20796 (tlsie_small_sidi): New pattern.
20797 (tlsle_small): Change to an expand to handle ILP32.
20798 (tlsle_small_<mode>): New pattern.
20799 (tlsdesc_small): Rename to ...
20800 (tlsdesc_small_<mode>): this and handle PTR.
20802 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20804 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
20806 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20808 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
20809 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
20810 (aarch64_types_signed_poly_qualifiers): Likewise.
20811 (aarch64_types_unsigned_signed_qualifiers): Likewise.
20812 (aarch64_types_poly_signed_qualifiers): Likewise.
20813 (TYPES_REINTERP_SS): Type macro added.
20814 (TYPES_REINTERP_SU): Likewise.
20815 (TYPES_REINTERP_SP): Likewise.
20816 (TYPES_REINTERP_US): Likewise.
20817 (TYPES_REINTERP_PS): Likewise.
20818 (aarch64_fold_builtin): New expression folding added.
20819 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
20820 Declarations removed.
20821 (REINTERP_SS): Declarations added.
20822 (REINTERP_US): Likewise.
20823 (REINTERP_PS): Likewise.
20824 (REINTERP_SU): Likewise.
20825 (REINTERP_SP): Likewise.
20826 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
20827 (vreinterpretq_p8_f64): Likewise.
20828 (vreinterpret_p16_f64): Likewise.
20829 (vreinterpretq_p16_f64): Likewise.
20830 (vreinterpret_f32_f64): Likewise.
20831 (vreinterpretq_f32_f64): Likewise.
20832 (vreinterpret_f64_f32): Likewise.
20833 (vreinterpret_f64_p8): Likewise.
20834 (vreinterpret_f64_p16): Likewise.
20835 (vreinterpret_f64_s8): Likewise.
20836 (vreinterpret_f64_s16): Likewise.
20837 (vreinterpret_f64_s32): Likewise.
20838 (vreinterpret_f64_s64): Likewise.
20839 (vreinterpret_f64_u8): Likewise.
20840 (vreinterpret_f64_u16): Likewise.
20841 (vreinterpret_f64_u32): Likewise.
20842 (vreinterpret_f64_u64): Likewise.
20843 (vreinterpretq_f64_f32): Likewise.
20844 (vreinterpretq_f64_p8): Likewise.
20845 (vreinterpretq_f64_p16): Likewise.
20846 (vreinterpretq_f64_s8): Likewise.
20847 (vreinterpretq_f64_s16): Likewise.
20848 (vreinterpretq_f64_s32): Likewise.
20849 (vreinterpretq_f64_s64): Likewise.
20850 (vreinterpretq_f64_u8): Likewise.
20851 (vreinterpretq_f64_u16): Likewise.
20852 (vreinterpretq_f64_u32): Likewise.
20853 (vreinterpretq_f64_u64): Likewise.
20854 (vreinterpret_s64_f64): Likewise.
20855 (vreinterpretq_s64_f64): Likewise.
20856 (vreinterpret_u64_f64): Likewise.
20857 (vreinterpretq_u64_f64): Likewise.
20858 (vreinterpret_s8_f64): Likewise.
20859 (vreinterpretq_s8_f64): Likewise.
20860 (vreinterpret_s16_f64): Likewise.
20861 (vreinterpretq_s16_f64): Likewise.
20862 (vreinterpret_s32_f64): Likewise.
20863 (vreinterpretq_s32_f64): Likewise.
20864 (vreinterpret_u8_f64): Likewise.
20865 (vreinterpretq_u8_f64): Likewise.
20866 (vreinterpret_u16_f64): Likewise.
20867 (vreinterpretq_u16_f64): Likewise.
20868 (vreinterpret_u32_f64): Likewise.
20869 (vreinterpretq_u32_f64): Likewise.
20871 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20873 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
20874 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
20875 (vreinterpret_p8_s8): Likewise.
20876 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
20877 (vreinterpret_p8_s16): Likewise.
20878 (vreinterpret_p8_s32): Likewise.
20879 (vreinterpret_p8_s64): Likewise.
20880 (vreinterpret_p8_f32): Likewise.
20881 (vreinterpret_p8_u8): Likewise.
20882 (vreinterpret_p8_u16): Likewise.
20883 (vreinterpret_p8_u32): Likewise.
20884 (vreinterpret_p8_u64): Likewise.
20885 (vreinterpret_p8_p16): Likewise.
20886 (vreinterpretq_p8_s8): Likewise.
20887 (vreinterpretq_p8_s16): Likewise.
20888 (vreinterpretq_p8_s32): Likewise.
20889 (vreinterpretq_p8_s64): Likewise.
20890 (vreinterpretq_p8_f32): Likewise.
20891 (vreinterpretq_p8_u8): Likewise.
20892 (vreinterpretq_p8_u16): Likewise.
20893 (vreinterpretq_p8_u32): Likewise.
20894 (vreinterpretq_p8_u64): Likewise.
20895 (vreinterpretq_p8_p16): Likewise.
20896 (vreinterpret_p16_s8): Likewise.
20897 (vreinterpret_p16_s16): Likewise.
20898 (vreinterpret_p16_s32): Likewise.
20899 (vreinterpret_p16_s64): Likewise.
20900 (vreinterpret_p16_f32): Likewise.
20901 (vreinterpret_p16_u8): Likewise.
20902 (vreinterpret_p16_u16): Likewise.
20903 (vreinterpret_p16_u32): Likewise.
20904 (vreinterpret_p16_u64): Likewise.
20905 (vreinterpret_p16_p8): Likewise.
20906 (vreinterpretq_p16_s8): Likewise.
20907 (vreinterpretq_p16_s16): Likewise.
20908 (vreinterpretq_p16_s32): Likewise.
20909 (vreinterpretq_p16_s64): Likewise.
20910 (vreinterpretq_p16_f32): Likewise.
20911 (vreinterpretq_p16_u8): Likewise.
20912 (vreinterpretq_p16_u16): Likewise.
20913 (vreinterpretq_p16_u32): Likewise.
20914 (vreinterpretq_p16_u64): Likewise.
20915 (vreinterpretq_p16_p8): Likewise.
20916 (vreinterpret_f32_s8): Likewise.
20917 (vreinterpret_f32_s16): Likewise.
20918 (vreinterpret_f32_s32): Likewise.
20919 (vreinterpret_f32_s64): Likewise.
20920 (vreinterpret_f32_u8): Likewise.
20921 (vreinterpret_f32_u16): Likewise.
20922 (vreinterpret_f32_u32): Likewise.
20923 (vreinterpret_f32_u64): Likewise.
20924 (vreinterpret_f32_p8): Likewise.
20925 (vreinterpret_f32_p16): Likewise.
20926 (vreinterpretq_f32_s8): Likewise.
20927 (vreinterpretq_f32_s16): Likewise.
20928 (vreinterpretq_f32_s32): Likewise.
20929 (vreinterpretq_f32_s64): Likewise.
20930 (vreinterpretq_f32_u8): Likewise.
20931 (vreinterpretq_f32_u16): Likewise.
20932 (vreinterpretq_f32_u32): Likewise.
20933 (vreinterpretq_f32_u64): Likewise.
20934 (vreinterpretq_f32_p8): Likewise.
20935 (vreinterpretq_f32_p16): Likewise.
20936 (vreinterpret_s64_s8): Likewise.
20937 (vreinterpret_s64_s16): Likewise.
20938 (vreinterpret_s64_s32): Likewise.
20939 (vreinterpret_s64_f32): Likewise.
20940 (vreinterpret_s64_u8): Likewise.
20941 (vreinterpret_s64_u16): Likewise.
20942 (vreinterpret_s64_u32): Likewise.
20943 (vreinterpret_s64_u64): Likewise.
20944 (vreinterpret_s64_p8): Likewise.
20945 (vreinterpret_s64_p16): Likewise.
20946 (vreinterpretq_s64_s8): Likewise.
20947 (vreinterpretq_s64_s16): Likewise.
20948 (vreinterpretq_s64_s32): Likewise.
20949 (vreinterpretq_s64_f32): Likewise.
20950 (vreinterpretq_s64_u8): Likewise.
20951 (vreinterpretq_s64_u16): Likewise.
20952 (vreinterpretq_s64_u32): Likewise.
20953 (vreinterpretq_s64_u64): Likewise.
20954 (vreinterpretq_s64_p8): Likewise.
20955 (vreinterpretq_s64_p16): Likewise.
20956 (vreinterpret_u64_s8): Likewise.
20957 (vreinterpret_u64_s16): Likewise.
20958 (vreinterpret_u64_s32): Likewise.
20959 (vreinterpret_u64_s64): Likewise.
20960 (vreinterpret_u64_f32): Likewise.
20961 (vreinterpret_u64_u8): Likewise.
20962 (vreinterpret_u64_u16): Likewise.
20963 (vreinterpret_u64_u32): Likewise.
20964 (vreinterpret_u64_p8): Likewise.
20965 (vreinterpret_u64_p16): Likewise.
20966 (vreinterpretq_u64_s8): Likewise.
20967 (vreinterpretq_u64_s16): Likewise.
20968 (vreinterpretq_u64_s32): Likewise.
20969 (vreinterpretq_u64_s64): Likewise.
20970 (vreinterpretq_u64_f32): Likewise.
20971 (vreinterpretq_u64_u8): Likewise.
20972 (vreinterpretq_u64_u16): Likewise.
20973 (vreinterpretq_u64_u32): Likewise.
20974 (vreinterpretq_u64_p8): Likewise.
20975 (vreinterpretq_u64_p16): Likewise.
20976 (vreinterpret_s8_s16): Likewise.
20977 (vreinterpret_s8_s32): Likewise.
20978 (vreinterpret_s8_s64): Likewise.
20979 (vreinterpret_s8_f32): Likewise.
20980 (vreinterpret_s8_u8): Likewise.
20981 (vreinterpret_s8_u16): Likewise.
20982 (vreinterpret_s8_u32): Likewise.
20983 (vreinterpret_s8_u64): Likewise.
20984 (vreinterpret_s8_p8): Likewise.
20985 (vreinterpret_s8_p16): Likewise.
20986 (vreinterpretq_s8_s16): Likewise.
20987 (vreinterpretq_s8_s32): Likewise.
20988 (vreinterpretq_s8_s64): Likewise.
20989 (vreinterpretq_s8_f32): Likewise.
20990 (vreinterpretq_s8_u8): Likewise.
20991 (vreinterpretq_s8_u16): Likewise.
20992 (vreinterpretq_s8_u32): Likewise.
20993 (vreinterpretq_s8_u64): Likewise.
20994 (vreinterpretq_s8_p8): Likewise.
20995 (vreinterpretq_s8_p16): Likewise.
20996 (vreinterpret_s16_s8): Likewise.
20997 (vreinterpret_s16_s32): Likewise.
20998 (vreinterpret_s16_s64): Likewise.
20999 (vreinterpret_s16_f32): Likewise.
21000 (vreinterpret_s16_u8): Likewise.
21001 (vreinterpret_s16_u16): Likewise.
21002 (vreinterpret_s16_u32): Likewise.
21003 (vreinterpret_s16_u64): Likewise.
21004 (vreinterpret_s16_p8): Likewise.
21005 (vreinterpret_s16_p16): Likewise.
21006 (vreinterpretq_s16_s8): Likewise.
21007 (vreinterpretq_s16_s32): Likewise.
21008 (vreinterpretq_s16_s64): Likewise.
21009 (vreinterpretq_s16_f32): Likewise.
21010 (vreinterpretq_s16_u8): Likewise.
21011 (vreinterpretq_s16_u16): Likewise.
21012 (vreinterpretq_s16_u32): Likewise.
21013 (vreinterpretq_s16_u64): Likewise.
21014 (vreinterpretq_s16_p8): Likewise.
21015 (vreinterpretq_s16_p16): Likewise.
21016 (vreinterpret_s32_s8): Likewise.
21017 (vreinterpret_s32_s16): Likewise.
21018 (vreinterpret_s32_s64): Likewise.
21019 (vreinterpret_s32_f32): Likewise.
21020 (vreinterpret_s32_u8): Likewise.
21021 (vreinterpret_s32_u16): Likewise.
21022 (vreinterpret_s32_u32): Likewise.
21023 (vreinterpret_s32_u64): Likewise.
21024 (vreinterpret_s32_p8): Likewise.
21025 (vreinterpret_s32_p16): Likewise.
21026 (vreinterpretq_s32_s8): Likewise.
21027 (vreinterpretq_s32_s16): Likewise.
21028 (vreinterpretq_s32_s64): Likewise.
21029 (vreinterpretq_s32_f32): Likewise.
21030 (vreinterpretq_s32_u8): Likewise.
21031 (vreinterpretq_s32_u16): Likewise.
21032 (vreinterpretq_s32_u32): Likewise.
21033 (vreinterpretq_s32_u64): Likewise.
21034 (vreinterpretq_s32_p8): Likewise.
21035 (vreinterpretq_s32_p16): Likewise.
21036 (vreinterpret_u8_s8): Likewise.
21037 (vreinterpret_u8_s16): Likewise.
21038 (vreinterpret_u8_s32): Likewise.
21039 (vreinterpret_u8_s64): Likewise.
21040 (vreinterpret_u8_f32): Likewise.
21041 (vreinterpret_u8_u16): Likewise.
21042 (vreinterpret_u8_u32): Likewise.
21043 (vreinterpret_u8_u64): Likewise.
21044 (vreinterpret_u8_p8): Likewise.
21045 (vreinterpret_u8_p16): Likewise.
21046 (vreinterpretq_u8_s8): Likewise.
21047 (vreinterpretq_u8_s16): Likewise.
21048 (vreinterpretq_u8_s32): Likewise.
21049 (vreinterpretq_u8_s64): Likewise.
21050 (vreinterpretq_u8_f32): Likewise.
21051 (vreinterpretq_u8_u16): Likewise.
21052 (vreinterpretq_u8_u32): Likewise.
21053 (vreinterpretq_u8_u64): Likewise.
21054 (vreinterpretq_u8_p8): Likewise.
21055 (vreinterpretq_u8_p16): Likewise.
21056 (vreinterpret_u16_s8): Likewise.
21057 (vreinterpret_u16_s16): Likewise.
21058 (vreinterpret_u16_s32): Likewise.
21059 (vreinterpret_u16_s64): Likewise.
21060 (vreinterpret_u16_f32): Likewise.
21061 (vreinterpret_u16_u8): Likewise.
21062 (vreinterpret_u16_u32): Likewise.
21063 (vreinterpret_u16_u64): Likewise.
21064 (vreinterpret_u16_p8): Likewise.
21065 (vreinterpret_u16_p16): Likewise.
21066 (vreinterpretq_u16_s8): Likewise.
21067 (vreinterpretq_u16_s16): Likewise.
21068 (vreinterpretq_u16_s32): Likewise.
21069 (vreinterpretq_u16_s64): Likewise.
21070 (vreinterpretq_u16_f32): Likewise.
21071 (vreinterpretq_u16_u8): Likewise.
21072 (vreinterpretq_u16_u32): Likewise.
21073 (vreinterpretq_u16_u64): Likewise.
21074 (vreinterpretq_u16_p8): Likewise.
21075 (vreinterpretq_u16_p16): Likewise.
21076 (vreinterpret_u32_s8): Likewise.
21077 (vreinterpret_u32_s16): Likewise.
21078 (vreinterpret_u32_s32): Likewise.
21079 (vreinterpret_u32_s64): Likewise.
21080 (vreinterpret_u32_f32): Likewise.
21081 (vreinterpret_u32_u8): Likewise.
21082 (vreinterpret_u32_u16): Likewise.
21083 (vreinterpret_u32_u64): Likewise.
21084 (vreinterpret_u32_p8): Likewise.
21085 (vreinterpret_u32_p16): Likewise.
21086 (vreinterpretq_u32_s8): Likewise.
21087 (vreinterpretq_u32_s16): Likewise.
21088 (vreinterpretq_u32_s32): Likewise.
21089 (vreinterpretq_u32_s64): Likewise.
21090 (vreinterpretq_u32_f32): Likewise.
21091 (vreinterpretq_u32_u8): Likewise.
21092 (vreinterpretq_u32_u16): Likewise.
21093 (vreinterpretq_u32_u64): Likewise.
21094 (vreinterpretq_u32_p8): Likewise.
21095 (vreinterpretq_u32_p16): Likewise.
21097 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21099 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
21101 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
21103 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
21104 (vqnegd_s64): Likewise.
21105 (vqabs_s64): Likewise.
21106 (vqabsd_s64): Likewise.
21108 2014-04-22 Richard Henderson <rth@redhat.com>
21110 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
21111 computation to the top of the loop.
21113 2014-04-22 Renlin <renlin.li@arm.com>
21114 Jiong Wang <jiong.wang@arm.com>
21116 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
21117 * config/aarch64/aarch64.c (aarch64_layout_frame)
21118 (aarch64_initial_elimination_offset): Likewise.
21120 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
21122 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
21125 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
21127 * machmode.h (bitwise_mode_for_mode): Declare.
21128 * stor-layout.h (bitwise_type_for_mode): Likewise.
21129 * stor-layout.c (bitwise_mode_for_mode): New function.
21130 (bitwise_type_for_mode): Likewise.
21131 * builtins.c (fold_builtin_memory_op): Use it instead of
21132 int_mode_for_mode and build_nonstandard_integer_type.
21134 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21136 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
21137 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
21138 (*-*-solaris2*): Simplify.
21139 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
21140 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
21141 *-*-solaris2.9* handling.
21143 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
21145 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
21146 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
21147 handling, simplify.
21148 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
21149 * configure: Regenerate.
21151 * config/i386/sol2-9.h: Remove.
21153 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
21154 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
21155 Remove Solaris 9 references.
21157 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
21159 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
21160 (floatuns<GPI:mode><GPF:mode>2): Remove.
21161 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
21162 and floatuns conversions.
21163 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
21164 and floatuns conversions.
21165 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
21166 (w1,w2): New mode attributes for inequal width conversions.
21168 2014-04-22 Renlin Li <Renlin.Li@arm.com>
21170 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
21171 the output asm format.
21173 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
21175 * config/aarch64/aarch64-simd.md
21176 (aarch64_cm<optab>di): Always split.
21177 (*aarch64_cm<optab>di): New.
21178 (aarch64_cmtstdi): Always split.
21179 (*aarch64_cmtstdi): New.
21181 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21183 PR tree-optimization/60823
21184 * omp-low.c (ipa_simd_modify_function_body): Go through
21185 all SSA_NAMEs and for those refering to vector arguments
21186 which are going to be replaced adjust SSA_NAME_VAR and,
21187 if it is a default definition, change it into a non-default
21188 definition assigned at the beginning of function from new_decl.
21189 (ipa_simd_modify_stmt_ops): Rewritten.
21190 * tree-dfa.c (set_ssa_default_def): When removing default def,
21191 check for NULL loc instead of NULL *loc.
21193 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21195 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
21196 restrictions on core registers for DImode values in Thumb2.
21198 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21200 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
21201 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
21203 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21205 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
21206 (*iordi_notzesidi_di): Likewise.
21207 (*iordi_notsesidi_di): Likewise.
21209 2014-04-22 Ian Bolton <ian.bolton@arm.com>
21211 * config/arm/arm-protos.h (tune_params): New struct members.
21212 * config/arm/arm.c: Initialise tune_params per processor.
21213 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
21214 for speed, based on new tune_params.
21216 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
21218 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
21219 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
21220 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
21221 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
21222 * config/aarch64/arm_neon.h (vrnd_f64): Added.
21223 (vrnda_f64): Likewise.
21224 (vrndi_f64): Likewise.
21225 (vrndm_f64): Likewise.
21226 (vrndn_f64): Likewise.
21227 (vrndp_f64): Likewise.
21228 (vrndx_f64): Likewise.
21230 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21232 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
21233 GET_MODE_SIZE argument is enum machine_mode.
21235 2014-04-22 Jakub Jelinek <jakub@redhat.com>
21238 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
21239 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
21241 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
21243 PR middle-end/60281
21244 * asan.c (asan_emit_stack_protection): Force the base to align to
21245 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
21246 appropriate bits if STRICT_ALIGNMENT.
21247 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
21249 (expand_used_vars): Leave a space in the stack frame for alignment
21250 if STRICT_ALIGNMENT.
21252 2014-04-21 David Malcolm <dmalcolm@redhat.com>
21254 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
21256 (gimple_store_p): Likewise.
21257 (gimple_assign_load_p): Likewise.
21258 (gimple_assign_cast_p): Likewise.
21259 (gimple_clobber_p): Likewise.
21261 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
21262 rather than a gimple.
21263 (gimple_assign_cast_p): Likewise.
21265 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21268 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
21269 If mode is DDmode and TARGET_E500_DOUBLE allow move.
21271 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
21272 more debug information for E500 if -mdebug=reg.
21274 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
21277 * config/i386/i386.c (ix86_expand_builtin)
21278 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
21279 register for target RTX.
21280 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
21282 2014-04-18 Cong Hou <congh@google.com>
21284 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
21285 the widen-mult pattern by handling two operands with different sizes,
21286 and operands whose size is smaller than half of the result type.
21288 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
21290 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
21291 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
21292 (do_estimate_edge_time): Compute it.
21293 * ipa-inline.c (want_inline_small_function_p): Bypass
21294 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
21296 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
21298 * ipa-inline.c (spec_rem): New static variable.
21299 (dump_overall_stats): New function.
21300 (dump_inline_stats): New function.
21302 2014-04-18 Richard Henderson <rth@redhat.com>
21304 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
21305 to GET_MODE_SIZE, not a reg_class_t.
21307 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21309 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
21310 (vsx_xxmrglw_<mode>): Likewise.
21312 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
21315 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
21316 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
21317 (rs6000_init_hard_regno_mode_ok): Likewise.
21319 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
21321 * ipa-inline.c (inline_small_functions): Account only non-cold
21323 * doc/invoke.texi (inline-unit-growth): Update documentation.
21325 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
21327 * config/rs6000/rs6000.md (addti3, subti3): New.
21329 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
21332 * config/i386/i386.c (ix86_expand_clear): Remove outdated
21333 comment. Check optimize_insn_for_size_p instead of
21334 optimize_insn_for_speed_p.
21336 2014-04-17 Martin Jambor <mjambor@suse.cz>
21338 * gimple-iterator.c (gsi_start_edge): New function.
21339 * gimple-iterator.h (gsi_start_edge): Declare.
21340 * tree-sra.c (single_non_eh_succ): New function.
21341 (disqualify_ops_if_throwing_stmt): Renamed to
21342 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
21343 having one non-EH successor BB.
21344 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
21345 generate loads into replacements.
21346 (sra_modify_assign): Likewise and and also use the simple path for
21348 (sra_modify_function_body): Commit statements on edges.
21350 2014-04-17 Richard Biener <rguenther@suse.de>
21352 PR middle-end/60849
21353 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
21354 comparison results and add clarifying comment.
21356 2014-04-17 Jakub Jelinek <jakub@redhat.com>
21358 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
21359 (blank_mode): Initialize it.
21360 (emit_mode_size_inline, emit_mode_nunits_inline,
21361 emit_mode_inner_inline): New functions.
21362 (emit_insn_modes_h): Call them and surround their output with
21363 #if GCC_VERSION >= 4001 ... #endif.
21364 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
21365 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
21366 mode_* arrays if the argument is __builtin_constant_p.
21367 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
21368 is enum machine_mode.
21370 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21372 * passes.c (opt_pass::execute): Adjust.
21373 (pass_manager::execute_pass_mode_switching): Likewise.
21374 (early_local_passes::execute): Likewise.
21375 (execute_one_pass): Pass cfun to the pass's execute method.
21376 * tree-pass.h (opt_pass::execute): Add function * argument.
21377 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21378 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21379 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21380 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21381 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21382 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
21383 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
21384 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21385 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21386 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
21387 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
21388 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
21389 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
21390 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
21391 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21392 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21393 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21394 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
21395 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
21396 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21397 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21398 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21399 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21400 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21401 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21402 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21403 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21404 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21405 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21408 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21410 * passes.c (opt_pass::gate): Take function * argument.
21411 (gate_all_early_local_passes): Merge into
21412 (early_local_passes::gate): this.
21413 (gate_all_early_optimizations): Merge into
21414 (all_early_optimizations::gate): this.
21415 (gate_all_optimizations): Mege into
21416 (all_optimizations::gate): this.
21417 (gate_all_optimizations_g): Merge into
21418 (all_optimizations_g::gate): this.
21419 (gate_rest_of_compilation): Mege into
21420 (rest_of_compilation::gate): this.
21421 (gate_postreload): Merge into
21422 (postreload::gate): this.
21423 (dump_one_pass): Pass cfun to the pass's gate method.
21424 (execute_ipa_summary_passes): Likewise.
21425 (execute_one_pass): Likewise.
21426 (ipa_write_summaries_2): Likewise.
21427 (ipa_write_optimization_summaries_1): Likewise.
21428 (ipa_read_summaries_1): Likewise.
21429 (ipa_read_optimization_summaries_1): Likewise.
21430 (execute_ipa_stmt_fixups): Likewise.
21431 * tree-pass.h (opt_pass::gate): Add function * argument.
21432 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
21433 combine-stack-adj.c, combine.c, compare-elim.c,
21434 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21435 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
21436 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
21437 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
21438 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21439 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21440 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21441 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
21442 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
21443 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
21444 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21445 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21446 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
21447 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21448 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21449 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21450 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21451 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21452 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21453 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21454 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21455 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21456 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
21457 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
21458 var-tracking.c, vtable-verify.c, web.c: Adjust.
21460 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21462 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
21463 * configure: Regenerate.
21465 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21467 * passes.c (dump_one_pass): don't check pass->has_gate.
21468 (execute_ipa_summary_passes): Likewise.
21469 (execute_one_pass): Likewise.
21470 (ipa_write_summaries_2): Likewise.
21471 (ipa_write_optimization_summaries_1): Likewise.
21472 (ipa_read_optimization_summaries_1): Likewise.
21473 (execute_ipa_stmt_fixups): Likewise.
21474 * tree-pass.h (pass_data::has_gate): Remove.
21475 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21476 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21477 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21478 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21479 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21480 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
21481 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
21482 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
21483 gimple-low.c, gimple-ssa-isolate-paths.c,
21484 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
21485 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
21486 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21487 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
21488 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
21489 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
21490 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
21491 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
21492 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
21493 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21494 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21495 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21496 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21497 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21498 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21499 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21500 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21501 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21502 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21503 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21504 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21505 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21508 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21510 * pass_manager.h (pass_manager::register_dump_files_1): Remove
21512 * passes.c (pass_manager::register_dump_files_1): Merge into
21513 (pass_manager::register_dump_files): this, and remove its handling of
21514 properties since the pass always has the properties anyway.
21515 (pass_manager::pass_manager): Adjust.
21517 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
21519 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
21520 * passes.c (pass_manager::register_dump_files_1): Remove dead code
21521 dealing with properties.
21522 (pass_manager::register_dump_files): Adjust.
21524 2014-03-20 Mark Wielaard <mjw@redhat.com>
21526 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
21527 then represent the bound as normal constant value.
21529 2014-04-17 Jakub Jelinek <jakub@redhat.com>
21532 Forward port from 4.8 branch
21533 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
21535 * config/i386/bmiintrin.h (_blsi_u32): New.
21536 (_blsi_u64): Ditto.
21537 (_blsr_u32): Ditto.
21538 (_blsr_u64): Ditto.
21539 (_blsmsk_u32): Ditto.
21540 (_blsmsk_u64): Ditto.
21541 (_tzcnt_u32): Ditto.
21542 (_tzcnt_u64): Ditto.
21544 2014-04-17 Kito Cheng <kito@0xlab.org>
21546 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
21548 2014-04-17 Richard Biener <rguenther@suse.de>
21550 PR middle-end/60849
21551 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
21552 boolean results for comparisons.
21554 2014-04-17 Richard Biener <rguenther@suse.de>
21556 PR tree-optimization/60836
21557 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
21558 initial PHI args to be gimple values.
21560 2014-04-17 Richard Biener <rguenther@suse.de>
21562 PR tree-optimization/60841
21563 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
21564 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
21565 of stmts to SLP build.
21566 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
21567 (vect_analyze_slp): Likewise.
21568 (vect_analyze_slp_instance): Likewise.
21569 (vect_build_slp_tree): Limit overall SLP tree growth.
21570 * tree-vectorizer.h (vect_analyze_data_refs,
21571 vect_analyze_slp): Adjust prototypes.
21573 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
21575 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
21578 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
21580 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
21581 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
21582 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
21583 for TARGET_SLOW_PSHUFB
21585 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
21587 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
21588 * config/i386/i386.c (intel_cost): Ditto.
21590 2014-04-17 Joey Ye <joey.ye@arm.com>
21592 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
21594 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
21596 * opts.c (common_handle_option): Disable -fipa-reference coorectly
21597 with -fuse-profile.
21599 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
21601 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
21602 (type_all_derivations_known_p): New predicate.
21603 (type_all_ctors_visible_p): New predicate.
21604 (type_possibly_instantiated_p): New predicate.
21605 (get_odr_type): Compute all_derivations_known.
21606 (dump_odr_type): Dump the flag.
21607 (maybe_record_type): Cleanup.
21608 (record_target_from_binfo): Add bases_to_consider array;
21609 record bases for types w/o instances and skip CXX destructor.
21610 (possible_polymorphic_call_targets_1): Add bases_to_consider
21611 and consider_construction parameters; check if type may have instance.
21612 (get_polymorphic_call_info): Set maybe_in_construction to true
21613 when we know nothing.
21614 (record_targets_from_bases): Skip CXX destructors; they are
21615 never called for types in construction.
21616 (possible_polymorphic_call_targets): Do not record target when
21617 type may not have instance.
21619 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
21622 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
21623 external aliases alive, too.
21625 2014-04-16 Andrew Pinski <apinski@cavium.com>
21627 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
21630 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
21632 * final.c (compute_alignments): Do not apply loop alignment to a block
21633 falling through to the exit.
21635 2014-04-16 Catherine Moore <clm@codesourcery.com>
21637 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
21638 Adjust constraints for microMIPS store patterns.
21640 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21642 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
21644 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
21646 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
21647 (append_use): Run at -O0.
21648 (append_vdef): Likewise.
21649 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
21650 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
21652 2014-04-16 Jakub Jelinek <jakub@redhat.com>
21654 PR tree-optimization/60844
21655 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
21656 (propagate_op_to_single_use, remove_visited_stmt_chain,
21657 linearize_expr, repropagate_negates, reassociate_bb): Use it
21658 instead of gsi_remove.
21660 2014-04-16 Martin Jambor <mjambor@suse.cz>
21662 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
21663 ipa_transforms_to_apply.
21664 (cgraph_function_versioning): Assert that old_node has empty
21665 ipa_transforms_to_apply.
21666 * trans-mem.c (ipa_tm_create_version): Likewise.
21667 * tree-inline.c (tree_function_versioning): Do not duplicate
21668 ipa_transforms_to_apply.
21670 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21673 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
21675 Pass necessary as flags on 64-bit Solaris/x86.
21676 Use lowercase relocs for x86_64-*-*.
21677 * configure: Regenerate.
21679 2014-04-15 Jan Hubicka <jh@suse.cz>
21681 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
21682 (maybe_record_node, likely_target_p): Use it.
21684 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21687 Revert following patch
21689 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21692 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21693 software floating point or no floating point registers, do not
21694 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21695 in GPRs that occurs after we tested for GPRs that would never be
21698 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21699 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21700 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21701 specifically allow DDmode, since that does not use the SPE SIMD
21704 2014-03-21 Mark Wielaard <mjw@redhat.com>
21706 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
21707 as unsigned or int depending on type and value used.
21709 2014-04-15 Richard Biener <rguenther@suse.de>
21711 PR rtl-optimization/56965
21712 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
21713 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
21715 * alias.c (true_dependence_1): Do not call
21716 nonoverlapping_component_refs_p.
21717 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
21718 nonoverlapping_component_refs_p.
21719 (indirect_refs_may_alias_p): Likewise.
21721 2014-04-15 Teresa Johnson <tejohnson@google.com>
21723 * cfg.c (dump_bb_info): Fix flags check.
21724 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
21726 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21728 PR rtl-optimization/60663
21729 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
21732 2014-04-15 Richard Biener <rguenther@suse.de>
21734 * lto-streamer.h (LTO_major_version): Bump to 4.
21736 2014-04-15 Richard Biener <rguenther@suse.de>
21738 * common.opt (lto_partition_model): New enum.
21739 (flto-partition=): Merge separate options with a single with argument,
21740 add -flto-partition=one support.
21741 * flag-types.h (enum lto_partition_model): Declare.
21742 * opts.c (finish_options): Remove duplicate -flto-partition=
21744 * lto-wrapper.c (run_gcc): Adjust.
21746 2014-04-15 Richard Biener <rguenther@suse.de>
21748 * alias.c (ncr_compar): New function.
21749 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
21751 2014-04-15 Richard Biener <rguenther@suse.de>
21753 * alias.c (record_component_aliases): Do not walk BINFOs.
21755 2014-04-15 Richard Biener <rguenther@suse.de>
21757 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21758 Add struct function argument and adjust.
21759 (find_func_aliases_for_call): Likewise.
21760 (find_func_aliases): Likewise.
21761 (find_func_clobbers): Likewise.
21762 (intra_create_variable_infos): Likewise.
21763 (compute_points_to_sets): Likewise.
21764 (ipa_pta_execute): Adjust. Do not push/pop cfun.
21766 2014-04-15 Richard Biener <rguenther@suse.de>
21768 * tree.c (iterative_hash_expr): Use enum tree_code_class
21769 to store TREE_CODE_CLASS.
21770 (tree_block): Likewise.
21771 (tree_set_block): Likewise.
21772 * tree.h (fold_build_pointer_plus_loc): Use
21773 convert_to_ptrofftype_loc.
21775 2014-04-15 Jakub Jelinek <jakub@redhat.com>
21778 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
21781 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
21783 * cfgloop.h (struct loop): Move force_vectorize down.
21784 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
21785 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
21786 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
21787 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
21788 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
21789 * tree-core.h (enum annot_expr_kind): Add new kind values.
21790 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
21791 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
21793 * tree.def (ANNOTATE_EXPR): Tweak comment.
21795 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
21797 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
21800 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
21802 * tree.h (TYPE_IDENTIFIER): Declare.
21803 * tree.c (subrange_type_for_debug_p): Use it.
21804 * godump.c (go_format_type): Likewise.
21805 * dwarf2out.c (is_cxx_auto, modified_type_die,
21806 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
21807 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
21809 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
21812 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
21814 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
21816 * config/i386/i386.c (examine_argument): Return bool. Return true if
21817 parameter should be passed in memory.
21818 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
21819 (construct_container): Update calls to examine_argument.
21820 (function_arg_advance_64): Ditto.
21821 (return_in_memory_32): Merge with ix86_return_in_memory.
21822 (return_in_memory_64): Ditto.
21823 (return_in_memory_ms_64): Ditto.
21825 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
21827 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
21828 * coverage.c (coverage_compute_profile_id): Handle externally visible
21831 2014-04-14 Martin Jambor <mjambor@suse.cz>
21833 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
21834 DECL_DISREGARD_INLINE_LIMITS functions.
21836 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
21839 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
21841 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
21844 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
21845 optimize_insn_for_speed_p instead of
21846 optimize_function_for_speed_p.
21848 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
21850 * doc/invoke.texi (free): Document AArch64.
21852 2014-04-14 Richard Biener <rguenther@suse.de>
21854 PR tree-optimization/60042
21855 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
21856 (insert_into_preds_of_block): Do not prevent PHI insertion
21857 for REFERENCE exprs here ...
21858 (eliminate_dom_walker::before_dom_children): ... but prevent
21859 their use here under similar conditions when applied to the
21860 IL after PRE optimizations.
21862 2014-04-14 Richard Biener <rguenther@suse.de>
21864 * passes.def: Move early points-to after early SRA.
21866 2014-04-14 Richard Biener <rguenther@suse.de>
21868 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
21869 check for which sign-changes we allow when forwarding
21870 a converted value into a switch.
21872 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
21874 * stor-layout.c (place_field): Finalize non-constant offset for the
21877 2014-04-14 Richard Biener <rguenther@suse.de>
21879 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
21881 (expand_switch_using_bit_tests_p): Likewise.
21882 (process_switch): Compute and pass on speed_p based on the
21884 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
21885 optimize_bb_for_speed_p.
21887 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
21889 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
21890 * function.h (struct function): Rename has_force_vect_loops into
21891 has_force_vectorize_loops.
21892 * lto-streamer-in.c (input_cfg): Adjust for renaming.
21893 (input_struct_function_base): Likewise.
21894 * lto-streamer-out.c (output_cfg): Likewise.
21895 (output_struct_function_base): Likewise.
21896 * omp-low.c (expand_omp_simd): Likewise.
21897 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21898 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
21899 (version_loop_for_if_conversion): Likewise.
21900 (tree_if_conversion): Likewise.
21901 (main_tree_if_conversion): Likewise.
21902 (gate_tree_if_conversion): Likewise.
21903 * tree-inline.c (copy_loops): Likewise.
21904 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
21905 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
21906 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21907 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
21908 * tree-vectorizer.c (vectorize_loops): Likewise.
21909 * tree-vectorizer.h (unlimited_cost_model): Likewise.
21911 2014-04-14 Richard Biener <rguenther@suse.de>
21914 * lto-streamer-out.c (wrap_refs): New function.
21915 (lto_output): Wrap symbol references in global initializes in
21916 type-preserving MEM_REFs.
21918 2014-04-14 Christian Bruel <christian.bruel@st.com>
21920 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
21922 2014-04-14 Christian Bruel <christian.bruel@st.com>
21924 * config/sh/sh.md (setmemqi): New expand pattern.
21925 * config/sh/sh.h (CLEAR_RATIO): Define.
21926 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
21927 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
21929 2014-04-14 Richard Biener <rguenther@suse.de>
21931 PR middle-end/55022
21932 * fold-const.c (negate_expr_p): Don't negate directional rounding
21934 (fold_negate_expr): Likewise.
21936 2014-04-14 Richard Biener <rguenther@suse.de>
21938 PR tree-optimization/59817
21939 PR tree-optimization/60453
21940 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
21941 recursion to catch all CHRECs in the scalar evolution and restrict
21942 the predicate for the remains appropriately.
21944 2014-04-12 Catherine Moore <clm@codesourcery.com>
21946 * config/mips/constraints.md: Add new register constraint "kb".
21947 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
21948 (*movhi_internal): Likewise.
21949 (*movqi_internal): Likewise.
21950 * config/mips/mips.h (M16_STORE_REGS): New register class.
21951 (REG_CLASS_NAMES): Add M16_STORE_REGS.
21952 (REG_CLASS_CONTENTS): Likewise.
21953 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
21955 2014-04-11 Tobias Burnus <burnus@net-b.de>
21958 * doc/invoke.texi (-Wformat-signedness): Document it.
21959 (Wformat=2): Mention that this enables -Wformat-signedness.
21961 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21963 * common/config/epiphany/epiphany-common.c
21964 (epiphany_option_optimization_table): Enable section anchors by
21965 default at -O1 or higher.
21966 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
21967 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
21968 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
21969 carries no extra cost.
21970 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
21971 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
21972 * config/epiphany/predicates.md (memclob_operand): New predicate.
21973 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
21974 Use memclob_operand predicate and X constraint for operand 3.
21976 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21978 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
21979 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
21982 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21984 PR rtl-optimization/60651
21985 * mode-switching.c (optimize_mode_switching): Make sure to emit
21986 sets of a lower numbered entity before sets of a higher numbered
21987 entity to a mode of the same or lower priority.
21988 When creating a seginfo for a basic block that starts with a code
21989 label, move the insertion point past the code label.
21990 (new_seginfo): Document and enforce requirement that
21991 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
21992 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
21993 * doc/tm.texi: Regenerate.
21995 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
21998 * config/arc/arc.c (arc_save_restore): Fix assert typo.
22000 2013-04-11 Jakub Jelinek <jakub@redhat.com>
22002 * BASE-VER: Set to 4.10.0.
22004 2014-04-11 Tobias Burnus <burnus@net-b.de>
22007 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22008 * doc/gcc.texi (Service): Update description in the @menu
22009 * doc/invoke.texi (Option Summary): Remove misplaced and
22012 2014-04-11 Steve Ellcey <sellcey@mips.com>
22013 Jakub Jelinek <jakub@redhat.com>
22015 PR middle-end/60556
22016 * expr.c (convert_move): Use emit_store_flag_force instead of
22017 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
22020 2014-04-11 Richard Biener <rguenther@suse.de>
22022 PR middle-end/60797
22023 * varasm.c (assemble_alias): Avoid endless error reporting
22024 recursion by setting TREE_ASM_WRITTEN.
22026 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22028 * config/s390/s390.md: Add a splitter for NOT rtx.
22030 2014-04-11 Jakub Jelinek <jakub@redhat.com>
22032 PR rtl-optimization/60663
22033 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22035 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
22036 Jakub Jelinek <jakub@redhat.com>
22039 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22040 flag from decl_node to node.
22042 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22045 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22046 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22047 ameliorating the cases where it can be.
22049 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
22052 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22054 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22055 (loadsync_<mode>): Change mode.
22056 (load_quadpti, store_quadpti): New.
22057 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22058 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22059 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22061 2014-04-09 Cong Hou <congh@google.com>
22064 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22067 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22069 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
22070 instead of vnor to exploit possible fusion opportunity in the
22072 (altivec_expand_vec_perm_const_le): Likewise.
22074 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
22076 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22077 (loadsync_<mode>): Change mode.
22078 (load_quadpti, store_quadpti): New.
22079 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22080 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22082 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
22085 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
22086 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
22087 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
22089 2014-04-08 Richard Biener <rguenther@suse.de>
22091 PR middle-end/60706
22092 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
22093 a 64bit widest int print double-int similar to on HWI64 hosts.
22095 2014-04-08 Richard Biener <rguenther@suse.de>
22097 PR tree-optimization/60785
22098 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
22099 default defs properly.
22101 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
22103 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
22104 (Weffc++): Likewise.
22106 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
22108 * ipa-devirt.c (maybe_record_node): When node is not recorded,
22109 set completep to false rather than true.
22111 2014-04-07 Douglas B Rupp <rupp@adacore.com>
22114 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
22115 ARM_TARGET2_DWARF_FORMAT.
22117 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
22120 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
22121 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
22124 2014-04-07 Richard Biener <rguenther@suse.de>
22126 PR tree-optimization/60766
22127 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
22128 (may_eliminate_iv): Convert cand_value_at result to desired type.
22130 2014-04-07 Jason Merrill <jason@redhat.com>
22133 * common.opt (-fno-gnu-unique): Add.
22134 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
22136 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22138 * haifa-sched.c: Fix outdated function reference and minor
22139 grammar errors in introductory comment.
22141 2014-04-07 Richard Biener <rguenther@suse.de>
22143 PR middle-end/60750
22144 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
22145 for noreturn calls.
22146 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
22148 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
22151 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
22152 size accounting for thunks.
22153 (pa_asm_output_mi_thunk): Use final_start_function() and
22154 final_end_function() to output function start and end directives.
22156 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
22158 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
22159 device specific ISA/ feature information. Remove short_sp and
22160 errata_skip ds. Add avr_device_specific_features enum to have device
22162 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
22163 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
22164 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
22165 updated device specific info.
22166 * config/avr/avr-mcus.def: Merge device specific details to
22167 dev_attribute field.
22168 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
22170 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
22171 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
22172 assembler if RMW isa supported by current device.
22173 * config/avr/genmultilib.awk: Update as device info structure changed.
22174 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
22176 2014-04-04 Cong Hou <congh@google.com>
22178 PR tree-optimization/60656
22179 * tree-vect-stmts.c (supportable_widening_operation):
22180 Fix a bug that elements in a vector with vect_used_by_reduction
22181 property are incorrectly reordered when the operation on it is not
22182 consistant with the one in reduction operation.
22184 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
22186 PR rtl-optimization/60155
22187 * gcse.c (record_set_data): New function.
22188 (single_set_gcse): New function.
22189 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
22190 (hoist_code): Likewise.
22191 (get_pressure_class_and_nregs): Likewise.
22193 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
22195 * explow.c (probe_stack_range): Emit a final optimization blockage.
22197 2014-04-04 Anthony Green <green@moxielogic.com>
22199 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
22202 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
22205 * lto-cgraph.c (input_overwrite_node): Check that partitioning
22206 flags are set only during streaming.
22207 * ipa.c (process_references, walk_polymorphic_call_targets,
22208 symtab_remove_unreachable_nodes): Drop bodies of always inline
22209 after early inlining.
22210 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
22212 2014-04-04 Jakub Jelinek <jakub@redhat.com>
22213 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22216 * dwarf2out.c (const_ok_for_output_1): Reject expressions
22219 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22222 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
22224 (cortex_a53_fdivd): Likewise.
22226 2014-04-04 Martin Jambor <mjambor@suse.cz>
22229 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
22230 Adjust all callers.
22231 * cgraph.c (clone_of_p): Also return true if thunks match.
22232 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
22233 cgraph_function_or_thunk_node and an obsolete comment.
22234 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
22236 (build_function_decl_skip_args): Likewise.
22237 (set_new_clone_decl_and_node_flags): New function.
22238 (duplicate_thunk_for_node): Likewise.
22239 (redirect_edge_duplicating_thunks): Likewise.
22240 (cgraph_clone_node): New parameter args_to_skip, pass it to
22241 redirect_edge_duplicating_thunks which is called instead of
22242 cgraph_redirect_edge_callee.
22243 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
22244 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
22246 2014-04-04 Jeff Law <law@redhat.com>
22249 * config/arm/predicates.md (const_int_I_operand): New predicate.
22250 (const_int_M_operand): Similarly.
22251 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
22253 (insv_t2, extv_reg, extzv_t2): Likewise.
22254 (load_multiple_with_writeback): Similarly for const_int_I_operand.
22255 (pop_multiple_with_writeback_and_return): Likewise.
22256 (vfp_pop_multiple_with_writeback): Likewise
22258 2014-04-04 Richard Biener <rguenther@suse.de>
22261 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
22262 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
22264 * gimplify.h (gimple_add_tmp_var_fn): Declare.
22265 * gimplify.c (gimple_add_tmp_var_fn): New function.
22266 * gimple-expr.h (create_tmp_reg_fn): Declare.
22267 * gimple-expr.c (create_tmp_reg_fn): New function.
22268 * gimple-low.c (record_vars_into): Don't change cfun.
22269 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
22270 code generation without cfun.
22272 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
22275 * Makefile.in (install-driver): Fix shell scripting.
22277 2014-04-03 Cong Hou <congh@google.com>
22279 PR tree-optimization/60505
22280 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
22281 threshold of number of iterations below which no vectorization
22283 * tree-vect-loop.c (new_loop_vec_info):
22284 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
22285 * tree-vect-loop.c (vect_analyze_loop_operations):
22286 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
22287 * tree-vect-loop.c (vect_transform_loop):
22288 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
22289 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
22290 of iterations of the loop and see if we should build the epilogue.
22292 2014-04-03 Richard Biener <rguenther@suse.de>
22294 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
22295 (streamer_tree_cache_create): Adjust.
22296 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
22297 to allow optional nodes array.
22298 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
22299 (streamer_tree_cache_append): Likewise.
22300 (streamer_tree_cache_create): Create nodes array optionally
22301 as specified by parameter.
22302 * lto-streamer-out.c (create_output_block): Avoid maintaining
22303 the node array in the writer cache.
22304 (DFS_write_tree): Remove assertion.
22305 (produce_asm_for_decls): Free the out decl state hash table early.
22306 * lto-streamer-in.c (lto_data_in_create): Adjust for
22307 streamer_tree_cache_create prototype change.
22309 2014-04-03 Richard Biener <rguenther@suse.de>
22311 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
22312 set TREE_CHAIN to NULL_TREE.
22314 2014-04-03 Richard Biener <rguenther@suse.de>
22316 PR tree-optimization/60740
22317 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
22318 over all GIMPLE_COND operands.
22320 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
22322 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
22323 (Weffc++): Remove Scott's numbering, merge lists and reference
22326 2014-04-03 Nick Clifton <nickc@redhat.com>
22328 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
22331 2014-04-03 Martin Jambor <mjambor@suse.cz>
22333 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
22334 mention gcc_unreachable before failing.
22335 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
22338 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
22341 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
22342 inconsistent code and instead mark the context inconsistent.
22343 (possible_polymorphic_call_targets): For inconsistent contexts
22344 return empty complete list.
22346 2014-04-02 Anthony Green <green@moxielogic.com>
22348 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
22349 (extendqisi2, extendhisi2): Define.
22350 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
22351 (WCHAR_TYPE): Change to unsigned int.
22353 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22355 PR tree-optimization/60733
22356 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
22357 insertion point for PHI candidates to be the end of the feeding
22358 block for the PHI argument.
22360 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
22362 PR rtl-optimization/60650
22363 * lra-constraints.c (process_alt_operands): Decrease reject for
22364 earlyclobber matching.
22366 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22368 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
22370 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22372 * config/spu/spu.c (pad_bb): Do not crash when the last
22373 insn is CODE_FOR_blockage.
22375 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22377 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
22378 lies outside the target mode.
22380 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22383 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22384 software floating point or no floating point registers, do not
22385 allow any type in the FPRs. Eliminate a test for SPE SIMD types
22386 in GPRs that occurs after we tested for GPRs that would never be
22389 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22390 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22391 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
22392 specifically allow DDmode, since that does not use the SPE SIMD
22395 2014-04-02 Richard Biener <rguenther@suse.de>
22397 PR middle-end/60729
22398 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
22399 MODE_INTs. Properly use negv_optab.
22400 (expand_abs): Likewise.
22402 2014-04-02 Richard Biener <rguenther@suse.de>
22405 * Makefile.in (install-driver): Guard extra installs with special
22408 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
22410 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22411 Document vec_vgbbd.
22413 2014-04-01 Richard Henderson <rth@redhat.com>
22416 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
22417 alternative enabled before register allocation.
22419 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
22421 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
22422 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
22424 (nios2_large_got_address): Remove unneeded 'sym' parameter.
22425 (nios2_got_address): Update nios2_large_got_address call site.
22426 (nios2_delegitimize_address): New function.
22427 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
22428 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
22429 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
22431 2014-04-01 Martin Husemann <martin@duskware.de>
22433 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
22436 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
22438 PR rtl-optimization/60604
22439 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
22440 check from register_operand.
22441 (register_operand): Redefine in terms of general_operand.
22442 (nonmemory_operand): Use register_operand for the non-constant cases.
22444 2014-04-01 Richard Biener <rguenther@suse.de>
22446 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
22448 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
22450 * doc/invoke.texi (mapp-regs): Clarify.
22452 2014-03-31 Ulrich Drepper <drepper@gmail.com>
22454 * config/i386/avx512fintrin.h (__v32hi): Define type.
22455 (__v64qi): Likewise.
22456 (_mm512_set1_epi8): Define.
22457 (_mm512_set1_epi16): Define.
22458 (_mm512_set4_epi32): Define.
22459 (_mm512_set4_epi64): Define.
22460 (_mm512_set4_pd): Define.
22461 (_mm512_set4_ps): Define.
22462 (_mm512_setr4_epi64): Define.
22463 (_mm512_setr4_epi32): Define.
22464 (_mm512_setr4_pd): Define.
22465 (_mm512_setr4_ps): Define.
22466 (_mm512_setzero_epi32): Define.
22468 2014-03-31 Martin Jambor <mjambor@suse.cz>
22470 PR middle-end/60647
22471 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
22472 callsite_arguments_match_p. Updated all callers. Also check types of
22473 corresponding formal parameters and actual arguments.
22474 (not_all_callers_have_enough_arguments_p) Renamed to
22475 some_callers_have_mismatched_arguments_p.
22477 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
22479 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
22481 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22484 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
22487 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
22489 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
22490 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
22492 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
22493 Use FMAMODE_NOVF512 mode iterator.
22494 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
22495 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
22496 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
22497 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
22499 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
22500 Use VF_128_256 mode iterator.
22501 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
22504 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22506 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
22507 static chain if needed.
22509 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
22512 * lra-constraints.c (index_part_to_reg): New.
22513 (process_address): Use it.
22515 2014-03-27 Jeff Law <law@redhat.com>
22516 Jakub Jelinek <jakub@redhat.com>
22519 * expr.c (do_tablejump): Use simplify_gen_binary rather than
22520 gen_rtx_{PLUS,MULT} to build up the address expression.
22522 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
22523 creating non-canonical RTL.
22525 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22528 * ipa-inline.c (want_inline_small_function_p): Short circuit large
22529 functions; reorganize to make cheap checks first.
22530 (inline_small_functions): Do not estimate growth when dumping;
22532 * ipa-inline.h (inline_summary): Add min_size.
22533 (growth_likely_positive): New function.
22534 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
22535 (set_cond_stmt_execution_predicate): Cleanup.
22536 (estimate_edge_size_and_time): Compute min_size.
22537 (estimate_calls_size_and_time): Likewise.
22538 (estimate_node_size_and_time): Likewise.
22539 (inline_update_overall_summary): Update min_size.
22540 (do_estimate_edge_time): Likewise.
22541 (do_estimate_edge_size): Update.
22542 (do_estimate_edge_hints): Update.
22543 (growth_likely_positive): New function.
22545 2014-03-28 Jakub Jelinek <jakub@redhat.com>
22548 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
22549 also if addr has VOIDmode.
22551 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22553 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
22554 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
22556 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
22557 instructions as well as AdvancedSIMD loads.
22559 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22561 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
22562 Use crypto_aese type.
22563 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
22564 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
22565 crypto_aese, crypto_aesmc. Move to types.md.
22566 * config/arm/types.md (crypto_aes): Split into crypto_aese,
22568 * config/arm/iterators.md (crypto_type): Likewise.
22570 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
22572 * cgraph.c: Include expr.h and tree-dfa.h.
22573 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
22576 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
22579 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
22580 regs from checking multi-reg pseudos.
22582 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22584 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
22586 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22588 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
22589 if it would clobber the stack pointer, even temporarily.
22591 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
22593 * mode-switching.c: Make small adjustments to the top comment.
22595 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
22597 * config/rs6000/constraints.md (wD constraint): New constraint to
22598 match the constant integer to get the top DImode/DFmode out of a
22599 vector in a VSX register.
22601 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
22602 match the constant integer to get the top DImode/DFmode out of a
22603 vector in a VSX register.
22605 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
22608 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22611 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22612 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
22614 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
22615 Optimize vec_extract of 64-bit values, where the value being
22616 extracted is in the top word, where we can use scalar
22617 instructions. Add direct move and store support. Combine the big
22618 endian/little endian vector select load support into a single insn.
22619 (vsx_extract_<mode>_internal1): Likewise.
22620 (vsx_extract_<mode>_internal2): Likewise.
22621 (vsx_extract_<mode>_load): Likewise.
22622 (vsx_extract_<mode>_store): Likewise.
22623 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
22624 combined into vsx_extract_<mode>_load.
22625 (vsx_extract_<mode>_one_le): Likewise.
22627 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
22628 define the top 64-bit vector element.
22630 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
22633 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22634 Document vec_vbpermq builtin.
22637 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
22638 enable use of xxsldwi and xxpermdi builtin functions.
22639 (vec_xxpermdi): Likewise.
22641 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22642 Document use of vec_xxsldwi and vec_xxpermdi builtins.
22644 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
22646 PR rtl-optimization/60650
22647 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
22649 (find_spills_for): New.
22650 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
22651 Spill all pseudos on the second iteration.
22653 2014-03-27 Marek Polacek <polacek@redhat.com>
22656 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
22659 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22661 * config/s390/s390.c (s390_can_use_return_insn): Check for
22662 call-saved FPRs on 31 bit.
22664 2014-03-27 Jakub Jelinek <jakub@redhat.com>
22666 PR middle-end/60682
22667 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
22668 if they need regimplification, just drop them instead of
22669 calling gimple_regimplify_operands on them.
22671 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
22674 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
22675 (aarch64_frame_pointer_required): Adjust logic.
22676 (aarch64_can_eliminate): Adjust logic.
22677 (aarch64_override_options_after_change): Adjust logic.
22679 2014-03-27 Dehao Chen <dehao@google.com>
22681 * ipa-inline.c (early_inliner): Update node's inline info.
22683 2014-03-26 Dehao Chen <dehao@google.com>
22685 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
22686 compiler inserted conditional jumps for NAN float check.
22688 2014-03-26 Jakub Jelinek <jakub@redhat.com>
22690 * ubsan.h (ubsan_create_data): Change second argument's type
22691 to const location_t *.
22692 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
22694 (ubsan_create_data): Change second argument to const location_t *PLOC.
22695 Create Loc field whenever PLOC is non-NULL.
22696 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
22697 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
22701 * real.c (real_to_integer2): Change type of low to UHWI.
22703 2014-03-26 Tobias Burnus <burnus@net-b.de>
22705 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
22706 (CILK_SELF_SPECS): New define.
22707 (driver_self_specs): Use it.
22709 2014-03-26 Richard Biener <rguenther@suse.de>
22711 * tree-pretty-print.c (percent_K_format): Implement special
22712 case for LTO and its stripped down BLOCK tree.
22714 2014-03-26 Jakub Jelinek <jakub@redhat.com>
22717 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
22719 * tree-vrp.c (simplify_internal_call_using_ranges): If only
22720 one range is range_int_cst_p, but not both, at least optimize
22721 addition/subtraction of 0 and multiplication by 0 or 1.
22722 * gimple-fold.c (gimple_fold_call): Fold
22723 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
22724 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
22725 INTEGER_CSTs, try to fold at least x * 0 and y - y.
22727 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
22729 PR rtl-optimization/60452
22730 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
22731 <case REG>: Return 1 for invalid offsets from the frame pointer.
22733 2014-03-26 Marek Polacek <polacek@redhat.com>
22736 * doc/extend.texi (C Extensions): Mention variable-length arrays in
22739 2014-03-26 Marek Polacek <polacek@redhat.com>
22742 * doc/extend.texi (Designated Inits): Describe what happens to omitted
22745 2014-03-26 Marek Polacek <polacek@redhat.com>
22748 * ira-color.c (update_conflict_hard_regno_costs): Perform the
22749 multiplication in unsigned type.
22751 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
22753 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
22755 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
22757 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
22759 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
22762 * cif-code.def (UNREACHABLE) New code.
22763 * ipa-inline.c (inline_small_functions): Skip edges to
22764 __builtlin_unreachable.
22765 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
22766 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
22767 predicate to __bulitin_unreachable.
22768 (set_cond_stmt_execution_predicate): Fix issue when
22769 invert_tree_comparison returns ERROR_MARK.
22770 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
22771 propagate to inline clones.
22772 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
22774 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
22775 * cgraphclones.c (cgraph_clone_node): If call destination is already
22776 ureachable, do not redirect it back.
22777 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
22780 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
22782 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
22783 Do not modify inline clones.
22785 2014-03-25 Jakub Jelinek <jakub@redhat.com>
22787 * config/i386/i386.md (general_sext_operand): New mode attr.
22788 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
22789 don't generate (sign_extend (const_int)).
22790 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
22791 operands[2]. Use We constraint instead of <i> and
22792 <general_sext_operand> predicate instead of <general_operand>.
22793 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
22794 * config/i386/constraints.md (We): New constraint.
22795 * config/i386/predicates.md (x86_64_sext_operand,
22796 sext_operand): New predicates.
22798 2014-03-25 Martin Jambor <mjambor@suse.cz>
22801 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
22802 inconsistent devirtualizations to __builtin_unreachable.
22804 2014-03-25 Marek Polacek <polacek@redhat.com>
22807 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
22809 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
22811 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
22812 order of elements for big-endian.
22814 2014-03-25 Richard Biener <rguenther@suse.de>
22816 PR middle-end/60635
22817 * gimplify-me.c (gimple_regimplify_operands): Update the
22820 2014-03-25 Martin Jambor <mjambor@suse.cz>
22823 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
22824 (lto_output_varpool_node): Likewise.
22825 (input_overwrite_node): Likewise.
22826 (input_varpool_node): Likewise.
22828 2014-03-25 Richard Biener <rguenther@suse.de>
22830 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
22831 (run_gcc): Likewise.
22833 2014-03-25 Jakub Jelinek <jakub@redhat.com>
22835 * combine.c (simplify_compare_const): Add MODE argument.
22836 Handle mode_width 0 as very large mode_width.
22837 (try_combine, simplify_comparison): Adjust callers.
22839 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
22840 type to avoid signed integer overflow.
22841 * explow.c (plus_constant): Likewise.
22843 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
22845 * doc/generic.texi: Correct typos.
22847 2014-03-24 Tobias Burnus <burnus@net-b.de>
22849 * doc/invoke.texi (-flto): Expand section about
22850 using static libraries with LTO.
22852 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22854 PR rtl-optimization/60501
22855 * optabs.def (addptr3_optab): New optab.
22856 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
22857 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
22858 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
22860 * lra.c (emit_add3_insn): Use the addptr pattern if available.
22862 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
22864 2014-03-24 Ulrich Drepper <drepper@gmail.com>
22866 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
22869 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
22870 (_mm256_undefined_ps): Define.
22871 (_mm256_undefined_pd): Define.
22872 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
22873 (_mm_undefined_pd): Define.
22874 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
22875 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
22876 (_mm512_undefined_ps): Define.
22877 (_mm512_undefined_pd): Define.
22878 Use _mm*_undefined_*.
22879 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
22881 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
22883 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
22884 (lshr_simd): DI mode added.
22885 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
22886 (aarch64_ushr_simddi): Likewise.
22887 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
22888 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
22889 (vshrd_n_u64): Likewise.
22891 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22893 * Makefile.in (s-macro_list): Depend on cc1.
22895 2014-03-23 Teresa Johnson <tejohnson@google.com>
22897 * ipa-utils.c (ipa_print_order): Use specified dump file.
22899 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
22901 PR rtl-optimization/60601
22902 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
22904 * gcc.c (eval_spec_function): Initialize save_growing_value.
22906 2014-03-22 Jakub Jelinek <jakub@redhat.com>
22909 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
22910 code == MINUS_EXPR, never swap op0 with op1.
22912 * toplev.c (init_local_tick): Avoid signed integer multiplication
22914 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
22915 shift by first operand's bitsize.
22917 2014-03-21 Jakub Jelinek <jakub@redhat.com>
22920 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
22921 redefine to 1 or 0.
22922 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
22923 TARGET_ISA_64BIT_P(x).
22925 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22927 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
22928 pattern for vector nor instead of subtract from splat(-1).
22929 (altivec_expand_vec_perm_const_le): Likewise.
22931 2014-03-21 Richard Henderson <rth@twiddle.net>
22934 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
22935 related insns after epilogue_completed.
22937 2014-03-21 Martin Jambor <mjambor@suse.cz>
22940 * cgraph.h (symtab_node): New flag body_removed.
22941 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
22942 when removing bodies.
22943 * symtab.c (dump_symtab_base): Dump body_removed flag.
22944 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
22945 had their bodies removed.
22947 2014-03-21 Martin Jambor <mjambor@suse.cz>
22950 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
22953 2014-03-21 Richard Biener <rguenther@suse.de>
22955 PR tree-optimization/60577
22956 * tree-core.h (struct tree_base): Document nothrow_flag use
22957 in DECL_NONALIASED.
22958 * tree.h (DECL_NONALIASED): New.
22959 (may_be_aliased): Adjust.
22960 * coverage.c (build_var): Set DECL_NONALIASED.
22962 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22964 * expr.c (expand_expr_real_1): Remove outdated comment.
22966 2014-03-20 Jakub Jelinek <jakub@redhat.com>
22968 PR middle-end/60597
22969 * ira.c (adjust_cleared_regs): Call copy_rtx on
22970 *reg_equiv[REGNO (loc)].src_p before passing it to
22971 simplify_replace_fn_rtx.
22974 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
22975 into CONST, put pic register as first operand of PLUS. Use
22976 gen_const_mem for both 32-bit and 64-bit PIC got loads.
22978 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22980 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
22982 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22984 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
22985 around for store forwarding issue in the FPU on the UT699.
22986 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
22987 loads and operations if -mfix-ut699 is specified.
22988 (divtf3_hq): Tweak attribute.
22989 (sqrttf2_hq): Likewise.
22991 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22993 * calls.c (store_one_arg): Remove incorrect const qualification on the
22994 type of the temporary.
22995 * cfgexpand.c (expand_return): Likewise.
22996 * expr.c (expand_constructor): Likewise.
22997 (expand_expr_real_1): Likewise.
22999 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23001 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23004 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23007 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23009 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
23011 * config/arm/aarch-common-protos.h
23012 (alu_cost_table): Fix spelling of "extend".
23013 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23015 2014-03-19 Richard Biener <rguenther@suse.de>
23017 PR middle-end/60553
23018 * tree-core.h (tree_type_common): Re-order pointer members
23019 to reduce recursion depth during GC walks.
23021 2014-03-19 Marek Polacek <polacek@redhat.com>
23024 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23025 before accessing it.
23027 2014-03-19 Richard Biener <rguenther@suse.de>
23030 * lto-streamer-in.c (input_function): In WPA stage do not drop
23033 2014-03-19 Jakub Jelinek <jakub@redhat.com>
23035 PR tree-optimization/60559
23036 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23037 with build_zero_cst assignment.
23039 2014-03-18 Kai Tietz <ktietz@redhat.com>
23041 PR rtl-optimization/56356
23042 * sdbout.c (sdbout_parms): Verify that parms'
23043 incoming argument is valid.
23044 (sdbout_reg_parms): Likewise.
23046 2014-03-18 Richard Henderson <rth@redhat.com>
23049 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23050 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
23051 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23053 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
23055 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23056 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23057 Italicize plugin event names in description. Explain that
23058 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
23059 Remind that no GCC functions should be called after PLUGIN_FINISH.
23060 Explain what pragmas with expansion are.
23062 2014-03-18 Martin Liska <mliska@suse.cz>
23064 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23065 gimple call statement is update.
23066 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23067 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23069 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23072 * ubsan.c (ubsan_instrument_unreachable): Call
23073 initialize_sanitizer_builtins.
23074 (ubsan_pass): Likewise.
23077 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
23078 varpool_finalize_decl instead of rest_of_decl_compilation.
23080 2014-03-18 Richard Biener <rguenther@suse.de>
23082 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
23083 by using bitmap_and_compl instead of bitmap_and_compl_into.
23084 (df_rd_transfer_function): Likewise.
23086 2014-03-18 Richard Biener <rguenther@suse.de>
23088 * doc/lto.texi (fresolution): Fix typo.
23090 2014-03-18 Richard Biener <rguenther@suse.de>
23092 * doc/invoke.texi (flto): Update for changes in 4.9.
23094 2014-03-18 Richard Biener <rguenther@suse.de>
23096 * doc/loop.texi: Remove section on the removed lambda framework.
23097 Update loop docs with recent changes in preserving loop structure.
23099 2014-03-18 Richard Biener <rguenther@suse.de>
23101 * doc/lto.texi (-fresolution): Document.
23103 2014-03-18 Richard Biener <rguenther@suse.de>
23105 * doc/contrib.texi: Adjust my name.
23107 2014-03-18 Jakub Jelinek <jakub@redhat.com>
23110 * internal-fn.c: Include diagnostic-core.h.
23111 (expand_BUILTIN_EXPECT): New function.
23112 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
23113 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
23114 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
23115 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
23116 IFN_BUILTIN_EXPECT.
23117 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
23118 Revert 3 argument __builtin_expect code.
23119 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
23120 * gimple-fold.c (gimple_fold_call): Likewise.
23121 * tree.h (fold_builtin_expect): New prototype.
23122 * builtins.c (build_builtin_expect_predicate): Add predictor
23123 argument, if non-NULL, create 3 argument __builtin_expect.
23124 (fold_builtin_expect): No longer static. Add ARG2 argument,
23125 pass it through to build_builtin_expect_predicate.
23126 (fold_builtin_2): Adjust caller.
23127 (fold_builtin_3): Handle BUILT_IN_EXPECT.
23128 * internal-fn.def (BUILTIN_EXPECT): New.
23130 2014-03-18 Tobias Burnus <burnus@net-b.de>
23133 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
23134 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
23135 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
23137 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
23140 * predict.c (combine_predictions_for_bb): Fix up formatting.
23141 (expr_expected_value_1, expr_expected_value): Add predictor argument,
23142 fill what it points to if non-NULL.
23143 (tree_predict_by_opcode): Adjust caller, use the predictor.
23144 * predict.def (PRED_COMPARE_AND_SWAP): Add.
23146 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
23148 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
23149 proper constant for the store mode.
23151 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
23153 * symtab.c (change_decl_assembler_name): Fix transparent alias
23154 chain construction.
23156 2014-03-16 Renlin Li <Renlin.Li@arm.com>
23158 * config/aarch64/aarch64.c: Correct the comments about the
23159 aarch64 stack layout.
23161 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
23163 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
23164 check for GF_OMP_FOR_KIND_FOR.
23166 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
23168 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
23169 ymm and zmm register names.
23171 2014-03-17 Jakub Jelinek <jakub@redhat.com>
23174 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
23175 note creation for the 2010-08-31 changes.
23177 2014-03-17 Marek Polacek <polacek@redhat.com>
23179 PR middle-end/60534
23180 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
23181 as -fno-tree-loop-vectorize.
23182 (expand_omp_simd): Likewise.
23184 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
23186 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
23187 (eligible_for_call_delay): New prototype.
23188 * config/sparc/sparc.c (tls_call_delay): Rename into...
23189 (eligible_for_call_delay): ...this. Return false if the instruction
23190 cannot be put in the delay slot of a branch.
23191 (eligible_for_restore_insn): Simplify.
23192 (eligible_for_return_delay): Return false if the instruction cannot be
23193 put in the delay slot of a branch and simplify.
23194 (eligible_for_sibcall_delay): Return false if the instruction cannot be
23195 put in the delay slot of a branch.
23196 * config/sparc/sparc.md (fix_ut699): New attribute.
23197 (tls_call_delay): Delete.
23198 (in_call_delay): Reimplement.
23199 (eligible_for_sibcall_delay): Rename into...
23200 (in_sibcall_delay): ...this.
23201 (eligible_for_return_delay): Rename into...
23202 (in_return_delay): ...this.
23203 (in_branch_delay): Reimplement.
23204 (in_uncond_branch_delay): Delete.
23205 (in_annul_branch_delay): Delete.
23207 2014-03-14 Richard Henderson <rth@redhat.com>
23210 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
23211 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
23212 (*floathi<X87MODEF>2_i387_with_temp): Remove.
23213 (floathi splitters): Remove.
23214 (float<SWI48x>xf2): New pattern.
23215 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
23216 code that tried to handle DImode for 32-bit, but which was excluded
23217 by the pattern's condition. Drop allocation of stack temporary.
23218 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
23219 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
23220 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
23221 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
23222 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
23223 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
23224 (*float<SWI48><MODEF>2_sse_interunit): Remove.
23225 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
23226 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
23227 (*float<SWI48x><X87MODEF>2_i387): Remove.
23228 (all float _with_temp splitters): Remove.
23229 (*float<SWI48x><MODEF>2_i387): New pattern.
23230 (*float<SWI48><MODEF>2_sse): New pattern.
23231 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
23232 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
23234 2014-03-14 Jakub Jelinek <jakub@redhat.com>
23235 Marek Polacek <polacek@redhat.com>
23237 PR middle-end/60484
23238 * common.opt (dump_base_name_prefixed): New Variable.
23239 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
23240 if x_dump_base_name_prefixed is already set, set it at the end.
23242 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
23244 PR rtl-optimization/60508
23245 * lra-constraints.c (get_reload_reg): Add new parameter
23247 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
23248 Pass the new parameter values.
23250 2014-03-14 Richard Biener <rguenther@suse.de>
23252 * common.opt: Revert unintented changes from r205065.
23253 * opts.c: Likewise.
23255 2014-03-14 Richard Biener <rguenther@suse.de>
23257 PR middle-end/60518
23258 * cfghooks.c (split_block): Properly adjust all loops the
23259 block was a latch of.
23261 2014-03-14 Martin Jambor <mjambor@suse.cz>
23264 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
23267 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
23270 * config/avr/avr.c (avr_set_current_function): Pass function name
23271 through default_strip_name_encoding before sanity checking instead
23272 of skipping the first char of the assembler name.
23274 2014-03-13 Richard Henderson <rth@redhat.com>
23277 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
23278 (ix86_force_to_memory, ix86_free_from_memory): Remove.
23279 * config/i386/i386-protos.h: Likewise.
23280 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
23281 in the expander instead of a splitter.
23282 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
23283 any possibility of requiring a memory.
23284 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
23285 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
23286 (fp branch splitters): Update for ix86_split_fp_branch.
23287 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
23288 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
23289 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
23290 (*fop_<MODEF>_2_i387): Remove f/r alternative.
23291 (*fop_<MODEF>_3_i387): Likewise.
23292 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
23293 (splitters for the fop_* register patterns): Remove.
23294 (fscalexf4_i387): Rename from *fscalexf4_i387.
23295 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
23297 2014-03-13 Jakub Jelinek <jakub@redhat.com>
23299 PR tree-optimization/59779
23300 * tree-dfa.c (get_ref_base_and_extent): Use double_int
23301 type for bitsize and maxsize instead of HOST_WIDE_INT.
23303 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
23305 PR rtl-optimization/57320
23306 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
23307 the CFG after thread_prologue_and_epilogue_insns.
23309 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
23311 PR rtl-optimization/57189
23312 * lra-constraints.c (process_alt_operands): Disfavor spilling
23315 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
23317 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
23319 2014-03-13 Jakub Jelinek <jakub@redhat.com>
23321 PR tree-optimization/59025
23322 PR middle-end/60418
23323 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
23324 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
23326 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
23329 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
23330 calls of avr_out_plus_1.
23332 2014-03-13 Bin Cheng <bin.cheng@arm.com>
23334 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
23335 BB's single pred and update the father loop's latch info later.
23337 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23339 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
23343 (VEC_base): Likewise.
23344 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
23345 registers, we need to swap double words in little endian mode.
23347 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
23348 to be a container mode for 128-bit integer operations added in ISA
23349 2.07. Unlike TImode and PTImode, the preferred register set is
23350 the Altivec/VMX registers for the 128-bit operations.
23352 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
23354 (rs6000_split_128bit_ok_p): Likewise.
23356 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
23357 macros for creating ISA 2.07 normal and overloaded builtin
23358 functions with 3 arguments.
23359 (BU_P8V_OVERLOAD_3): Likewise.
23360 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
23361 for use as overloaded functions.
23362 (VPERM_1TI_UNS): Likewise.
23363 (VSEL_1TI): Likewise.
23364 (VSEL_1TI_UNS): Likewise.
23365 (ST_INTERNAL_1ti): Likewise.
23366 (LD_INTERNAL_1ti): Likewise.
23367 (XXSEL_1TI): Likewise.
23368 (XXSEL_1TI_UNS): Likewise.
23369 (VPERM_1TI): Likewise.
23370 (VPERM_1TI_UNS): Likewise.
23371 (XXPERMDI_1TI): Likewise.
23372 (SET_1TI): Likewise.
23373 (LXVD2X_V1TI): Likewise.
23374 (STXVD2X_V1TI): Likewise.
23375 (VEC_INIT_V1TI): Likewise.
23376 (VEC_SET_V1TI): Likewise.
23377 (VEC_EXT_V1TI): Likewise.
23378 (EQV_V1TI): Likewise.
23379 (NAND_V1TI): Likewise.
23380 (ORC_V1TI): Likewise.
23381 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
23382 added in ISA 2.07. Add both normal 'altivec' builtins, and the
23383 overloaded builtin.
23384 (VADDUQM): Likewise.
23385 (VSUBCUQ): Likewise.
23386 (VADDEUQM): Likewise.
23387 (VADDECUQ): Likewise.
23388 (VSUBEUQM): Likewise.
23389 (VSUBECUQ): Likewise.
23391 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
23392 __int128_t and __uint128_t types.
23393 (__uint128_type): Likewise.
23394 (altivec_categorize_keyword): Add support for vector __int128_t,
23395 vector __uint128_t, vector __int128, and vector unsigned __int128
23396 as a container type for TImode operations that need to be done in
23397 VSX/Altivec registers.
23398 (rs6000_macro_to_expand): Likewise.
23399 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
23400 to support 128-bit integer instructions vaddcuq, vadduqm,
23401 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
23402 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
23404 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
23405 for V1TImode, and set up preferences to use VSX/Altivec registers.
23406 Setup VSX reload handlers.
23407 (rs6000_debug_reg_global): Likewise.
23408 (rs6000_init_hard_regno_mode_ok): Likewise.
23409 (rs6000_preferred_simd_mode): Likewise.
23410 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
23411 (easy_altivec_constant): Likewise.
23412 (output_vec_const_move): Likewise.
23413 (rs6000_expand_vector_set): Convert V1TImode set and extract to
23415 (rs6000_expand_vector_extract): Likewise.
23416 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
23418 (rs6000_const_vec): Add support for V1TImode.
23419 (rs6000_emit_le_vsx_load): Swap double words when loading or
23420 storing TImode/V1TImode.
23421 (rs6000_emit_le_vsx_store): Likewise.
23422 (rs6000_emit_le_vsx_move): Likewise.
23423 (rs6000_emit_move): Add support for V1TImode.
23424 (altivec_expand_ld_builtin): Likewise.
23425 (altivec_expand_st_builtin): Likewise.
23426 (altivec_expand_vec_init_builtin): Likewise.
23427 (altivec_expand_builtin): Likewise.
23428 (rs6000_init_builtins): Add support for V1TImode type. Add
23429 support for ISA 2.07 128-bit integer builtins. Define type names
23430 for the VSX/Altivec vector types.
23431 (altivec_init_builtins): Add support for overloaded vector
23432 functions with V1TImode type.
23433 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
23434 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
23436 (rs6000_split_128bit_ok_p): Likewise.
23437 (rs6000_handle_altivec_attribute): Create V1TImode from vector
23438 __int128_t and vector __uint128_t.
23440 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
23441 and mode attributes.
23443 (VSX_M2): Likewise.
23448 (VS_scalar): Likewise.
23449 (VS_double): Likewise.
23450 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
23452 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
23453 we support the ISA 2.07 128-bit integer arithmetic instructions.
23454 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
23455 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
23456 and TImode types for use with the builtin functions.
23457 (V1TI_type_node): Likewise.
23458 (unsigned_V1TI_type_node): Likewise.
23459 (intTI_type_internal_node): Likewise.
23460 (uintTI_type_internal_node): Likewise.
23462 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
23463 128-bit builtin functions.
23464 (UNSPEC_VADDEUQM): Likewise.
23465 (UNSPEC_VADDECUQ): Likewise.
23466 (UNSPEC_VSUBCUQ): Likewise.
23467 (UNSPEC_VSUBEUQM): Likewise.
23468 (UNSPEC_VSUBECUQ): Likewise.
23469 (VM): Add V1TImode to vector mode iterators.
23471 (VI_unit): Likewise.
23472 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
23473 (altivec_vaddcuq): Likewise.
23474 (altivec_vsubuqm): Likewise.
23475 (altivec_vsubcuq): Likewise.
23476 (altivec_vaddeuqm): Likewise.
23477 (altivec_vaddecuq): Likewise.
23478 (altivec_vsubeuqm): Likewise.
23479 (altivec_vsubecuq): Likewise.
23481 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
23483 (BOOL_128): Likewise.
23484 (BOOL_REGS_OUTPUT): Likewise.
23485 (BOOL_REGS_OP1): Likewise.
23486 (BOOL_REGS_OP2): Likewise.
23487 (BOOL_REGS_UNARY): Likewise.
23488 (BOOL_REGS_AND_CR0): Likewise.
23490 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
23491 128-bit integer builtin support.
23492 (vec_vadduqm): Likewise.
23493 (vec_vaddecuq): Likewise.
23494 (vec_vaddeuqm): Likewise.
23495 (vec_vsubecuq): Likewise.
23496 (vec_vsubeuqm): Likewise.
23497 (vec_vsubcuq): Likewise.
23498 (vec_vsubuqm): Likewise.
23500 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23501 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
23502 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
23503 128-bit integer add/subtract to ISA 2.07.
23505 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
23507 * config/arc/arc.c (arc_predicate_delay_insns):
23508 Fix third argument passed to conditionalize_nonjump.
23510 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
23512 * config/aarch64/aarch64-builtins.c
23513 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
23514 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
23515 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
23516 instead of __builtin_lfloor.
23517 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
23519 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23521 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
23522 (tree_ssa_ifcombine_bb_1): New function.
23523 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
23524 is an empty forwarder block to then_bb or vice versa and then_bb
23525 and else_bb are effectively swapped.
23527 2014-03-12 Christian Bruel <christian.bruel@st.com>
23530 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
23531 REG_CFA_DEF_CFA note.
23532 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
23533 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
23535 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23537 PR tree-optimization/60454
23538 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
23540 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23542 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
23543 Do not define target_cpu_default2 to generic.
23544 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
23545 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
23546 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
23548 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23549 Marc Glisse <marc.glisse@inria.fr>
23551 PR tree-optimization/60502
23552 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
23553 instead of build_low_bits_mask.
23555 2014-03-12 Jakub Jelinek <jakub@redhat.com>
23557 PR middle-end/60482
23558 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
23559 if there are multiple uses, but op doesn't live on E edge.
23560 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
23561 clobber stmts before __builtin_unreachable.
23563 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
23565 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
23566 hard_frame_pointer_rtx.
23567 * cse.c (cse_insn): Remove volatile check.
23568 * cselib.c (cselib_process_insn): Likewise.
23569 * dse.c (scan_insn): Likewise.
23571 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
23573 * config/arc/arc.c (conditionalize_nonjump): New function,
23575 (arc_ifcvt): ... this.
23576 (arc_predicate_delay_insns): Use it.
23578 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
23580 * config/arc/predicates.md (extend_operand): During/after reload,
23581 allow const_int_operand.
23582 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
23583 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
23584 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
23586 (umulsi3_highpart_i): Likewise.
23588 2014-03-11 Richard Biener <rguenther@suse.de>
23590 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
23591 Add asserts to guard possible wrong-code bugs.
23593 2014-03-11 Richard Biener <rguenther@suse.de>
23595 PR tree-optimization/60429
23596 PR tree-optimization/60485
23597 * tree-ssa-structalias.c (set_union_with_increment): Properly
23598 take into account all fields that overlap the shifted vars.
23599 (do_sd_constraint): Likewise.
23600 (do_ds_constraint): Likewise.
23601 (get_constraint_for_ptr_offset): Likewise.
23603 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
23605 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
23606 (nios2_compute_frame_layout):
23607 Add calculation of cfun->machine->fp_save_offset.
23608 (nios2_expand_prologue): Correct setting of frame pointer register
23610 (nios2_expand_epilogue): Update recovery of stack pointer from
23611 frame pointer accordingly.
23612 (nios2_initial_elimination_offset): Update calculation of offset
23613 for eliminating to HARD_FRAME_POINTER_REGNUM.
23615 2014-03-10 Jakub Jelinek <jakub@redhat.com>
23618 * ipa.c (symtab_remove_unreachable_nodes): Don't call
23619 cgraph_get_create_node on VAR_DECLs.
23621 2014-03-10 Richard Biener <rguenther@suse.de>
23623 PR middle-end/60474
23624 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
23626 2014-03-08 Douglas B Rupp <rupp@gnat.com>
23628 * config/vms/vms.opt (vms_float_format): New variable.
23630 2014-03-08 Tobias Burnus <burnus@net-b.de>
23632 * doc/invoke.texi (-fcilkplus): Update implementation status.
23634 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
23635 Richard Biener <rguenther@suse.de>
23637 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
23638 consistently accross all TUs.
23639 (run_gcc): Enable -fshort-double automatically at link at link-time
23640 and disallow override.
23642 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
23645 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
23646 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
23647 if they can't be used.
23649 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23651 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
23652 for Solaris 11/x86 ld.
23653 * configure: Regenerate.
23655 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23657 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
23658 (LIB_TLS_SPEC): Save as ld_tls_libs.
23659 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
23660 (HAVE_AS_IX86_TLSLDM): New test.
23661 * configure, config.in: Regenerate.
23662 * config/i386/i386.c (legitimize_tls_address): Fall back to
23663 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
23664 cannot support TLS_MODEL_LOCAL_DYNAMIC.
23665 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
23666 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
23668 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
23670 * common.opt (fira-loop-pressure): Mark as optimization.
23672 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
23674 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
23675 an OpenMP mappable type.
23677 2014-03-06 Matthias Klose <doko@ubuntu.com>
23679 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
23680 MULTILIB_OSDIRNAMES is not defined.
23682 2014-03-06 Jakub Jelinek <jakub@redhat.com>
23683 Meador Inge <meadori@codesourcery.com>
23686 * config/arm/arm.c (arm_tls_symbol_p): Remove.
23687 (arm_legitimize_address): Call legitimize_tls_address for any
23688 arm_tls_referenced_p expression, handle constant addend. Call it
23689 before testing for !TARGET_ARM.
23690 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
23692 2014-03-06 Richard Biener <rguenther@suse.de>
23694 PR middle-end/60445
23698 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
23700 * tree-streamer.c (record_common_node): Assert we don't record
23701 nodes with type double.
23702 (preload_common_node): Skip type double, complex double and double
23703 pointer since it is now frontend dependent due to fshort-double option.
23705 2014-03-06 Richard Biener <rguenther@suse.de>
23707 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
23708 or -fno-lto is specified and the linker has full plugin support.
23709 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
23710 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
23711 * lto-wrapper.c (merge_and_complain): Merge compile-time
23712 optimization levels.
23713 (run_gcc): And pass it through to the link options.
23715 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
23719 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23721 * cselib.c (remove_useless_values): Skip to avoid quadratic
23722 behavior if the condition moved from...
23723 (cselib_process_insn): ... here holds.
23725 2014-03-05 Jakub Jelinek <jakub@redhat.com>
23728 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
23729 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
23732 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
23733 (TM_H): Add x86-tune.def.
23735 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23737 * config/aarch64/aarch64.c (generic_tunings):
23738 Use cortexa57_extra_costs.
23740 2014-03-05 Jakub Jelinek <jakub@redhat.com>
23743 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
23744 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
23745 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
23748 2014-03-04 Heiher <r@hev.cc>
23750 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
23751 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
23753 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
23755 * config/i386/predicates.md (const2356_operand): Change to ...
23756 (const2367_operand): ... this.
23757 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
23759 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23760 (*avx512pf_scatterpf<mode>sf): Ditto.
23761 (avx512pf_scatterpf<mode>df): Ditto.
23762 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23763 (*avx512pf_scatterpf<mode>df): Ditto.
23764 * config/i386/i386.c (ix86_expand_builtin): Update
23765 incorrect hint operand error message.
23767 2014-03-04 Richard Biener <rguenther@suse.de>
23769 * lto-section-in.c (lto_get_section_data): Fix const cast.
23771 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
23773 * tree-streamer.c (record_common_node): Assert we don't record
23774 nodes with type double.
23775 (preload_common_node): Skip type double, complex double and double
23776 pointer since it is now frontend dependent due to fshort-double option.
23778 2014-03-04 Richard Biener <rguenther@suse.de>
23781 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
23782 (lto_input_toplevel_asms): Likewise.
23783 * lto-section-in.c (lto_get_section_data): Instead do it here
23786 2014-03-04 Richard Biener <rguenther@suse.de>
23788 PR tree-optimization/60382
23789 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
23790 dead PHIs a reduction.
23792 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
23794 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
23796 (_mm_prefetch): Move out of GCC target("sse") pragma.
23797 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
23798 GCC target("prfchw") pragma.
23799 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
23801 * config/i386/i386.c (ix86_option_override_internal): Enable
23802 -mprfchw with -mprefetchwt1.
23804 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
23806 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
23809 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
23811 * opts.h (CL_PCH_IGNORE): Define.
23812 * targhooks.c (option_affects_pch_p):
23813 Return false for options that have CL_PCH_IGNORE set.
23814 * opt-functions.awk: Process PchIgnore.
23815 * doc/options.texi: Document PchIgnore.
23817 * config/arc/arc.opt (misize): Add PchIgnore property.
23819 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23821 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
23822 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
23823 constraint on constants to permit them being loaded into
23824 GENERAL_REGS or BASE_REGS.
23826 2014-03-03 Nick Clifton <nickc@redhat.com>
23828 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
23829 anti-cacnonical alternatives.
23830 (negandhi3_real): New pattern.
23831 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
23833 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23835 * config/avr/avr-mcus.def: Remove atxmega16x1.
23836 * config/avr/avr-tables.opt: Regenerate.
23837 * config/avr/t-multilib: Regenerate.
23838 * doc/avr-mmcu.texi: Regenerate.
23840 2014-03-03 Tobias Grosser <tobias@grosser.es>
23841 Mircea Namolaru <mircea.namolaru@inria.fr>
23843 PR tree-optimization/58028
23844 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
23847 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23849 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
23850 not handled by recognizers.
23852 2014-03-03 Jakub Jelinek <jakub@redhat.com>
23854 PR middle-end/60175
23855 * function.c (expand_function_end): Don't emit
23856 clobber_return_register sequence if clobber_after is a BARRIER.
23857 * cfgexpand.c (construct_exit_block): Append instructions before
23858 return_label to prev_bb.
23860 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23862 * config/rs6000/constraints.md: Document reserved use of "wc".
23864 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
23867 * ipa.c (function_and_variable_visibility): When dissolving comdat
23868 group, also set all symbols to local.
23870 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
23875 2013-12-14 Jan Hubicka <jh@suse.cz>
23876 PR middle-end/58477
23877 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
23879 2014-03-02 Jon Beniston <jon@beniston.com>
23885 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
23886 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
23887 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
23888 (simple_return, *simple_return): New patterns
23889 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
23890 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
23892 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
23894 * dwarf2out.c (gen_subprogram_die): Tidy.
23896 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
23899 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
23900 (*mov_t_msb_neg_negc): ... this new insn.
23902 2014-02-28 Jason Merrill <jason@redhat.com>
23905 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
23908 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
23911 * dwarf2out.c (decltype_auto_die): New static.
23912 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
23913 (gen_type_die_with_usage): Handle 'decltype(auto)'.
23914 (is_cxx_auto): Likewise.
23916 2014-02-28 Ian Bolton <ian.bolton@arm.com>
23918 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
23919 we are not using general regs only.
23921 2014-02-28 Richard Biener <rguenther@suse.de>
23924 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
23925 previous fix and only allow to remove trivial pre-headers
23926 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
23927 (remove_forwarder_block): Properly update the latch of a loop.
23929 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23932 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
23933 (cselib_preserved_hash_table): New.
23934 (preserve_constants_and_equivs): Move preserved vals to it.
23935 (cselib_find_slot): Look it up first.
23936 (cselib_init): Initialize it.
23937 (cselib_finish): Release it.
23938 (dump_cselib_table): Dump it.
23940 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23943 * cselib.c (remove_useless_values): Skip to avoid quadratic
23944 behavior if the condition moved from...
23945 (cselib_process_insn): ... here holds.
23947 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23950 * var-tracking.c (vt_initialize): Apply the same condition to
23951 preserve the CFA base value.
23953 2014-02-28 Joey Ye <joey.ye@arm.com>
23956 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
23957 if reload in progress or completed.
23959 2014-02-28 Tobias Burnus <burnus@net-b.de>
23961 PR middle-end/60147
23962 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
23965 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
23967 * doc/tm.texi.in (Condition Code Status): Update documention for
23968 relative locations of cc0-setter and cc0-user.
23970 2014-02-27 Jeff Law <law@redhat.com>
23972 PR rtl-optimization/52714
23973 * combine.c (try_combine): When splitting an unrecognized PARALLEL
23974 into two independent simple sets, if I3 is a jump, ensure the
23975 pattern we place into I3 is a (set (pc) ...).
23977 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
23978 Jeff Law <law@redhat.com>
23980 PR rtl-optimization/49847
23981 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
23982 are in different blocks.
23983 * doc/tm.texi (Condition Code Status): Update documention for
23984 relative locations of cc0-setter and cc0-user.
23986 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
23989 * lra.c (lra_emit_add): Check SUBREG too.
23991 2014-02-27 Andreas Schwab <schwab@suse.de>
23993 * config/m68k/m68k.c (m68k_option_override): Disable
23994 -flive-range-shrinkage for classic m68k.
23995 (m68k_override_options_after_change): Likewise.
23997 2014-02-27 Marek Polacek <polacek@redhat.com>
23999 PR middle-end/59223
24000 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24001 -Wmaybe-uninitialized.
24003 2014-02-27 Alan Modra <amodra@gmail.com>
24006 * reload1.c (emit_input_reload_insns): When reload_override_in,
24007 set old to rl->in_reg when rl->in_reg is a subreg.
24009 2014-02-26 Richard Biener <rguenther@suse.de>
24012 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24014 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24016 * common/config/i386/predicates.md (const1256_operand): Remove.
24017 (const2356_operand): New.
24018 (const_1_to_2_operand): Remove.
24019 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24020 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24021 (*avx512pf_gatherpf<mode>sf): Ditto.
24022 (avx512pf_gatherpf<mode>df): Ditto.
24023 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24024 (*avx512pf_gatherpf<mode>df): Ditto.
24025 (avx512pf_scatterpf<mode>sf): Ditto.
24026 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24027 (*avx512pf_scatterpf<mode>sf): Ditto.
24028 (avx512pf_scatterpf<mode>df): Ditto.
24029 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24030 (*avx512pf_scatterpf<mode>df): Ditto.
24031 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24033 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
24035 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24036 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24037 (_mm512_mask_testn_epi64_mask): Move to ...
24038 * config/i386/avx512cdintrin.h: Here.
24039 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24040 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24041 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24042 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24043 TARGET_AVX512F from TARGET_AVX512CD.
24045 2014-02-26 Richard Biener <rguenther@suse.de>
24048 * ipa.c (walk_polymorphic_call_targets): Properly guard
24049 call to inline_update_overall_summary.
24051 2014-02-26 Bin Cheng <bin.cheng@arm.com>
24054 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24055 and latches only if requested. Fix latch if it is removed.
24056 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24057 LOOPS_HAVE_PREHEADERS.
24059 2014-02-25 Andrew Pinski <apinski@cavium.com>
24061 * builtins.c (expand_builtin_thread_pointer): Create a new target
24062 when the target is NULL.
24064 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
24066 PR rtl-optimization/60317
24067 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24068 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24069 * lra-assigns.c: Include params.h.
24070 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
24071 other reload pseudos considerations.
24073 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24075 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
24076 to use canonical form for nor<mode>3.
24078 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24081 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
24084 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
24086 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
24087 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
24088 (ix86_handle_option): Handle OPT_mprefetchwt1.
24089 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
24090 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24092 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24093 OPTION_MASK_ISA_PREFETCHWT1.
24094 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
24095 (PTA_PREFETCHWT1): New.
24096 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
24097 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
24098 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
24099 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
24100 (*prefetch_avx512pf_<mode>_: Change into ...
24101 (*prefetch_prefetchwt1_<mode>: This.
24102 * config/i386/i386.opt (mprefetchwt1): New.
24103 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
24104 (_mm_prefetch): Handle intent to write.
24105 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
24107 2014-02-25 Richard Biener <rguenther@suse.de>
24109 PR middle-end/60291
24110 * emit-rtl.c (mem_attrs_htab): Remove.
24111 (mem_attrs_htab_hash): Likewise.
24112 (mem_attrs_htab_eq): Likewise.
24113 (set_mem_attrs): Always allocate new mem-attrs when something changed.
24114 (init_emit_once): Do not allocate mem_attrs_htab.
24116 2014-02-25 Richard Biener <rguenther@suse.de>
24119 * lto-opts.c (lto_write_options): Output non-explicit conservative
24120 -fwrapv, -fno-trapv and -fno-strict-overflow.
24121 * lto-wrapper.c (merge_and_complain): Handle merging those options.
24122 (run_gcc): And pass them through.
24124 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24126 * sel-sched.c (calculate_new_fences): New parameter ptime.
24127 Calculate it as a maximum over all fence cycles.
24128 (sel_sched_region_2): Adjust the call to calculate_new_fences.
24129 Print the final schedule timing when sched_verbose.
24131 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
24133 PR rtl-optimization/60292
24134 * sel-sched.c (fill_vec_av_set): Do not reset target availability
24135 bit fot the fence instruction.
24137 2014-02-24 Alangi Derick <alangiderick@gmail.com>
24139 * calls.h: Fix typo in comment.
24141 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
24143 * config/pa/pa.c (pa_output_move_double): Don't valididate when
24144 adjusting offsetable addresses.
24146 2014-02-24 Guozhi Wei <carrot@google.com>
24148 * sparseset.h (sparseset_pop): Fix the wrong index.
24150 2014-02-24 Walter Lee <walt@tilera.com>
24152 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
24153 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
24155 * common/config/tilegx/tilegx-common.c
24156 (TARGET_DEFAULT_TARGET_FLAGS): Define.
24157 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
24158 (LINK_SPEC): Ditto.
24159 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
24160 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
24161 (tilegx_gimplify_va_arg_expr): Handle big endian.
24162 (tilegx_expand_unaligned_load): Ditto.
24163 (tilegx_expand_unaligned_store): Ditto.
24164 (TARGET_RETURN_IN_MSB): New.
24165 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
24166 (TARGET_ENDIAN_DEFAULT): New.
24167 (TARGET_BIG_ENDIAN): Handle big endian.
24168 (BYTES_BIG_ENDIAN): Ditto.
24169 (WORDS_BIG_ENDIAN): Ditto.
24170 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
24171 (ENDIAN_SPEC): New.
24172 (EXTRA_SPECS): New.
24173 * config/tilegx/tilegx.md (extv): Handle big endian.
24175 (insn_st<n>): Ditto.
24176 (insn_st<n>_add<bitsuffix>): Ditto.
24177 (insn_stnt<n>): Ditto.
24178 (insn_stnt<n>_add<bitsuffix>):Ditto.
24179 (vec_interleave_highv8qi): Handle big endian.
24180 (vec_interleave_highv8qi_be): New.
24181 (vec_interleave_highv8qi_le): New.
24182 (insn_v1int_h): Handle big endian.
24183 (vec_interleave_lowv8qi): Handle big endian.
24184 (vec_interleave_lowv8qi_be): New.
24185 (vec_interleave_lowv8qi_le): New.
24186 (insn_v1int_l): Handle big endian.
24187 (vec_interleave_highv4hi): Handle big endian.
24188 (vec_interleave_highv4hi_be): New.
24189 (vec_interleave_highv4hi_le): New.
24190 (insn_v2int_h): Handle big endian.
24191 (vec_interleave_lowv4hi): Handle big endian.
24192 (vec_interleave_lowv4hi_be): New.
24193 (vec_interleave_lowv4hi_le): New.
24194 (insn_v2int_l): Handle big endian.
24195 (vec_interleave_highv2si): Handle big endian.
24196 (vec_interleave_highv2si_be): New.
24197 (vec_interleave_highv2si_le): New.
24198 (insn_v4int_h): Handle big endian.
24199 (vec_interleave_lowv2si): Handle big endian.
24200 (vec_interleave_lowv2si_be): New.
24201 (vec_interleave_lowv2si_le): New.
24202 (insn_v4int_l): Handle big endian.
24203 * config/tilegx/tilegx.opt (mbig-endian): New option.
24204 (mlittle-endian): New option.
24205 * doc/install.texi: Document tilegxbe-linux.
24206 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
24208 2014-02-24 Martin Jambor <mjambor@suse.cz>
24211 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
24212 there are no parameter descriptors.
24214 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
24216 PR rtl-optimization/60268
24217 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
24218 initialization to ...
24219 (sched_rgn_init): ... here.
24220 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
24222 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24224 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
24227 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
24229 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
24232 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24234 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
24235 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
24237 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
24239 * config/microblaze/predicates.md: Add cmp_op predicate.
24240 * config/microblaze/microblaze.md: Add branch_compare instruction
24241 which uses cmp_op predicate and emits cmp insn before branch.
24242 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
24243 to microblaze_expand_conditional_branch and consolidate logic.
24244 (microblaze_expand_conditional_branch): emit branch_compare
24245 insn instead of handling cmp op separate from branch insn.
24247 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24249 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
24252 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24254 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
24255 define_insn with define_expand and new define_insn
24256 *altivec_lve<VI_char>x_internal.
24257 (altivec_stve<VI_char>x): Replace define_insn with define_expand
24258 and new define_insn *altivec_stve<VI_char>x_internal.
24259 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
24261 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
24263 (altivec_expand_stvex_be): New function.
24265 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
24267 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
24268 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
24269 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
24270 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
24272 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
24275 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
24276 instead of emit_move_insn.
24278 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24280 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
24281 vspltw with vsldoi.
24282 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
24283 gen_altivec_vsumsws.
24285 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24287 * config/rs6000/altivec.md (altivec_lvxl): Rename as
24288 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
24289 (altivec_lvxl_<mode>): New define_expand incorporating
24290 -maltivec=be semantics where needed.
24291 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
24292 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
24293 semantics where needed.
24294 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
24295 (altivec_stvx_<mode>): New define_expand incorporating
24296 -maltivec=be semantics where needed.
24297 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
24298 VM2 iterator instead of V4SI.
24299 (altivec_stvxl_<mode>): New define_expand incorporating
24300 -maltivec=be semantics where needed.
24301 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
24302 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
24303 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
24304 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
24305 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
24306 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
24307 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
24308 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
24309 ALTIVEC_BUILTIN_STVXL.
24310 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
24311 (altivec_expand_stvx_be): Likewise.
24312 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
24313 (altivec_expand_lvx_be): Likewise.
24314 (altivec_expand_stvx_be): Likewise.
24315 (altivec_expand_builtin): Add cases for
24316 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
24317 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
24318 (altivec_init_builtins): Add definitions for
24319 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
24320 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
24322 2014-02-21 Catherine Moore <clm@codesourcery.com>
24324 * doc/invoke.texi (mvirt, mno-virt): Document.
24325 * config/mips/mips.opt (mvirt): New option.
24326 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
24328 2014-02-21 Richard Biener <rguenther@suse.de>
24330 PR tree-optimization/60276
24331 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
24332 (STMT_VINFO_MIN_NEG_DIST): New macro.
24333 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
24334 STMT_VINFO_MIN_NEG_DIST.
24335 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
24336 made for negative dependence distances still hold.
24338 2014-02-21 Richard Biener <rguenther@suse.de>
24340 PR middle-end/60291
24341 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
24342 DECL_INITIAL for globals not in the current function context.
24344 2014-02-21 Jakub Jelinek <jakub@redhat.com>
24346 PR tree-optimization/56490
24347 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
24348 * tree-ssa-uninit.c: Include params.h.
24349 (compute_control_dep_chain): Add num_calls argument, return false
24350 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
24351 num_calls to recursive call.
24352 (find_predicates): Change dep_chain into normal array,
24353 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
24354 variable and adjust compute_control_dep_chain caller.
24355 (find_def_preds): Likewise.
24357 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
24359 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
24360 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
24362 2014-02-21 Nick Clifton <nickc@redhat.com>
24364 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
24365 (pushhi1): Likewise.
24366 (popqi1): Add mode to pre_dec.
24367 (pophi1): Likewise.
24369 2014-02-21 Jakub Jelinek <jakub@redhat.com>
24371 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
24372 mode for mask of V8SFmode permutation.
24374 2014-02-20 Richard Henderson <rth@redhat.com>
24377 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
24378 a new pseudo for OLDVAL.
24380 2014-02-20 Jakub Jelinek <jakub@redhat.com>
24383 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
24384 gen_reg_rtx if d->testing_p.
24385 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
24386 if d->testing_p and we will certainly return true.
24387 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
24390 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
24392 * emit-rtl.c (gen_reg_rtx): Assert that
24393 crtl->emit.regno_pointer_align_length is non-zero.
24395 2014-02-20 Richard Henderson <rth@redhat.com>
24398 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
24399 on failure the store back into EXPECT.
24401 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
24402 Sandra Loosemore <sandra@codesourcery.com>
24404 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
24405 * config/nios2/nios2.c (nios2_function_profiler): Add
24406 -fPIC (flag_pic == 2) support.
24407 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
24408 (nios2_large_offset_p): New function.
24409 (nios2_unspec_reloc_p): Move up position, update to use
24410 nios2_large_offset_p.
24411 (nios2_unspec_address): Remove function.
24412 (nios2_unspec_offset): New function.
24413 (nios2_large_got_address): New function.
24414 (nios2_got_address): Add large offset support.
24415 (nios2_legitimize_tls_address): Update usage of removed and new
24417 (nios2_symbol_binds_local_p): New function.
24418 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
24419 (nios2_legitimize_address): Update to use nios2_large_offset_p.
24420 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
24421 (nios2_print_operand): Merge H/L processing, add hiadj/lo
24422 processing for (const (unspec ...)).
24423 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
24425 2014-02-20 Richard Biener <rguenther@suse.de>
24427 * tree-cfg.c (replace_uses_by): Mark altered BBs before
24428 doing the substitution.
24429 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
24431 2014-02-20 Martin Jambor <mjambor@suse.cz>
24434 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
24435 info when checking whether lattices are bottom.
24437 2014-02-20 Richard Biener <rguenther@suse.de>
24439 PR middle-end/60221
24440 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
24443 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
24446 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
24447 parameter specifying the scaling.
24448 (inline_call): Update.
24449 (want_inline_recursively): Guard division by zero.
24450 (recursive_inlining): Update.
24451 * ipa-inline.h (clone_inlined_nodes): Update.
24453 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
24456 * config/i386/i386.c (classify_argument): Pass structures of size
24457 64 bytes or less in register.
24459 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
24460 Kirill Yukhin <kirill.yukhin@intel.com>
24462 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
24463 (_mm_rcp28_round_ss): Ditto.
24464 (_mm_rsqrt28_round_sd): Ditto.
24465 (_mm_rsqrt28_round_ss): Ditto.
24466 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
24467 (_mm_rcp14_round_ss): Ditto.
24468 (_mm_rsqrt14_round_sd): Ditto.
24469 (_mm_rsqrt14_round_ss): Ditto.
24470 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
24471 the first input operand, get rid of match_dup.
24472 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
24474 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
24476 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
24477 operand as the first input operand, set type attribute.
24478 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
24479 Set type attribute.
24480 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
24481 operand as the first input operand, set type attribute.
24483 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24485 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
24488 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
24491 * config/i386/i386.c (construct_container): Remove TFmode check
24492 for X86_64_INTEGER_CLASS.
24494 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
24497 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
24498 only when -Wpsabi is enabled.
24500 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
24503 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
24504 passing arrays in registers are the same as for structs, so remove the
24505 special case for them.
24507 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
24509 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
24510 destination type, extract only the valid bits if the source type is not
24511 integral and has a different mode.
24513 2014-02-19 Richard Biener <rguenther@suse.de>
24516 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
24519 2014-02-19 Richard Biener <rguenther@suse.de>
24522 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
24523 (ipa_modify_call_arguments): Emit an argument load explicitely and
24524 preserve virtual SSA form there and for the replacement call.
24525 Do not update SSA form nor free dominance info.
24527 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24529 * ipa.c (function_and_variable_visibility): Also clear WEAK
24530 flag when disolving COMDAT_GROUP.
24532 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24534 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
24535 * ipa-prop.c (ipa_set_jf_known_type): Return early when
24536 not devirtualizing.
24537 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
24538 do more sanity checks.
24539 (detect_type_change): Return true when giving up early.
24540 (compute_complex_assign_jump_func): Fix type parameter of
24541 ipa_set_ancestor_jf.
24542 (compute_complex_ancestor_jump_func): Likewise.
24543 (update_jump_functions_after_inlining): Fix updating of
24545 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
24547 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
24549 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
24550 inline clones when edge disappears.
24552 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
24555 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
24556 Split 64-bit moves into 2 patterns. Do not allow the use of
24557 direct move for TDmode in little endian, since the decimal value
24558 has little endian bytes within a word, but the 64-bit pieces are
24559 ordered in a big endian fashion, and normal subreg's of TDmode are
24561 (mov<mode>_64bit_dm): Likewise.
24562 (movtd_64bit_nodm): Likewise.
24564 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
24566 PR tree-optimization/60174
24567 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
24568 statement of an SSA_NAME that occurs in an abnormal PHI node.
24570 2014-02-18 Jakub Jelinek <jakub@redhat.com>
24573 * final.c (SEEN_BB): Remove.
24574 (SEEN_NOTE, SEEN_EMITTED): Renumber.
24575 (final_scan_insn): Don't force_source_line on second
24576 NOTE_INSN_BASIC_BLOCK.
24578 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
24581 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
24582 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
24583 (type_natural_mode): Warn ABI change when %zmm register is not
24584 available for AVX512F vector value passing.
24586 2014-02-18 Kai Tietz <ktietz@redhat.com>
24589 * config/i386/i386.c (ix86_expand_prologue): Use value in
24590 rax register as displacement when restoring %r10 or %rax.
24591 Fix wrong offset when restoring both registers.
24593 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
24595 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
24596 assertion with conditional return.
24598 2014-02-18 Jakub Jelinek <jakub@redhat.com>
24599 Uros Bizjak <ubizjak@gmail.com>
24602 * config/i386/driver-i386.c (host_detect_local_cpu): If
24603 YMM state is not saved by the OS, also clear has_f16c. Move
24604 CPUID 0x80000001 handling before YMM state saving checking.
24606 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
24608 PR rtl-optimization/58960
24609 * haifa-sched.c (alloc_global_sched_pressure_data): New,
24610 factored out from ...
24611 (sched_init): ... here.
24612 (free_global_sched_pressure_data): New, factored out from ...
24613 (sched_finish): ... here.
24614 * sched-int.h (free_global_sched_pressure_data): Declare.
24615 * sched-rgn.c (nr_regions_initial): New static global.
24616 (haifa_find_rgns): Initialize it.
24617 (schedule_region): Disable sched-pressure for the newly
24620 2014-02-17 Richard Biener <rguenther@suse.de>
24622 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
24623 release SSA defs of pattern stmts.
24625 2014-02-17 Richard Biener <rguenther@suse.de>
24627 * tree-inline.c (expand_call_inline): Release the virtual
24628 operand defined by the call we are about to inline.
24630 2014-02-17 Richard Biener <rguenther@suse.de>
24632 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
24634 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
24635 Ilya Tocar <ilya.tocar@intel.com>
24637 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
24638 arguments order in builtin.
24639 (_mm512_permutexvar_epi64): Ditto.
24640 (_mm512_mask_permutexvar_epi64): Ditto
24641 (_mm512_maskz_permutexvar_epi32): Ditto
24642 (_mm512_permutexvar_epi32): Ditto
24643 (_mm512_mask_permutexvar_epi32): Ditto
24645 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24647 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
24648 (p8_vmrgow): Likewise.
24650 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24652 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
24655 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
24658 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
24659 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
24660 into 64-bit and 32-bit moves. On 64-bit moves, add support for
24661 using direct move instructions on ISA 2.07. Also adjust
24662 instruction length for 64-bit.
24663 (mov<mode>_64bit, TFmode/TDmode): Likewise.
24664 (mov<mode>_32bit, TFmode/TDmode): Likewise.
24666 2014-02-15 Alan Modra <amodra@gmail.com>
24670 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
24671 find_replacement on parts of insn rtl that might be reloaded.
24673 2014-02-15 Richard Biener <rguenther@suse.de>
24675 PR tree-optimization/60183
24676 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
24677 (tree_ssa_phiprop): Calculate and free post-dominators.
24679 2014-02-14 Jeff Law <law@redhat.com>
24681 PR rtl-optimization/60131
24682 * ree.c (get_extended_src_reg): New function.
24683 (combine_reaching_defs): Use it rather than assuming location of REG.
24684 (find_and_remove_re): Verify first operand of extension is
24685 a REG before adding the insns to the copy list.
24687 2014-02-14 Roland McGrath <mcgrathr@google.com>
24689 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
24690 * configure: Regenerated.
24691 * config.in: Regenerated.
24692 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
24693 instead of ASM_SHORT.
24695 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
24696 Richard Earnshaw <rearnsha@arm.com>
24698 PR rtl-optimization/59535
24699 * lra-constraints.c (process_alt_operands): Encourage alternative
24700 when unassigned pseudo class is superset of the alternative class.
24701 (inherit_reload_reg): Don't inherit when optimizing for code size.
24702 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
24703 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
24704 modes not less than 4 for Thumb1.
24706 2014-02-14 Kyle McMartin <kyle@redhat.com>
24709 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
24711 2014-02-14 Richard Biener <rguenther@suse.de>
24713 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
24714 (get_frame_arg): Drop the assert with langhook types_compatible_p.
24715 Do not strip INDIRECT_REFs.
24717 2014-02-14 Richard Biener <rguenther@suse.de>
24720 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
24721 DECL_FUNCTION_SPECIFIC_TARGET.
24722 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
24723 * tree-streamer-out.c (pack_ts_target_option): Remove.
24724 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
24725 (write_ts_function_decl_tree_pointers): Do not stream
24726 DECL_FUNCTION_SPECIFIC_TARGET.
24727 * tree-streamer-in.c (unpack_ts_target_option): Remove.
24728 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
24729 (lto_input_ts_function_decl_tree_pointers): Do not stream
24730 DECL_FUNCTION_SPECIFIC_TARGET.
24732 2014-02-14 Jakub Jelinek <jakub@redhat.com>
24734 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
24735 (get_initial_def_for_induction, vectorizable_induction): Ignore
24736 debug stmts when looking for exit_phi.
24737 (vectorizable_live_operation): Fix up condition.
24739 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
24741 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
24742 nreverse() because it changes the content of original tree list.
24744 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
24746 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
24747 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
24749 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
24751 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
24752 GNU coding standards.
24754 2014-02-13 Jakub Jelinek <jakub@redhat.com>
24757 * dwarf2out.c (gen_subprogram_die): Don't call
24758 add_calling_convention_attribute if subr_die is old_die.
24760 2014-02-13 Sharad Singhai <singhai@google.com>
24762 * doc/optinfo.texi: Fix order of nodes.
24764 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
24766 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
24767 operands[2], not operands[3].
24769 2014-02-13 Richard Biener <rguenther@suse.de>
24772 * doc/install.texi (ISL): Update recommended version to 0.12.2,
24773 mention the possibility of an in-tree build.
24774 (CLooG): Update recommended version to 0.18.1, mention the
24775 possibility of an in-tree build and clarify that the ISL
24776 bundled with CLooG does not work.
24778 2014-02-13 Jakub Jelinek <jakub@redhat.com>
24781 * expr.c (compress_float_constant): If x is a hard register,
24782 extend into a pseudo and then move to x.
24784 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
24786 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
24787 caused by bad second argument to warning_at() with -mhotpatch and
24788 nested functions (e.g. with gfortran).
24790 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
24792 * opts.c (option_name): Remove "enabled by default" rider.
24794 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
24796 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
24798 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
24799 Uros Bizjak <ubizjak@gmail.com>
24802 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
24803 * configure: Regenerated.
24805 2014-02-12 Richard Biener <rguenther@suse.de>
24807 * vec.c (vec_prefix::calculate_allocation): Move as
24808 inline variant to vec.h.
24809 (vec_prefix::calculate_allocation_1): New out-of-line version.
24810 * vec.h (vec_prefix::calculate_allocation_1): Declare.
24811 (vec_prefix::m_has_auto_buf): Rename to ...
24812 (vec_prefix::m_using_auto_storage): ... this.
24813 (vec_prefix::calculate_allocation): Inline the easy cases
24814 and dispatch to calculate_allocation_1 which doesn't need the
24816 (va_heap::reserve): Use gcc_checking_assert.
24817 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
24818 m_using_auto_storage.
24819 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
24821 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
24822 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
24823 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
24825 2014-02-12 Richard Biener <rguenther@suse.de>
24827 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
24828 when we found a dependence.
24830 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
24832 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
24834 (maybe_fold_stmt): ... into this new function.
24835 * omp-low.c (lower_omp): Update comment.
24837 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
24840 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
24843 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
24845 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
24846 identifiers in comments.
24847 (cortexa53_extra_costs): Likewise.
24848 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
24849 (cortexa7_extra_costs): Likewise.
24850 (cortexa12_extra_costs): Likewise.
24851 (cortexa15_extra_costs): Likewise.
24852 (v7m_extra_costs): Likewise.
24854 2014-02-12 Richard Biener <rguenther@suse.de>
24856 PR middle-end/60092
24857 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
24858 of posix_memalign being successful.
24859 (lower_stmt): Restrict lowering of posix_memalign to when
24860 -ftree-bit-ccp is enabled.
24862 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24864 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
24866 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
24868 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
24870 PR rtl-optimization/60116
24871 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
24872 other_insn once the combination has been validated.
24874 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
24877 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
24879 * ipa-devirt.c: Include demangle.h
24880 (odr_violation_reported): New static variable.
24881 (add_type_duplicate): Update odr_violations.
24882 (maybe_record_node): Add completep parameter; update it.
24883 (record_target_from_binfo): Add COMPLETEP parameter;
24884 update it as needed.
24885 (possible_polymorphic_call_targets_1): Likewise.
24886 (struct polymorphic_call_target_d): Add nonconstruction_targets;
24887 rename FINAL to COMPLETE.
24888 (record_targets_from_bases): Sanity check we found the binfo;
24889 fix COMPLETEP updating.
24890 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
24891 parameter, fix computing of COMPLETEP.
24892 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
24893 at LTO time do demangling.
24894 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
24895 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
24897 (gimple_get_virt_method_for_binfo): Likewise.
24898 * gimple-fold.h (gimple_get_virt_method_for_binfo,
24899 gimple_get_virt_method_for_vtable): Update prototypes.
24901 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
24904 * genautomata.c (add_presence_absence): Fix typo with
24905 {final_}presence_list.
24907 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24910 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
24911 for VSX/Altivec vectors that land in GPR registers.
24913 2014-02-11 Richard Henderson <rth@redhat.com>
24914 Jakub Jelinek <jakub@redhat.com>
24917 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
24918 around drhs if type conversion to lacc->type is not useless.
24920 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24922 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
24924 (cortex-a57.cortex-a53): Likewise.
24925 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
24927 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24929 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
24932 2014-02-11 Renlin Li <Renlin.Li@arm.com>
24934 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
24935 add_options_for_arm_vfp3.
24937 2014-02-11 Jeff Law <law@redhat.com>
24939 PR middle-end/54041
24940 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
24941 object with an undesirable mode.
24943 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24946 * config/i386/sol2-9.h: New file.
24947 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
24948 *-*-solaris2.9*): Use it.
24950 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24952 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
24953 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
24955 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24957 * config/microblaze/microblaze.c: Extend mcpu version format
24959 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
24961 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
24963 2014-02-10 Richard Henderson <rth@redhat.com>
24966 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
24967 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
24968 ms-abi vs -mno-accumulate-outgoing-args.
24969 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
24970 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
24973 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
24975 PR middle-end/60080
24976 * cfgexpand.c (expand_asm_operands): Attach source location to
24977 ASM_INPUT rtx objects.
24978 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
24980 2014-02-10 Nick Clifton <nickc@redhat.com>
24982 * config/mn10300/mn10300.c (popcount): New function.
24983 (mn10300_expand_prologue): Include saved registers in stack usage
24986 2014-02-10 Jeff Law <law@redhat.com>
24988 PR middle-end/52306
24989 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
24990 when changing the SET_DEST of a prior insn to avoid an input reload.
24992 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24994 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
24995 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
24996 -mcall-openbsd, or -mcall-linux.
24997 (CC1_ENDIAN_BIG_SPEC): Remove.
24998 (CC1_ENDIAN_LITTLE_SPEC): Remove.
24999 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25000 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25001 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25002 and %cc1_endian_default.
25003 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25005 2014-02-10 Richard Biener <rguenther@suse.de>
25007 PR tree-optimization/60115
25008 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25009 MEM_REF handling. Properly verify that the accesses are not
25010 out of the objects bound.
25012 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25014 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25017 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
25019 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25020 proper constants and fix formatting.
25021 (possible_polymorphic_call_targets): Fix formatting.
25023 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
25024 Ilya Tocar <ilya.tocar@intel.com>
25026 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25027 (_mm512_loadu_epi32): Renamed into...
25028 (_mm512_loadu_si512): This.
25029 (_mm512_storeu_epi32): Renamed into...
25030 (_mm512_storeu_si512): This.
25031 (_mm512_maskz_ceil_ps): Removed.
25032 (_mm512_maskz_ceil_pd): Ditto.
25033 (_mm512_maskz_floor_ps): Ditto.
25034 (_mm512_maskz_floor_pd): Ditto.
25035 (_mm512_floor_round_ps): Ditto.
25036 (_mm512_floor_round_pd): Ditto.
25037 (_mm512_ceil_round_ps): Ditto.
25038 (_mm512_ceil_round_pd): Ditto.
25039 (_mm512_mask_floor_round_ps): Ditto.
25040 (_mm512_mask_floor_round_pd): Ditto.
25041 (_mm512_mask_ceil_round_ps): Ditto.
25042 (_mm512_mask_ceil_round_pd): Ditto.
25043 (_mm512_maskz_floor_round_ps): Ditto.
25044 (_mm512_maskz_floor_round_pd): Ditto.
25045 (_mm512_maskz_ceil_round_ps): Ditto.
25046 (_mm512_maskz_ceil_round_pd): Ditto.
25047 (_mm512_expand_pd): Ditto.
25048 (_mm512_expand_ps): Ditto.
25049 * config/i386/i386.c (ix86_builtins): Remove
25050 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25051 (bdesc_args): Ditto.
25052 * config/i386/predicates.md (const1256_operand): New.
25053 (const_1_to_2_operand): Ditto.
25054 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25055 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25056 (*avx512pf_gatherpf<mode>sf): Ditto.
25057 (avx512pf_gatherpf<mode>df): Ditto.
25058 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25059 (*avx512pf_gatherpf<mode>df): Ditto.
25060 (avx512pf_scatterpf<mode>sf): Ditto.
25061 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25062 (*avx512pf_scatterpf<mode>sf): Ditto.
25063 (avx512pf_scatterpf<mode>df): Ditto.
25064 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25065 (*avx512pf_scatterpf<mode>df): Ditto.
25066 (avx512f_expand<mode>): Removed.
25067 (<shift_insn><mode>3<mask_name>): Change predicate type.
25069 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25071 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
25072 not at the end of datarefs vector use ordered_remove to avoid
25073 reordering datarefs vector.
25076 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
25077 mark local addressable non-static vars as GOVD_PRIVATE
25078 instead of GOVD_LOCAL.
25079 * omp-low.c (lower_omp_for): Move gimple_bind_vars
25080 and BLOCK_VARS of gimple_bind_block to new_stmt rather
25083 PR middle-end/60092
25084 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
25085 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
25086 assume_aligned or alloc_align attributes.
25087 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
25088 arguments. Handle also assume_aligned and alloc_align attributes.
25089 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
25090 calls to functions with assume_aligned or alloc_align attributes.
25091 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
25093 2014-02-08 Terry Guo <terry.guo@arm.com>
25095 * doc/invoke.texi: Document ARM -march=armv7e-m.
25097 2014-02-08 Jakub Jelinek <jakub@redhat.com>
25099 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
25100 flag on __cilkrts_rethrow builtin.
25103 * ipa-cp.c (determine_versionability): Fail at -O0
25104 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
25105 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
25108 2014-02-04 Jakub Jelinek <jakub@redhat.com>
25111 * tree-inline.c (copy_forbidden): Fail for
25112 __attribute__((optimize (0))) functions.
25114 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25116 * varpool.c: Include pointer-set.h.
25117 (varpool_remove_unreferenced_decls): Variables in other partitions
25118 will not be output; be however careful to not lose information
25119 about partitioning.
25121 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
25123 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
25124 lookup in the vtable constructor.
25126 2014-02-07 Jeff Law <law@redhat.com>
25129 * config/m68k/m68k.md (ashldi_extsi): Turn into a
25130 define_insn_and_split.
25132 * ipa-inline.c (inline_small_functions): Fix typos.
25134 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25136 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
25137 (s390_can_use_return_insn): Declare.
25138 * config/s390/s390.h (EPILOGUE_USES): Define.
25139 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
25141 (s390_chunkify_start): Handle return JUMP_LABELs.
25142 (s390_early_mach): Emit a main_pool instruction on the entry edge.
25143 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
25144 (s390_can_use_return_insn): New functions.
25145 (s390_fix_long_loop_prediction): Handle conditional returns.
25146 (TARGET_SET_UP_BY_PROLOGUE): Define.
25147 * config/s390/s390.md (ANY_RETURN): New code iterator.
25148 (*creturn, *csimple_return, return, simple_return): New patterns.
25150 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25152 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
25153 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
25154 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
25155 REG_CFA_RESTORE list when deciding not to restore a register.
25157 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25159 * config/s390/s390.c: Include tree-pass.h and context.h.
25160 (s390_early_mach): New function, split out from...
25161 (s390_emit_prologue): ...here.
25162 (pass_data_s390_early_mach): New pass structure.
25163 (pass_s390_early_mach): New class.
25164 (s390_option_override): Create and register early_mach pass.
25165 Move to end of file.
25167 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25169 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
25170 to match for the exit block.
25172 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25174 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
25175 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
25176 Reject misaligned operands.
25178 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25180 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
25182 2014-02-07 Richard Biener <rguenther@suse.de>
25184 PR middle-end/60092
25185 * gimple-low.c (lower_builtin_posix_memalign): New function.
25186 (lower_stmt): Call it to lower posix_memalign in a way
25187 to make alignment info accessible.
25189 2014-02-07 Jakub Jelinek <jakub@redhat.com>
25192 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
25193 __builtin_setjmp_receiver.
25195 2014-02-07 Richard Biener <rguenther@suse.de>
25197 PR middle-end/60092
25198 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
25199 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
25200 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25201 Handle BUILT_IN_POSIX_MEMALIGN.
25202 (find_func_clobbers): Likewise.
25203 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25204 (call_may_clobber_ref_p_1): Likewise.
25206 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25209 * ipa-devirt.c (record_target_from_binfo): Remove overactive
25212 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25215 * lto-cgraph.c (lto_output_node): Use
25216 symtab_get_symbol_partitioning_class.
25217 (lto_output_varpool_node): likewise.
25218 (symtab_get_symbol_partitioning_class): Move here from
25219 lto/lto-partition.c
25220 * cgraph.h (symbol_partitioning_class): Likewise.
25221 (symtab_get_symbol_partitioning_class): Declare.
25223 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25225 * ggc.h (ggc_internal_cleared_alloc): New macro.
25226 * vec.h (vec_safe_copy): Handle memory stats.
25227 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
25228 * target-globals.c (save_target_globals): Likewise.
25230 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
25233 * expr.c (emit_move_resolve_push): Export; be bit more selective
25234 on when to clear alias set.
25235 * expr.h (emit_move_resolve_push): Declare.
25236 * function.h (struct function): Add tail_call_marked.
25237 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
25238 * config/i386/i386-protos.h (ix86_expand_push): Remove.
25239 * config/i386/i386.md (TImode move expander): De not call
25241 (FP push expanders): Preserve memory attributes.
25242 * config/i386/sse.md (push<mode>1): Remove.
25243 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
25244 (ix86_expand_push): Remove.
25245 * config/i386/mmx.md (push<mode>1): Remove.
25247 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25249 PR rtl-optimization/60030
25250 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
25251 lopart with paradoxical subreg before shifting it up by hprec.
25253 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25255 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
25256 Remove extra newline at end of file.
25257 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
25258 (arm_issue_rate): Handle cortexa57.
25259 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
25260 (cortex-a57.cortex-a53): Likewise.
25262 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25265 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
25266 don't record in REG_FRAME_RELATED_EXPR registers not set in that
25268 (arm_expand_prologue): Adjust all callers.
25269 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
25270 info, registers also at the lowest numbered registers side. Use
25271 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
25275 * var-tracking.c (adjust_mems): Before adding a SET to
25276 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
25278 2014-02-06 Alan Modra <amodra@gmail.com>
25281 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
25282 change SDmode to DDmode when lra_in_progress.
25284 2014-02-06 Jakub Jelinek <jakub@redhat.com>
25286 PR middle-end/59150
25287 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
25288 free_data_ref on the dr first, and before goto again also set dr
25289 to the next dr. For simd_lane_access, free old datarefs[i] before
25290 overwriting it. For get_vectype_for_scalar_type failure, don't
25291 free_data_ref if simd_lane_access.
25293 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
25296 * tree.h (opts_for_fn): New inline function.
25297 (opt_for_fn): Define.
25298 * config/i386/i386.c (ix86_function_regparm): Use
25299 opt_for_fn (decl, optimize) instead of optimize.
25301 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
25303 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
25304 for SYMBOL_REF in large memory model.
25306 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25308 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
25309 and crypto support.
25310 (cortex-a57): Likewise.
25311 (cortex-a57.cortex-a53): Likewise.
25313 2014-02-06 Yury Gribov <y.gribov@samsung.com>
25314 Kugan Vivekanandarajah <kuganv@linaro.org>
25316 * config/arm/arm.c (arm_vector_alignment_reachable): Check
25318 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
25320 2014-02-06 Richard Biener <rguenther@suse.de>
25322 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
25323 set_loop_copy and initialize_original_copy_tables.
25325 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
25327 * config/aarch64/aarch64-simd.md
25328 (aarch64_ashr_simddi): Change QI to SI.
25330 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
25331 Jakub Jelinek <jakub@redhat.com>
25333 PR middle-end/60013
25334 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
25337 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25339 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
25340 CODE_FOR_altivec_vpku[hw]um to
25341 CODE_FOR_altivec_vpku[hw]um_direct.
25342 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
25343 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
25344 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
25345 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
25347 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25349 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
25350 generation for -maltivec=be.
25351 (altivec_vsumsws): Simplify redundant test.
25353 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25355 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
25356 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
25357 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
25358 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
25359 gen_altivec_vpkuwum.
25360 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
25362 (altivec_vpks<VI_char>ss): Likewise.
25363 (altivec_vpks<VI_char>us): Likewise.
25364 (altivec_vpku<VI_char>us): Likewise.
25365 (altivec_vpku<VI_char>um): Likewise.
25366 (altivec_vpku<VI_char>um_direct): New (copy of
25367 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
25369 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
25370 target is little endian and -maltivec=be is not specified.
25371 (*altivec_vupkhs<VU_char>_direct): New (copy of
25372 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
25373 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
25374 target is little endian and -maltivec=be is not specified.
25375 (*altivec_vupkls<VU_char>_direct): New (copy of
25376 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
25377 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
25378 little endian and -maltivec=be is not specified.
25379 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
25380 little endian and -maltivec=be is not specified.
25382 2014-02-05 Richard Henderson <rth@redhat.com>
25385 * combine-stack-adj.c: Revert r206943.
25386 * sched-int.h (struct deps_desc): Add last_args_size.
25387 * sched-deps.c (init_deps): Initialize it.
25388 (sched_analyze_insn): Add OUTPUT dependencies between insns that
25389 contain REG_ARGS_SIZE notes.
25391 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
25393 * lto-cgraph.c (asm_nodes_output): Make global.
25394 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
25395 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
25396 (driver_handle_option): Handle OPT_fwpa.
25398 2014-02-05 Jakub Jelinek <jakub@redhat.com>
25401 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
25402 a comment typo and formatting issue. If odr_hash hasn't been
25403 created, return vNULL and set *completep to false.
25405 PR middle-end/57499
25406 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
25407 bb with no successors.
25409 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
25412 * doc/invoke.texi (-march): Clarify documentation for ARM.
25413 (-mtune): Likewise.
25416 2014-02-05 Richard Biener <rguenther@suse.de>
25418 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
25419 when not vectorizing because of too many alias checks.
25420 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25421 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
25423 2014-02-05 Nick Clifton <nickc@redhat.com>
25425 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
25426 accept extended registers in any mode when compiling for the MN10300.
25428 2014-02-05 Yury Gribov <y.gribov@samsung.com>
25430 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
25431 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
25432 sanitization attributes.
25433 (can_inline_edge_p): Likewise.
25434 (sanitize_attrs_match_for_inline_p): New function.
25436 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25438 * ipa-prop.c (detect_type_change): Shor circuit testing of
25439 type changes on THIS pointer.
25441 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
25444 * config/pa/pa.c (legitimize_tls_address): Return original address
25445 if not passed a SYMBOL_REF rtx.
25446 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
25448 (pa_emit_move_sequence): Simplify TLS source operands.
25449 (pa_legitimate_constant_p): Reject all TLS constants.
25450 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
25451 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
25453 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25455 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
25456 groups when we know they are controlled by LTO.
25457 * varasm.c (default_binds_local_p_1): If object is in other partition,
25458 it will be resolved locally.
25460 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25462 * config/host-linux.c (linux_gt_pch_use_address): Don't
25463 use SSIZE_MAX because it is not always defined.
25465 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
25468 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
25469 threshold for pseudo splitting.
25470 (update_ebb_live_info): Process call argument hard registers and
25471 hard registers from insn definition too.
25472 (max_small_class_regs_num): New constant.
25473 (inherit_in_ebb): Update live hard regs through EBBs. Update
25474 reloads_num only for small register classes. Don't split for
25477 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
25480 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
25483 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
25485 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
25486 visibility is safe.
25488 2014-02-04 Marek Polacek <polacek@redhat.com>
25490 * gdbinit.in (pel): Define.
25492 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25494 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
25497 2014-02-04 Richard Biener <rguenther@suse.de>
25500 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
25501 in function context local.
25502 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
25503 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
25504 similar to LTO_imported_decl_ref.
25506 2014-02-04 Jakub Jelinek <jakub@redhat.com>
25508 PR tree-optimization/60002
25509 * cgraphclones.c (build_function_decl_skip_args): Clear
25510 DECL_LANG_SPECIFIC.
25512 PR tree-optimization/60023
25513 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
25514 false to gsi_replace.
25515 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
25516 has been in some EH region and vec_stmt could throw, add
25517 vec_stmt into the same EH region.
25518 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
25519 has no lhs, ignore it.
25520 * internal-fn.c (expand_MASK_LOAD): Likewise.
25523 * tree-inline.c (copy_forbidden): Fail for
25524 __attribute__((optimize (0))) functions.
25527 * omp-low.c (simd_clone_struct_copy): If from->inbranch
25528 is set, copy one less argument.
25529 (expand_simd_clones): Don't subtract clone_info->inbranch
25530 from simd_clone_struct_alloc argument.
25532 PR rtl-optimization/57915
25533 * recog.c (simplify_while_replacing): If all unary/binary/relational
25534 operation arguments are constant, attempt to simplify those.
25536 PR middle-end/59261
25537 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
25538 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
25540 2014-02-04 Richard Biener <rguenther@suse.de>
25542 PR tree-optimization/60012
25543 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
25544 TBAA disambiguation to all DDRs.
25546 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25549 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
25550 (LINK_SPEC): Use it for -shared, -shared-libgcc.
25552 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25555 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
25557 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25559 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
25560 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
25562 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25565 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
25566 to figure out targets of polymorphic calls with known decl.
25567 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25568 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
25569 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
25570 (get_polymorphic_call_info): ... here.
25571 (get_polymorphic_call_info_from_invariant): New function.
25573 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25575 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
25576 lookup via vtable pointer; check for type consistency
25577 and turn inconsitent facts into UNREACHABLE.
25578 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25579 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
25580 type inconsistent querries; return UNREACHABLE instead.
25582 2014-02-03 Richard Henderson <rth@twiddle.net>
25585 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
25586 already processed this node.
25587 (normalize_one_pred_1): Pass along mark_set.
25588 (normalize_one_pred): Create and destroy a pointer_set_t.
25589 (normalize_one_pred_chain): Likewise.
25591 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
25593 PR gcov-profile/58602
25594 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
25596 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
25599 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
25600 -fno-devirtualize; try to devirtualize by the knowledge of
25601 virtual table pointer given by aggregate propagation.
25602 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25603 (ipa_print_node_jump_functions): Dump also offset that
25604 is relevant for polymorphic calls.
25605 (determine_known_aggregate_parts): Add arg_type parameter; use it
25606 instead of determining the type from pointer type.
25607 (ipa_compute_jump_functions_for_edge): Update call of
25608 determine_known_aggregate_parts.
25609 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
25610 (gimple_get_virt_method_for_binfo): ... here; simplify using
25611 vtable_pointer_value_to_vtable.
25612 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
25613 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
25614 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
25615 (vtable_pointer_value_to_vtable): Break out from ...; handle also
25617 (vtable_pointer_value_to_binfo): ... here.
25618 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
25620 2014-02-03 Teresa Johnson <tejohnson@google.com>
25622 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
25623 redef of outer loop index variable.
25625 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
25629 * doc/extend.texi (Function Attributes): Typo.
25631 2014-02-03 Cong Hou <congh@google.com>
25633 PR tree-optimization/60000
25634 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
25635 if the vectorized statement is a store. A store statement can only
25636 appear at the end of pattern statements.
25638 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
25640 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
25641 (ix86_option_override_internal): Default long double to 64-bit for
25642 32-bit Bionic and to 128-bit for 64-bit Bionic.
25644 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
25645 TARGET_LONG_DOUBLE_128 is true.
25646 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25648 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
25649 (mlong-double-64): Negate -mlong-double-128.
25650 (mlong-double-128): New option.
25652 * config/i386/i386-c.c (ix86_target_macros): Define
25653 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
25655 * doc/invoke.texi: Document -mlong-double-128.
25657 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
25659 PR rtl-optimization/60024
25660 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
25662 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
25664 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
25666 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
25668 PR rtl-optimization/57662
25669 * sel-sched.c (code_motion_path_driver): Do not mark already not
25670 existing blocks in the visiting bitmap.
25672 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
25674 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
25675 on the insn being emitted.
25677 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
25678 Will Deacon <will.deacon@arm.com>
25680 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
25682 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25684 * config/arm/arm-tables.opt: Regenerate.
25686 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25688 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
25689 for vector types other than V16QImode.
25690 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
25691 define_expand, and call altivec_expand_vec_perm_le when producing
25692 code with little endian element order.
25693 (*altivec_vperm_<mode>_internal): New insn having previous
25694 behavior of altivec_vperm_<mode>.
25695 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
25696 altivec_expand_vec_perm_le when producing code with little endian
25698 (*altivec_vperm_<mode>_uns_internal): New insn having previous
25699 behavior of altivec_vperm_<mode>_uns.
25701 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25703 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
25704 (altivec_vsumsws): Add handling for -maltivec=be with a little
25706 (altivec_vsumsws_direct): New.
25707 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
25708 gen_altivec_vsumsws.
25710 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
25712 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
25713 vtable_pointer_value_to_binfo): New functions.
25714 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
25715 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
25717 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
25719 * config/nios2/nios2.md (load_got_register): Initialize GOT
25720 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
25721 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
25723 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
25725 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
25726 preserverd by passthrough, do not propagate the type.
25728 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25730 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
25731 (mips_atomic_assign_expand_fenv): New function.
25732 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
25734 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25736 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
25737 (__builtin_mips_set_fcsr): Likewise.
25738 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
25739 MIPS_USI_FTYPE_VOID.
25740 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
25741 (mips16_expand_set_fcsr): Likewise.
25742 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
25743 (mips16_set_fcsr_stub): Likewise.
25744 (mips16_get_fcsr_one_only_stub): New class.
25745 (mips16_set_fcsr_one_only_stub): Likewise.
25746 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
25747 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
25748 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
25749 (hard_float): New availability predicate.
25750 (mips_builtins): Add get_fcsr and set_fcsr.
25751 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
25752 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
25753 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
25754 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
25755 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
25758 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25760 * config/mips/mips.c (mips_one_only_stub): New class.
25761 (mips_need_mips16_rdhwr_p): Replace with...
25762 (mips16_rdhwr_stub): ...this new variable.
25763 (mips16_stub_call_address): New function.
25764 (mips16_rdhwr_one_only_stub): New class.
25765 (mips_expand_thread_pointer): Use mips16_stub_call_address.
25766 (mips_output_mips16_rdhwr): Delete.
25767 (mips_finish_stub): New function.
25768 (mips_code_end): Use it to handle rdhwr stubs.
25770 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
25773 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
25774 when calculating size of integer atomic types.
25776 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
25778 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
25780 2014-02-01 Jakub Jelinek <jakub@redhat.com>
25782 PR tree-optimization/60003
25783 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
25784 * profile.c (branch_prob): Use gimple_call_builtin_p
25785 to check for BUILT_IN_SETJMP_RECEIVER.
25786 * tree-inline.c (copy_bb): Call notice_special_calls.
25788 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
25791 * lra-constraints.c (process_alt_operands): Update reload_sum only
25794 2014-01-31 Richard Henderson <rth@redhat.com>
25796 PR middle-end/60004
25797 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
25798 until after else_eh is processed.
25800 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
25802 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
25803 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
25804 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
25805 in smmintrin.h, remove them.
25806 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
25807 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
25808 * config/i386/i386.md (ROUND_SAE): Fix value.
25809 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
25810 (const48_operand): New.
25811 * config/i386/subst.md (round), (round_expand): Use
25812 const_4_or_8_to_11_operand.
25813 (round_saeonly), (round_saeonly_expand): Use const48_operand.
25815 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
25817 * config/i386/constraints.md (Yk): Swap meaning with k.
25818 * config/i386/i386.md (movhi_internal): Change Yk to k.
25819 (movqi_internal): Ditto.
25820 (*k<logic><mode>): Ditto.
25823 (kandn<mode>): Ditto.
25824 (*<code>hi_1): Ditto.
25825 (*<code>qi_1): Ditto.
25826 (kxnor<mode>): Ditto.
25827 (kortestzhi): Ditto.
25828 (kortestchi): Ditto.
25830 (*one_cmplhi2_1): Ditto.
25831 (*one_cmplqi2_1): Ditto.
25832 * config/i386/sse.md (): Change k to Yk.
25833 (avx512f_load<mode>_mask): Ditto.
25834 (avx512f_blendm<mode>): Ditto.
25835 (avx512f_store<mode>_mask): Ditto.
25836 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
25837 (avx512f_storedqu<mode>_mask): Ditto.
25838 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
25840 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
25841 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
25842 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
25843 (avx512f_maskcmp<mode>3): Ditto.
25844 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
25845 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
25846 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
25847 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
25848 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
25849 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
25850 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
25851 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
25852 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
25853 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
25854 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
25855 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
25856 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
25857 (vec_extract_lo_<mode>_maskm): Ditto.
25858 (vec_extract_hi_<mode>_maskm): Ditto.
25859 (avx512f_vternlog<mode>_mask): Ditto.
25860 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
25861 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
25862 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
25863 (avx512f_<code>v8div16qi2_mask): Ditto.
25864 (avx512f_<code>v8div16qi2_mask_store): Ditto.
25865 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
25866 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
25867 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
25868 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
25869 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25870 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25871 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25872 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25873 (avx512cd_maskb_vec_dupv8di): Ditto.
25874 (avx512cd_maskw_vec_dupv16si): Ditto.
25875 (avx512f_vpermi2var<mode>3_maskz): Ditto.
25876 (avx512f_vpermi2var<mode>3_mask): Ditto.
25877 (avx512f_vpermi2var<mode>3_mask): Ditto.
25878 (avx512f_vpermt2var<mode>3_maskz): Ditto.
25879 (*avx512f_gathersi<mode>): Ditto.
25880 (*avx512f_gathersi<mode>_2): Ditto.
25881 (*avx512f_gatherdi<mode>): Ditto.
25882 (*avx512f_gatherdi<mode>_2): Ditto.
25883 (*avx512f_scattersi<mode>): Ditto.
25884 (*avx512f_scatterdi<mode>): Ditto.
25885 (avx512f_compress<mode>_mask): Ditto.
25886 (avx512f_compressstore<mode>_mask): Ditto.
25887 (avx512f_expand<mode>_mask): Ditto.
25888 * config/i386/subst.md (mask): Change k to Yk.
25889 (mask_scalar_merge): Ditto.
25892 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
25894 * doc/extend.texi (Vector Extensions): Document ?: in C++.
25896 2014-01-31 Richard Biener <rguenther@suse.de>
25898 PR middle-end/59990
25899 * builtins.c (fold_builtin_memory_op): Make sure to not
25900 use a floating-point mode or a boolean or enumeral type for
25901 the copy operation.
25903 2014-01-30 DJ Delorie <dj@redhat.com>
25905 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
25906 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
25907 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
25908 whenever main() has an epilogue.
25910 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25912 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
25913 unused variable "field".
25914 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
25915 (vsx_mergeh_<mode>): Likewise.
25916 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
25917 (altivec_vmrghh): Likewise.
25918 (altivec_vmrghw): Likewise.
25919 (altivec_vmrglb): Likewise.
25920 (altivec_vmrglh): Likewise.
25921 (altivec_vmrglw): Likewise.
25922 (altivec_vspltb): Add missing uses.
25923 (altivec_vsplth): Likewise.
25924 (altivec_vspltw): Likewise.
25925 (altivec_vspltsf): Likewise.
25927 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25930 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
25931 frame related instructions.
25933 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
25935 PR rtl-optimization/59959
25936 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
25937 any reload of register whose subreg is invalid.
25939 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25941 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
25942 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
25943 Add missing return type - void.
25945 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25947 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
25948 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
25949 remove element index adjustment for endian (now handled in vsx.md
25951 (altivec_expand_vec_perm_const): Use
25952 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
25953 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
25954 (vsx_xxspltw_<mode>): Adjust element index for little endian.
25955 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
25956 define_expand and a new define_insn *altivec_vspltb_internal;
25957 adjust for -maltivec=be on a little endian target.
25958 (altivec_vspltb_direct): New.
25959 (altivec_vsplth): Divide into a define_expand and a new
25960 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
25961 little endian target.
25962 (altivec_vsplth_direct): New.
25963 (altivec_vspltw): Divide into a define_expand and a new
25964 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
25965 little endian target.
25966 (altivec_vspltw_direct): New.
25967 (altivec_vspltsf): Divide into a define_expand and a new
25968 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
25969 a little endian target.
25971 2014-01-30 Richard Biener <rguenther@suse.de>
25973 PR tree-optimization/59993
25974 * tree-ssa-forwprop.c (associate_pointerplus): Check we
25975 can propagate form the earlier stmt and avoid the transform
25976 when the intermediate result is needed.
25978 2014-01-30 Alangi Derick <alangiderick@gmail.com>
25980 * README.Portability: Fix typo.
25982 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
25984 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
25985 comparison_operator with ordered_comparison_operator.
25987 2014-01-30 Nick Clifton <nickc@redhat.com>
25989 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
25990 Rename to mn10300_store_multiple_regs.
25991 * config/mn10300/mn10300.c: Likewise.
25992 * config/mn10300/mn10300.md (store_movm): Fix typo: call
25993 store_multiple_regs.
25994 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
25995 Call mn10300_store_multiple_regs.
25997 2014-01-30 Nick Clifton <nickc@redhat.com>
25998 DJ Delorie <dj@redhat.com>
26000 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26001 %fp 2 to keep registers after it properly word-aligned.
26002 (rl78_alloc_physical_registers_umul): Handle the case where both
26003 input operands are the same.
26005 2014-01-30 Richard Biener <rguenther@suse.de>
26007 PR tree-optimization/59903
26008 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26011 2014-01-30 Jason Merrill <jason@redhat.com>
26014 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26017 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26019 2014-01-30 Richard Biener <rguenther@suse.de>
26021 PR tree-optimization/59951
26022 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26024 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
26027 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26028 SFmode to DFmode case.
26030 2014-01-29 DJ Delorie <dj@redhat.com>
26032 * config/msp430/msp430.opt (-minrt): New.
26033 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26035 (ENDFILE_SPEC): Likewise.
26037 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
26039 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26040 (estimate_function_body_sizes): Use it.
26042 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
26045 * dwarf2out.c (is_cxx_auto): New.
26046 (is_base_type): Use it.
26047 (gen_type_die_with_usage): Likewise.
26049 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26051 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
26052 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26053 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26054 -maltivec=be with LE targets.
26055 (vsx_mergeh_<mode>): Likewise.
26056 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26057 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26058 (altivec_vmrghb): Replace with define_expand and new
26059 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26060 (altivec_vmrghb_direct): New define_insn.
26061 (altivec_vmrghh): Replace with define_expand and new
26062 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26063 (altivec_vmrghh_direct): New define_insn.
26064 (altivec_vmrghw): Replace with define_expand and new
26065 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26066 (altivec_vmrghw_direct): New define_insn.
26067 (*altivec_vmrghsf): Adjust for endianness.
26068 (altivec_vmrglb): Replace with define_expand and new
26069 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
26070 (altivec_vmrglb_direct): New define_insn.
26071 (altivec_vmrglh): Replace with define_expand and new
26072 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
26073 (altivec_vmrglh_direct): New define_insn.
26074 (altivec_vmrglw): Replace with define_expand and new
26075 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
26076 (altivec_vmrglw_direct): New define_insn.
26077 (*altivec_vmrglsf): Adjust for endianness.
26078 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26079 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26080 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26081 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26082 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26083 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26084 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26085 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26087 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
26089 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
26090 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
26093 2014-01-29 Richard Biener <rguenther@suse.de>
26095 PR tree-optimization/58742
26096 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
26097 associate_pointerplus_align.
26098 (associate_pointerplus_diff): New function.
26099 (associate_pointerplus): Likewise. Call associate_pointerplus_align
26100 and associate_pointerplus_diff.
26102 2014-01-29 Richard Biener <rguenther@suse.de>
26104 * lto-streamer.h (LTO_major_version): Bump to 3.
26105 (LTO_minor_version): Reset to 0.
26107 2014-01-29 Renlin Li <Renlin.Li@arm.com>
26109 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
26110 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
26111 (arm_file_start): Generate correct asm header for armv7ve.
26112 * config/arm/bpabi.h: Add multilib support for armv7ve.
26113 * config/arm/driver-arm.c: Change the architectures of cortex-a7
26114 and cortex-a15 to armv7ve.
26115 * config/arm/t-aprofile: Add multilib support for armv7ve.
26116 * doc/invoke.texi: Document -march=armv7ve.
26118 2014-01-29 Richard Biener <rguenther@suse.de>
26120 PR tree-optimization/58742
26121 * tree-ssa-forwprop.c (associate_plusminus): Return true
26122 if we changed sth, defer EH cleanup to ...
26123 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
26124 (simplify_mult): New function.
26126 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26128 PR middle-end/59917
26129 PR tree-optimization/59920
26130 * tree.c (build_common_builtin_nodes): Remove
26131 __builtin_setjmp_dispatcher initialization.
26132 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
26133 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
26134 instead of gsi_after_labels + manually skipping debug stmts.
26135 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
26136 ignore bbs with IFN_ABNORMAL_DISPATCHER.
26137 * tree-inline.c (copy_edges_for_bb): Remove
26138 can_make_abnormal_goto argument, instead add abnormal_goto_dest
26139 argument. Ignore computed_goto_p stmts. Don't call
26140 make_abnormal_goto_edges. If a call might need abnormal edges
26141 for non-local gotos, see if it already has an edge to
26142 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
26143 with true argument, don't do anything then, otherwise add
26144 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
26145 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
26147 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
26148 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
26149 (lower_stmt): Don't set data->calls_builtin_setjmp.
26150 (lower_builtin_setjmp): Adjust comment.
26151 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
26152 * tree-cfg.c (found_computed_goto): Remove.
26153 (factor_computed_gotos): Remove.
26154 (make_goto_expr_edges): Return bool, true for computed gotos.
26155 Don't call make_abnormal_goto_edges.
26156 (build_gimple_cfg): Don't set found_computed_goto, don't call
26157 factor_computed_gotos.
26158 (computed_goto_p): No longer static.
26159 (make_blocks): Don't set found_computed_goto.
26160 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
26161 (make_edges): If make_goto_expr_edges returns true, push bb
26162 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
26163 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
26164 vector. Record mapping between bbs and OpenMP regions if there
26165 are any, adjust make_gimple_omp_edges caller. Call
26166 handle_abnormal_edges.
26167 (make_abnormal_goto_edges): Remove.
26168 * tree-cfg.h (make_abnormal_goto_edges): Remove.
26169 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
26170 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
26171 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
26172 * internal-fn.def (ABNORMAL_DISPATCHER): New.
26173 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
26174 filling *region also set *region_idx to (*region)->entry->index.
26177 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
26178 For REGs set ORIGINAL_REGNO.
26180 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
26182 * doc/md.texi: Mention that a target shouldn't implement
26183 vec_widen_(s|u)mul_even/odd pair if it is less efficient
26186 2014-01-29 Jakub Jelinek <jakub@redhat.com>
26188 PR tree-optimization/59594
26189 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
26190 a copy of the datarefs vector rather than the vector itself.
26192 2014-01-28 Jason Merrill <jason@redhat.com>
26195 * dwarf2out.c (auto_die): New static.
26196 (gen_type_die_with_usage): Handle C++1y 'auto'.
26197 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
26200 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
26203 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
26204 (SPEC_X32): Likewise.
26205 (SPEC_64): Likewise.
26206 * config/i386/i386.c (ix86_option_override_internal): Turn off
26207 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
26209 (x86_file_start): Output .code16gcc for TARGET_16BIT.
26210 * config/i386/i386.h (TARGET_16BIT): New macro.
26211 (TARGET_16BIT_P): Likewise.
26212 * config/i386/i386.opt: Add m16.
26213 * doc/invoke.texi: Document -m16.
26215 2014-01-28 Jakub Jelinek <jakub@redhat.com>
26217 PR preprocessor/59935
26218 * input.c (location_get_source_line): Bail out on when line number
26219 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
26221 2014-01-28 Richard Biener <rguenther@suse.de>
26223 PR tree-optimization/58742
26224 * tree-ssa-forwprop.c (associate_plusminus): Handle
26225 pointer subtraction of the form (T)(P + A) - (T)P.
26227 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26229 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
26232 2014-01-28 Richard Biener <rguenther@suse.de>
26235 2014-01-28 Richard Biener <rguenther@suse.de>
26237 PR rtl-optimization/45364
26238 PR rtl-optimization/59890
26239 * var-tracking.c (local_get_addr_clear_given_value): Handle
26240 already cleared slot.
26241 (val_reset): Handle not allocated local_get_addr_cache.
26242 (vt_find_locations): Use post-order on the inverted CFG.
26244 2014-01-28 Richard Biener <rguenther@suse.de>
26246 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
26248 2014-01-28 Richard Biener <rguenther@suse.de>
26250 PR rtl-optimization/45364
26251 PR rtl-optimization/59890
26252 * var-tracking.c (local_get_addr_clear_given_value): Handle
26253 already cleared slot.
26254 (val_reset): Handle not allocated local_get_addr_cache.
26255 (vt_find_locations): Use post-order on the inverted CFG.
26257 2014-01-28 Alan Modra <amodra@gmail.com>
26259 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
26260 * configure.ac <recursive call for build != host>: Define
26261 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
26262 and LD_FOR_BUILD too.
26263 * configure: Regenerate.
26265 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
26267 * config/i386/i386.c (get_builtin_code_for_version): Separate
26268 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
26269 Broadwell from Haswell.
26271 2014-01-27 Steve Ellcey <sellcey@mips.com>
26273 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26274 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
26275 * config/mips/mips.c (mips_option_override): Change setting
26277 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
26278 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
26279 Change from Mask to Var.
26281 2014-01-27 Jeff Law <law@redhat.com>
26283 * ipa-inline.c (inline_small_functions): Fix typo.
26285 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
26287 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
26288 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
26289 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
26290 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
26291 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
26292 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
26293 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
26294 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
26295 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
26296 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
26297 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
26298 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
26299 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
26300 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
26301 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
26302 (_mm512_storeu_epi64): Ditto.
26303 (_mm512_cmpge_epi32_mask): Ditto.
26304 (_mm512_cmpge_epu32_mask): Ditto.
26305 (_mm512_cmpge_epi64_mask): Ditto.
26306 (_mm512_cmpge_epu64_mask): Ditto.
26307 (_mm512_cmple_epi32_mask): Ditto.
26308 (_mm512_cmple_epu32_mask): Ditto.
26309 (_mm512_cmple_epi64_mask): Ditto.
26310 (_mm512_cmple_epu64_mask): Ditto.
26311 (_mm512_cmplt_epi32_mask): Ditto.
26312 (_mm512_cmplt_epu32_mask): Ditto.
26313 (_mm512_cmplt_epi64_mask): Ditto.
26314 (_mm512_cmplt_epu64_mask): Ditto.
26315 (_mm512_cmpneq_epi32_mask): Ditto.
26316 (_mm512_cmpneq_epu32_mask): Ditto.
26317 (_mm512_cmpneq_epi64_mask): Ditto.
26318 (_mm512_cmpneq_epu64_mask): Ditto.
26319 (_mm512_expand_pd): Ditto.
26320 (_mm512_expand_ps): Ditto.
26321 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
26322 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
26323 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
26324 * config/i386/i386.c (ix86_builtins): Add
26325 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
26326 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
26327 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
26328 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
26329 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
26330 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
26331 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
26332 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
26333 IX86_BUILTIN_PMOVUSQW512_MEM.
26334 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
26335 __builtin_ia32_pmovsqd512mem_mask,
26336 __builtin_ia32_pmovqd512mem_mask,
26337 __builtin_ia32_pmovusqw512mem_mask,
26338 __builtin_ia32_pmovsqw512mem_mask,
26339 __builtin_ia32_pmovqw512mem_mask,
26340 __builtin_ia32_pmovusdw512mem_mask,
26341 __builtin_ia32_pmovsdw512mem_mask,
26342 __builtin_ia32_pmovdw512mem_mask,
26343 __builtin_ia32_pmovqb512mem_mask,
26344 __builtin_ia32_pmovusqb512mem_mask,
26345 __builtin_ia32_pmovsqb512mem_mask,
26346 __builtin_ia32_pmovusdb512mem_mask,
26347 __builtin_ia32_pmovsdb512mem_mask,
26348 __builtin_ia32_pmovdb512mem_mask.
26349 (bdesc_args): Add __builtin_ia32_expanddf512,
26350 __builtin_ia32_expandsf512.
26351 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
26352 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
26353 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
26354 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
26355 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
26356 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
26357 (avx512f_<code>v8div16qi2_mask_store): This.
26358 (avx512f_expand<mode>): New.
26360 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
26362 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
26364 (_mm512_mask_prefetch_i64gather_pd): Ditto.
26365 (_mm512_prefetch_i32scatter_pd): Ditto.
26366 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
26367 (_mm512_prefetch_i64scatter_pd): Ditto.
26368 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
26369 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
26370 (_mm512_mask_prefetch_i64gather_ps): Ditto.
26371 (_mm512_prefetch_i32scatter_ps): Ditto.
26372 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
26373 (_mm512_prefetch_i64scatter_ps): Ditto.
26374 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
26375 * config/i386/i386-builtin-types.def: Define
26376 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
26377 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
26378 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
26379 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
26380 IX86_BUILTIN_SCATTERPFQPD.
26381 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
26382 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
26383 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
26384 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
26385 __builtin_ia32_scatterpfqps.
26386 (ix86_expand_builtin): Expand new built-ins.
26387 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
26388 fix memory access data type.
26389 (*avx512pf_gatherpf<mode>_mask): Ditto.
26390 (*avx512pf_gatherpf<mode>): Ditto.
26391 (avx512pf_scatterpf<mode>): Ditto.
26392 (*avx512pf_scatterpf<mode>_mask): Ditto.
26393 (*avx512pf_scatterpf<mode>): Ditto.
26394 (GATHER_SCATTER_SF_MEM_MODE): New.
26395 (avx512pf_gatherpf<mode>df): Ditto.
26396 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26397 (*avx512pf_scatterpf<mode>df): Ditto.
26399 2014-01-27 Jakub Jelinek <jakub@redhat.com>
26402 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
26403 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
26406 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
26408 * common/config/arm/arm-common.c
26409 (arm_rewrite_mcpu): Handle multiple names.
26411 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26413 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
26415 * gimple-builder.h (create_gimple_tmp): Delete.
26417 2014-01-27 Christian Bruel <christian.bruel@st.com>
26419 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
26422 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
26424 * config/pa/pa.md (call): Generate indirect long calls to non-local
26425 functions when outputing 32-bit code.
26426 (call_value): Likewise except for special call to buggy powf function.
26428 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
26429 portable runtime and PIC indirect calls.
26430 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
26431 and PIC call sequences. Use ldo instead of blr to set return register
26432 in PIC call sequence.
26434 2014-01-25 Walter Lee <walt@tilera.com>
26436 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
26437 avoid clobbering a live register.
26439 2014-01-25 Walter Lee <walt@tilera.com>
26441 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
26442 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
26443 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
26444 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
26446 2014-01-25 Walter Lee <walt@tilera.com>
26448 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
26449 arguments on even registers.
26450 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
26452 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
26453 (BIGGEST_ALIGNMENT): Ditto.
26454 (BIGGEST_FIELD_ALIGNMENT): Ditto.
26456 2014-01-25 Walter Lee <walt@tilera.com>
26458 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
26459 insns before bundling.
26460 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
26462 2014-01-25 Walter Lee <walt@tilera.com>
26464 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
26465 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
26466 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
26468 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
26470 * config/mips/constraints.md (kl): Delete.
26471 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
26472 define expands, using...
26473 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
26474 instructions for MIPS16.
26475 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
26476 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
26478 2014-01-25 Walter Lee <walt@tilera.com>
26480 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
26484 2014-01-25 Walter Lee <walt@tilera.com>
26486 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
26487 (TARGET_EXPAND_TO_RTL_HOOK): Define.
26489 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
26491 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
26494 2014-01-25 Jakub Jelinek <jakub@redhat.com>
26496 * print-rtl.c (in_call_function_usage): New var.
26497 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
26498 EXPR_LIST mode as mode and not as reg note name.
26500 PR middle-end/59561
26501 * cfgloopmanip.c (copy_loop_info): If
26502 loop->warned_aggressive_loop_optimizations, make sure
26503 the flag is set in target loop too.
26505 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
26507 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
26509 * builtins.def: Likewise.
26510 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
26511 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
26512 * ira.c (ira_setup_eliminable_regset): Likewise.
26513 * omp-low.c (gate_expand_omp): Likewise.
26514 (execute_lower_omp): Likewise.
26515 (diagnose_sb_0): Likewise.
26516 (gate_diagnose_omp_blocks): Likewise.
26517 (simd_clone_clauses_extract): Likewise.
26520 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26522 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
26523 correction for little endian...
26524 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
26527 2014-01-24 Jeff Law <law@redhat.com>
26529 PR tree-optimization/59919
26530 * tree-vrp.c (find_assert_locations_1): Do not register asserts
26531 for non-returning calls.
26533 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
26535 * common/config/aarch64/aarch64-common.c
26536 (aarch64_rewrite_mcpu): Handle multiple names.
26537 * config/aarch64/aarch64.h
26538 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26540 2014-01-24 Dodji Seketeli <dodji@redhat.com>
26542 * input.c (add_file_to_cache_tab): Handle the case where fopen
26545 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
26548 * config/i386/i386.md (pushsf splitter): Get stack adjustment
26549 from push operand if code of push isn't PRE_DEC.
26551 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
26554 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
26555 -mquad-memory-atomic. Update -mquad-memory documentation to say
26556 it is only used for non-atomic loads/stores.
26558 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
26559 -mquad-memory or -mquad-memory-atomic switches.
26561 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
26562 -mquad-memory-atomic to ISA 2.07 support.
26564 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
26565 to separate support of normal quad word memory operations (ldq, stq)
26566 from the atomic quad word memory operations.
26568 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
26569 support to separate non-atomic quad word operations from atomic
26570 quad word operations. Disable non-atomic quad word operations in
26571 little endian mode so that we don't have to swap words after the
26572 load and before the store.
26573 (quad_load_store_p): Add comment about atomic quad word support.
26574 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
26575 options printed with -mdebug=reg.
26577 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
26578 -mquad-memory-atomic as the test for whether we have quad word
26579 atomic instructions.
26580 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
26581 or -mp8-vector are used, allow byte/half-word atomic operations.
26583 * config/rs6000/sync.md (load_lockedti): Insure that the address
26584 is a proper indexed or indirect address for the lqarx instruction.
26585 On little endian systems, swap the hi/lo registers after the lqarx
26587 (load_lockedpti): Use indexed_or_indirect_operand predicate to
26588 insure the address is valid for the lqarx instruction.
26589 (store_conditionalti): Insure that the address is a proper indexed
26590 or indirect address for the stqcrx. instruction. On little endian
26591 systems, swap the hi/lo registers before doing the stqcrx.
26593 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
26594 insure the address is valid for the stqcrx. instruction.
26596 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26597 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
26598 type of quad memory support is available.
26600 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
26602 PR regression/59915
26603 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
26604 there is a danger of looping.
26606 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
26608 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26609 force flag_ira_loop_pressure if set via command line.
26611 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
26613 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
26614 (ashr_simd): New builtin handling DI mode.
26615 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
26616 (aarch64_sshr_simddi): New match pattern.
26617 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
26618 (vshrd_n_s64): Likewise.
26619 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
26621 2014-01-23 Nick Clifton <nickc@redhat.com>
26623 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
26624 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
26625 favour of mcu specific scripts.
26626 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
26629 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
26630 Alex Velenko <Alex.Velenko@arm.com>
26632 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
26633 (vaddv_s16): Likewise.
26634 (vaddv_s32): Likewise.
26635 (vaddv_u8): Likewise.
26636 (vaddv_u16): Likewise.
26637 (vaddv_u32): Likewise.
26638 (vaddvq_s8): Likewise.
26639 (vaddvq_s16): Likewise.
26640 (vaddvq_s32): Likewise.
26641 (vaddvq_s64): Likewise.
26642 (vaddvq_u8): Likewise.
26643 (vaddvq_u16): Likewise.
26644 (vaddvq_u32): Likewise.
26645 (vaddvq_u64): Likewise.
26646 (vaddv_f32): Likewise.
26647 (vaddvq_f32): Likewise.
26648 (vaddvq_f64): Likewise.
26649 (vmaxv_f32): Likewise.
26650 (vmaxv_s8): Likewise.
26651 (vmaxv_s16): Likewise.
26652 (vmaxv_s32): Likewise.
26653 (vmaxv_u8): Likewise.
26654 (vmaxv_u16): Likewise.
26655 (vmaxv_u32): Likewise.
26656 (vmaxvq_f32): Likewise.
26657 (vmaxvq_f64): Likewise.
26658 (vmaxvq_s8): Likewise.
26659 (vmaxvq_s16): Likewise.
26660 (vmaxvq_s32): Likewise.
26661 (vmaxvq_u8): Likewise.
26662 (vmaxvq_u16): Likewise.
26663 (vmaxvq_u32): Likewise.
26664 (vmaxnmv_f32): Likewise.
26665 (vmaxnmvq_f32): Likewise.
26666 (vmaxnmvq_f64): Likewise.
26667 (vminv_f32): Likewise.
26668 (vminv_s8): Likewise.
26669 (vminv_s16): Likewise.
26670 (vminv_s32): Likewise.
26671 (vminv_u8): Likewise.
26672 (vminv_u16): Likewise.
26673 (vminv_u32): Likewise.
26674 (vminvq_f32): Likewise.
26675 (vminvq_f64): Likewise.
26676 (vminvq_s8): Likewise.
26677 (vminvq_s16): Likewise.
26678 (vminvq_s32): Likewise.
26679 (vminvq_u8): Likewise.
26680 (vminvq_u16): Likewise.
26681 (vminvq_u32): Likewise.
26682 (vminnmv_f32): Likewise.
26683 (vminnmvq_f32): Likewise.
26684 (vminnmvq_f64): Likewise.
26686 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
26688 * config/aarch64/aarch64-simd.md
26689 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
26690 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
26691 (*aarch64_mul3_elt<mode>): Likewise.
26692 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
26693 (*aarch64_mul3_elt_to_64v2df): Likewise.
26694 (*aarch64_mla_elt<mode>): Likewise.
26695 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
26696 (*aarch64_mls_elt<mode>): Likewise.
26697 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
26698 (*aarch64_fma4_elt<mode>): Likewise.
26699 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
26700 (*aarch64_fma4_elt_to_64v2df): Likewise.
26701 (*aarch64_fnma4_elt<mode>): Likewise.
26702 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
26703 (*aarch64_fnma4_elt_to_64v2df): Likewise.
26704 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
26705 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
26706 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26707 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26708 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
26709 (aarch64_sqdmull_lane<mode>_internal): Likewise.
26710 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
26712 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
26714 * config/aarch64/aarch64-simd.md
26715 (aarch64_be_checked_get_lane<mode>): New define_expand.
26716 * config/aarch64/aarch64-simd-builtins.def
26717 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
26718 New builtin definition.
26719 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
26720 Use new safe be builtin.
26722 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
26724 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
26726 (aarch64_be_st1<mode>): Likewise.
26727 (aarch_ld1<VALL:mode>): Define_expand modified.
26728 (aarch_st1<VALL:mode>): Likewise.
26729 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
26730 (UNSPEC_ST1): Likewise.
26732 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
26734 * config/microblaze/microblaze.md: Add trap insn and attribute
26736 2014-01-23 Dodji Seketeli <dodji@redhat.com>
26738 PR preprocessor/58580
26739 * input.h (location_get_source_line): Take an additional line_size
26741 (void diagnostics_file_cache_fini): Declare new function.
26742 * input.c (struct fcache): New type.
26743 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
26744 New static constants.
26745 (diagnostic_file_cache_init, total_lines_num)
26746 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
26747 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
26748 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
26749 (get_next_line, read_next_line, goto_next_line, read_line_num):
26750 New static function definitions.
26751 (diagnostic_file_cache_fini): New function.
26752 (location_get_source_line): Take an additional output line_len
26753 parameter. Re-write using lookup_or_add_file_to_cache_tab and
26755 * diagnostic.c (diagnostic_finish): Call
26756 diagnostic_file_cache_fini.
26757 (adjust_line): Take an additional input parameter for the length
26758 of the line, rather than calculating it with strlen.
26759 (diagnostic_show_locus): Adjust the use of
26760 location_get_source_line and adjust_line with respect to their new
26761 signature. While displaying a line now, do not stop at the first
26762 null byte. Rather, display the zero byte as a space and keep
26763 going until we reach the size of the line.
26764 * Makefile.in: Add vec.o to OBJS-libcommon
26766 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
26767 Ilya Tocar <ilya.tocar@intel.com>
26769 * config/i386/avx512fintrin.h (_mm512_kmov): New.
26770 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
26771 (__builtin_ia32_kmov16): Ditto.
26772 * config/i386/i386.md (UNSPEC_KMOV): New.
26775 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
26777 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
26778 (_mm512_storeu_si512): Ditto.
26780 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
26783 * rtl.h (get_referenced_operands): Declare.
26784 * recog.c (get_referenced_operands): New function.
26785 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
26786 operands have been referenced when recording LO_SUM references.
26788 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
26790 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
26792 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
26794 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
26795 Enable for generic and recent AMD targets.
26797 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
26799 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
26800 ARG_SIZE note when adjustment was eliminated.
26802 2014-01-22 Jeff Law <law@redhat.com>
26804 PR tree-optimization/59597
26805 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
26806 in file. Accept new argument REGISTERING and use it to modify
26807 dump output appropriately.
26808 (register_jump_thread): Corresponding changes.
26809 (mark_threaded_blocks): Reinstate code to cancel unprofitable
26810 thread paths involving joiner blocks. Add code to dump cancelled
26811 jump threading paths.
26813 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
26815 PR rtl-optimization/59477
26816 * lra-constraints.c (inherit_in_ebb): Process call for living hard
26817 regs. Update reloads_num and potential_reload_hard_regs for all insns.
26819 2014-01-22 Tom Tromey <tromey@redhat.com>
26821 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
26823 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
26825 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
26827 PR rtl-optimization/59896
26828 * lra-constraints.c (process_alt_operands): Check unused note for
26829 matched operands of insn with no output reloads.
26831 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
26833 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
26834 (mips_move_from_gpr_cost): Likewise.
26836 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
26838 PR rtl-optimization/59858
26839 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
26840 ira_class_hard_regs_num.
26841 (process_alt_operands): Increase reject for dying matched operand.
26843 2014-01-21 Jakub Jelinek <jakub@redhat.com>
26846 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
26847 smaller than size, perform several stores or loads and stores
26848 at dst + count - size to store or copy all of size bytes, rather
26849 than just last modesize bytes.
26851 2014-01-20 DJ Delorie <dj@redhat.com>
26853 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
26854 that CLOBBERs are REGs before propogating their values.
26856 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
26858 PR middle-end/59789
26859 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
26860 (cgraph_inline_failed_type): New function.
26861 * cgraph.h (DEFCIFCODE): Add type.
26862 (cgraph_inline_failed_type_t): New enum.
26863 (cgraph_inline_failed_type): New prototype.
26864 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
26865 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26866 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
26867 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
26868 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
26869 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
26870 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
26871 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
26872 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
26873 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
26874 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
26875 OPTIMIZATION_MISMATCH.
26876 * tree-inline.c (expand_call_inline): Emit errors during
26877 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
26879 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26882 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
26883 mode attribute in insn output.
26885 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
26887 * output.h (output_constant): Delete.
26888 * varasm.c (output_constant): Make private.
26890 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
26892 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
26894 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26896 PR middle-end/59860
26897 * tree.h (fold_builtin_strcat): New prototype.
26898 * builtins.c (fold_builtin_strcat): No longer static. Add len
26899 argument, if non-NULL, don't call c_strlen. Optimize
26900 directly into __builtin_memcpy instead of __builtin_strcpy.
26901 (fold_builtin_2): Adjust fold_builtin_strcat caller.
26902 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
26904 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26906 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26907 for SImode_address_operand operands, having only a REG argument.
26909 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
26911 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
26912 loader name using mbig-endian.
26913 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
26915 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26917 * doc/invoke.texi (-march): Clarify documentation for AArch64.
26918 (-mtune): Likewise.
26921 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
26923 * config/aarch64/aarch64-protos.h
26924 (aarch64_cannot_change_mode_class_ptr): Declare.
26925 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
26926 aarch64_cannot_change_mode_class_ptr): New.
26927 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
26928 backend hook aarch64_cannot_change_mode_class.
26930 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26932 * common/config/aarch64/aarch64-common.c
26933 (aarch64_handle_option): Don't handle any option order logic here.
26934 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
26935 selected_cpu, warn on architecture version mismatch.
26936 (aarch64_override_options): Fix parsing order for option strings.
26938 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26939 Iain Sandoe <iain@codesourcery.com>
26942 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
26943 warning. Amend comment to reflect current functionality.
26945 2014-01-20 Richard Biener <rguenther@suse.de>
26947 PR middle-end/59860
26948 * builtins.c (fold_builtin_strcat): Remove case better handled
26949 by tree-ssa-strlen.c.
26951 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
26953 * config/aarch64/aarch64.opt
26954 (mcpu, march, mtune): Make case-insensitive.
26956 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26959 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26960 if operands[1] is a REG or ZERO_EXTEND of a REG.
26962 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
26964 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
26966 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
26968 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
26969 long non-pic millicode calls.
26971 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26973 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
26975 2014-01-19 Kito Cheng <kito@0xlab.org>
26977 * builtins.c (expand_movstr): Check movstr expand done or fail.
26979 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26980 H.J. Lu <hongjiu.lu@intel.com>
26983 * config/i386/i386.md (*lea<mode>): Zero-extend return register
26984 to DImode for zero-extended addresses.
26986 2014-01-19 Jakub Jelinek <jakub@redhat.com>
26988 PR rtl-optimization/57763
26989 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
26990 on the new indirect jump_insn and increment LABEL_NUSES (label).
26992 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
26996 * config.gcc (x86_archs): New variable.
26997 (x86_64_archs): Likewise.
26998 (x86_cpus): Likewise.
26999 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27000 --with-arch/--with-cpu= options.
27001 Support --with-arch=/--with-cpu={nehalem,westmere,
27002 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27004 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27006 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27007 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
27009 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
27011 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27013 2014-01-18 Jakub Jelinek <jakub@redhat.com>
27016 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27017 clear cpp_get_options (parse_in)->warn_unused_macros for
27018 ix86_target_macros_internal with cpp_define.
27020 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
27022 * jump.c (delete_related_insns): Keep (use (insn))s.
27023 * reorg.c (redundant_insn): Check for barriers too.
27025 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27027 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27029 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
27031 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27032 call to $$dyncall when TARGET_LONG_CALLS is true.
27034 2014-01-17 Jeff Law <law@redhat.com>
27036 * ree.c (combine_set_extension): Temporarily disable test for
27037 changing number of hard registers.
27039 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27041 PR middle-end/58125
27042 * ipa-inline-analysis.c (inline_free_summary):
27043 Do not free summary of aliases.
27045 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27047 PR middle-end/59706
27048 * gimplify.c (gimplify_expr): Use create_tmp_var
27049 instead of create_tmp_var_raw. If cond doesn't have
27050 integral type, don't add the IFN_ANNOTATE builtin at all.
27052 2014-01-17 Martin Jambor <mjambor@suse.cz>
27055 * ipa-cp.c (prev_edge_clone): New variable.
27056 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27057 Also resize prev_edge_clone vector.
27058 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27059 (ipcp_edge_removal_hook): New function.
27060 (ipcp_driver): Register ipcp_edge_removal_hook.
27062 2014-01-17 Andrew Pinski <apinski@cavium.com>
27063 Steve Ellcey <sellcey@mips.com>
27066 * config/mips/mips.c (mips_print_operand): Check operand mode instead
27069 2014-01-17 Jeff Law <law@redhat.com>
27071 PR middle-end/57904
27072 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
27073 so that pass_ccp runs first.
27075 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27077 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
27078 (ix86_adjust_cost): Use !TARGET_XXX.
27079 (do_reorder_for_imul): Likewise.
27080 (swap_top_of_ready_list): Likewise.
27081 (ix86_sched_reorder): Likewise.
27083 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
27085 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27086 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
27087 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
27088 (intel_memset): New. Duplicate slm_memset.
27089 (intel_cost): New. Duplicate slm_cost.
27090 (m_INTEL): New macro.
27091 (processor_target_table): Add "intel".
27092 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
27093 with PROCESSOR_INTEL for "intel".
27094 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
27095 PROCESSOR_SILVERMONT.
27096 (ix86_issue_rate): Likewise.
27097 (ix86_adjust_cost): Likewise.
27098 (ia32_multipass_dfa_lookahead): Likewise.
27099 (swap_top_of_ready_list): Likewise.
27100 (ix86_sched_reorder): Likewise.
27101 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
27102 instead of TARGET_OPT_AGU.
27103 * config/i386/i386.h (TARGET_INTEL): New.
27104 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
27105 (processor_type): Add PROCESSOR_INTEL.
27106 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
27107 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
27109 2014-01-17 Marek Polacek <polacek@redhat.com>
27112 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
27115 2014-01-17 Richard Biener <rguenther@suse.de>
27117 PR tree-optimization/46590
27118 * opts.c (default_options_table): Add entries for
27119 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
27120 all enabled at -O1 but not for -Og.
27121 * common.opt (fbranch-count-reg): Remove Init(1).
27122 (fmove-loop-invariants): Likewise.
27123 (ftree-pta): Likewise.
27125 2014-01-17 Jakub Jelinek <jakub@redhat.com>
27127 * config/i386/i386.c (ix86_data_alignment): For compatibility with
27128 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
27129 decls to at least the GCC 4.8 used alignments.
27132 * tree-nested.c (convert_nonlocal_reference_stmt,
27133 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
27134 of GIMPLE_BIND stmts, adjust associated decls.
27136 2014-01-17 Richard Biener <rguenther@suse.de>
27138 PR tree-optimization/46590
27139 * vec.h (vec<>::bseach): New member function implementing
27140 binary search according to C89 bsearch.
27141 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
27142 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
27143 bitmap pointer again. Make accesses_in_loop a flat array.
27144 (mem_ref_obstack): New global.
27145 (outermost_indep_loop): Adjust for mem_ref->stored changes.
27146 (mark_ref_stored): Likewise.
27147 (ref_indep_loop_p_2): Likewise.
27148 (set_ref_stored_in_loop): New helper function.
27149 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
27150 (memref_free): Adjust.
27151 (record_mem_ref_loc): Simplify.
27152 (gather_mem_refs_stmt): Adjust.
27153 (sort_locs_in_loop_postorder_cmp): New function.
27154 (analyze_memory_references): Sort accesses_in_loop after
27155 loop postorder number.
27156 (find_ref_loc_in_loop_cmp): New function.
27157 (for_all_locs_in_loop): Find relevant cluster of locs in
27158 accesses_in_loop and iterate without recursion.
27159 (execute_sm): Avoid uninit warning.
27160 (struct ref_always_accessed): Simplify.
27161 (ref_always_accessed::operator ()): Likewise.
27162 (ref_always_accessed_p): Likewise.
27163 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
27164 loop postorder numbers here.
27165 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
27168 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
27171 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
27172 on decls for which assemble_alias has been called.
27174 2014-01-17 Nick Clifton <nickc@redhat.com>
27176 * config/msp430/msp430.opt: (mcpu): New option.
27177 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
27178 (msp430_option_override): Parse target_cpu. If the MCU name
27179 matches a generic string, clear target_mcu.
27180 (msp430_attr): Allow numeric interrupt values up to 63.
27181 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
27182 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
27184 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
27186 * config/msp430/msp430.md (popm): Use %J rather than %I.
27187 (addsi3): Use msp430_nonimmediate_operand for operand 2.
27188 (addhi_cy_i): Use immediate_operand for operand 2.
27189 * doc/invoke.texi: Document -mcpu option.
27191 2014-01-17 Richard Biener <rguenther@suse.de>
27193 PR rtl-optimization/38518
27194 * df.h (df_analyze_loop): Declare.
27195 * df-core.c: Include cfgloop.h.
27196 (df_analyze_1): Split out main part of df_analyze.
27197 (df_analyze): Adjust.
27198 (loop_inverted_post_order_compute): New function.
27199 (loop_post_order_compute): Likewise.
27200 (df_analyze_loop): New function avoiding whole-function
27201 postorder computes.
27202 * loop-invariant.c (find_defs): Use df_analyze_loop.
27203 (find_invariants): Adjust.
27204 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
27206 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
27208 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
27209 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
27211 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
27213 * ipa-ref.c (ipa_remove_stmt_references): Fix references
27214 traversal when removing references.
27216 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
27219 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
27221 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
27223 PR middle-end/56791
27224 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
27225 pushing a reload for an autoinc when we had previously reloaded an
27226 inner part of the address.
27228 2014-01-16 Jakub Jelinek <jakub@redhat.com>
27230 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
27232 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
27233 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
27234 when not giving up or versioning for alias only because of
27236 (vect_analyze_data_ref_dependences): Set to true.
27237 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
27239 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
27240 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
27243 PR middle-end/58344
27244 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
27247 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
27248 operand 0 predicate for gathers, use a new pseudo as subtarget.
27250 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27252 PR middle-end/59609
27253 * lra-constraints.c (process_alt_operands): Add printing debug info.
27254 Check absence of input/output reloads for matched operands too.
27256 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
27258 PR rtl-optimization/59835
27259 * ira.c (ira_init_register_move_cost): Increase cost for
27262 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
27264 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
27266 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
27269 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
27270 non-register objects. Use gen_(high/low)part more consistently.
27273 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
27276 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
27277 endian support, remove tests for WORDS_BIG_ENDIAN.
27278 (p8_mfvsrd_3_<mode>): Likewise.
27279 (reload_gpr_from_vsx<mode>): Likewise.
27280 (reload_gpr_from_vsxsf): Likewise.
27281 (p8_mfvsrd_4_disf): Likewise.
27283 2014-01-16 Richard Biener <rguenther@suse.de>
27285 PR rtl-optimization/46590
27286 * lcm.c (compute_antinout_edge): Use postorder iteration.
27287 (compute_laterin): Use inverted postorder iteration.
27289 2014-01-16 Nick Clifton <nickc@redhat.com>
27291 PR middle-end/28865
27292 * varasm.c (output_constant): Return the number of bytes actually
27294 (output_constructor_array_range): Update the field size with the
27295 number of bytes emitted by output_constant.
27296 (output_constructor_regular_field): Likewise. Also do not
27297 complain if the total number of bytes emitted is now greater
27298 than the expected fieldpos.
27299 * output.h (output_constant): Update prototype and descriptive comment.
27301 2014-01-16 Marek Polacek <polacek@redhat.com>
27303 PR middle-end/59827
27304 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
27305 it is error_mark_node.
27307 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
27309 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
27310 VALID_AVX256_REG_OR_OI_MODE.
27312 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
27314 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
27315 current procedure should be profiled.
27317 2014-01-15 Andrew Pinski <apinski@cavium.com>
27319 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
27320 of moving from/to the STACK_REG register class.
27322 2014-01-15 Richard Henderson <rth@redhat.com>
27325 * reginfo.c (global_regs_decl): Globalize.
27326 * rtl.h (global_regs_decl): Declare.
27327 * ira.c (do_reload): Diagnose frame_pointer_needed and it
27328 reserved via global_regs.
27330 2014-01-15 Teresa Johnson <tejohnson@google.com>
27332 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
27334 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
27336 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
27337 and vmulosh rather than call gen_vec_widen_smult_*.
27338 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
27339 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
27340 (vec_widen_smult_even_v16qi): Likewise.
27341 (vec_widen_umult_even_v8hi): Likewise.
27342 (vec_widen_smult_even_v8hi): Likewise.
27343 (vec_widen_umult_odd_v16qi): Likewise.
27344 (vec_widen_smult_odd_v16qi): Likewise.
27345 (vec_widen_umult_odd_v8hi): Likewise.
27346 (vec_widen_smult_odd_v8hi): Likewise.
27347 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
27348 vmuloub rather than call gen_vec_widen_umult_*.
27349 (vec_widen_umult_lo_v16qi): Likewise.
27350 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
27351 vmulosb rather than call gen_vec_widen_smult_*.
27352 (vec_widen_smult_lo_v16qi): Likewise.
27353 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
27354 rather than call gen_vec_widen_umult_*.
27355 (vec_widen_umult_lo_v8hi): Likewise.
27356 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
27357 rather than call gen_vec_widen_smult_*.
27358 (vec_widen_smult_lo_v8hi): Likewise.
27360 2014-01-15 Jeff Law <law@redhat.com>
27362 PR tree-optimization/59747
27363 * ree.c (find_and_remove_re): Properly handle case where a second
27364 eliminated extension requires widening a copy created for elimination
27365 of a prior extension.
27366 (combine_set_extension): Ensure that the number of hard regs needed
27367 for a destination register does not change when we widen it.
27369 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
27371 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
27372 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
27373 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
27374 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
27375 (avr-*-rtems*): Likewise.
27376 (bfin*-rtems*): Likewise.
27377 (moxie-*-rtems*): Likewise.
27378 (h8300-*-rtems*): Likewise.
27379 (i[34567]86-*-rtems*): Likewise.
27380 (lm32-*-rtems*): Likewise.
27381 (m32r-*-rtems*): Likewise.
27382 (m68k-*-rtems*): Likewise.
27383 (microblaze*-*-rtems*): Likewise.
27384 (mips*-*-rtems*): Likewise.
27385 (powerpc-*-rtems*): Likewise.
27386 (sh-*-rtems*): Likewise.
27387 (sparc-*-rtems*): Likewise.
27388 (sparc64-*-rtems*): Likewise.
27389 (v850-*-rtems*): Likewise.
27390 (m32c-*-rtems*): Likewise.
27392 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
27394 PR rtl-optimization/59511
27395 * ira.c (ira_init_register_move_cost): Use memory costs for some
27396 cases of register move cost calculations.
27397 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
27398 instead of BB frequency.
27399 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
27400 * lra-assigns.c (find_hard_regno_for): Ditto.
27402 2014-01-15 Richard Biener <rguenther@suse.de>
27404 PR tree-optimization/59822
27405 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
27406 (vectorizable_load): Use it to hoist defs of uses of invariant
27407 loads out of the loop.
27409 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
27410 Kugan Vivekanandarajah <kuganv@linaro.org>
27413 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
27416 2014-01-15 Richard Biener <rguenther@suse.de>
27418 PR rtl-optimization/59802
27419 * lcm.c (compute_available): Use inverted postorder to seed
27420 the initial worklist.
27422 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27425 * config/s390/s390.c (s390_preferred_reload_class): Don't return
27426 ADDR_REGS for invalid symrefs in non-PIC code.
27428 2014-01-15 Jakub Jelinek <jakub@redhat.com>
27431 * builtins.c (determine_block_size): Initialize *probable_max_size
27432 even if len_rtx is CONST_INT.
27434 2014-01-14 Andrew Pinski <apinski@cavium.com>
27436 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
27437 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
27438 (cortexa53_tunings): Likewise.
27439 (aarch64_sched_issue_rate): New function.
27440 (TARGET_SCHED_ISSUE_RATE): Define.
27442 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
27444 * ira-costs.c (find_costs_and_classes): Add missed
27445 ira_init_register_move_cost_if_necessary.
27447 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
27450 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
27452 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
27455 * config/i386/i386.c (type_natural_mode): Add a bool parameter
27456 to indicate if type is used for function return value. Warn ABI
27457 change if the vector mode isn't available for function return value.
27458 (ix86_function_arg_advance): Pass false to type_natural_mode.
27459 (ix86_function_arg): Likewise.
27460 (ix86_gimplify_va_arg): Likewise.
27461 (function_arg_32): Don't warn ABI change.
27462 (ix86_function_value): Pass true to type_natural_mode.
27463 (ix86_return_in_memory): Likewise.
27464 (ix86_struct_value_rtx): Removed.
27465 (TARGET_STRUCT_VALUE_RTX): Likewise.
27467 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27469 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
27470 converting a conditional jump into a conditional return.
27472 2014-01-14 Richard Biener <rguenther@suse.de>
27474 PR tree-optimization/58921
27475 PR tree-optimization/59006
27476 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
27477 hoisting invariant stmts.
27478 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
27479 invariant loads on the preheader edge if possible.
27481 2014-01-14 Joey Ye <joey.ye@arm.com>
27483 * doc/plugin.texi (Building GCC plugins): Update to C++.
27485 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
27487 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
27488 (_mm_rcp28_round_ss): Ditto.
27489 (_mm_rsqrt28_round_sd): Ditto.
27490 (_mm_rsqrt28_round_ss): Ditto.
27491 (_mm_rcp28_sd): Ditto.
27492 (_mm_rcp28_ss): Ditto.
27493 (_mm_rsqrt28_sd): Ditto.
27494 (_mm_rsqrt28_ss): Ditto.
27495 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
27496 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
27497 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
27498 (IX86_BUILTIN_RCP28SD): Ditto.
27499 (IX86_BUILTIN_RCP28SS): Ditto.
27500 (IX86_BUILTIN_RSQRT28SD): Ditto.
27501 (IX86_BUILTIN_RSQRT28SS): Ditto.
27502 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
27503 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
27504 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
27505 (ix86_expand_special_args_builtin): Expand new FTYPE.
27506 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
27507 (srcp14<mode>): Make insn unary.
27508 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
27509 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
27510 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
27511 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
27512 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
27513 Fix rounding: make it SAE only.
27514 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27516 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27518 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
27519 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
27520 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
27521 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
27522 (round_saeonly_mask_scalar_operand4): Ditto.
27523 (round_saeonly_mask_scalar_op3): Ditto.
27524 (round_saeonly_mask_scalar_op4): Ditto.
27526 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27528 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27529 Implement -maltivec=be for vec_insert and vec_extract.
27531 2014-01-10 DJ Delorie <dj@redhat.com>
27533 * config/msp430/msp430.md (call_internal): Don't allow memory
27534 references with SP as the base register.
27535 (call_value_internal): Likewise.
27536 * config/msp430/constraints.md (Yc): New. For memory references
27537 that don't use SP as a base register.
27539 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
27540 "an integer without a # prefix"
27541 * config/msp430/msp430.md (epilogue_helper): Use it.
27543 2014-01-13 Jakub Jelinek <jakub@redhat.com>
27546 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
27547 AVX512F gather builtins.
27548 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
27549 on gather decls with INTEGER_TYPE masktype.
27550 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
27551 directly into the builtin rather than hoisting it before loop.
27553 PR tree-optimization/59387
27554 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
27555 (scev_const_prop): If folded_casts and type has undefined overflow,
27556 use force_gimple_operand instead of force_gimple_operand_gsi and
27557 for each added stmt if it is assign with
27558 arith_code_with_undefined_signed_overflow, call
27559 rewrite_to_defined_overflow.
27560 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
27561 gimple-fold.h instead.
27562 (arith_code_with_undefined_signed_overflow,
27563 rewrite_to_defined_overflow): Moved to ...
27564 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
27565 rewrite_to_defined_overflow): ... here. No longer static.
27566 Include gimplify-me.h.
27567 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
27568 rewrite_to_defined_overflow): New prototypes.
27570 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27572 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
27574 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
27576 * builtins.c (get_object_alignment_2): Minor tweak.
27577 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
27579 2014-01-13 Christian Bruel <christian.bruel@st.com>
27581 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
27582 optimized non constant lengths.
27584 2014-01-13 Jakub Jelinek <jakub@redhat.com>
27587 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
27588 load as __atomic_load_N if possible.
27590 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
27592 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
27594 (rs6000_expand_builtin): Adjust call.
27596 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
27599 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
27600 * config/rs6000/rs6000.c: Include target-globals.h.
27601 (rs6000_set_current_function): Instead of doing target_reinit
27602 unconditionally, use save_target_globals_default_opts and
27603 restore_target_globals.
27605 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
27607 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
27608 (rs6000_expand_builtin): Handle mffs and mtfsf.
27609 (rs6000_init_builtins): Define mffs and mtfsf.
27610 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
27611 (rs6000_mffs): New pattern.
27612 (rs6000_mtfsf): New pattern.
27614 2014-01-11 Bin Cheng <bin.cheng@arm.com>
27616 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
27617 Start narrowing with START. Apply candidate-use pair
27618 and check overall cost in narrowing.
27619 (iv_ca_prune): Pass new argument.
27621 2014-01-10 Jeff Law <law@redhat.com>
27623 PR middle-end/59743
27624 * ree.c (combine_reaching_defs): Ensure the defining statement
27625 occurs before the extension when optimizing extensions with
27626 different source and destination hard registers.
27628 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
27631 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
27632 vtables into the type inheritance graph.
27634 2014-01-10 Jakub Jelinek <jakub@redhat.com>
27636 PR rtl-optimization/59754
27637 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
27638 modes in the REGNO != REGNO case.
27640 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27642 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
27644 2014-01-10 Jakub Jelinek <jakub@redhat.com>
27646 PR tree-optimization/59745
27647 * tree-predcom.c (tree_predictive_commoning_loop): Call
27648 free_affine_expand_cache if giving up because components is NULL.
27650 * target-globals.c (save_target_globals): Allocate < 4KB structs using
27651 GC in payload of target_globals struct instead of allocating them on
27652 the heap and the larger structs separately using GC.
27653 * target-globals.h (struct target_globals): Make regs, hard_regs,
27654 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
27655 of GTY((skip)) and change type to void *.
27656 (reset_target_globals): Cast loads from those fields to corresponding
27659 2014-01-10 Steve Ellcey <sellcey@mips.com>
27662 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
27663 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
27664 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
27666 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
27669 * aarch64-modes.def (CC_Zmode): New flags mode.
27670 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
27671 represents an equality.
27672 (aarch64_get_condition_code): Handle CC_Zmode.
27673 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
27675 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27677 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
27678 extraction in good case.
27680 2014-01-10 Richard Biener <rguenther@suse.de>
27682 PR tree-optimization/59374
27683 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
27684 checking after SLP discovery. Mark stmts not participating
27685 in any SLP instance properly.
27687 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27689 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
27690 when handling a SET rtx.
27692 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27694 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
27695 (cortex-a57): Likewise.
27696 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
27698 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27700 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
27701 non-iwmmxt builtins.
27703 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
27707 * ipa-devirt.c record_target_from_binfo): Take as argument
27708 stack of binfos and lookup matching one for virtual inheritance.
27709 (possible_polymorphic_call_targets_1): Update.
27711 2014-01-10 Huacai Chen <chenhc@lemote.com>
27713 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
27714 kernel strings for Loongson-2E/2F/3A.
27716 2014-01-10 Jakub Jelinek <jakub@redhat.com>
27718 PR middle-end/59670
27719 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
27720 is_gimple_call before calling gimple_call_internal_p.
27722 2014-01-09 Steve Ellcey <sellcey@mips.com>
27724 * Makefile.in (TREE_FLOW_H): Remove.
27725 (TREE_SSA_H): Add file names from tree-flow.h.
27726 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
27727 * tree.h: Remove tree-flow.h reference.
27728 * hash-table.h: Remove tree-flow.h reference.
27729 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
27730 reference with tree-ssa-loop.h.
27732 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27734 * doc/invoke.texi: Add -maltivec={be,le} options, and document
27735 default element-order behavior for -maltivec.
27736 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
27737 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
27738 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
27739 when targeting big endian, at least for now.
27740 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
27742 2014-01-09 Jakub Jelinek <jakub@redhat.com>
27744 PR middle-end/47735
27745 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
27746 var satisfies use_register_for_decl, just take into account type
27747 alignment, rather than decl alignment.
27749 PR tree-optimization/59622
27750 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
27751 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
27752 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
27753 Don't devirtualize for inplace at all. For targets.length () == 1,
27754 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
27756 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
27758 * config/i386/i386.md (cpu): Remove the unused btver1.
27760 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
27762 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
27764 2014-01-09 Jakub Jelinek <jakub@redhat.com>
27767 * tree-core.h (struct target_globals): New forward declaration.
27768 (struct tree_target_option): Add globals field.
27769 * tree.h (TREE_TARGET_GLOBALS): Define.
27770 (prepare_target_option_nodes_for_pch): New prototype.
27771 * target-globals.h (struct target_globals): Define even if
27772 !SWITCHABLE_TARGET.
27773 * tree.c (prepare_target_option_node_for_pch,
27774 prepare_target_option_nodes_for_pch): New functions.
27775 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
27776 * config/i386/i386.c: Include target-globals.h.
27777 (ix86_set_current_function): Instead of doing target_reinit
27778 unconditionally, use save_target_globals_default_opts and
27779 restore_target_globals.
27781 2014-01-09 Richard Biener <rguenther@suse.de>
27783 PR tree-optimization/59715
27784 * tree-cfg.h (split_critical_edges): Declare.
27785 * tree-cfg.c (split_critical_edges): Export.
27786 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
27788 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
27790 * cfgexpand.c (expand_stack_vars): Optionally disable
27791 asan stack protection.
27792 (expand_used_vars): Likewise.
27793 (partition_stack_vars): Likewise.
27794 * asan.c (asan_emit_stack_protection): Optionally disable
27795 after return stack usage.
27796 (instrument_derefs): Optionally disable memory access instrumentation.
27797 (instrument_builtin_call): Likewise.
27798 (instrument_strlen_call): Likewise.
27799 (asan_protect_global): Optionally disable global variables protection.
27800 * doc/invoke.texi: Added doc for new options.
27801 * params.def: Added new options.
27802 * params.h: Likewise.
27804 2014-01-09 Jakub Jelinek <jakub@redhat.com>
27806 PR rtl-optimization/59724
27807 * ifcvt.c (cond_exec_process_if_block): Don't call
27808 flow_find_head_matching_sequence with 0 longest_match.
27809 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
27810 non-active insns if !stop_after.
27811 (try_head_merge_bb): Revert 2014-01-07 changes.
27813 2014-01-08 Jeff Law <law@redhat.com>
27815 * ree.c (get_sub_rtx): New function, extracted from...
27816 (merge_def_and_ext): Here.
27817 (combine_reaching_defs): Use get_sub_rtx.
27819 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
27821 * cgraph.h (varpool_variable_node): Do not choke on null node.
27823 2014-01-08 Catherine Moore <clm@codesourcery.com>
27825 * config/mips/mips.md (simple_return): Attempt to use JRC
27827 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
27829 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
27831 PR rtl-optimization/59137
27832 * reorg.c (steal_delay_list_from_target): Call update_block for
27834 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
27836 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27838 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
27839 two duplicate entries.
27841 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
27844 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
27846 * config/mips/mips.c (mips_truncated_op_cost): New function.
27847 (mips_rtx_costs): Adjust test for BADDU.
27848 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
27850 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
27852 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
27853 (*baddu_si): ...this new pattern.
27855 2014-01-08 Jakub Jelinek <jakub@redhat.com>
27858 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
27860 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
27862 PR middle-end/57748
27863 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
27865 (expand_expr, expand_normal): Adjust.
27866 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
27867 inner_reference_p. Use inner_reference_p to expand inner references.
27868 (store_expr): Adjust.
27869 * cfgexpand.c (expand_call_stmt): Adjust.
27871 2014-01-08 Rong Xu <xur@google.com>
27873 * gcov-io.c (gcov_var): Move from gcov-io.h.
27874 (gcov_position): Ditto.
27875 (gcov_is_error): Ditto.
27876 (gcov_rewrite): Ditto.
27877 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
27878 only part to libgcc/libgcov.h.
27880 2014-01-08 Marek Polacek <polacek@redhat.com>
27882 PR middle-end/59669
27883 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
27885 2014-01-08 Marek Polacek <polacek@redhat.com>
27888 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
27890 2014-01-08 Jakub Jelinek <jakub@redhat.com>
27892 PR rtl-optimization/59649
27893 * stor-layout.c (get_mode_bounds): For BImode return
27894 0 and STORE_FLAG_VALUE.
27896 2014-01-08 Richard Biener <rguenther@suse.de>
27898 PR middle-end/59630
27899 * gimple.h (is_gimple_builtin_call): Remove.
27900 (gimple_builtin_call_types_compatible_p): New.
27901 (gimple_call_builtin_p): New overload.
27902 * gimple.c (is_gimple_builtin_call): Remove.
27903 (validate_call): Rename to ...
27904 (gimple_builtin_call_types_compatible_p): ... this and export. Also
27905 check return types.
27906 (validate_type): New static function.
27907 (gimple_call_builtin_p): New overload and adjust.
27908 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
27909 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
27910 (gimple_fold_stmt_to_constant_1): Likewise.
27911 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
27913 2014-01-08 Richard Biener <rguenther@suse.de>
27915 PR middle-end/59471
27916 * gimplify.c (gimplify_expr): Gimplify register-register type
27917 VIEW_CONVERT_EXPRs to separate stmts.
27919 2014-01-07 Jeff Law <law@redhat.com>
27921 PR middle-end/53623
27922 * ree.c (combine_set_extension): Handle case where source
27923 and destination registers in an extension insn are different.
27924 (combine_reaching_defs): Allow source and destination registers
27925 in extension to be different under limited circumstances.
27926 (add_removable_extension): Remove restriction that the
27927 source and destination registers in the extension are the same.
27928 (find_and_remove_re): Emit a copy from the extension's
27929 destination to its source after the defining insn if
27930 the source and destination registers are different.
27932 PR middle-end/59285
27933 * ifcvt.c (merge_if_block): If we are merging a block with more than
27934 one successor with a block with no successors, remove any BARRIER
27935 after the second block.
27937 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
27939 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
27941 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
27944 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
27945 for 14-bit register offsets when INT14_OK_STRICT is false.
27947 2014-01-07 Roland Stigge <stigge@antcom.de>
27948 Michael Meissner <meissner@linux.vnet.ibm.com>
27951 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27952 Only check TFmode for SPE constants. Don't check TImode or TDmode.
27954 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
27956 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
27959 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
27961 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
27962 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
27963 rtx is const0_rtx or not.
27965 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
27968 * target-globals.c (save_target_globals): Remove this_fn_optab
27970 * toplev.c: Include optabs.h.
27971 (target_reinit): Temporarily restore the global options if another
27972 set of options are in force.
27974 2014-01-07 Jakub Jelinek <jakub@redhat.com>
27976 PR rtl-optimization/58668
27977 * cfgcleanup.c (flow_find_cross_jump): Don't count
27978 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
27979 to determine what is counted.
27980 (flow_find_head_matching_sequence): Use active_insn_p to determine
27982 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
27984 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
27985 determine what is counted.
27987 PR tree-optimization/59643
27988 * tree-predcom.c (split_data_refs_to_components): If one dr is
27989 read and one write, determine_offset fails and the write isn't
27990 in the bad component, just put the read into the bad component.
27992 2014-01-07 Mike Stump <mikestump@comcast.net>
27993 Jakub Jelinek <jakub@redhat.com>
27996 * tree-core.h (struct tree_optimization_option): Change optabs
27997 type from unsigned char * to void *.
27998 * optabs.c (init_tree_optimization_optabs): Adjust
27999 TREE_OPTIMIZATION_OPTABS initialization.
28001 2014-01-06 Jakub Jelinek <jakub@redhat.com>
28004 * config/i386/i386.h (struct machine_function): Add
28005 no_drap_save_restore field.
28006 * config/i386/i386.c (ix86_save_reg): Use
28007 !cfun->machine->no_drap_save_restore instead of
28008 crtl->stack_realign_needed.
28009 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28010 this function clears frame_pointer_needed. Set
28011 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28012 and DRAP reg is needed.
28014 2014-01-06 Marek Polacek <polacek@redhat.com>
28017 * doc/implement-c.texi: Mention that other integer types are
28018 permitted as bit-field types in strictly conforming mode.
28020 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
28022 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28023 is newly allocated.
28025 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
28027 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28029 2014-01-06 Martin Jambor <mjambor@suse.cz>
28032 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28034 * ipa-prop.c (ipa_print_node_params): Fix indentation.
28036 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
28040 * var-tracking.c (add_stores): Preserve the value of the source even if
28041 we don't record the store.
28043 2014-01-06 Terry Guo <terry.guo@arm.com>
28045 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28047 2014-01-05 Iain Sandoe <iain@codesourcery.com>
28050 * config/darwin.c (darwin_function_section): Adjust return values to
28051 correspond to optimisation changes made in r206070.
28053 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
28055 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28056 from prefetch_block tune setting.
28057 (nocona_cost): Correct size of prefetch block to 64.
28059 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
28061 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28062 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28063 used to save the static chain register in the computation of the offset
28064 from which the FP registers need to be restored.
28066 2014-01-04 Jakub Jelinek <jakub@redhat.com>
28068 PR tree-optimization/59519
28069 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
28070 ICE if get_current_def (current_new_name) is already non-NULL, as long
28071 as it is a phi result of some other phi in *new_exit_bb that has
28074 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
28075 or vmovdqu* for misaligned_operand.
28076 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
28077 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
28078 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
28079 aligned_mem for AVX512F masked aligned load and store builtins and for
28080 non-temporal moves.
28082 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
28084 PR tree-optimization/59651
28085 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28086 Address range for negative step should be added by TYPE_SIZE_UNIT.
28088 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
28090 * config/m68k/m68k.c (handle_move_double): Handle pushes with
28091 overlapping registers also for registers other than the stack pointer.
28093 2014-01-03 Marek Polacek <polacek@redhat.com>
28096 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
28099 2014-01-03 Jakub Jelinek <jakub@redhat.com>
28102 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
28105 * config/i386/i386.md (MODE_SIZE): New mode attribute.
28106 (push splitter): Use <P:MODE_SIZE> instead of
28107 GET_MODE_SIZE (<P:MODE>mode).
28108 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
28109 (mov -1, reg peephole2): Likewise.
28110 * config/i386/sse.md (*mov<mode>_internal,
28111 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
28112 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
28113 *<code><mode>3, *andnot<mode>3<mask_name>,
28114 <mask_codefor><code><mode>3<mask_name>): Likewise.
28115 * config/i386/subst.md (mask_mode512bit_condition,
28116 sd_mask_mode512bit_condition): Likewise.
28118 2014-01-02 Xinliang David Li <davidxl@google.com>
28120 PR tree-optimization/59303
28121 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
28122 (dump_predicates): Better output format.
28123 (pred_equal_p): New function.
28124 (is_neq_relop_p): Ditto.
28125 (is_neq_zero_form_p): Ditto.
28126 (pred_expr_equal_p): Ditto.
28127 (pred_neg_p): Ditto.
28128 (simplify_pred): Ditto.
28129 (simplify_preds_2): Ditto.
28130 (simplify_preds_3): Ditto.
28131 (simplify_preds_4): Ditto.
28132 (simplify_preds): Ditto.
28133 (push_pred): Ditto.
28134 (push_to_worklist): Ditto.
28135 (get_pred_info_from_cmp): Ditto.
28136 (is_degenerated_phi): Ditto.
28137 (normalize_one_pred_1): Ditto.
28138 (normalize_one_pred): Ditto.
28139 (normalize_one_pred_chain): Ditto.
28140 (normalize_preds): Ditto.
28141 (normalize_cond_1): Remove function.
28142 (normalize_cond): Ditto.
28143 (is_gcond_subset_of): Ditto.
28144 (is_subset_of_any): Ditto.
28145 (is_or_set_subset_of): Ditto.
28146 (is_and_set_subset_of): Ditto.
28147 (is_norm_cond_subset_of): Ditto.
28148 (pred_chain_length_cmp): Ditto.
28149 (convert_control_dep_chain_into_preds): Type change.
28150 (find_predicates): Ditto.
28151 (find_def_preds): Ditto.
28152 (destroy_predicates_vecs): Ditto.
28153 (find_matching_predicates_in_rest_chains): Ditto.
28154 (use_pred_not_overlap_with_undef_path_pred): Ditto.
28155 (is_pred_expr_subset): Ditto.
28156 (is_pred_chain_subset_of): Ditto.
28157 (is_included_in): Ditto.
28158 (is_superset_of): Ditto.
28160 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28162 Update copyright years.
28164 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
28166 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
28167 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
28168 config/arc/arc.md, config/arc/arc.opt,
28169 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
28170 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
28171 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
28172 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
28173 config/linux-protos.h, config/linux.c, config/winnt-c.c,
28174 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
28175 vtable-verify.c, vtable-verify.h: Use the standard form for the
28178 2014-01-02 Tobias Burnus <burnus@net-b.de>
28180 * gcc.c (process_command): Update copyright notice dates.
28181 * gcov-dump.c: Ditto.
28183 * doc/cpp.texi: Bump @copying's copyright year.
28184 * doc/cppinternals.texi: Ditto.
28185 * doc/gcc.texi: Ditto.
28186 * doc/gccint.texi: Ditto.
28187 * doc/gcov.texi: Ditto.
28188 * doc/install.texi: Ditto.
28189 * doc/invoke.texi: Ditto.
28191 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28193 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
28195 2014-01-01 Jakub Jelinek <jakub@redhat.com>
28197 * config/i386/sse.md (*mov<mode>_internal): Guard
28198 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
28200 PR rtl-optimization/59647
28201 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
28202 new_rtx into UNSIGNED_FLOAT rtxes.
28204 Copyright (C) 2014 Free Software Foundation, Inc.
28206 Copying and distribution of this file, with or without modification,
28207 are permitted in any medium without royalty provided the copyright
28208 notice and this notice are preserved.